SDK LrDialogs.presentModalDialog with table: how to add a new row
I managed to display a table with rows and column using the LrDialogs.presentModalDialog.
All the values from the orginal table I converted to a flat property table.
propertyTable = LrBinding.makePropertyTable(context)
Before adding the new row I display the table. This works fine
Ofcourse variable "c" contains all groups, rows and columns.
dialogValue = LrDialogs.presentModalDialog(
{
title = "My table",
contents = c,
}
Having my original table and a flattened projection of it as property table, below the table rows I added a button.
The button calls a function which performs the steps below:
- Adding a row to my original table
- Updating the property table with these new values
- Added a row to the contents in variable "c"
- After these steps I tried to stop and show the dialog again, however that doesn't work.
LrDialogs.stopModalWithResult(dialogValue)
dialogValue = LrDialogs.presentModalDialog(
{
title = LOC "$$$/LightroomStatistics/Dialogs/Translations=Translations",
contents = c,
}
)
Question
How can I redraw / redisplay the modal form.
