Abaksoft Posted November 24, 2017 Share Posted November 24, 2017 Hello friends, Here is an easy sample for switching between Desktop and mobile version. Best regards. NB : Replace Const MyIP = 192.168.1.3 by yours (on MainModule) Hybrid2.zip 3 1 Quote Link to comment Share on other sites More sharing options...
molla2005b Posted November 25, 2017 Share Posted November 25, 2017 thanks Abaksoft Quote Link to comment Share on other sites More sharing options...
M.Ammar Posted September 10, 2019 Share Posted September 10, 2019 On 11/24/2017 at 11:41 PM, Abaksoft said: Hello friends, Here is an easy sample for switching between Desktop and mobile version. Best regards. NB : Replace Const MyIP = 192.168.1.3 by yours (on MainModule) Hybrid2.zip Hi This is really helpful , I wanted to thank you was looking for this Regards Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted September 12, 2019 Author Share Posted September 12, 2019 Hello Ammar, Thx, you are welcome Cheers Mohammed Quote Link to comment Share on other sites More sharing options...
M.Ammar Posted September 20, 2019 Share Posted September 20, 2019 On 9/12/2019 at 1:19 PM, Abaksoft said: Hello Ammar, Thx, you are welcome Cheers Mohammed Hi Abaksoft I wanted to add that this was working perfectly in application running as single exe, but when added to production server with hyper-server running as dll and application as exe it works after random (1 to 4) tyres, I am not sure but I think this is related to the fact that more than one copy of the application is running and when user reload the application he may be redirected to another Object or (session) which has [SoAutoPlatformSwitch] still enabled so it goes back to mobile version. going back from desktop to mobile working perfect do you have any ideas for this issue? best regards Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted September 21, 2019 Author Share Posted September 21, 2019 Mmm... Will try Ammar and come back soon. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted September 23, 2019 Author Share Posted September 23, 2019 Yes, same problem in hyperServer / as Service. If i launch from a mobile and click on Desktop button, this reload mobile version. After 4 attempts, it comes to Desktop !!! investigations... Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted October 1, 2019 Author Share Posted October 1, 2019 Thinking this feature is useful, Support Ticket creaded today FSD-1650. Wating for our Magician Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 10, 2020 Share Posted February 10, 2020 On 11/25/2017 at 4:41 AM, Abaksoft said: Hello friends, Here is an easy sample for switching between Desktop and mobile version. Best regards. NB : Replace Const MyIP = 192.168.1.3 by yours (on MainModule) Hybrid2.zip What is your destination? what is the role? Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 10, 2020 Author Share Posted February 10, 2020 2 hours ago, 55143681 said: What is your destination? what is the role? Hello, Do you mean : Why switching between mobile and desktop version ? Answer : somtimes you have not the full options of an application, on mobile. Many web site have this button on the botom. Regards. Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 10, 2020 Share Posted February 10, 2020 50 minutes ago, Abaksoft said: Hello, Do you mean : Why switching between mobile and desktop version ? Answer : somtimes you have not the full options of an application, on mobile. Many web site have this button on the botom. Regards. I see , you mean that I open my project with my phone in mobile mode, if I want to see more ,I can swith to desktop mode with my phone, Is that right? Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 10, 2020 Author Share Posted February 10, 2020 Yes Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 11, 2020 Share Posted February 11, 2020 17 hours ago, Abaksoft said: Yes Then your desktop functions are a,b,c,d,e,f, But your mobile functions are only a,b, do not have c,d,e,f. In another word,your project has a grid, your desktop version have five fields, but your mobile version have only 3 fields. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 11, 2020 Author Share Posted February 11, 2020 2 hours ago, 55143681 said: Then your desktop functions are a,b,c,d,e,f, But your mobile functions are only a,b, do not have c,d,e,f. In another word,your project has a grid, your desktop version have five fields, but your mobile version have only 3 fields. Yes, this is a good example. Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 11, 2020 Share Posted February 11, 2020 1 hour ago, Abaksoft said: Yes, this is a good example. If I want to have this type project, which type project I should create? A desktop project or a mobile project? Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 11, 2020 Author Share Posted February 11, 2020 6 hours ago, 55143681 said: If I want to have this type project, which type project I should create? A desktop project or a mobile project? OK, You can see the Demo Project : C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Touch\Hybrid - To run the application as Desktop (on your PC) : http://localhost:8077 - To run the application as Mobile (on your PC) : http://localhost:8077/m But the application will automatically detect the target on a client side browser without do anything (as we have on ServerModule > Options [ soAutoPlatformSwitch ]. To Create Such Project : 1. Creat a New Project as usually you do 2. Add to the Project a Mobile Login and a Mobile Application MainForm, and a Mobile Application Form That's all For this you have to get the Professional Unigui Complete Edition. Regards. Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 12, 2020 Share Posted February 12, 2020 11 hours ago, Abaksoft said: OK, You can see the Demo Project : C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Touch\Hybrid - To run the application as Desktop (on your PC) : http://localhost:8077 - To run the application as Mobile (on your PC) : http://localhost:8077/m But the application will automatically detect the target on a client side browser without do anything (as we have on ServerModule > Options [ soAutoPlatformSwitch ]. To Create Such Project : 1. Creat a New Project as usually you do 2. Add to the Project a Mobile Login and a Mobile Application MainForm, and a Mobile Application Form That's all For this you have to get the Professional Unigui Complete Edition. Regards. I see,you are the best man for your detail answer. Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 14, 2020 Share Posted February 14, 2020 On 2/12/2020 at 9:42 AM, 55143681 said: I see,you are the best man for your detail answer. I think maybe there are some errors , The switch button in the loginForm should send a parameter forced=false,which means you need login The switch button in the MainForm should send a parameter forced=true,which means you have logined. Is that right? Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 14, 2020 Share Posted February 14, 2020 1 minute ago, 55143681 said: I think maybe there are some errors , The switch button in the loginForm should send a parameter forced=false,which means you need login The switch button in the MainForm should send a parameter forced=true,which means you have logined. Is that right? And If you use this method to switch between MainForm and MainmForm, then If anyone know the parameter ,your system will be dangerous, bad men can use the parameter to login in your system without user and password. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 15, 2020 Author Share Posted February 15, 2020 On 2/14/2020 at 1:11 PM, 55143681 said: bad men can use the parameter to login in your system without user and password. Yes, you are right. That was a simple example : how to swtich between Desktop and Mobile version. Here is in attachment an update sample, where you can use more security acces to the new session (Hashing your parameter). Regards Hybrid3.0.zip Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 20, 2020 Share Posted February 20, 2020 On 2/15/2020 at 9:11 PM, Abaksoft said: Yes, you are right. That was a simple example : how to swtich between Desktop and Mobile version. Here is in attachment an update sample, where you can use more security acces to the new session (Hashing your parameter). Regards Hybrid3.0.zip Thanks a lot ,i will try it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.