Hi Team,
I am using Outsystems DataGrid component and used 2 Dropdown columns in my application screen. On basis of fruid column mentioned in parent binding id, Cause dropdown populates which has 5 values { "", "A", "B", "C","D" } and we have another column reason which populates depends on Cause dropdown values like if A is selected we have 3 values for reason for A for ex
Cause A -> Reason {"A1", "A2", "A3"}
as per our requirement we want to do autosave if we change anything in any of dropdown which can be achieved using saveall client action,
so in both dropdown "oncellvaluechange" method, we called Save all on click..
but when we change the dropdown , the SaveallOn Click is called thrice and creating multiple records where as it should only have one call.. can you help with what this OncellValueChange does?
Its basically when we change cause -> it calls first, but as per parent binding , on cause change the dropdown values for reason is refreshed and i guess it triggers another saveall call, third one i am not sure called from where..
Can you help what can be done here?
Hello @Aditya Chinchole
Could you please provide a sample oml so that we can take a look at the code specifically on that "Save OnClick" and tell us the OS Data Grid version you're using?
Cheers,GM
Hi Gonçalo Martins,
I am trying to replicate the same scenario in a sample application. When it's done I will share. Till then I can tell you that the Outsystems data Grid version which we are using is 2.7.0.
And SaveALlOnCLick action does this. 2nd Screenshot is attached.