Roc127
03/30/2021, 8:20 AMbattk
03/30/2021, 2:32 PMRoc127
03/30/2021, 2:47 PMchildRecord.setValue({
fieldId: "customfieldid",
value: parseFloat(value).toFixed(4)
});
So I do not use any of the options of setValue.
Server side, UE script.
Basically is a child record that is attached to a parent record.
So for some fields of the child record, we set the option SHOW IN LIST to true, so the user can see those fields when editing the parent (enable child editing is also enabled), but he cannot edit it (Display Type set to DISABLED).
Some logic is applied upon either saving the child or the parent.
On both cases, the field in question is update correctly if SHOW IN LIST is set to false, but is not if SHOW IN LIST is set to true.
So I do believe the code should not be an issue.battk
03/30/2021, 2:53 PMbattk
03/30/2021, 2:54 PMbattk
03/30/2021, 2:55 PMbattk
03/30/2021, 3:13 PMbattk
03/30/2021, 3:14 PMRoc127
03/30/2021, 3:52 PMDisabled - Cannot be edited. You can use this field with custom code calculations, defaulting and sourcing information only. Any field with a display type of disabled that does not have default, sourced or custom code information will not display on forms.
I am actually loading the child record and saving it, so not doing it directly from the parent using the sublist.
Reason for this is that I am executing pretty much the same function if the user triggers the script in the parent record or in the child record.
If is triggered in the child record page, it find out which one is the parent, it loads the parent, load the childs, do the stuff in the childs, save the childs and then change something in the parent, saves the parent.
If is triggered in the parent, load the childs, do the stuff in the childs, save the childs and then change something in the parent, saves the parent.
I have retested again to made sure I miss something before. So, from a child record, I save it, and the field subject to test in the child record gets update as expected (if show in list uncheck).
Then I retested (with show in list check for the field subject to test) and it does not work.Roc127
03/30/2021, 3:53 PMRoc127
03/30/2021, 3:53 PM