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

CFL Multiple Selection Option SAP B1 SDK

Hi All,

How to implement CFL Multiple Selection Option via SAP B1 SDK for User Form? Please share Code

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 21, 2016 at 08:40 AM

    Hi,

    Check this from SDK Help Center:

    C:\Program Files (x86)\SAP\SAP Business One SDK\Samples\COM UI\CSharp\17.ChooseFromList

    SAPbouiCOM.ChooseFromListCollection oCFLs = null;

    SAPbouiCOM.Conditions oCons = null;

    SAPbouiCOM.Condition oCon = null;

    oCFLs = oForm.ChooseFromLists;

    SAPbouiCOM.ChooseFromList oCFL = null;

    SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;

    oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );

    // Adding 2 CFL, one for the button and one for the edit text.

    oCFLCreationParams.MultiSelection = true;

    oCFLCreationParams.ObjectType = "2";

    oCFLCreationParams.UniqueID = "CFL1";

    oCFL = oCFLs.Add( oCFLCreationParams );

    // Adding Conditions to CFL1

    oCons = oCFL.GetConditions();

    oCon = oCons.Add();

    oCon.Alias = "CardType";

    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;

    oCon.CondVal = "C";

    oCFL.SetConditions( oCons );

    oCFLCreationParams.UniqueID = "CFL2";

    oCFL = oCFLs.Add( oCFLCreationParams );

    Also it has been noticed that most of your threads are opened and you haven't closed it after getting the answers. So please have a look at that as well as others will be benefited by that.

    Kind regards,

    ANKIT CHAUHAN

    SAP Business One Global Support

    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.