cancel
Showing results for 
Search instead for 
Did you mean: 

CFL Value

Former Member
0 Kudos

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.....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Whenever TAB is pressed breakpoint comes in....... But for button there is no response...

Former Member
0 Kudos

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

Answers (0)