Purchase Requisition approval:Making field editable and send data to SAP backend
I am newbie to UI5 and badly stuck at this issue. I have to make custom field ‘Quantity’ editable to change quantity. I have extended S3 view.xml and S3 controller.js with following code snippet
In S3 view.xml(Extended)
My component.js is as below
I have tried many things but my controller.js is only not triggering. Could anyone please help me out here for correct approach and solution?
Requirement is to change Quantity field before approving Purchase requisition which should change total PR price as well.
- Define Quantity as input field and write logic to send new quantity value from FIORI to extended Odata Service(have extended it for new field)
- In BADI implementation write logic to fill standard quantity field with new value so that in workflow it will calculate price by considering new quantity
I am completely stuck at pushing data to Odata service. For which I am writing code in controller with reference to new input field. But unfortunately my controller.js is only not triggering for any statement. Tried writing simple alert statement as well in app possible predefine methods for ex. onInit() but it did not trigger.
Help would be appreciated.