KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Sending the Menu Bar from a Non-contextual Home Page
PRODUCT: 4D | VERSION: 6.5 | PLATFORM: Mac & Win
Published On: January 26, 2001
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

With a database set to start in Non-contextual mode, it is possible to switch to Contextual mode and send a translated 4D Menu Bar (perhaps for an administrative interface). Here is an example of the Database Properties for this scenario:



And the HTML home page "index.html", note the 4DMETHOD link which initiates Contextual mode:



The 4D Method GotoMenuBar1 contains the following line of code:

SET HTML ROOT("")

This removes default home page for the current web process and cause 4D to drop through and send menu bar 1 in CONTEXTUAL MODE.



To return to the home page of the site in Non-contextual mode, execute the following line of code in a 4D method:

SEND HTTP REDIRECT("/")

This will force 4D back into Non-contextual mode and send the home page again.