CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

ADD New TAB on RUNTIME: MIX with sessions

by eric.garcia » 26 Feb 2015 17:32

Hi,

I am using the component TIWCGJQTab , and I am trying to create a New Tab dynamically depending of a menu options.
For each menu option , I want to create a New Tab , and then linked this TAB to a Frame. The Frame is created Once and then I can Jump from Tab to Tab without re loaded the frame.

On the first time , I only created new TABs dynamiccaly , as the code below:

When I open a 1st session ( in Chrome or Fiferfox), and play with the Menu item, I see my tabs created dynamically , 1, 2, 3.
Now If I open a new session (Click again on the Intraweb Application and then create a new TAB in Firefox or Chrome), and
now I can restart from scratch adding my new tabs , I can see 1,2,3.
But If I come back to the First session in Chrome, and add again, I don't see the 4th tab, but the 7th Tab.
seems that the system mix the component TIWCGJQTab between the sessions.
Please let me know if a restriction, or maybe my code is not correct.
For information:
My Servercontrol is set up asd:
Cominitialization --> ciMultiThreaded or Cnormal
doctype --> <!doctype html>

eric g

var
t:TIWCGJQTab;
begin
t:=IWCGJQTabs1.AddNewTab();
t.caption:='tab n:' + inttostr(i);
inc(i);
IWCGJQTabs1.AjaxReRender(True,False);
IWCGJQTabs1.ActiveTab:=t;
IWCGJQTabs1.Show;
eric.garcia
 
Posts: 35
Joined: 21 Oct 2013 13:17

by Alexander Bulei » 26 Feb 2015 17:46

Hi Eric,

Please check the attached video.

Works as expected here.

P.S: Our ServerController.AllowMultipleSessionsPerUser = True

Best Regards.
You do not have the required permissions to view the files attached to this post.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQTabs

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.