Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Search BPA/ BPA OC

Objective

Provide Employee to search existing BPA/ BPA OC and its current status.

Route - https://egov-micro-dev.egovernments.org/employee/egov-bpa/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: "BPA_COMMON_TABLE_COL_APP_NO" },

  • 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

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

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

/bpa-services/v1/bpa/_search

1936

BPA_VERIFIER,BPA_FIELD_INSPECTOR,BPA_NOC_VERIFIER, BPA_APPROVER

3

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN

  • No labels