Prepopulate a grid with data via Javascript
Confluence User - 03 Apr, 2018
Hi!
I have a gridForm its Id is : 'liste_coordonnes', with 3 columns : 'numero_borne', 'x', 'y'.
I want to fill it with Data via Javascript like that :
-----------------------------------------------------
//Getting the grid
var mygrid = FormUtil.getField("liste_coordonnees");
//Construct the JSON object that correspond to the item row's form
var mydata = {"numero_borne":"1", "x":"Medical", "y":"Mediacal2"};
//Calling the formGrid add methd
mygrid(mydata);
---------------------------------
but it doesn't work, any help please
forms;userviews