hi All,
Is it possible to write CAF clientside scripting code in a seperate .js file and import in .view files?
Tried getting CAF object from the method CAF.model in a seperate .js file as below and imported this .js file at the bottom of .view file (after loading ‘myComponent’ in .view file) But it is not able to identify component ‘myComponent’ at line 1.
var componentObj = CAF.model ('#{activePageBean.clientIds["myComponent"]}');
componentObj .getValue();
Could you please give inputs on using CAF clientside scripting in .js file?
Kind regards,
Raja sekhar Kintali