Dear experts
I'm using a 'copy' Planning Function in combination with the 'select row' functionality in an integrated planning web template. Users should be able to select one or several rows and overwrite the forecast with calculated forecast figures by hitting a button. Example:
Customer x / product y calculated forecast for January 2016: 100
Customer x / product y current forecast for January 2016: 150
Result after hitting the button:
Customer x / product y current forecast for January 2016: 100
So far, this is working perfectly by using the selection binding / web item selection functionality. The problem is, however, that ALL data will be overwritten if no row is selected. To prevent that from happening I created a script and added a pop-up menu where you have to hit the ok button in order to proceed. Unfortunately, it is not checking if a row has been selected.
My question is:
How can I add a check to the script item that works the following way:
a) If one or several rows are selected proceed without pop-up menu
b) If no row is selected do nothing or show a pop-up menu that tells you to select a row
If possible, I'd rather go with the already implemented solution if there is a way to perform a check.
Thank you in advance,
Christian