This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 23, 2011, 8:42 PM
94 Posts

How can I open a dijit dialog from ssjs?

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 5
I have a control that resembles a form for user input. Many of the fields need to be completed by selecting multiple values from a list. I want to present the list of choices in a dijit dialog window.

My approach is to have one dialog panel with a checkbox group that will present choices based on a sessionscope var. So, I created two buttons to make sure I could get it to work. The first button uses ssjs to set scoped vars with the option values and previously selected values. The second button uses csjs to 'show' the dialog. This works fine. Except, I can't have the user click two buttons to lookup choices. (I tried putting both the csjs and ssjs in the same button, but that didn't work)

How do I get the dijit dialog to show from the one ssjs button? - or, conversely, how can I set the scoped vars from the csjs button?

Please redirect me if there's a better way.
Feb 23, 2011, 9:40 PM
40 Posts
Re: How can I open a dijit dialog from ssjs?
 The ExtLib's Dialog box does not actually render its content until the button is clicked, so you could use that .... if you can't use ext lib, then on the event handler for your in your button that does the refresh and executes SSJS to set the values, use the onComplete function (CSJS) to show the dialog.
Feb 23, 2011, 9:47 PM
94 Posts
Re: How can I open a dijit dialog from ssjs?
I did see something about the onComplete event in another post somewhere, but I couldn't find it anywhere in the button properties.  Where is it?
Feb 23, 2011, 10:53 PM
7 Posts
Re: How can I open a dijit dialog from ssjs?
It's "hidden" in the event handler of a button or other control:
 
1. Open the OUTLINE view and expand the control
2. Select "Event handler" 
3. Click on the PROPERTIES tab - "All properties"
4. Under the events section you'll find "onStart", "onError" and "onComplete" events 
 
In the future you can just copy+paste the code from the source view.
Feb 24, 2011, 6:15 PM
64 Posts
Ah. You were answered here. Ignore my Notes.net posting then! <eom>

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal