CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

ADD New TAB

by eric.garcia » 04 Mar 2015 02:20

Hello,


I am trying to create a small project based on the Big demo V3 , but instead to load the frame once in the same TAB, I want to create a TAB and then load the frame inside. to sum up , add as many tab that I have Frame. In fact :
- I Create a new Tab ( AddNewTab ) and a region inside (TIWCGJQRegion.Create ).
- I create a new Frame (once )
- I Active the tab
and so on for all the frame.
(see code below).

My problem is that sometime I lost all the TAB , or some components inside the frame are disabled and dosen't reply to jax events.
I Think it is linked to the different ajax commands such as , CGCallBackEnableAjaxResponse , RenderRegionAsync, CGIsCallBackProcessing, WebApplication.CallBackProcessing etc...
I don't know really how to use them.
For information I am beginner with CGdevtools and Intraweb Ajax.
If you have some piece of code or documentation it would be nice

Thanks for your help

eric


FFrameComp:= FrameClass.Create(Self);
FrameComp.Name:= 'FRAME' + item.UniqueName;
FrameComp.Parent:= TIWCGJQRegion(usersession.regionlist.Objects[usersession.regionlist.indexof(Tab.Name)]);
FrameComp.Align:= alClient;
FrameComp.ProcessCommand(0,AParams); // no Idea what is the use ???
if WebApplication.CallBackProcessing then // no Idea what is the use ???
begin
CGCallBackEnableAjaxResponse; // no Idea what is the use ???
RenderRegionAsync(TIWCGJQRegion(tab.FindComponent('REG' + item.UniqueName)),rramLazyLoadMethod,True); // no Idea what is the use ???
end ;

CGJQTabs.ActiveTab:=tab;
eric.garcia
 
Posts: 35
Joined: 21 Oct 2013 13:17

Return to JQTabs

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.