on 09-19-2014 9:10 AM
Hi All,
I have created the custom form in screen painter.
In form i have added matrix control, in that i have added Itemcode choosefromlist.
After selecting item from choosefromlist cursor does not move to next column.
I have used foll code but it is not working.
SAPbouiCOM.DataTable oDataTable = null;
oDataTable = oCFLEvento.SelectedObjects;
string valItemCode = null;
string valItemDesc = null;
string valDefWhs = null;
string valUOM = null;
try
{
oMat = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx_0").Specific;
oMat.FlushToDataSource();
valItemCode = oDataTable.Columns.Item("ItemCode").Cells.Item(0).Value.ToString();
valItemDesc = oDataTable.Columns.Item("ItemName").Cells.Item(0).Value.ToString();
valDefWhs = oDataTable.Columns.Item("DfltWH").Cells.Item(0).Value.ToString();
valUOM = oDataTable.Columns.Item("InvntryUom").Cells.Item(0).Value.ToString();
oForm.DataSources.DBDataSources.Item("@BCP_INP").SetValue("U_ItmCode", pVal.Row -1, valItemCode);
oForm.DataSources.DBDataSources.Item("@BCP_INP").SetValue("U_ItmDesc", pVal.Row - 1, valItemDesc);
if (pVal.Row == oMat.RowCount)
{
oForm.DataSources.DBDataSources.Item("@BCP_INP").InsertRecord(oMat.VisualRowCount);
}
oMat.LoadFromDataSource();
((SAPbouiCOM.EditText)oMat.GetCellSpecific("V_3", pVal.Row)).Active = true; //This code not working
Hi,
Try to pres Tab by sendkey after validation
regards, alessandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pravin Ghadge,
Please Use this code for focus.
oMat.Columns.Item("Column_UID").Cells.Item(oMat.VisualRowCount).Click(SAPbouiCOM.BoCellClickType.ct_Regular)
I hope it will work.
Thanks,
P.T.Sampath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.