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

How to Open CFL on KeyDown event on TextBox ?

protected override void etKeyDownBeforeAction(ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)

{

}

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2013 at 06:45 AM

    protected override void etKeyDownBeforeAction(ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)

    {

    BubbleEvent = true;

    try

    {

    if (pVal.ItemUID == "edtxt2" && pVal.CharPressed==9 &&(oForm.Mode==SAPbouiCOM.BoFormMode.fm_ADD_MODE || oForm.Mode==SAPbouiCOM.BoFormMode.fm_UPDATE_MODE))

    {

    oEdtxt1 = (SAPbouiCOM.EditText)oForm.Items.Item("edtxt2").Specific;

    values = oEdtxt1.Value.ToString();

    oRecset = (SAPbobsCOM.Recordset)ClsSBOAddOn.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);

    string sql = @"select CardCode ,CardName,CardType from OCRD where cardtype='s'";

    ClsSBOAddOn.ExecuteSQL(ref oRecset, sql);

    if (oRecset.RecordCount > 0)

    ClsSBOAddOn.InitiateSBOForm("CSPL.ClsCustomLookUp", oForm, this, sql);

    else

    ClsSBOAddOn.ShowErrorMessage("please define card code");

    }

    }

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2013 at 06:59 AM

    hi

    Main.SBO_Application.ActivateMenuItem("Menu Uid");

    BubbleEvent = false;

    Ex) BP

    private void et_KEY_DOWN(SAPbouiCOM.Form pForm, SAPbouiCOM.ItemEvent pVal, ref bool BubbleEvent)

    {

    Main.SBO_Application.ActivateMenuItem("5377");

    BubbleEvent = false;

    }

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 06:31 AM

    Problem is solve...

    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.