As I am in the learning process, I am stuck at one point for which I need your help. I am mentioning that in details below.
I have developed the following application in which one master page comes which shows the list of PRs to be approved by a user.
When clicking a particular PR, it shows the detail page.
In the detail page, several fields are displayed like general details, approval status list, comments (if any) and the list of attachments (attachments not yet integrated).
The line-item list is also displayed as follows –
Now, if I click on a particular line item, it opens a line item view as follows –
It is showing the selected line-item details. It will show the service sub-line item list also which is within that particular line-item as follows –
`
Line Number 00080 has sub-line item which is shown below.
Now, I have kept provision of modifying quantity, rate, cost center and G/L account (the value you are seeing above is placeholder value. I have created the gateway channels (along with RFC) for updating the same.
The process for updating the same through gateway also is known to me as I have seen some test applications (using X-CSRF-Token etc.). I have tested my gateway configuration and RFC also through test data in Postman Rest Client.
The problem I am facing is for reading the value of entered quantity, rate, G/L account, cost center in the line item controller once I presses the ‘Save Data’ button (details will be available in the lineitem view and lineitem controller in the WebContent folder). Along with that I need to read 2 fields – Banfn (PR number) and Bnfpo (PR Lineitem number) (these are needed for sending the data to gateway and updating R3 system) – these are already available in the line-item view model as data is displaying in the lineitem view.
I have to take those 6 values in 6 variables for passing to gateway service.
Can you please tell me how can I do that? It will be of great help to me if you please help me to read those 6 values in line item view controller once 'Save Data' button is pressed. I tried to attach the webcontent folder but could not attach. I am attaching the same document with screen-shots here separately.
It will be of great help if anybody can suggest what can be done to read those in controller. After reading code for sending to Gateway is known to me.