My app has a main form and a datamodule. Secondary forms are rendered into a TWebPanel and editing forms are presented as pop ups. I have
- MainForm: a TWebGrid which lists Companies with a TWebDataSource on the form linked to the Company TXDataWebDataset on the DataModule.
Not sure I fully understand the scope of what you try to do.
Do you open this popup AFTER you insert a new record or is this popup kept open during the insert?
What kind of DB-aware controls are on this popup form? When you put these controls on the main form, are the changes in the dataset always reflected?
I have tried inserting the record
- before creating the form
- in the OnCreate event of the form
- in a method provided in the createnew constructor
It is unclear what is causing this.
If you add a small debugging code in the popup form to loop through the datasource.Dataset, do you see records with proper values when checking these?
Added a button to the popup form and that gives the expected values. The debug code:
The apps not so big at the moment so I could zip it up and send it across if that helps
Any thoughts on this yet? I'm stuck until I sort it.
We could not yet allocate the needed time to create a project ourselves with all these details to try to reproduce this. If we would have received a project with source to reproduce ....
Ok, will send it across later
sorry for teh delay, that's been sent