How to set Default Value to the data shape field through pragmatically?
I like to set default value for the boolean data shape field.
can anybody explain how to do this?
Regards
Sugumar R
I like to set default value for the boolean data shape field.
can anybody explain how to do this?
Regards
Sugumar R
Hi,
You can use aspects parameter similar to below to achieve your requirement
var params = { infoTableName: undefined /* STRING */};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].CreateInfoTable(params);
//Add a new field to the InfoTable:
result.AddField({name: "ColNameOne", baseType: "BOOLEAN", aspects : {defaultValue:1}});
result.AddField({name: "ColNameTwo", baseType: "INTEGER", aspects : {defaultValue:10}});
result.AddField({name: "ColNameThree", baseType: "STRING", aspects : {defaultValue:"test"}});
result.AddRow({});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.