-
1. Re: Drop Down List with a JSON object binding
Magus069 Mar 6, 2014 12:15 PM (in response to mlstechwriter71)//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();
-
2. Re: Drop Down List with a JSON object binding
mlstechwriter71 Mar 6, 2014 12:25 PM (in response to Magus069)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.


