Forum Discussion
Hello,
Could you share the JavaScript you're using to get the key from your resource file? Additionally, can you confirm that the name of your XML file is ui_resources.xml?
Chris
- Former_Member7 years agoAccelerator III
Hi Chris ,
Thanks for replying.
Name of my XML file is ui_resources.xml.
I also tried copy pasting XML file from PLM/xml folder to my DR/xml folder. But I can't access that XML also.
JavaScript content is some business logic, which unfortunately I can't share here. But there is only one line which deals with accessing data from this file -
var text = aras.getResource("DR","test");
if i try
var text = aras.getResource("PLM","xxxx") - it works. xxxx = some id already present in ui_resources.xml
- Former_Member7 years agoAccelerator III
Hi Chris,
Please let me know if you have any solution for this?
- christopher_gillis7 years agoCommunity Manager
Hello,
I wasn't able to reproduce this issue in a local instance of 11.0 SP15 I have running. I added a folder called DR to my local instance and put a ui_resources.xml file in an /xml/ folder there. After that, I was able to get the resources I had defined by using aras.getResource("DR", "my_resource_key"); .
Could you let me know what version of Aras Innovator you are using? You can check this under Help > About in the main menu of Aras Innovator. Additionally, can you try clearing your browser cache? It's possible an old cache is causing the new file to not be recognized.
Chris