Question
How to use this.set() function to set lookup columns on client side
16:01 Jul 19, 2021
Hi All,
I am unable to update a lookup column by directly setting it to a value as below.
this.set("Gender","EEAC42EE-65B6-DF11-831A-001D60E938C6");
It is working when I used it like below. But, The name will be hardcoded here
this.set("Gender",{value: "EEAC42EE-65B6-DF11-831A-001D60E938C6", displayValue: "Male" );
How can we achieve this dynamically without using ESQ
Like
1 comments
16:52 Jul 19, 2021
Hello,
This is the only way to specify the value for the lookup field and also displayValue is received directly from the related object from which the lookup value is selected. So you won't be able to set the lookup value in the way that differs from the this.set(column, object values).
Best regards,
Oscar
Show all comments