Lantica Software Support Center
Lantica Software Home Page
Order Sesame Getting Started Support Center Contact Us Company Downloads Q&A ™  
Search

Knowledgebase Home

Programming Events and Combo Boxes

From the Inside Sesame Help Desk

Is there a way I can make my programming run when I select something from a combo box list rather than having to wait until I click out of the combo box into another field. In other words, I want to be able to see the results of my selections as I click on them so I can decide if I've made the right choice. I've programmed something like this in the combo box (called Type) in the on-element-change event:

If Type = "Machine1" Then
{ Hours = "12"; Technician = "Clay"; Schedule = "ASAP"; Priority = 1}
Else 
If Type = "Machine2" Then
{ Hours = "1"; Technician = "Bill"; Schedule = "CALL FOR APPT" ; Priority =2 }
Else
If Type = "Machine3" Then
{ Hours = "TBD"; Technician = "TBD"; Schedule = "As Available" ; Priority = 3}

I'd like to be able to click and see the results so I can change them without leaving the field and coming back.
Jason

You're using the On-Element-Change event which doesn't trigger until you leave the field. So even though you've made a selection and changed what is showing in the combo box, Sesame doesn't recognize it until you move on. You should use the On-Element-Immediate-Change event instead and you'll see the programming fire as you select a drop down entry from the list. When you use this event in a combo box - where you can also type an entry in the box - remember that the program will fire with each keystroke. As long as you take this into account it should give you just what you need.


Properties ID: 000103   Views: 291   Updated: 17 years ago
Filed under:
Programming

Copyright Lantica Software, 2003-2025 All rights reserved