Login / Register  search  syndication

          Jason Buss' Blog

Jason Buss on SalesLogix development & customization, SQL, and more.

Message box dialogs in the SalesLogix web client

In the web client,  there's not an easy way to present the user with a multiple choice dialog.  One quick and dirty way to do this is to create a new form to function as a dialog.

First, I created a basic ticket form.  This will be used in the ticket area, so I created a new form under this entity.  On this, I added a column and a couple of rows.  I dropped a label control on the form and set the Row and Column span properties to 2.  In the remaining areas I dropped a button control on each.  Finally, set the caption properties for the buttons and the label.  You don't have that much control over the placement of the buttons, so to keep them together, I went to the columns property of the form and set the left column to a width of 90% and the right column to a with of 10%

f 

We will need to add our new dialog to the list of available smartparts for the Ticket entity.  In the portal manager, Under Sage SalesLogix and Pages, open the Ticket Detail page.  On the Smartparts tab, add the new dialog and set the Target Workspace property to "Dialog Workspace".

 To launch the form, we simply need to call the DialogWorkspace Javascript API:

ScriptManager.RegisterClientScriptBlock(this.Page, GetType(), "InvokeYesNoQuestion", "DialogWorkspace.show({ id: 'TicketYesNoDialog', width: '400', height: '100', top: '300', left: '300'});", true);

 

There we have it!  

 

Using this method has a couple of downsides:

  • This dialog is very much "single use".  You would have to create a new form for every dialog you would want to launch.
  • When launched from a code snippet, the process doesn't stop when this form is opened.  Any logic stemming from a choice on this dialog must be performed on the form itself.  There is no way to pass the result of what button is selected to the originating script.

Well, there you go.  Not perfect, but a relatively simply method for launching a yes/no dialog in the SalesLogix web client

 

Thanks for reading!  Smile

What's This?
Bookmark and Share

About Jason Buss

   Jason is a senior application developer with Customer FX.


Related Content
   Creating Pretty Prefixes and Suffixes in the SalesLogix web client
In the SalesLogix web client you may run across a reason you need to generate a “Pretty Key”. This is wh
Posted on Mar 17, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
   SalesLogix Web Client- Working with Activities
In this webinar the user will learn to work with Activities from the Activities entity. This feature all
Posted on Mar 16, 2010 by Dale Richter to SalesLogix Training
 
   Adding an assembly reference to code files in the SalesLogix Application Architect
Often when adding custom code to SalesLogix you need to reference Assemblies that are not included by def
Posted on Mar 15, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
   SalesLogix Web Client- Marketing Campaigns Part I [Video]
In this video webinar the Marketing Professional will learn how to create a New Marketing Campaign in Sal
Posted on Mar 15, 2010 by Dale Richter to SalesLogix Training
 
   Launching a report from a button in the SalesLogix web client
Starting in SalesLogix 7.5.1, Sage released an undocumented Reporting enhancement that allowed for intera
Posted on Mar 12, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

 

Twitter Trackbacks for Message box dialogs in the SalesLogix web client - Jason Buss' Blog [customerfx.com] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Message box dialogs in the SalesLogix web client - Jason Buss' Blog         [customerfx.com]        on Topsy.com

January 14, 2010 7:06 PM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2010 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register