Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Async Render


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Oct 21, 2014 2:12 AM Last Post By: Simoun Kolal
Daniel Fields

Posts: 622
Registered: 11/29/04
Async Render  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2014 3:30 PM
How do you force a IWForm or IWRegion to render in an async event?
I have a case were I cannot use CGDev, but I need my page to reflect changes made in an async event.
Tim Roberts

Posts: 15
Registered: 2/15/12
Re: Async Render  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2014 6:43 PM   in response to: Daniel Fields in response to: Daniel Fields
Alberto Pilat helped me with this a while ago.

Put an invisible button on the form called btnRefresh. Then add this code to your async event handler:

WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('SubmitClick("btnRefresh", "", true);');


Daniel Fields wrote:
How do you force a IWForm or IWRegion to render in an async event?
I have a case were I cannot use CGDev, but I need my page to reflect changes made in an async event.

Edited by: Tim Roberts on Oct 21, 2014 2:45 PM
Simoun Kolal

Posts: 6
Registered: 6/18/14
Re: Async Render  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 21, 2014 2:12 AM   in response to: Daniel Fields in response to: Daniel Fields
Daniel Fields wrote:
How do you force a IWForm or IWRegion to render in an async event?
I have a case were I cannot use CGDev, but I need my page to reflect changes made in an async event.

you can also use:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('location.reload();');


it is work for me
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02