CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Navigation dubts

General discussion

by Davide » 10 Jun 2014 17:03

Hello,

I'm starting my first IWCGJQuery Mobile Suite application and I have some dubts about navigation.

Using the following code (from your JQMWizard demo) on my main form :
1) is every new created frame stacked ?
2) I can't use the RelType-jqmrtBack function on the new created frame to go back to MainForm.
Is it available on frame created using the CreateNewFrame ?
How to go back to main form ?
3) In a two frame list view -> detail view "model" after updating the detail I need to refresh the list view.
Is better to avoid working with frame or is there a way to get a reference to the list view frame to call a "refresh" procedure on it ?
4) How to free a created frame ?

Code: Select all
function TMainForm.CreateNewFrame(AFrameClass: TIWCGFrameClass): TFrame;
var
   NewName: string;
   LControl: TIWCGJQMRegion;
begin
   NewName:= CGFindUniqueComponentName(Self, 'Frame');
   FActiveFrame:= AFrameClass.Create(Self);
   ActiveFrame.Name:= NewName;
   ActiveFrame.Parent:= Self;
   ActiveFrame.Align:= alClient;
   ActiveFrame.TabOrder:= 1;

   LControl:= FindIWFrameRegion(ActiveFrame);
   if Assigned(LControl) then
    LControl.AjaxReRender;

   Result:= ActiveFrame;
end;


About a non Ajax application navigation :
1) Is the RelType-jqmrtBack on button available ?
2) Are the forms stacked and continue to exist if I don't free them explicitely ?
Can I assume to navigate like on a desktop application ? (with create and release)

Thank you,
Davide
Davide
 
Posts: 150
Joined: 14 Oct 2013 11:33

by Alexander Bulei » 12 Jun 2014 09:10

Hi Davide,

1) is every new created frame stacked ?


What do you mean?

2) I can't use the RelType-jqmrtBack function on the new created frame to go back to MainForm.
Is it available on frame created using the CreateNewFrame ?
How to go back to main form ?


You can use ChangePageTo method.

3) In a two frame list view -> detail view "model" after updating the detail I need to refresh the list view.
Is better to avoid working with frame or is there a way to get a reference to the list view frame to call a "refresh" procedure on it ?


delphi code
List.AjaxReRender;


4) How to free a created frame ?


Standard procedure.

About a non Ajax application navigation :
1) Is the RelType-jqmrtBack on button available ?


No, works only with ajax navigation.

2) Are the forms stacked and continue to exist if I don't free them explicitely ?
Can I assume to navigate like on a desktop application ? (with create and release)


Yes, you can ;)

Best Regards.
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 Davide » 13 Jun 2014 16:40

Sorry but I have some dubts more...

    Is it possible to specify a transition using ChangePageTo ?
    What is the second parameter of ChangePageTo ?
    After calling ChangePageTo the Active form is released or it continue to exists ?

Using the following code:

Code: Select all
   Frm := TAjaxPageFrame.Create(WebApplication);
   ShowAjaxButton.JQMLinkingOptions.LinkToControl := Frm.IWFrameRegion;
   Frm.IWFrameRegion.TabOrder := 1;


I can navigate from the main frame to a frame (for sample named AjaxFrame) that I create in the OnCreate event.
After press a "jqmrtBack" on the "AjaxFrame" I came back to the main frame.
I think "AjaxFrame" (the second frame) continue to exists but it isn't visible.
What about changing the data displayed by "AjaxFrame" on subsequent calls based on parameters ?
I coudn't use OnCreate cause it still exists after its first creation.
Is there an event like "OnShow" or similar that permit me to do some initialization when I show the AjaxFrame for subsequent call ?

I read about JQuery mobile form management but I don't know how it is implemented by IWCGJQuery Mobile suite.

Thank you,
Davide
Davide
 
Posts: 150
Joined: 14 Oct 2013 11:33

by Alexander Bulei » 30 Jun 2014 16:30

Hi Davide,

Sorry for delay,

Is it possible to specify a transition using ChangePageTo ?


Yes, it is.


What is the second parameter of ChangePageTo ?


Change page options: http://api.jquerymobile.com/1.3/jQuery.mobile.changePage/

After calling ChangePageTo the Active form is released or it continue to exists ?


You should release it by yourself.

Best Regards.
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 General

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.