Jump to content

If Iphone use Layout, if ipad use else desktop


 Share

This topic is 2809 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have one desktop application that does more than I want to show or allow on iphone or ipad process used remotely.

 

I tried Get (application)    but when logging in using my iphone... shows still desktop layouts.

 

I want to start the app the same.. but go in a different direction than the desktop, or the Ipad... do specfic and less.. that that works

 

I understand I can set a different layout templates to use for these devices... for some reason I haven't found the answer

,, need more info

 

thkx Rod

 

 

Link to comment
Share on other sites

Hey

Ya, good question. Get(application) is right but is typically wrapped in pattern count

Case(

Patterncount(get(application);"iPad") for iPad detection; go to layout ... ;

Patterncount(get(application);"go") for iPhone detection; go to layout ... ;

Go to desktop layout

)

The starter solutions all use this multi layout format if you want to see a working example

Link to comment
Share on other sites

I tried get (device)   must be a FM 13...   tried FM12 i am still on for now

Link to comment
Share on other sites

Yes, Get(Device) originated in FM Pro 13.
 
I think your going to want to set your File Options to run a script OnFIrstWindowOpen that includes some conditional steps:
 
If [PatternCount( Get(ApplicationVersion); "Go_iPad")]
   Go to Layout [iPad layout]
else if [PatternCount (Get(ApplicationVersion); "Go")]
   Go to Layout [iPhone layout]
else
   Go to Layout [Desktop layout]
end if
 
...or something similar.
  • Like 2
Link to comment
Share on other sites

thanks Nuos and Mathew I am using FM12 still!
             ( can't move to 13 until i can figure another problem with screens between the versions)

 

 

 

I have tried the get Pattern Case..  method

When I log via iphone.. don't have a ipad yet,

using FM Go..  my screen still uses the desktop layout?

 

FM adv on my desktop,  logging on using FM GO on my iphone

 

thanks for the looks :)

Link to comment
Share on other sites

Maybe a dumb question, but have you designed a completely new layout for the iPhone? This is in response to your first post. Creating a new blank layout with a phone template and copying the desktop layout objects into it will not create a different layout.

Link to comment
Share on other sites

This topic is 2809 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.