10
Views
4
Comments
Solved
drop down
Question

how can i create screen to show data from entity and this data will change when user change the value in drop down

Rank: #70
Solution

Hi Andrew,


There are several ways to do this, I am going to show you one of them.

You can create a block that receives the value in the dropdown (in my case an eSpace identifier), fetches something from the database based on that value (in my case the eSpace information), and shows it on the screen (and refreshes the query on OnParametersChanged):


Then you have your screen with a query that fetches the possible values for the dropdown (in my case GetEspaces query) and a variable that will be binded to dropdown and will be the input for the webblock (in m case ESpaceId):


This is just an example and you can adapt the strategy to your use case.

See OML in attachment for a working demo for more details.


Hope it helps.


Regards,
João

testDropdown.oml

Rank: #448

Hi Andrew,

Wish you Merry Christmas!

Please see attached OML for demo. 

Kindly let me know, if you need any other help.

Thanks & Regards,

Sachin

MovieDetails.xlsx

Rank: #448

Also, excel file for bootstrap the data for MovieDetails entity.

MovieDetails.xlsx