Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
levysanjose

Member
Registered:
Posts: 42
Reply with quote  #1 
Hello all,

Can we execute or open an action using a server side script?

Best regards,
Levy
0
pdkaman

Senior Member
Registered:
Posts: 71
Reply with quote  #2 
I would define an accessible entry point (e.g. a Flag) into the stage.  So that Flag could be parallel to the action or in lieu of that action.  Then you should be able to promote a function that calls the flag from your server side script.

Many ways to skin a cat but this is the first that comes to my mind.
0
levysanjose

Member
Registered:
Posts: 42
Reply with quote  #3 
I cannot use flags since the action needs user intervention. My scenario is that we have two buttons in a form, cmd1 (Server operation) and cmd2 (Client operation), I am trying to call the button_click event of cmd2 from cmd1 if this is possible. I have tried using client side code (Javascript) but the client side script loads first before the server side code. I need to load first the data which is from the server side code before Javascript can handle the data that the server side code retrieved. I am developing an open next function where you can open the folder sequentially via a click of a button. 

0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 

We have used/written client side buttons to do their processing then call a server side button (usually hidden for our purposes, but it doesn't have to be).  I don't believe server side can click a client side button, but others will chime in if it is possible.

0
levysanjose

Member
Registered:
Posts: 42
Reply with quote  #5 
Hello All,

I have found a solution for this. I created a local variable that will act as a "flag" for a javascript function that runs in a 1 second interval. cmd1 will execute and refresh all data from the grid then populates the local variable. cmd1 also runs the javascript code setInterval("RunCode()", 1000). Inside the RunCode() method, it will check the local variable's value. If the local variable's value passes the condition inside the method, it will construct a URL then opens the URL. Thanks for all the input mate. 
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!