This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Read Local JSON File in UIX?

There is a JSON file within the UIX folder, the JSON file content needs to be read and parsed.

Parsing JSON is what we got answer from a forum question. But not sure about how to read the JSON file content placed in the UIX folder.

Tried many JS approaches to read file content, but shows undefined error.

Parents
  • I would personally not include the JSON file in the UIX application, but instead load it from the server.  This gives you maximum compatibility.

  • In our case, we want to get different commandName from a JSON file based on input passed while calling extension method. But the problem is - we get the commandName from extension method after creating custom command. So it get's the commandName defined in UIX not from VAF Extension method. That's why tried to read JSON from UIX.

    But as you suggest to do from vault application, how to call the extension method so that I get the intended commandName before creating custom command with the name?

Reply
  • In our case, we want to get different commandName from a JSON file based on input passed while calling extension method. But the problem is - we get the commandName from extension method after creating custom command. So it get's the commandName defined in UIX not from VAF Extension method. That's why tried to read JSON from UIX.

    But as you suggest to do from vault application, how to call the extension method so that I get the intended commandName before creating custom command with the name?

Children