on 2011 Jan 12 5:26 PM
Hi guys,
I need some help with getting a row count from the Sales Order form in SBO 2007A with either C# or VB.NET 2005 code.
I have tried many iterations of code in the ItemEvent Handler but all have failed. Also once somethings happens in the Matrix (item number 38) i cant seem to process any other ItemEvents, it's as if it skips the procedure completely.
Please help.
Kind regards,
Akash
Edited by: Akash Singh on Jan 12, 2011 6:33 PM
Request clarification before answering.
Hi
Have you tried this
Dim RowCount As Integer
Dim oMatrix As Matrix = form.Items.Item("38").Specific
RowCount = oMatrix.RowCount 'OR
RowCount = oMatrix.VisualRowCount
can you please post your code
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Can you please paste ypur code
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
sorry for the delay was shifted to another project for a short period. please assist if you still can.
here is my code, as per Arun's suggestion above
if (((pVal.FormType == 139 & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED)) & (pVal.Before_Action == true)))
{
if (pVal.ItemUID == "38")
{
int rowCount = -1;
SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)form.Items.Item("38").Specific;
rowCount = oMatrix.VisualRowCount;
SBO_Application.MessageBox(rowCount.ToString(), 0, "", "", "");
}
}
I get no response when this code is executed.
Basically what I am trying to do is to see when the number of rows has changed and it should check this contineously.
your assistance is greatly appreciated.
akash
User | Count |
---|---|
62 | |
8 | |
8 | |
5 | |
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.