Focal Point
ACCEPT list combo box in MAINTAIN

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5381080271

June 14, 2006, 11:36 PM
John Price
ACCEPT list combo box in MAINTAIN
In a MAINTAIN ComboBox that uses a stack as a source, I can control the item displayed in the ComboBox with stack.FOCINDEX.

How can I accomplish the same thing with a ComboBox that uses an ACCEPT list from the MFD ?


John Price
June 15, 2006, 11:59 AM
Maintain Wizard
Hi John
Try this:
compute Form1.ComboBox1.Acceptitems.Focindex = 3;
Where Form1 is the name of my form and ComboBox1 is the name of my combobox.

If you are going do preset the box before the winform is displayed remember to issue a SHOW_INACTIVE command first:

WINFORM SHOW_INACTIVE FORM1
compute Form1.ComboBox1.Acceptitems.Focindex = 3;
WINFORM SHOW FORM1

I hope this helps.

Mark
June 15, 2006, 06:22 PM
John Price
Thanks Mark - worked perfectly !

BTW: I've searched the online documentation (in WebFOCUS) and found no reference to AcceptItems. I've also looked under FOCINDEX and soe other attempts.

If "Mark" is mark Derwin of IBI - you might want to pass this documentation to Frances Gambino. In any event thank you, I'll be adding it to the Keysheet Addendum immediately.


John Price
June 16, 2006, 11:22 AM
<DocServices>
Hi John,

Thanks for the suggestion! We plan on speaking with the Project Manager about rolling the information into the documentation.

If you have any other suggestions, please send us an e-mail at: books_info@ibi.com.

Regards,
Jenn