cancel
Showing results for 
Search instead for 
Did you mean: 

Set cursor to next column After selecting choosefromlist item

former_member275826
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try to pres Tab by sendkey after validation

regards, alessandro

Former Member
0 Kudos

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.

former_member275826
Participant
0 Kudos

Thanks P.T. Sampath for ur reply

It is not working.

Same problem exist