Issue in accessing custom ui_resources.xml

Former Member
Former Member

I am trying to add XML file for Custom Error messages which will be used in JavaScript in my application. Location where I have added ui_resources.xml is - \Aras_Dev14\Innovator\Client\Solutions\DR\xml
However , I am not able to access any value in this XML. If I access XML from any other folder I can do that. So I believe this issue is related to some kind of folder mapping that needs to be done in ARAS.
can you please help me with this?

Parents Reply Children
  • Former Member
    0 Former Member in reply to Christopher Gillis

    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 Member
    0 Former Member in reply to Christopher Gillis

    Hi Chris, 

    Please let me know if you have any solution for this?

  • 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