[Data Grid Sample Reactive] Setting up default view in datagrid reactive
Forge component by Bruno Martinho
Application Type
Reactive

Hi 

i am using the Datagrid reactive component in out application.

we are saving the grid view states.

is there any way to set up the default view or reset to original view .
i am using "Get/SetViewLayout". But is there any method to set defaultViewLayout.
Thanks
Srinivas Nalamati

GM Srinivas N ,

I am not able to find like set default view in the component. But you can do one more thing.

but I worked to get this one.

https://amitj.outsystemscloud.com/DataGridSampleReactive/SaveGridView?_ts=637661749325847027


plz check the attached oml.




 


Hi Amit,

i am not able to see the oml file here.

Thanks

Sorry, I was unable to upload it.

You can follow the steps.

1.  on page render you have to call a method with javascript with a timeout.

Java script code 

setTimeout(function(){

 $actions.SaveDefualtView()

}, 2000);

2. on that Savedefultview action, save the current view in the local parameter.

3. Now on load default button action, assign the local variable to set view action


Hi Amit,

Thanks for your reply.

i will follow these steps and let you know.

Thanks


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.