Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Prevent a user from moving to another row if current row is being edited

$
0
0

Hi Rajesh,

 

You can use the Validate Event to perform the same. But you will have to make your scenario that how do you want to use it.

 

Like as follows:

 

if (pVal.ItemUID == "Matrix" && pVal.ColUID == "colRequest" && pVal.FormMode == 2 && pVal.EventType == BoEventTypes.et_VALIDATE)

{

     SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("Matrix").Specific;

 

     int Row = pVal.Row;

 

     SAPbouiCOM.EditText oEditIsUsed =      (SAPbouiCOM.EditText)oMatrix.Columns.Item("Used").Cells.Item(Row).Specific;

 

 

 

     if (oEditIsUsed.Value.Trim() == "Y")

     {

            ShowMessage("Invalid Action. Cannot make changes once the Item is used.", BoStatusBarMessageType.smt_Error);

 

            BubbleEvent = false;

     }

}

 

 

Hope it helps.

 

 

Thanks & Regards

 

Ankit Chauhan


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>