I'm currently working on a project with a quite compex DataType. So far, all went fine, creating and using the DataEditor for my custom DataType, saving the edited values as XML into the node's content but since there a bunch of fields that need to be grouped I want to use a modal window.
I moved the fields from the DataEditor to a DataEditorDialog.aspx page and I managed to open the page in a modal window using ClientTools.Scripts.OpenModalWindow.
But now the big question is how to communicate the edited values back from the DataEditorDialog to the DataEditor in the Content pane (obviously, the DataType is registered and defined in the DocumentType)?
Opening a DataType/DataEditor in a modal window
I'm currently working on a project with a quite compex DataType. So far, all went fine, creating and using the DataEditor for my custom DataType, saving the edited values as XML into the node's content but since there a bunch of fields that need to be grouped I want to use a modal window.
I moved the fields from the DataEditor to a DataEditorDialog.aspx page and I managed to open the page in a modal window using ClientTools.Scripts.OpenModalWindow.
But now the big question is how to communicate the edited values back from the DataEditorDialog to the DataEditor in the Content pane (obviously, the DataType is registered and defined in the DocumentType)?
Uhhh... anyone?
is working on a reply...