Jump to content


Photo

Url params bug mobile


  • Please log in to reply
10 replies to this topic

#1 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:03 PM

'm having trouble in the application when running mobile. In the onhow of the mobile main form I am checking the parameters that should be passed by the webbrowser, however they are always zeroed. This does not occur when the operation is not mobile.
That is, if I remove the unmmain of the project, the parameters arrive normally, but if add to unmmain does not arrive parameters.

 
Something we should enable or disable?
Is it not possible to pass parameters to mobile application?
 
send webbrowser
 
 
(ok) functional
 
1) MainForm 

procedure TMainForm.UniFormShow(Sender: TObject);
var i:integer;
begin
     if UniApplication.Parameters.Count > 0 then
     begin
          for I := 0 to UniApplication.Parameters.Count-1 do
          begin
               UniMemo1.Lines.Add(UniApplication.Parameters.Names[i]);
          end;
     end;
end;
 
(no) functional

2) procedure TMainmForm.UnimFormShow(Sender: TObject);

var i:integer;
begin
     if UniApplication.Parameters.Count > 0 then
     begin
          for I := 0 to UniApplication.Parameters.Count-1 do
          begin
               UniMemo1.Lines.Add(UniApplication.Parameters.Names[i]);
          end;
     end;
 
end;

Attached Files


  • 0

#2 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:07 PM

If MainmForm is removed so that it does not exist in the project, the parameters normally arrive in the MainForm.


  • 0

#3 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 30 January 2018 - 04:12 PM

Hi,

 

Part of the project on UniGUI works fine, Desktop and mobile


  • 0

#4 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:19 PM

Hi,

 

Part of the project on UniGUI works fine, Desktop and mobile

I did not understand.

  • 0

#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 30 January 2018 - 04:21 PM

How do you pass Url parameters to the mobile app?


  • 0

#6 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:22 PM

http://address:8077/?operacao=webbrowser_forcavenda&nome=vendaexterna&porta=8080&impressora=bluetooth


  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 30 January 2018 - 04:25 PM

This is for a desktop app


  • 0

#8 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:27 PM

This is for a desktop app

How should it be passed to mobile, for example?
I'm calling the unigui application from within a webbrowser on fmx

  • 0

#9 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 30 January 2018 - 04:38 PM

URL Parametres for mobile applications should be something like this:

http://localhost:8077/m/?button=BB&edit=AA

  • 0

#10 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:40 PM

 

URL Parametres for mobile applications should be something like this:

http://localhost:8077/m/?button=BB&edit=AA

http://localhost:807...tton=BB&edit=AA

Ahh yes, I was taking into account that the framework mapped whether or not it was running on mobile, so I was not specifying the / m switch


  • 0

#11 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 30 January 2018 - 04:44 PM

Please close the topic


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users