Hello, I have a case where i need to disable/hide some actionsColumns based on the status of the data.
I know that you could achieve this in Outsystems table using the current value, but is there a similar way like this in Outsystems Data Grid? Or is there another way of doing this?Best Regards,Felix
If you want to hide only specific cells then you can follow this approach.1.)In the link you can pass the conditional value, if it matches pass the appropriate value or else just pass the empty string.2.) In UI level dont pass the TextFixed value.3.) As per my given condition in step 1 it hides the value of row number 2.Hope this will help you, Let me know if you have more queries.
Hi @Felix Intan Bahagia ,You can achieve this by updating your action where you are serializing your data. you must have some variable for your action column, in that you can pass your condition as per your requirement (e.g, if(Status=IsActive, true, false))After that, you will get your current line data, which you can use for your redirection logic.Hope this helps you.Please let me know if you have more queries.Regards,Anubhav
Hi Anubhav, Thanks for replying.I did have the variable for the status, and by redirection logic, did you mean the logic onclick event? I've actually have added the logic on click, but I'm currently looking for ways to just disable/hide it when the page is loaded, so the action just won't show. Do you have any advice on how to achieve this?Best Regards,Felix
Do you want to hide the full column or just the text (edit, upload)?There could be multiple scenarios:-Scenario 1:- You have a list of data in your data grid and few have the enabled/visible links and few need to hide/disable.Scenario 2:- From the list of data you want to hide/disable the full column.Please provide your scenario.
Hi Anubhav, My case is more into the first scenario there, and following your guide, I've successfully implemented it.Thank you for the help!