on 2007 Jul 06 3:35 PM
Hi,
Can I get the Cell of the Matrix which is active in a form?
I need to launch my search screen, when F11 is pressed in a SBO form. (in 10 different forms including Purchase Order form.)
And, put the selected value back into the form.(i.e, into the matrix cell, which was active when F11 was pressed.)
For getting the active cell, I don't want to keep track of pval.row,.. in the ItemEvents, because I need to do it for 10 different forms.
To explain the sequence of events: I want help in Step 5.
1. User clicks on a cell in the matrix
2. User presses F11
3. My add-on launches my search screen
4. User searches in it and gets the results.
4. User selects one of the Item# from the results
5. I want to put back the selcted Item# in the Matrix of purchase order form, in the cell originally clicked by the user.
Thank you!
-Geetha
Geetha
There are only just two way in which i think you can achieve this.
1. Keeping track of cell by keeping pval.ColID and pval.Row on modular variables at the appropriate event (et_KEY_DOWN). Afterwards you can refer to the matrix cell with these.
2. Calling the GetNextSelectedRow method of the matrix like this ...
Dim intRow As Int16 = oMatrix.GetNextSelectedRow(0, SAPbouiCOM.BoOrderType.ot_RowOrder)
This method however, i believe, needs for the row to be selected (highlighted).
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.