Hi Team,
How to open a popup whenever user clicking on data grid web cell.
I have used a Grid Column Link. But unable to fulfil my requirement as I am not getting how to open modal/popup. Because Transition have only 3 options
Suggest something else or may let me know how to use this Grid Column Link
Thanks,
Hello,
You can create a boolean variable, use a link to open an action, add an if widget inside of that, and then check to see if the boolean variable's value is false or not. If so, use the assign widget and set the value to true.
"Add that local variable to popup "
Hi @Nihhhil ,
Thanks for the answer.
But I need to use in grid web. When user will click on cell then popup will be opened.
Your suggestions will be appreciated.
Thanks
Hi Sourav,
Create the link in the data grid and link it to the logic above. You can set the onclick of the cell to execute the action.
Above stated logic can be improved by the way since you technically only need 1 assign to change the boolean value that determines if the popup is visible. Simply do: IsShowPop = not IsShowPopup
Hi @Max de Groot
Thanks for the suggestion buddy.
This requirement is for TWA not for RWA. Any other suggestions do let me know.
In that case I would insert a container into the cell and make it 100% height and width, remove the padding and margins from the cell itself and set them to the container instead. That way the cell will look the exact same as in regular table but you can now set an onclick destination to the container.
Hello Sourav,
I agree with Max, you need to enclose expression in container and remove all padding from cell and apply it to the container. Then set the OnClick action for the container.
I have added the demo OML for better understanding
@Sourav Sandhu ,
everybody is assuming you are just talking about onclick on a regular input or table widget. You did mention grid web, but you can make that much clearer by choosing that as the forge component of your question.
the answer probably lays in the sample app, take a look at the DataGridWebExample.ExtendedFeatures.GridColumnButton in combination with OutsystemsDataGridWebSample.SamplesFlow.SampleButtonColumn
you could have something else than a button, but this is the mechanism to use: make a function to generate the html you want, and then have a GridColumnAdvanced invoking that function in the Content property.
Dorine
Hi @Dorine Boudry
I am having same requirement but I am unable to understand the logic of adding a popup with some column can you share some demo if possible.
It would be a great help.
@Tanisha Mahendru ,
did you look at using grid column advanced ? what part of it are you stuck ? I suggest you share an oml with what you have so far.
Hello @Sourav Sandhu To Create Pop Up in Traditional Web Application please follow following instructions.
1. You can use MODAL in Web Blocks.
For that Follow Below Steps :
Regards
Sanjay Bankar
Hey,
1. Drag Events\EventTrigger on web block where you have grid columns
2. If you want to launch Modal/Popup on expenses(column name) , pass that jsonfield and EventId will be Entities.Event.SingleSelection
3. Inside OnNotify action you can toggle the Modal by using togglemodal (OutsystemsUIWeb\Modal\ToggleModal)server action . This will launch modal or close Modal if already opened(vice versa).
4. Result- whenever you click on any cell of column expenses , the modal will open.
5. If you want to access cell values in Modal please follow below link,(and go to single selction section)
https://santosh-chanveer.outsystemscloud.com/OutSystemsDataGridWebSample/Events.aspx?(Not.Licensed.For.Production)=