How to set condition in CFL which are alredy assign in EditText

Hi
  All
I create a Screen Printer Form where i assign a edit text to ChooseFromList as follow-
1)1st create a CFL using Collection Tab in screen printer and set the Object type=2 and Unique Id=CFL_2
2)Then assign CFL_2 to EditText in Item Tab window.
In that case CFL show All the Business partners. so my question is how i set the Condition in CFL_2 according to CardType.
thanks
Subhas

Hi,
Give a new Unique Id and assign that to edittext
            Dim oCons As SAPbouiCOM.Conditions
            Dim oCon As SAPbouiCOM.Condition
            oCons = New SAPbouiCOM.Conditions
            oCon = oCons.Add()
             oCon.Alias = "U_CLEARED"
       'oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
            oCon.CondVal = val        
            Dim oCFL As SAPbouiCOM.ChooseFromList
            Dim oEdit As SAPbouiCOM.EditText
            Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
            oCFLs = oForm.ChooseFromLists
            oitem = oForm.Items.Item(ItemUID)
            oEdit = oitem.Specific
            Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
            oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
            oCFLCreationParams.MultiSelection = False
            oCFLCreationParams.ObjectType = "AUCTIONS"
            Try
                oCFLCreationParams.UniqueID = "CFL1_ACV" & val
            Catch ex As Exception
            End Try
            Try
                oCFL = oCFLs.Add(oCFLCreationParams)
            Catch ex As Exception
            End Try
            Try
                oCFL.SetConditions(oCons)
            Catch ex As Exception
            End Try
            oEdit.ChooseFromListUID = "CFL1_ACV" & val
            oEdit.ChooseFromListAlias = "Code"

