on 06-17-2008 1:07 PM
I had placed a button cfl in user screen. For that the value cant set in the control... but tab cfl is working fine... Here is my source..
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim bonCFLlevents As SAPbouiCOM.ChooseFromListEvent = pStrVal
Dim bonCFLCFList As SAPbouiCOM.ChooseFromList
Dim bonStrUID As String = bonCFLlevents.ChooseFromListUID
bonCFLCFList = gonFrmForm.ChooseFromLists.Item(bonStrUID)
Dim bonDTPrepareBy As SAPbouiCOM.DataTable = bonCFLlevents.SelectedObjects
If Not (bonDTPrepareBy Is Nothing) Then
If bonCFLCFList.UniqueID = "BtnEmpPBy" Or bonCFLCFList.UniqueID = "CFLTabPBy" Then
lonReasonDBDatasource.SetValue("U_R_PrepBy", lonReasonDBDatasource.Offset, bonDTPrepareBy.GetValue(1, 0))
lonReasonDBDatasource.SetValue("U_HidPBy", lonReasonDBDatasource.Offset, bonDTPrepareBy.GetValue(0, 0))
End If
End If
Here is my XML Source
<ChooseFromList UniqueID="BtnEmpPBy" ObjectType="171" MultiSelection="0" IsSystem="0"/>
<ChooseFromList UniqueID="CFLTabPBy" ObjectType="171" MultiSelection="0" IsSystem="0"/>
<item uid="btnPrepBy" type="4" left="245" tab_order="0" width="15" top="152" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute/>
<specific image="CHOOSE_ICON" ChooseFromListUID="BtnEmpPBy"/>
</item>
Wats the problem here.....
Hi Shridhar
I think there are perhaps a problem with your lonReasonDBDatasource.Offset
If you set a value to an edittext try to put "0" order "lonReasonDBDatasource.Offset"
You can try to put a try catch to catch the error if there.
Regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
Sorry i made a mistake.
I'm use too a button with a CFL and i have the same XML code.
Try to force the ChooseFromListUID by code like this.
I have some problem with this with Screen Painter so i write this code :
SAPbouiCOM.Button oButton;
oButton = (SAPbouiCOM.Button)oForm.Items.Item("17").Specific;
oButton.ChooseFromListUID = "CFL_7";
Regards
Michael
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.