cancel
Showing results for 
Search instead for 
Did you mean: 

Click on matrix cell does not work

Former Member
0 Kudos

Hi y'all...

We did write an add-on in SBO 2004, wich on different fomrs needed to generate a click on a certain cell in a matrix. That worked like a charm.

In SBO 2005, it does not longer work! The funny thing, it works on system forms (i.e. Purchase Invoice) but not on user created forms... (So it's a bit different then )

<b>My code (C#)</b>

// Get a reference to the matrix
Matrix oMatrix = (Matrix)SAPForm.Items.Item("Mtrx").Specific;

// Trigger the formatted search on the description cell
oMatrix.Columns.Item("2").Cells.Item(ARow).Click(BoCellClickType.ct_Regular,0);
SBO_Application.SendKeys("+{F2}");

It worked in 2004, in 2005 it's broken...

Anybody some suggestions...?

Thanks in advance,

Rowdy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rowdy,

One problem we have when changing to 2005 was that there were some new events, and others change a bit, so that some code wasn´t executed when it was supposed to be executed.

Is this code executed in an event? If yes, could you paste the event handler?

On the other hand, you say that works on system forms. Are you sure that the SAPForm form has the form you need in this code?

Did you have error handling in this code lines? does it return any error?

Regards,

Ibai Peña

Sorry, I was late

Former Member
0 Kudos

Hmz... Solved it...

It seems to have to do with the Form.Freeze() method. If the form is frozen, it will not accept any clicks. In fact that is very logical, but it did also work while frozen in SBO 2004...

Anyway, solved...