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

Filtering chooseFromList of employees by a specific RoleID

Hello,

Does anyone know how to set the choosefromlist's conditions to show only the employees belonging to a specific role (for example -2: Technicians)

Thanks in advance

Blas

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2011 at 01:12 PM

    Hi,

    Try This.....

      Dim ocfl As SAPbouiCOM.ChooseFromList
                Dim oCFL_collection As SAPbouiCOM.ChooseFromListCollection
                Dim ocondition As SAPbouiCOM.Condition
                Dim oconditions As SAPbouiCOM.Conditions
                oCFL_collection = oform.ChooseFromLists
                ocfl = oCFL_collection.Item("CFLName")
                oconditions = ocfl.GetConditions
                ocondition = oconditions.Add
                ocondition.Alias = "Position"
                ocondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                ocondition.CondVal = "Technicians"
                ocfl.SetConditions(oconditions)
    

    Thanks

    Shafi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2011 at 07:17 AM

    hi,

    xml also having that option to filter specific

    <ChooseFromList UniqueID="CFL1" ObjectType="171" MultiSelection="0" IsSystem="0">

    <conditions>

    <condition bracket_open_num="1" bracket_close_num="1" cond_end_val="" cond_value="Technician" operation="1" relationship="0" compare_fields="0" alias="position" compared_field_alias=""/>

    </conditions>

    </ChooseFromList>

    Thanks & regards

    B.lakshmi Narayanan

    Add a comment
    10|10000 characters needed characters exceeded

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.