Similar Messages

  • Itunes was reinstalled on my MacAir and in the process my playlists disapeared. How can I sync theses playlists which are still on my Ipod back to the iTunes library? PS: these are not purchased from iTunes, they are my own cd's.Thanks.

    Itunes was reinstalled on my MacAir and in the process my playlists disapeared. How can I sync theses playlists which are still on my Ipod back to the iTunes library? PS: these are not purchased from iTunes, they are my own cd's.Thanks.

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • How to get the  Checked box which are clicked

    for(int k=0;.....
    jsp code
    <input type=checkbox name=checkbox value='<%=k%>' >
    how to get the particular Checkbox which are checked???

    String[] checkedValues = request.getParameterValues("checkbox");You'll get an array filled with the values only for the checked boxes. In other words, if no boxes are checked, checkedValues will be null or checkedValues.length == 0, not sure, going from memory.
    Hope this helps!
    Patrick

  • How can I send scanned files, which are documents changed from doc to PDF, as documents that can be edited if the recipient doesn't have Adobe capabilities?

    How can I send scanned files, which are documents changed from doc to PDF, as documents that can be edited if the recipient doesn't have Adobe capabilities?

    Hi flaviusjack,
    If you still have the .doc files, it might be best to send those to your recipients so they can be edited. Otherwise, you can use ExportPDF to convert the PDF files back to .doc format. But, again, that step would be unnecessary if you have the .doc files.
    Best,
    Sara

  • How to differentiate between 2 exceptions which are same(Ex: IOException)

    how to differentiate between 2 exceptions which are same(Ex: IOException)
    but occurring in 2 different functions(Ex: one in systemSoftwareProvisioning()
    and other one in provision() ). How to differentiate between them and in the
    framework how to catch both of them separately

    also use throwable.printStackTrace() method, this will point the line no. of the java file where the exception occured

  • How to sort on MULTIPLE Keys which are elements of VO's stored in  list

    How to sort on MULTIPLE Keys which are elements of VO's stored in a list.. without disturbing the ordering done by previous sorting...?
    Is there any best soln for the same...
    Thanks..

    How to sort on MULTIPLE Keys which are elements of
    VO's stored in a list.. without disturbing the
    ordering done by previous sorting...?Do you mean you want to do a heirarchical sort? Where the secondary key is only used when the primary keys are equal etc.? That's pretty trivial. If the primary keys are equal, check the secondary key. How do you sort words in alphabetical order? It's the same process.

  • How can I find the profiles which are not in a role

    Hi all,
    how can I find all profiles which are not used in a role. Its important for a security check.

    Hi Stefan,
    you do one thing use the transaction SUIM
    SUIM>>Profile>>By Roles
    give all the role name and execute you will get roles with profiles
    and extract to excel sheet
    to get only profiles
    suim>>profile>>by profile name or text give * and execute
    and extract in excel sheet no compate profile coloumns get the profiles which does not there in any roles
    hope ds helps
    thanks
    kishore

  • How can we find delivery documents which are not goods issued?

    Hi All,
    How can we find delivery documents which are not goods issued?
    Thanks in advance

    hi,
    please check in VL06O.
    there will be plenty of options on the same.
    you are requested togo for push button FOR GOODS ISSUE from there u will go to VL06G only
    your requrient will be satisfied.
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 11, 2010 12:39 PM
    Edited by: balaji timmampalli achari on Nov 11, 2010 12:40 PM

  • HT201272 I am using Apple ipod 2nd gen with IOS 4.2.1 . No i recently updated my IOS and all my apps were deleted. Now when i download IBOOKS it needs IOS 5. How do i get the apps which are copatible with IOS 4.2.1 or IPOS 2nd GEN??

    I am using Apple ipod 2nd gen with IOS 4.2.1 . No i recently updated my IOS and all my apps were deleted. Now when i download IBOOKS it needs IOS 5. How do i get the apps which are copatible with IOS 4.2.1 or IPOS 2nd GEN??

    You should always have your apps on your computer.  If you have failed to keep a copy of the old app versions, then you cannot get them back at all.
    Sorry.
    Many app makers no longer support the old ios and ipod models

  • Getting error message in debug "Page contains page items/buttons which are not assigned to a region!"

    Hi,
    I created a form and when I submit, it goes through but there is no "success" or "failure" message on Apex. I tried debugging it and got this message:
    "Page contains page items/buttons which are not assigned to a region!"
    I looked at the page definition and it seems like everything is assigned to a region. Much appreciate your help.
    Thanks!

    For your message, the relevant branch needs "include process success message" to be checked - and a value in success/failure in your process.
    Check the submitting & landing page for items not in a region. Under the items section there may be items listed separate to those under specific regions.
    It's possible these are related, but not guaranteed.

  • How to set conditions as a query in cfl?

    i have a combo box and a matrix. i have a cfl in the matrix column, once i select the particular value in the combobox the corresponding values must appear in the cfl. how can this be done?

    Hi Metilda,
    You can try this, i'use this code to set conditions in a CFL for item list. I put this code in the et_CHOOSE_FROM_LIST event in beforeaction=True :
                                            SAPbouiCOM.EditText oEdit;
                                            oEdit = (SAPbouiCOM.EditText)oForm.Items.Item("7").Specific;
                                            string typeMag = oEdit.Value.ToString().Trim();
                                            oCons = oCFL.GetConditions();
                                            if (oCons.Count == 0)
                                                if (typeMag.Substring(0, 1) == "C")
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = typeMag;
                                                    oCon.BracketCloseNum = 2;
                                                    oCFL.SetConditions(oCons);
                                                else
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_IS_NULL;
                                                    //oCon.CondVal = null;
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "";
                                                    oCon.BracketCloseNum = 3;
                                                    oCFL.SetConditions(oCons);
                                            else
                                                oCons = null;
                                                oCFL.SetConditions(oCons);
                                                oCons = oCFL.GetConditions();
                                                if (typeMag.Substring(0, 1) == "C")
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = typeMag;
                                                    oCon.BracketCloseNum = 2;
                                                    oCFL.SetConditions(oCons);
                                                else
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_IS_NULL;
                                                    //oCon.CondVal = null;
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "";
                                                    oCon.BracketCloseNum = 3;
                                                    oCFL.SetConditions(oCons);
    It's work fine for me.

  • Setting ToolTips for items which are disabled.

    Folks,
    No offence meant if this is a repeat.
    I have a JPopupMenu with Action as its components.
    1) I have disabled certain menu items to false.
    2) I would like to use a ToolTipText to show a message 'You have no permission'
    when the user hovers over the menu items which are disabled/set to false
    3) I wrote my own ToolTipText,but what is happening is that I am getting the tool tip text
    for all menu items.
    Please can anyone help me in how to get tooltiptext for menu items which are enabled to false?
    Help much appreciated
    // JPopupMenu
    JPopupMenu pm = new JPopupMenu();
    // Add Action
    pm.add(new GraphAction());      
    pm.add(new DescendantsAction());
    pm.add(new DebugAction()).setEnabled(false);
    ToolTipTextForMenuItems.setToolTipForIndividualItem(pm.getComponent()) // Does not display any Tool Tip.
    pm.add(new ResetAction()).setEnabled(false);
    ToolTipTextForMenuItems.setToolTipTextForMenuItem(pm); // Shows ToolTipText for all menu items (disabled and enabled)
    ToolTip Code
    public class ToolTipTextForMenuItems {
    private static final String TOOL_TIP_TEXT = "You have no permission";
         public static void setToolTipTextForMenuItem(JPopupMenu popupMenu){
                 for (int i=0; i<popupMenu.getComponentCount(); i++){
                    Component c = popupMenu.getComponent(i);
                    if (c instanceof JComponent) {
                              ((JComponent)c).setToolTipText(TOOL_TIP_TEXT);
         public static void setToolTipForIndividualItem(Component c){
               if (c instanceof JComponent) {
                         ((JComponent)c).setToolTipText(TOOL_TIP_TEXT);
    }

    Yes,I have looked at the Abstract Action code sent in
    I have not used Action and Abstract Action before,hence if you can/could just
    modify this as per my requirement,then I can enhance on this.
    No offence meant for the above
    Thanks

  • How to set condition for my Choose From List

    hi ..plz check my code...i want to set a condition on my CFL which opens GL Accounts..it has to show only Active Accounts...but when i run the program iam able to see all accounts..what might me the proble..
    my code is as follows
    '''''''''' load form
    private sub loadform()
    '' here iam loading form which is designed in Screen painter where i have a textbox (uid = 19) and CFL_2 as its choosefromlist and object type = 1 alias name = ActCode
    conditionCFL()
    oform.visble = true
    end sub
    '''''''''' end of load form
    '''''''''setting condition
    private sub ConditionCFL()
    Try
                Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                oCFLs = oForm.ChooseFromLists
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                ' Adding 2 CFL, one for the button and one for the edit text.
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "1"
                oCFLCreationParams.UniqueID = "CFL1"
                oCFL = oCFLs.Add(oCFLCreationParams)
                ' Adding Conditions to CFL1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add()
                oCon.Alias = "Postable"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "Y"
                oCFL.SetConditions(oCons)
                oCFLCreationParams.UniqueID = "CFL2"
                oCFL = oCFLs.Add(oCFLCreationParams)
            Catch
                MsgBox(Err.Description)
            End Try
    end sub
    '''''''''end of setting condition
    i have still more code...plz follow the next code which is posted below.....

    continuation from above code...plz foloow complete code
    '''''''''''item event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            Dim EventEnum As SAPbouiCOM.BoEventTypes
            EventEnum = pVal.EventType
            Try
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                        If pVal.BeforeAction = True Then
                          Dim oCFLEvent As SAPbouiCOM.IChooseFromListEvent = DirectCast(pVal, SAPbouiCOM.IChooseFromListEvent)
                            Dim oDataTable As SAPbouiCOM.DataTable = oCFLEvent.SelectedObjects
                            Dim val As String
                            Try
                                If pVal.ItemUID = "19" Then
                                   Me.oDBDataSource.SetValue("U_BalenceSheet_Acct", 0, oCFLEvent.SelectedObjects.GetValue(0, 0))
                                End If
                             Catch ex As Exception
                                MsgBox(ex.ToString)
                            End Try
                        End If
                        Exit Select
                End Select
                           Catch ex As Exception
                                MsgBox(ex.ToString)
                            End Try
    end sub
    ''''''''''end of item event
    Edited by: Shenaz Sultana on Nov 13, 2009 2:18 PM

  • How to access the e-mails which are stored in different folders via Mac

    Hi guys, I am new to Mac. My problem is about the setting of Mac Mail.
    There are 8 folders with my hotmail account in order to automatically sort e-mail into folders. I only can get the e-mails of inbox folder via Mac Mail software. I am wondering how to access the other e-mails which are stored in other folders.
    Thanks a lot!

    I don't think that things have changed going from 10.5 Mail to 10.6 Mail in this regard (I need to log on to my laptop more often). So, assuming that my premise is correct, in the left hand column of the mail window, underneath your inbox, drafts, sent, trash, and junk mailboxes, there should be the descriptive name of your mail account, written in gray capital letters, with a gray triangle to the left of that name. If the gray triangle is pointing to the right, click on it so that it points downward. That will expand the account view of mailboxes on the server. You should be able to see all of the other folders.

  • Set Conditions to CFL in Copy From

    I didn't find any ways to set conditions on this CFL, that shows when f.i. in AR Invoices deliveries is chosen as basedocument. What i found are only modifications to the BP CFL in Marketing Documents. That's not what i need. I simply need hints or code provided for my solution. Thanks in advance.

    I found the correct ItemUID via a MsgBox showing it when the event is cought.
    I can set the conditions without problems. The problem now is that setting the condition has no effect on the CFL i want to filter.
    Here is my code:
    If pVal.FormTypeEx = 133 Then
                oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST And pVal.BeforeAction = True Then
                    If pVal.ItemUID = "35" Then
                        BubbleEvent = False
                        Try
                            Dim oCons As SAPbouiCOM.Conditions
                            Dim oCFL As SAPbouiCOM.ChooseFromList
                            Dim oCon As SAPbouiCOM.Condition
                            oCFL = oOrderForm.ChooseFromLists.Item("15")
                            oCons = oCFL.GetConditions
                            If 0 = oCons.Count Then
                                oCon = oCons.Add()
                                oCon.Alias = "U_WP_STAT"
                                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                                oCon.CondVal = "J"
                                oCFL.SetConditions(oCons)
                            End If
                            BubbleEvent = True
                        Catch ex As Exception
                            SBO_Application.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                        End Try
                    End If
                End If
            End If

Maybe you are looking for

  • Problem occuring while uploading the template therough BAPI

    Hi, I'm uploading inspection plans template through BAPI. While uploading its giving a error message like invalid file type. I'm using Excel sheet. I tried through Text format also. Same error message i'm getting. Can anybody help me. Regards, Narend

  • Cannot bring up saved page, complete or HTML only, if disconnected from internet: "Server not found"

    I right clicked, chose "Save Page As...", chose both HTML Only and Complete on 2 different tries. When I tried to bring the page back up when disconnected from the internet network, I receive the "Server Not Found" error page. I shouldn't have to be

  • Back button on IE 11 does not load the dropdown selections from previous form

    We have a site in clasic ASP. There is a search criteria form with a few drop downs and a few radio buttons. While working in IE 11, When this form filled and submitted, the results show up. When the back button is hit, the previous form loads but th

  • Problem in Acrobat Professional 7.0.9

    Hello all; Kindly; my adobe acrobate professional 7.0.9 not compatable with Arabic Language, when I try to write in Arabic I see strange characters, knowing that I select Arabic font like Arial Arabic. please help me....

  • Exe. file in every where..

    boys iam facing a new proplem i had never see or hear about befor. i have an imac G5 with osx 10.4.7 , every thing was very fine until 2day ,and suddenly in each folder existing in the machine there is an exe. file inside it with the same name of thi