FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Apr 4, 2017, 4:26 PM
94 Posts

The solution is to use serverside javascript not client side

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 9.0.1
  • Role: Administrator,Developer
  • Tags:
  • Replies: 2

var val = getComponent("combobox1").getValue();

var tview = database.getView("(searchView)")

var vdoc = tview.getDocumentByKey(val,true);

if(vdoc!=null){

    getComponent("field1").setValue(vdoc.getItemValueString("TargetField"));

    //set the in memory doc field, too

    document1.replaceItemValue("field1",vdoc.getItemValueString("TargetField"))

}

 

Be sure to perform a partial update either the field itself or the panel containing it.


FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.