Hi everyone,
I’m currently trying to set up a Data Grid where clicking on a specific column (called "Notes" – an action column) opens a popup window. This popup should display a text area for notes related to the clicked row. However, I'm already struggling to get the popup to open. Here's what I’ve tried:
Additionally:
I've added a sample oml in the attachments. I’d appreciate any tips or guidance you might have. Thanks a lot in advance! 😊
Best regards
Hi,
As Max mentioned, the first issue is that no default value is set, so the link can’t be accessed. My approach is to use JavaScript in the grid’s OnInitialize event to check if the value is empty and replace it with a fixed text like “Notes.” This runs both when the grid initializes and when a new row is added.
The second issue is the missing connection between the clicked row and the selected data. Right now, clicking the link only gives you the JSON for that row. You need to deserialize it, store it in a local variable, and then open the popup with that variable.
In the popup, there wasn’t any input field, so I added one and bound it to the local variable. For the save logic, I created a wrapper around the update action and passed the local variable through it.
As always, works like a charme! Thank you!
Hi TS hope you're well, i just had a look at your OML and managed to get it working...
I found the same issue as you where it wasnt working. I manually forced text into the Notes attribute of your Data table, so it would appear in the DataGrid on screen. It looks like datagrid makes the text have a link, and this is where the ActionColumnClickEvent is triggered.
If i was you, when clicking Add Row add some dummy text here, so it'll appear in the box, or enclose this column item in a link where you can add your logic which should trigger when clicking the column without data.
Hope this helps.
Max