Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: ButtonCombo: add ChooseFromList for each ValidValue

$
0
0

I've invented woking, but ugly sollution (so common in SAP )

Well,

  1. Add a BottonCombo to a form. Set the desirable Caption.
  2. Create appropriate ChooseFromList for each ValidValue in the ButtonCombo .
  3. Add a hidden button MyButton. You may not bother about its location and size, because it will be always hidden.

Now you need to implement the handler of ButtonCombo.ComboSelectBeforeevent. This handler

  1. Checks which ValidValue has been choosen.
  2. Sets the appropriate MyButton.Item.ChooseFromListUID.
  3. Freezes the form and unhides the button.
  4. Calls the MyButton.Item.Click() method which openes the corresponding ChooseFromList.
  5. Unfreezes the form and sets BubbleEvent to false. The letter step prevents the altering of Caption.

Viewing all articles
Browse latest Browse all 8451

Trending Articles