xpages - Trying to call a method from a bean within my custom control -
this code in beforepageloadevent of xpage:
var aurl = estarservice.fetchdoclibrarydocumenturl( sessionscope.get( "propertyno" ), "budget" ); sessionscope.put( "docurl",aurl ); var docunid = estarservice.fetchdoclibrarydocumentunid( sessionscope.get( "propertyno" ), "architectural change form" ); sessionscope.put( "docunid",docunid ); it uses estarservice bean take couple of parameters , fetch document , url can open document . can use if set value of method scope variable , use scope variable in custom contrl contains navigator code.
i prefer call method bean while in custom control rather rely on scope variables when access bean in custom control throws error class not being defined. yet works fine inthe parent xpage. thoughts?
use custom properties computed once $ not #
Comments
Post a Comment