Expand my Community achievements bar.

Populating Asset Metadata Dropdown with JSON

Avatar

Level 2

Hi

I was creating an asset metadata dropdown form feild and populating it with options from a JSON file. As long as I pass the path of a JSON file to the dropdown, it is populated fine. But when I try to pass path of a servlet to the JSON path in the form feild, it is no longer being populated.

Capture.PNG

The path of my servlet that I am passing to the form is: http://localhost:4502/bin/shadowing/metadataSchemaDropdown.json

The servlet is returning a valid JSON

Capture2.PNG

3 Replies

Avatar

Level 2

But I wanted to populate the dropdown from a JSON generated from a Servlet, if it is possible.