Search Stakeholder

Search Stakeholder Registration

Objective

Provide Employee to search existing Stakeholder Registration and its current status.

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

Technical Implementation Details

 

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/BPAREG/_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/bpastakeholder/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/bpastakeholder/searchResource/searchResults.js

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

API Call Role Action mapping:

API

Action id

Roles

API

Action id

Roles

1

/tl-services/v1/BPAREG/_search

1877

BPAREG_APPROVER, CITIZEN, BPAREG_DOC_VERIFIER

2

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN

Â