Skip to main content

Initializing dialog with edit properties

Consider a situation where you made an error on a table and you don't want to drill all the way down into the details view to be able to edit your information.

Image

If you need to edit your table row information on a dialogue, we need to initialize that dialogue with the following row information. We can do that by navigating to the specific form;

Image

From there, click on the dataTable Component and then the Configure Columns button under properties

Image

Once, there add a new Column and move it to the top of the list

Image

Then, configure it by first setting the Type to Action and removing the column caption

Image

Click the Select Icon button to add an Icon. On the Icon search screen, search Edit and use the EditOutlined icon.

Image

Next add an Action Configuration of Show Dialog, a Title of Edit Payment, the Modal form will be the membership payment we created earlier and the Submit Http Verb will be PUT

Image

Next, under the Additional Properties section, click the Click to Add Items button

Image

Then, add a new KeyValue pair of id and {{selectedRow.id}}

Image

Finally, toggle the Handle Success property to true and set its Action Name to Form: Refresh

Image

Then save the configuration and your form.

Now we can edit our payment Amount or Date

Image