cancel
Showing results for 
Search instead for 
Did you mean: 

Pass data from TableSelect Dialog to Simple Form SAP UI5

meenakshi_raina
Advisor
Advisor
0 Kudos

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 -

meenakshi_raina
Advisor
Advisor
0 Kudos

Can anyone please give some hint on how to solve this issue.

maheshpalavalli
Active Contributor
0 Kudos

Hi Meenakshi,

What issue are you getting?

BR,

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor
0 Kudos
meenakshi_raina
Advisor
Advisor
0 Kudos

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.

maheshpalavalli
Active Contributor
0 Kudos

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

meenakshi_raina
Advisor
Advisor
0 Kudos

Thanks for the reference. I used the below code and it is working for me now -

Answers (2)

Answers (2)

0 Kudos

Hello Meenakshi,

I am also facing the same issue by using the Table select Dialog Control, Please help to resolve the issue.

Regards:

Rajesh

Abdul_Waheed
Contributor
0 Kudos

try with sap.ui.getCore().byId