How import option list in json format

Hi

I'm create a scrolling menu in form, and i want to link the menu items to json source. How to do it ? I've try some format with my json source but none of them work : i'm using URL source for service.

Or idealy i want to use another application under volt as i do it previoulsy with domino notes.

Thank in advance for help

Michel

PS.

For the json file I have try some like

{
"menuitem": "21700 AGENCOURT"
}

or table... like

{
"menuitem": ["21700 AGENCOURT"]
}

and no one is working

There are a few options:

1. Pull list data from domino database

if you have your list data in a Domino App you can now pull it directly into your app using the Select From Domino Database feature:

2. Pull list data from another Volt app

Create a new app, add 2 fields, one for saved value and one for display value. Save and deploy the app. Then click on View Data and import your list from excel (or if you already have an Excel file with the list data you can create an app from excel.

Then in the main app you can call a service to load the list options into the list item. Check out this page -> https://hclleapwiki.atlassian.net/wiki/spaces/HL/pages/622679/How+to+Populate+List+Options

3. Pull list data from a webservice

4. Hard-code list data.

Thank You very much.

In your page in HCL wiki I found the solution for my form : Javascript on onItemChange :

var opt = "";

page.F_DropDown3.setValue(opt);
page.F_DropDown3.setOptions(opt);

if(BOA.getValue() === ‘1’) {
opt = new Array({title:‘a’,value:‘a’}, {title:‘b’,value:‘b’}, {title:‘c’,value:‘c’});
} else if(BOA.getValue() === ‘2’) {
opt = new Array({title:‘d’,value:‘d’}, {title:‘e’,value:‘e’});
} else if(BOA.getValue() === ‘3’) {
opt = new Array({title:‘f’,value:‘f’});
}

page.F_DropDown3.setOptions(opt);