Hello Community!
I need to set a value in a lookup. I get the value (id) from a sql. But at the moment to do record.set(result.get("id")) nothings is set on the page.
Any ideas?
Like
Hi Federico,
You are welcome to try using SDK model approach like this:
Terrasoft.sdk.Model.setDefaultValuesFunc("MODEL_NAME", function(config) {
var myValue = "MOBILE_NAME";
config.record.set("COLUMN_NAME", myValue);
Ext.callback(config.success, config.scope);
});
Please note that italic is used for your own values.
Also, you can read more about SDK by the link below:
https://academy.creatio.com/documents/technic-sdkmob/7-16/mobile-sdk
Please let us know if this helped. In a case you need any additional information, please provide us with a precise description of your settings.
Regards,
Anastasiia