call client method from sevrer

オフライン
How can i call client method from server?    
Parents
  • As soon as I type something in the forum, I normally have an idea for solution 1 hour later... My usecase can be solved by an extra Method in the Action On Complete field. I added this code and was able to improve the "refresh" behaviour:
    var inn = this.getInnovator();
    var parentItm = this.getType();
    var parentID = this.getID(); 
    
    // Get the config_id
    var item = inn.newItem(parentItm, "get");
    item.setID(parentID);
    item.setAttribute("select","config_id");
    item = item.apply();
    var configID = item.getProperty("config_id");
     
    // get the most recent part with config_id
    var currentItm = inn.newItem(parentItm, "get");
    currentItm.setProperty("config_id", configID);
    currentItm.setProperty("is_current", "1");
    currentItm = currentItm.apply();
    
    // show new item in frame of previous item
    aras.uiReShowItem(parentID,currentItm.getID(),'view','tab view');
Reply
  • As soon as I type something in the forum, I normally have an idea for solution 1 hour later... My usecase can be solved by an extra Method in the Action On Complete field. I added this code and was able to improve the "refresh" behaviour:
    var inn = this.getInnovator();
    var parentItm = this.getType();
    var parentID = this.getID(); 
    
    // Get the config_id
    var item = inn.newItem(parentItm, "get");
    item.setID(parentID);
    item.setAttribute("select","config_id");
    item = item.apply();
    var configID = item.getProperty("config_id");
     
    // get the most recent part with config_id
    var currentItm = inn.newItem(parentItm, "get");
    currentItm.setProperty("config_id", configID);
    currentItm.setProperty("is_current", "1");
    currentItm = currentItm.apply();
    
    // show new item in frame of previous item
    aras.uiReShowItem(parentID,currentItm.getID(),'view','tab view');
Children
No Data