Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

How to execute Custom Command only once when multiple records are selected?

$
0
0
Hi,

I am working on a Session Extension. I made a Custom Form Command that will open up a customized session upon executing the command. However, the system will do this for every record selected at that moment, which is where I would like to change.

I tried by putting the condition to check if the number.of.marks is 1 then execute it so that it will do only when 1 record is selected. The point is I need to put a message in else statement stating that the user selects more than 1 record when the situation happen.

The problem comes now in the else statement because it will pop out multiple messages according to the number of selected records.

Is there any workaround for this?

I just want it to work on 1 record only and display message when no record or more than 1 records are selected.

Code:

if number.of.marks = 1 then
 . . .
 { Execute something once }
 . . .
else
  message("Select 1 record only.")  | <--- Problem here when multiple records are selected
endif


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>