Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Search NOC

Objective

Provide Employee to search existing NOC and its current status.

Route - https://egov-micro-qa.egovernments.org/employee/egov-common-noc/search

...

Technical Implementation Details (big grin)

Table Structure

  • MUIDataTable is used to implement Table component.

  • Every columns are entry given as an Object

{ labelName: "Application No", labelKey: "NOC_APP_NO_LABEL" },

  • Any customizations at column level is by customBodyRender hook available in all the colums ‘option’ property.

Data fetch,load and render :

Once the data is fetched using /bpa-services/v1/bpa/_search API, the returned data is formatted and dispatched to redux

...

As we can see from the image above, the data is put to specific path inside props.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-bpa-dev/src/ui-config/screens/specs/egov-bpa/searchResource/searchResults.js

...

Tabel component now fetches the data from its props as shown below.

...

API Call Role Action mapping:

S.No.

API

Action id

Roles

2

/noc-services/v1/noc/_search

1936

CITIZEN, EMPLOYEE

3

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN