Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I want to validate the button when I select the multi-selected dropdown values, the button should be enabled, and vice versa.
Solved! Go to Solution.
You can create a service to validate multiple selected rows and based on that you can enable and disable the button
Create service with infotable input
var result = true;
// selectedValue : InfoTable Input
// If Infotable contains multiple rows
if(selectedValue && selectedValue.length > 1)
{
// enable button
result = false;
}
Mashup Binding should look like this :
Mashup will look like this :
When multiple value selected button will enable
/VR
You can create a service to validate multiple selected rows and based on that you can enable and disable the button
Create service with infotable input
var result = true;
// selectedValue : InfoTable Input
// If Infotable contains multiple rows
if(selectedValue && selectedValue.length > 1)
{
// enable button
result = false;
}
Mashup Binding should look like this :
Mashup will look like this :
When multiple value selected button will enable
/VR
Instead of the extra service https://github.com/doubleSlashde/InfotableInspectorWidgetTWX could be used to get Selected-RowCount in Frontend and evaluate button "disabled"-state via expression. But needs the extra extension - depending on how often it is needed the extension may be useful.