Hi All,
we have a requirement to enable or show the command for multiple selected records, but it should be disabled for single record selection.
As far as I know there is no way to disable (hide) the button unless you multi select. Whether the button is available or not depends on the action mode and its “enabled” condition. The base conditions allow it for single records (SingleRecord), or multi records (SelectedRecords), but there is no mode to enforce “MultiRecordsOnly” or anyhthing similar
If the command mode is set to SelectedRecords and the action is of type bulkexecute however, If you have access to studio developper, you can overtake/override the plsql svc method that the action call to add a preliminary check to verify the number of entries in the selection, and error out if it finds less than 2 entries in the selection. It won’t “hide” the button but it’ll error out if you’ve only selected one, with the error message of your choice (e.g. “This action is only possible when 2 or more records are selected”).
Thanks
Note that it’s also possibble to use the mode “ SelectedGroupedRecords” which I believe possibly forces the command to only activate for multi row selection, but still, that requires access to Studio Developer to do :)
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.