Servoy / smartDocumentEditor

0 stars 2 forks source link

Changes not saved on second edit #3

Open og1 opened 2 years ago

og1 commented 2 years ago

Hi,

When I start my application and make changes in the SmartDocument editor they are saved to the database as expected. However, any consecutive changes are not saved. It is an NGClient solution and the DocumentEditor is bound to a field in a PostgreSQL database.

LouisWinter commented 2 years ago

I have the same issue. NGClient with a variable for the dataProvider which is then set to a Progress database CLOB field. When the form is shown, the local variable is set from the database field, when the form is hidden the database field is updated from the variable. The variable is updated the first time the form is shown, then if the form is opened and the doc updated, the variable isn't updated.

RvVeen commented 2 years ago

Hi,

What version of the component are you using?

There are some fixes for this in the latest version. Depending on the Servoy version you can download the plugin in the package manager. Currently it has Servoy Version 2021.12.0 as requirement for the component (mainly for Titanium (NG2) support)

og1 commented 2 years ago

Hi Rene,

I am using NG Client 2021.12.2 with version 1.1.1 of the SmartDoc Editor and version 1.6.1. of the Smart Doc Editor Utils which at this point in time is the latest and greatest of everything. IMPORTANT: the control is on a modal dialog. Perhaps an initialization issue? Interesting to add: if I add a HTML control next to the Editor and bind it to the same dataprovider changes are processed correctly only on the first time of opening the dialog in the Smart Doc Editor and every time in the HTML control.

LouisWinter commented 2 years ago

I am using NG Client as well, 2021.12.1.3723 with Smart Doc Editor 1.1.1. I am currently not using the Utils. The control in my app is also on a modal dialog.

RvVeen commented 2 years ago

Hi,

I was trying to reproduce this in a small sample, but somehow i could not reproduce this. I have create a support ticket to also follow this in or own support system.

https://support.servoy.com/browse/SVYX-426

Please create a small sample with the issue so we can debug it and fix the issue.

LouisWinter commented 2 years ago

EditorTest.zip

mboegem commented 2 years ago

I've seen this is fixed in 2022.9 release of the component. Will that be available for Servoy 2022.3? After all this is the LTS release and although this is a component problem, this also happens in 2022.3 and the component can not be used.