CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Multipage mobile application

General discussion

by Omega8 » 08 Apr 2016 13:39

I saw in the demos in order to spawn to a new page you Create the Mobile page in a OnVClick then
call the page's show method. To get back you simply call Free method in that pages back button.

WHat is the alternative to keep everything asynchronous

Do you have an empty multi page mobile application template that I can build on?

Thanks

Can
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Omega8 » 08 Apr 2016 14:46

OK I have
type
TIWPage2 = class(TIWCGJQMAjaxPageFrame)

myPage:=TIWPage2.Create(WebApplication,Self);

myPage.Show;
Can't get the AjaxFrame to show. What is missing?
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Omega8 » 10 Apr 2016 23:15

How can a have one Ajax page close and another one open?

myAjaxPage1.Show; // to show the Ajax Mobile Page
-.-.-.-.-.-.-.-.-.-.-.--.-.- // various code
myPage1 ? // to close the Ajax Mobile Page

before I can call myPage2.Show


Thanks.

Where can I get proper documentation about such things.
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Alexander Bulei » 11 Apr 2016 14:05

Hi,

Please check the attached demo.

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

by Omega8 » 11 Apr 2016 16:35

For the next person who reads this article, just in case the demo file is deleted, here is a summary:

procedure TIWSomeForm.SomeVClick(Sender: TObject; AParams: TStringList);
begin
if Assigned(FAjaxPage) then
FAjaxPage.Free;

FAjaxPage:= TIWCGJQMAjaxPageFrame.Create(Self, Self);
FAjaxPage.Name:= CGFindUniqueComponentName(Self, 'AJAXPAGE');
FAjaxPage.IWFrameRegion.AjaxReRender(True,False);
ChangePageTo(FAjaxPage);
end;

The above procedure creates the AjaxPage. To get back set FAjaxPage.IWCGJQMHeader.LeftButton.JQMLinkingOptions.RelType:=jqmrtBack;
and FAjaxPage.IWCGJQMHeader.LeftButton.Enable:=TRUE;

Thanks you
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.