How to invoke a web lookup control’s popup event in the SalesLogix web client

One of the things that is often asked is how can you call a certain lookup’s “Popup event” from code in the SalesLogix web client.  The SalesLogix web uses JavaScript to launch these lookups.  You can see the invoke code of the JavaScript by putting your cursor over the lookup’s button.  Once you know that syntax you can determine the server side code you would use to invoke the client side code.  The code will typically look like this:

ScriptManager.RegisterClientScriptBlock(this, GetType(), "ShowLookup","$(document).ready(function() { setTimeout(function() { " + AssignTo.ClientID + "_luobj.show() }, 500) })",true);

The important thing here is to change the red part of the code to be the server side control ID of the lookup you wish to pop.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

1 Comment

  1. Thanks a Lot Kris!! That did it.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!