How to load and update parameters

Hello,
I am sending you help on how to work with Parameters.

For loading the parameter we use the method: getParameters()

if(doo.model.ver == -1) { 

   const cin = await doo.table.getParameter('myCompany','IN'); 

doo.model.<[My company (myCompany)]>.setValue(cin); 

}

For updating or any others function you can use the same methods that are used for the classic table. If you are wondering how to get the necessary id for these methods, you have two options: using console.log or JS.




An example for JS update method:

let id = doo.model.id;      
let fields = {  
 phone: '+420704428306' 
}; 
await doo.table.updateFields('My company',id,fields); 

Thank you for reading! :slight_smile:

With kind regards,
Soňa

1 Like