#1) Getting the params
- When the url is hit, the route is redirected to sub_master.js.
- From there it is redirected to bpo module. So it will go to bpo_page.js.
- Here it will initialize the class and during that initialization it will go on to initialize bpo_page_model.js.
- Here it will get the query parameters by using utility.js class common method i.e. getQueryParams.
- In that method it will decrypt the query params using common crypto js and returns the params in an object.
#2) Getting screen data
- Once we have got the query params, next step is to get the screen data through getScreenData method of CommonCls.
- The method will convert screen_type parameter to lower case and then match the case and import the module.
#3) Getting Initial and Search data
- Once we have received the screen data next we will call apis to get header and search data.
- The APIs called are getInitialData and getSearchMasterData.
- Once we receive the response from getInitialData, we will call method to create header arrangement.
- After receiving response from both APIs, we will call method to set display items for search
#4) Getting the main BPO data.
- List page component will call getBPOData method to get the ids and data.
- The same method will be called to load initial data and also data on scroll.
- _idArr will be the parameter determining which type of data needs to be returned.
- If the param is empty, that means initial data has to be returned. So both getIds and getDataByIds apis will be called.
- If the param has value then only getDataByIds API will be called.
#5) Performing Actions
- Now when the data is loaded, we will look into how we will perform the actions.
- There are some actions where download of the files are required, So it will call downloadBPOExcel API.
- To perform the common action, performActions API is called.
- So once the icon is clicked and the control goes to performAction method, it will check if pki authentication is required.
- If the auth is required, it will call verifyPKI method. If the response from there is Success it will move forward.
- If no auh required it will move forward.
- After that openPopups method is called, which will call the models based on modelTypes specified.
- Once the response from the model is received, API is called.