The ‘Context menu‘ attribute is a comma-separated list, e.g.


The ‘Context menu’ delegate is called when you select a menu option and the name of the menu option is passed to the delegate.

// Event delegate for 'contextmenu' event
proc page1_contacts_field1_contextmenu(action)

The Context Menu is displayed when you right-click on a field in Edit mode (inline edit or full section or page edit).
The Context Menu is a single level menu, but you can have multiple options.


// Event delegate for 'click' event
proc Customers_section2_click()
        Lianja.get("customers.section2").footermenu = '|&{iif(orders.freight > 100.00, "Reject", "Accept")}'

The & character is used for hot key shortcuts (…highlight=menu), but you can use {} in the menus.

Desktop/Web/Mobile now handle iOS/Android footer menus and section menus now handle iOS style tab buttons too (prefix with # just like footer menus).
See below. This is fully responsive no matter what screen resolution or device it is rendered on.

I have created a menu footer by specifying the “custom menu” attribute in “Footer” section as below
#Prior,Next,Leave Records,Return
This will create 4 command buttons for me
May I know how can I tie actions to each of the footer menu actions?
Custom footer menu delegate in the Advanced section of the Section delegates:

The delegate is simply called with the caption of the menu button so add an arg to your delegate proc and then compare the arg and act accordingly.

Is there a way to add additional actions on the section action toolbar or the page action toolbar for all my pages in my app?
For example, if I want a “Copy” or “Export” actions on top of the default “Add”,”Edit”,”Delete”,”Next”, etc actions
You can use the section menu or the section footer menu to do that.

How is the menues (MNT and MPR) VFP uses?
Use of these is deprecated and discouraged in Lianja as they are specific to VFP and are desktop bound.
Use the section menus or section footers in place of these old FoxPro menus.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.