I have a Data Table connected to a Dynamic Page. On the Data Table Page, I put in selection criteria in code. I deleted from the Data Table Page the DataSet Icon, for it was no longer necessary.
Then I wanted to change the URL of the Dynamic Page (now only holding the ID, nothing else), with a invented prefix.
So the table no longer linked to the dynamic page, for the connection was lost. I could not re-establish the connection between the two anywhere (like in code), so I added the Dataset Icon again to the Table Page, reconnected it to a collection, but then the whole table was populated again with all fields. Deleted the unnecessary ones and on two columns in the table I reconnected the new URL to the Dynamic Page.
Now something strange happens: when I run it in preview mode, all selection criteria in code are not executed. Then I run it again, and suddenly they are executed. What could be the cause? Is it the dataset icon that is still on the table page? Or has it got something to do with dataset.onready that I have to implement (which I did not). Or something else?
Thanks for any help you can provide.