Context Menu [examples]

the Context Menu attribute is:

Map,Notes

and the Context Menu custom delegate is:

page1_section1_field2_contextmenu()

with the following JavaScript code:

////////////////////////////////////////////////////////////////
// Event delegate for 'contextmenu' event
function page1_section1_field2_contextmenu(arg)
{
	if (arg == "Map")
	{
		Lianja.showDialog("Map", "lib:/showdialog_map.rsp?address=\
		        {employees.address}+{employees.city}+{employees.country}", 500, 500, false, false);
	}
	else if (arg == "Notes")
	{
		Lianja.showDialogPanel("Notes", "lib:/showdialogpanel_employee.rsp?employeeid\
		        ={employees.employeeid}", 500);
	}
};

or Lianja/VFP code:

////////////////////////////////////////////////////////////////
// Event delegate for 'contextmenu' event
proc page1_section1_field2_contextmenu(arg)
        Lianja.writeLog("hello")
	do case
	case arg = "Map"
		Lianja.showDialog("Map", "lib:/showdialog_map.rsp?address={employees.address}+;
		{employees.city}+{employees.country}", 500, 500, false, false)
	case arg = "Notes"
		Lianja.showDialogPanel("Notes", "lib:/showdialogpanel_employee.rsp?employeeid=;
		{employees.employeeid}", 500)
	endcase
endproc

https://www.lianja.com/doc/index.php/Help_Attributes


 

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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.