Hi, I've been attempting to create a module with just a modal for our application and am looking for alternative solutions. The only stopgap solution I've found seems to be broken now.
Expected behavior: Table has an action column with an 'Edit' button. When user clicks the action button for a row, it opens the modal with an edit form pre-filled out with the row's data. The modal should only open when a user clicks edit button.
Issues: The modal opens on page load with no data loaded (unexpected). It opens the modal when an edit action button is clicked but the modal is blank. Most js scripts I'd expect to work for updating module input values don't work.
Modal module is set up per the post linked above. I've set the module input as a variable named variable1 with an initial value of an empty string. This matches the initial value of the module ** and shouldn't be triggering the dumby query in the module that runs automatically when input changes and opens the modal. Edit action button on table1 runs the script varible1.setValue(table1.currentRow.row_id)
. This correctly sets the value of variable1 and the modal opens. However the module's input1 value doesn't change and the modal is blank. I'e also tried modalModule1.input1.setValue(table1.currentRow.row_id)
and that doesn't even open the modal. At this point I'm not sure exactly what is broken since I wouldn't expect the modal to even open if input isn't being passed.