Good day I have resolved this issue and thought that I would share the resolution with everyone as this is a big problem when trying to link multiple Fields together in ICN.
Issue: Two Fields that are related yet not connected in ICN. When Field 1 is a Select to get data from a datasource. Field 2 is a Lookup having the where clause is a Value from Field 1. The issue is when you select from Field 1 and click on the href from Field 2 and select from the popup list and then select from Field 1 again choosing a different value nothing happens to Field 2.
Solution: When a change happens to Field 1, Field 2 must clear out to provide a visual representation to the user that something must be done with Field 2.
Steps
- Edit the Datacap ICN Panel in an Editor
- Locate the Property Widget for the field that you want to clear out add to the property an id='XXX' and a name name='XXX'
- Now on Field 1 you need to add an onChange event listener ass this code to your Field 1 Property Widget
data-dojo-props=\"onChange:function(val){console.log('Type Changed to:', val);var sub = dijit.byId('XXX');if(sub){console.log(sub.editorWidget.textbox);sub.editorWidget.textbox.value='';}else{console.log('Could Not Find Widget');}}
In ICN this will get fired every time a slection change is made.
Thanks
Troy
------------------------------
Troy DesBarres
------------------------------