Search Support
-
Pavan KumarMarch 12, 2020 at 8:48 am #5714
HI Team,
We would like to access the resource bundle(ex:errorMessage texts) in load or inline js in CV so that those texts from bundle can be used in setValid function.
Please let us know how to access.
Thanks in Advance.
SPARK SupportMarch 13, 2020 at 1:33 pm #5715Hi Pavan,
If you are referring to the localization resources built into BPMExt, you should be able to refer to them by bpmext.localization.defaultMessages for instance. Newer versions of BAW make the bpmext reference available to the Inline JS and On Load event. For older versions of BPM, you may need to implicitly load a refernce to BPMExt using the AMD Modules configuration.
If you are referring to a resource bundle as in the Localization Resource option available in Web PD under User Interfaces, we have not found a convenient method to do so at this time. You may wish to submit a Request for Enhancement with IBM:
https://www.ibm.com/support/pages/submit-request-enhancement-rfe
Regards,
Stephen P.
Pavan KumarMarch 15, 2020 at 11:41 pm #5718Thanks Stephen,
I have raised RFE for this.
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=141015
is there any workaround i can use for this ? I have tried storing resource bundle to local object but it does not work. Please let me know the workaround for time being.
Thanks,
Pavan
Pavan KumarMarch 15, 2020 at 11:42 pm #5719I have raised RFE for this.
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=141015
is there any workaround i can use for this ? I have tried assigning resource bundle to local object(tw.local.myResource = tw.resource.myInfo) but it does not work. Please let me know the workaround for time being.
Thanks,
Pavan
SPARK SupportMarch 16, 2020 at 10:13 am #5720Hi Pavan,
The ability to reference local variables (or not be able to) is built into the BAW Coach View framework. I have not found a workaround for this issue. You can take an alternate approach and build your own JavaScript resource. However the list of resources would be contained within the JavaScript file, and not the Localization Resource. I would suggest submitting a ticket with IBM to ask if they have a work around.
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.