on 12-24-2013 6:24 AM
protected override void etKeyDownBeforeAction(ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
{
}
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");
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is solve...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.