herculanojs Posted January 30, 2018 Share Posted January 30, 2018 '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 url: exemple 192.168.15.6:8077/?operacao=webbrowser_forcavenda&nome=vendaexterna&porta=8080&impressora=bluetooth (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); 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); end; end; end; unigui webbrowser.rar Link to comment Share on other sites More sharing options...
herculanojs Posted January 30, 2018 Author Share Posted January 30, 2018 If MainmForm is removed so that it does not exist in the project, the parameters normally arrive in the MainForm. Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2018 Share Posted January 30, 2018 Hi, Part of the project on UniGUI works fine, Desktop and mobile Link to comment Share on other sites More sharing options...
herculanojs Posted January 30, 2018 Author Share Posted January 30, 2018 Hi, Part of the project on UniGUI works fine, Desktop and mobile I did not understand. Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2018 Share Posted January 30, 2018 How do you pass Url parameters to the mobile app? Link to comment Share on other sites More sharing options...
herculanojs Posted January 30, 2018 Author Share Posted January 30, 2018 http://address:8077/?operacao=webbrowser_forcavenda&nome=vendaexterna&porta=8080&impressora=bluetooth Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2018 Share Posted January 30, 2018 This is for a desktop app Link to comment Share on other sites More sharing options...
herculanojs Posted January 30, 2018 Author Share Posted January 30, 2018 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2018 Share Posted January 30, 2018 URL Parametres for mobile applications should be something like this: http://localhost:8077/m/?button=BB&edit=AA Link to comment Share on other sites More sharing options...
herculanojs Posted January 30, 2018 Author Share Posted January 30, 2018 URL Parametres for mobile applications should be something like this: http://localhost:8077/m/?button=BB&edit=AA http://localhost:8077/m/?button=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 Link to comment Share on other sites More sharing options...
herculanojs Posted January 30, 2018 Author Share Posted January 30, 2018 Please close the topic Link to comment Share on other sites More sharing options...
Recommended Posts