Skip to Content
author's profile photo Former Member
Former Member

CFL Value

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 12:12 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.