I suspect I already know the answer to this, but here goes anyway...
Has anyone successfully created a Drop Down List with a JSON object binding?
If so, I'm looking for documentation / help / anything at all on how to do this.
I am not an IT programmer - but I have access to some.
Any information I gather will be passed on to them, so hopefully they will not shake their fists at me for even suggesting it.
And at this point I don't even know if it is possible, or if anyone has successfully done it.
Thanks in advance for any help you can give,
-Michelle
Solved! Go to Solution.
Views
Replies
Total Likes
//Create your JSON Object
form1.Main.#variables[0].JSN - (JavaScript, client)
//Create your table to hold your bindings
//"msg"; "name"; "age"; is the name of the properties
var tabJSON= {"binding": [
{"msg": "Private message", "name": "Jacob", "age": "25"},
{"msg": "Private message", "name": "Jaco", "age": "31"},
{"msg": "Private message", "name": "Jericho", "age": "47"}
]
};
//Function to get the values in the table
function getB(){
for (var i = 0 ; i < tabJSON.binding.length; i++){
Main.DropDownList1.addItem(tabJSON.binding[i].name);
}
}
//Initialize event of the dropdownlist, or any other event call the get value method
form1.Main.DropDownList1::initialize - (JavaScript, client)
JSN.getB();
//Create your JSON Object
form1.Main.#variables[0].JSN - (JavaScript, client)
//Create your table to hold your bindings
//"msg"; "name"; "age"; is the name of the properties
var tabJSON= {"binding": [
{"msg": "Private message", "name": "Jacob", "age": "25"},
{"msg": "Private message", "name": "Jaco", "age": "31"},
{"msg": "Private message", "name": "Jericho", "age": "47"}
]
};
//Function to get the values in the table
function getB(){
for (var i = 0 ; i < tabJSON.binding.length; i++){
Main.DropDownList1.addItem(tabJSON.binding[i].name);
}
}
//Initialize event of the dropdownlist, or any other event call the get value method
form1.Main.DropDownList1::initialize - (JavaScript, client)
JSN.getB();
Thank you!
I will not pretend I understood a word of that - but I hope that it will make sense to IT.
Anyone else have suggestions?
I want to make sure that my wonderful IT folks know I did try and do research for them before even suggesting this.
Views
Replies
Total Likes
Views
Likes
Replies