Modify a form property on runtime

Hi,

Can anybody tell how we can modify a form property on runtime?

I’m playing around with the function “application.createNewFormInstance”. Now I have a situation in which it would be very helpful if I could modify the form property “useSeparateFoundset”. On the design form I would like to have the property “unflaged” and on the new instance I would like to flag this property. Is this possible?

Thanks!

Hi Hans-Peter,

I don’t know if this has changed in 3.5 but Servoy always gave you a seperate foundset when you set it with an Array/Dataset or SQL.
Only when you did a controller.loadAllRecords() then the foundset would be linked again.
So if you just set the foundset and you should have a seperate foundset for your window instance.

Hope this helps.

Hi Robert,

Sorry for the late response. Your tip works great in 3.5.3! Sometimes I forget the Servoy basics :oops: .