Jun 23, 2017, 8:12 PM
[CLOSED] getAutoLoad() method and params array missing
We are upgrading from 1.7 to 4.2.1. After changing the AutoLoad property for Loader within a Panel this piece of code stop working.
#{stateSettingsPanel}.getLayout().activeItem.getAutoLoad().params['stid'] = node.attributes.value;
Searched in the change logs and this function is not referenced anywhere.
Intuitively changed this method name for getLoader() as in the line below, however params property seems not to be available now.
#{stateSettingsPanel}.getLayout().activeItem.getLo ader().paramsFn().stid = node.attributes.value;
By getting the JSON returned by paramsFn() we're able to navigate to the desired property and made it work. Is this the correct way to do it now or should params be vailable if done differently?
#{stateSettingsPanel}.getLayout().activeItem.getAutoLoad().params['stid'] = node.attributes.value;
Searched in the change logs and this function is not referenced anywhere.
Intuitively changed this method name for getLoader() as in the line below, however params property seems not to be available now.
#{stateSettingsPanel}.getLayout().activeItem.getLo ader().paramsFn().stid = node.attributes.value;
By getting the JSON returned by paramsFn() we're able to navigate to the desired property and made it work. Is this the correct way to do it now or should params be vailable if done differently?
Last edited by fabricio.murta; Aug 18, 2017 at 10:16 PM.