cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UDO Forms act as button combo same like SAP 10 for (Add & New , Add & View , Add & Close) ?

0 Likes
251

Here is my code

XML

<item top="651" left="9" width="90" height="21" AffectsFormMode="1" description="" disp_desc="1" enabled="1" from_pane="0" to_pane="0" linkto="" right_just="0" type="129" visible="1" uid="1" IsAutoGenerated="0">

<specific caption="Add">

</specific>

</item>

Code Behind :

SAPbouiCOM.ButtonCombo btnadd = (SAPbouiCOM.ButtonCombo)Root.Instance.frmQC.Items.Item("1").Specific;

int intCount = btnadd.ValidValues.Count;

if (intCount > 0)

{

while (intCount > 0)

{

btnadd.ValidValues.Remove(intCount - 1, SAPbouiCOM.BoSearchKey.psk_Index);

intCount = intCount - 1;

}

}

btnadd.ValidValues.Add("3", "Add & New");

btnadd.ValidValues.Add("5", "Add & View");

btnadd.ValidValues.Add("7", "Add & Close");

btnadd.Select("3", BoSearchKey.psk_ByValue);

btnadd.ExpandType = BoExpandType.et_DescriptionOnly;

After Clicking Add& New Button Combo, UDO form is not getting added.

Thanks.

Accepted Solutions (0)

Answers (0)