Skip to main content
1-Visitor
September 19, 2019
Solved

How to disable a dropdown list

  • September 19, 2019
  • 6 replies
  • 2487 views

Hi,

I want to disable drop down list on mashup loaded and when the user clicks a button it must be enabled so that the user can select the data. Is there any way to do this by using a service? And can we call mashup widgets into services or can we invoke mashup widgets from services?

 

Best answer by zyuan1

Have you tried expression widget/function? you can use checkbox Boolean as input, and use if/else condition to send out infotable result to be datasource or blank

6 replies

5-Regular Member
September 19, 2019

2 ways to solve the problem:

1. The Visible is boolean property for the widget, you can use the button to trigger a service, make the widget become visible after first click.

2. Keep the Drop down list in the mashup, bind the service input, but don't trigger the service upon mashup click. Thus when the mashup is opened, list does not have input so it's disabled, after click the button and trigger the service to provide input, List gets enabled.

1-Visitor
September 19, 2019

disable in the sense ....even if the data is given to the list on mashup loaded ,when the user clicks the list it should not display the list.

After clicking the button or checkbox the user should be able to select the list i.e list must be displayed after clicking the button or checkbox but the list must be visible all the time in the mashup.

5-Regular Member
September 19, 2019

Then use the solution 2, bind the data source only to the Button, so when mashup loaded, list is visible but does not have content, and after click the button, it will be selectable.

 

I have tested it, you may give it a try.