on 03-07-2019 10:17 AM
Hi,
I need some help in passing data from 'table select dialog' to a 'simple form'. I have performed the following steps -
1. I have created a simple form as below-
2. When I click on Project Number input , a table select dialog pops up with some values.
3. If the user clicks on "OK" button, the value of the selected row should pass back to the simple form.
My code snippets -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
Thanks for your reply. I took some reference from that link. I am getting an error while setting value in the form field -
Uncaught TypeError: Cannot read property 'setValue' of undefined.
I am trying to set value as below -
I am not sure how to access and set value in 'form field' in this scenario.
Hi Meenakshi Raina,
You need to check why the "this.getView().byId("EID") is not returning the control instance.
Ideally this.getView().byId("EID") should return you the Input control instance assuming that "EID" is id of the input control. (which i don't see in your form, the input control where you are binding "EID" don't have an ID.
BR,
Mahesh
Hello Meenakshi,
I am also facing the same issue by using the Table select Dialog Control, Please help to resolve the issue.
Regards:
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try with sap.ui.getCore().byId
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.