disabled_rosalie

Navigation

Discussion created by disabled_rosalie on Nov 22, 2014
Latest reply on Nov 23, 2014 by disabled_rosalie

Hello everyone,

 

Its me Rosalie, need some guidance from Pro's I have a navigation script below which Im using in my file for main navigation for desktop, now Im planning to use this in filemaker webdirect, Iphone & Ipad which I have a different layouts for each of them.

 

How can I Include the following scripts so that it will automatically go to their respective layouts when Im using Desktop, iPad, iPhone or Webdirect

 

Main Navigation Script

 

If [Module=[“Home”]

Go to Layout [“Dashboard” (Dashboard)]

Else If [$Module = “Materials”]

Perform Script [Authenticate Privilege]

If [Get (ScriptResult)]

Go to Layout [“Product Details” (Products)]

Else

Show Custom Dialog [“Sorry”, you do not have the privileges to product information.”]

End If

Else If [$Module = “Lab Hours”]

Perform Script [Authenticate Privilege]

If [Get (ScriptResult)]

Go to Layout [“Lab Hours” (Time)]

Else

Show Custom Dialog [“Sorry”, you do not have the privileges to time information.”]

End If

 

Else If [$Module = “Invoices”]

Perform Script [Authenticate Privilege]

If [Get (ScriptResult)]

Go to Layout [“Invoices Details” (Products)]

Else

Show Custom Dialog [“Sorry”, you do not have the privileges to Invoices information.”]

End If

Else If [$module =”Settings”]

Go to Layout [“Settings” (Dashboard)]

Else If [$module = “User”

Perform Script [Authenticate Privilege]

If [Get (ScriptResult)]

Go To Layout [“User” (Users)]

Install Menu Set [“User”]

Perform Find [Restore]

End If

Else

Show Custom Dialog [“Sorry”, you do not have the privileges to user information.”]

End If

Else If [$module = “Quit”

Perform Script [“Log Out”]

 

Sample of what I want to Include if Im on the Home Module

 

If[$$PLATFORM = "Tablet"]

Go to Layout ["Company Dashboard |iPad" (Dashboard)]

Else If [$$PLATFORM = "Web"]

Go to Layout ["Dashboard|Web (Dashboard)]

Else If $$PLATFORM = "Desktop"]

Go to Layout [Dashboard"(Dashboard)

End If

 

I tried to change the Go to Layout ("Dashboard" Dashboard) into perform script but its not working in webdirect.

 

Any help is very much appreciated.

 

Thank you so much.

 

Rosalie

Outcomes