Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > System Tables View modes: 
User avatar
Member
Member
m.vandenberk-2binteractive - 7/20/2010 8:12:32 AM
   
System Tables
Hello,

I have created an alternative form from my system tables.
It has a edit state and a view state, that i animate with toggle.
Once I am in the edit state, and I save the form, it's reload the page but the view state contains the old data.

When I recall the page, contains the form the new data.

Can someone help me?
What i want, is when i save the form, my viewstate contains the new data.

Sincerely,
Bas van den Eijnden

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/2/2010 2:01:33 AM
   
RE:System Tables
Hi,

The problem is in the page life cycle, where the page already has loaded the content and then you press the OK button to save it, but this is only saved in the edit view, since this is the next step in the life cycle. The preview is loaded before this in cycle, so therefore there are old data. I hope it makes sense.

The easiest solution to this is after you save the data, after the OK click, you need to perform URL redirection on the page on it self - it is kind of refresh, so the new values will be loaded in the preview of the form.

Best regards,
Ivana Tomanickova