Use break or exit in UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 01:16 AM
If the else block is executed, the function publishitem() will not run. Can this be achieved ?
PFA snapshot as I am not able to copy paste the code.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 02:49 AM
Hi Amit,
I can suggest a simplified structure..
So basically you have declare a global variable flg=''; and use it as a flag
in the client part set the flag to true in your if block. i.e flg= 'true';
Now, in the server part you just need to check with the logic:
if( flg== 'true ){
publishItems();
}
and so on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 03:03 AM
Hi Sharique,
I have tried this already, didn't worked.
Regards,
Amit