Page 1 of 1

ComboBox Actions

Posted: Fri Aug 24, 2012 5:47 am
by M45HY
Hi guys,

I'm a new developer when it comes to Jade. I've recently started to use Jade at my new workplace and I've come across a problem (which some of you may consider as being a simple and basic problem). I've created a web form that has a combo box containing a maximum of 6 dates. When a new/different date is selected, I want an action to take place where records that are related to that date are pulled from the database and shown to the user. I've done some of the coding for loading and saving the data but I just need help in setting off that action when the date is changed. On a combo box, there are methods, such as 'click', 'change' etc. and I have tried using them but I'm afraid that I may be doing something wrong as no action/method is triggered. Can anyone help?

Cheers.
Omash

Re: ComboBox Actions

Posted: Fri Aug 24, 2012 8:37 am
by murray
To enable those events in a Jade Web application you need to select them in the Application definition.
  • Browse -> Applications
  • select the application and choose "Change" from the context menu (Application -> Change)
  • Select the "Web Options" tab
  • Click the "Web Events" button
  • Select the events that you want enabled
For further details, see the Jade manual "WebApps.pdf" - the above details are in chapter 1.