Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.80 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is it possible to change the value of a callBackElement from within a handler function?
  2. function findname(e){ // this function is called by a handler triggered by a keypress on  a textBox
  3.   var app = UiApp.getActiveApplication();
  4.   var hiddenD = app.getElementById('hiddenD');
  5.   var str = e.parameter.find ; // find is the textBox's name
  6.   var found = point(str);// point() is a function that returns the rowindex of the found value
  7.   hiddenD.setValue(found);// hiddenD is the hidden widget that I want to 'manipulate'
  8.   nextitem(e);// nextitem is the function that updates the UI and that is normally called by a handler on another button
  9. return app
  10. }
  11.        
  12. searchHandlerFunction(e){
  13. //Your all other sttements
  14. //Assign the new value to hidden parameter
  15. e.parameter.hidden = <your new value>;
  16. DisplayFunction(e);
  17. }