on 01-11-2021 3:53 AM
I'm trying to set the card detail in payment means window which is received from pos.
I have tried the below code
oMatrix.Columns.Item("63").Cells.Item("1").Specific.value="1234"
But i'm getting invalid row index. I have hard coded the row index as 1. As the each column has only one index.
Could you please help me on this.
Thanks in advance.
Hi akumarsapds,
Following code is working fine for me:
if (pVal.FormType == 146 && pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED && pVal.ItemUID == "5" && pVal.BeforeAction == false)
{
try
{
SAPbouiCOM.Form oForm = (SAPbouiCOM.Form)Program.SBO_Application.Forms.GetForm(pVal.FormType.ToString(), pVal.FormTypeCount);
SAPbouiCOM.Folder oFL = (SAPbouiCOM.Folder)oForm.Items.Item("5").Specific;
oFL.Select();
SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("112").Specific;
SAPbouiCOM.EditText oEdit = (SAPbouiCOM.EditText)oMatrix.Columns.Item("63").Cells.Item(1).Specific;
oEdit.Value = "5678";
}
catch(Exception ex)
{
}
}
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.