Matrix Select Row And Click()

Good Day
Experts:
I am in a bit of a quandry here today.  I cannot figure out why I am unable to programatically acheive the 2 following actions:
              1)Select a row in a Matrix
              2)Click in a field to set cursor
I have the right-click Add Row event working.  A new row is added to the Matrix.  However, right now
the row I right-clicked on to add a new row is staying highlighted.  I want to deselect that row and/or select the newly added row.  Then click in a certain column in the new row.
The forum has many helpful suggestions but it seems I have tried al of them with no luck. 
Here is what I have for the AddRow(after right-clicking on a row in the Matrix) and attempt at selecting a
row and clicking it:
MatlRFQMatrix.AddRow()
ClearMatrixDataSourceAdd(MatrixRowCount + 1)
PrevSeq = MatlRFQMatrix.Columns.Item("clHash").Cells.Item(MatlRFQMatrix.VisualRowCount - 1).Specific.value
PrevRFQSeq = MatlRFQMatrix.Columns.Item("clDocSeq").Cells.Item(MatlRFQMatrix.VisualRowCount - 1).Specific.value
  MatlRFQMatrix.Columns.Item("clHash").Cells.Item(MatrixRowCount + 1).Specific.value = PrevSeq + 1
  MatlRFQMatrix.Columns.Item("clDocNum").Cells.Item(MatrixRowCount + 1).Specific.Value = ReqNoPassed
  MatlRFQMatrix.Columns.Item("clDocLine").Cells.Item(MatrixRowCount + 1).Specific.Value = ReqLinePassed
  MatlRFQMatrix.Columns.Item("clDocSeq").Cells.Item(MatrixRowCount + 1).Specific.Value = PrevRFQSeq
  MatlRFQMatrix.Columns.Item("clStatus").Cells.Item(MatrixRowCount + 1).Specific.Value = "Order"
  Dim oMatrix As SAPbouiCOM.Matrix
  oMatrix = MatlRFQForm.Items.Item("mtxMatRFQ").Specific
  oMatrix.SelectRow(MatrixRowCount + 1, True, False)
MatlRFQMatrix.Columns.Item("clCardCd").Cells.Item(MatrixRowCount + 1).Click(SAPbouiCOM.BoCellClickType.ct_Regular)
Any ideas why I can't select a row or have a click sei in a column?
Thanks,
Ed

Hi Ed,
on which event you are doing this coding.
It should be on right click After Event.
As well as you add the new row into the matrix, the visual row count increamented by one.
So insted of using Matrix.VisualRowCount+1 or matrix.VisualRowCount -1, you have to usae only and simply Matrix.VisualRowCount.
whats the value of MatrixRowCount. Is it a variable.
please try to more clear your code.

Similar Messages

  • How to set the Selected row and Column in JTable

    Hi,
    i have a problem like the JTable having one Method getSelectedRow() and getSelectedColumn to know the Selected row and Column but if i want to explicitly set the Selected Row and Column,then there is no such type of Methods.If anybody has any solution then i will be thankful to him/her.
    Praveen K Saxena

    Is that what you're looking for? :myTable.getSelectionModel().setSelectionInterval(row, row);
    myTable.getColumnModel().getSelectionModel().setSelectionInterval(column, column);

  • Select row and column from header in jtable

    hello i have a problem to select row and column from header in jtable..
    can somebody give me an idea on how to write the program on it.

    Hi Vicky Liu,
    Thank you for your reply. I'm sorry for not clear question.
    Answer for your question:
    1. First value of Open is item fiels in Dataset2 and this value only for first month (january). But for other month Open value get from Close in previous month.
    * I have 2 Dataset , Dataset1 is all data for show in my report. Dataset2 is only first Open for first month
    2. the picture for detail of my report
    Detail for Red number:
    1. tb_Open -> tb_Close in previous month but first month from item field in Dataset2
    espression =FormatNumber(Code.GetOpening(Fields!month.Value,First(Fields!open.Value, "Dataset2")))
    2. tb_TOTAL1 group on item_part = 1
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)))
    3. tb_TOTAL2 group on item_part = 3 or item_part = 4
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) + ReportItems!tb_TOTAL1.Value )
    4. tb_TOTAL3 group on item_part = 2
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) - ReportItems!tb_TOTAL2 .Value)
    5. tb_Close -> calculate from tb_TOTAL3 - tb_Open
    expression =FormatNumber(Code.GetClosing(ReportItems!tb_TOTAL3.Value,ReportItems!tb_Open.Value))
    I want to calculate the value of tb_Open and tb_Close. I try to use custom code for calculate them. tb_close is correct but tb_Open is not correct that show value = 0 .
    My custom code:
    Dim Shared prev_close As Double
    Dim Shared now_close As Double
    Dim Shared now_open As Double
    Public Function GetClosing(TOTAL3 as Double,NowOpening as Double)
        now_close = TOTAL3 + NowOpening
        prev_close = now_close
        Return now_close
    End Function
    Public Function GetOpening(Month as String,NowOpen as Double)
        If Month = "1" Then
            now_open = NowOpen
        Else    
            now_open = prev_close
        End If
        Return now_open
    End Function
    Thanks alot for your help!
    Regards
    Panda A

  • I have a slideshow I made in iPhoto and it is showing in iTunes movies but when I select it and click 'sync' it does not load into my phone. I have made sure it is a mobile version of the slideshow

    I have a slideshow I made in iPhoto and it is showing in iTunes movies but when I select it and click 'sync' it does not load into my phone. I have made sure it is a mobile version of the slideshow. How do I load it onto my phone? Or also, how do I play it from iPhoto or iTunes through Apple TV

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • In organizer i select photo and click edit with PE, PE opens but the photo is not opened

    in organizer i select photo and click edit with PE, PE opens but the photo is not opened

    In PSE 11 or 12 simply select a thumbnail and click the editor button at the bottom of Organizer.
    In older versions click:
    Fix >> Full Photo Edit

  • Eyedropper, select stroke, and click on a fill to apply colour to stroke

    I`m choosing  a stroke, selecting eyedropper and clicking on a fill colour elsewhere, it doesnt apply it to the stroke, this would be simple, how can I choose a stroke and change the stroke colour to match a fill on another object in the quickest possible way?
    trying to make a swatch from the fill, then applying it to stroke doesn`t work either,, but thats a long way anyway, has to be a way to apply a fill colour to a selected stroke..
    quickest way I know is to use eyedropper to select the fill colour on other object, this fills the fillbox on tool palette, then hover over this fill swatch and drag it onto the stroke swatch on tool palette, then drag the stroke swatch onto the stroked path you want to recolour,
    so 3 steps there,anything quicker?

    I find that when selecting a colour from another stroke to apply to just the stroke of my selected object, I have to hover over the center spline of the stroke I`m colour picking from, when doing this from blends, there is no center line for the blend pieces generated, you have to guess where the center of the stroke is, if you don`t get the center of the stroke, the selected objects stroke becomes white..
    just thought it would be easier if you could click anywhere within the stroke boundaries of a blend piece, I could always expand the blend, but not simply to use its colours generated for strokes elsewhere, but its a work around,
    still love it anyway, thanks for showing,

  • Matrix Add Row and Duplicate Row

    Hi All,
    Can anybody suggest me how to work on Add row and duplicate row in any document table.
    Lets take one example
    Sales order document
    In this doc we have table format where we specify item no, item description etc. In this table when we right click on particluar row we have option for add, delete, duplicate rows..etc.
    wht i would like to know is that when we click add row .....one row is added and number is incremented under # column.  Hw to perform and display this auto increment/ decrement of number for these rows under this # column
    thanks
    harish

    Hi,
    I tried following both code, but in that i am geting value. Means i am getting .Value  Why i not getting value.
      matrix.Columns.Item("V_-1").Cells.Item(pVal.Row).Specific.value = matrix.RowCount
    and i also tried for "AddRow",
    If pVal.BeforeAction = False Then
                    Select Case pVal.ItemUID
                        Case "AddRow"
                            matrix = form.Items.Item("mtr").Specific
                            If matrix.RowCount > 0 Then
                                If Trim(matrix.Columns.Item("V_-1").Cells.Item(matrix.RowCount).Specific.value) = "" Then
                                End If
                            End If
                    End Select
                End If
    In both example i not getting .Value.
    Plz tell y ?
    Thanks

  • Delaying a function so ADF will get all the selected rows and run only 1 time ?

    Hello,
    I'm using JDeveloper 12.1.2.0.0.
    I have a group of functions that are executed after i click on one or more rows, which is called:
    public void onDimProjectSelect(SelectionEvent selectionEvent)
    Whenever i shift-click some rows (lets say, for the purpose of this example, that i shift-click the 1st row to the 5th row, so i shift select and i get selected the rows: 1,2,3,4 and 5).
    I did notice that what happens is that the function onDimProjectSelect will execute with the 1st row, and after it runs all the functions, it will run again the function onDimProjectSelect with the 1, 2, 3, 4 and 5 rows as it should in the first place.
    Why is this happening? I've tried to add a delay but i did not work.
    This is really a pain because its spending time executing a function without all of the rows that is suppose to have, so it will run again.
    I think the problem here is how ADF does the selections for the function but i don't know how to change it.
    Any ideia of why is this happening? What can i do to correct this?
    Regards,
    Frederico.

    Hey Frank,
    I mean that my function onDimProjectSelect has other functions inside that need to be executed so when i say that is runs all the functions i mean the functions that are suppose to execute when onDimProjectSelect is executed.
    Maybe the problem is my implementation approach but it was required to use the selection. But the funny part is that i select with the shift-click and he knows that, since it will run the function with all the rows that are selected but firstly he will execute the function with just the first selected row.

  • The selected row and cursor/focus behavior of af table

    Hi,
    A selected row in the af table can be changed by clicking the row, then the background color of selected row will be changed.
    But if I navigate to another row by pressing TAB or ENTER, the 'selected row' will not change.
    Is there any way to change this behavior?
    That is, if I use TAB/ENTER to move the cursor to another row, the 'selected row' will change accordingly.
    Thank you~~

    Hi,
    actually I looked into this a while ago and the problem comes from the focus being in the input text field, not on the table. Using JavaScript I currently don't see how we can get a handle to the row to manually set it. I'll keep a note and file an enhancement request to see if the dev team has an idea
    Frank

  • Can't highlight and delete or move large volumes of emails. Have to hold command to select multiple and click on each one ?

    I love being able to mass delete, mark as read or move emails but with Mountain Lion I now have to select each email individually and cannot just hold mouse and roll up and select in large volumes. I can select more than one only if holding down command and clicking on each email. Is there a way around this? What has changed?
    This is terrible and completely time consuming to delete emails.

    Found solution. Must double click first and then scroll!

  • Make Select rows and columns as read only in Table Control

    Hi All,
    I would like to know how to make certain cells in a Table Control as display only.
    Table control should look like-(Those in bold are read only or in display mode)
    <b>Name1            Idno1 </b>         Address1
    <b>Name2            Idno2</b>          Address2
    <b>Name3            Idno3  </b>        Address3
    <b>Name4            Idno4</b>          Address4
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    My table control should display all the above fields the way it is above of which first two colums and 4 rows should be read only,and the rest of the empty rows in the TC should be in change mode.i.e it must have provision to add new rows but not change the first two columns of existing rows.
    In short I am looking at solution to hide particular no of rows and columns and <b>not the entire column.</b>

    In the PBO of the table control loop. just write these statements
    NAME and IDNO considering the fields on the screen.
    and WA_TAB is the table work area being passed to the table control to display the rows.
    if not WA_TAB-NAME is initial and not WA_TAB-IDNO is initial.
    loop at screen.
    if screen-name = 'NAME' or
       screen-name = 'IDNO'.
    screen-input = <b>0</b>.
    modify screen.
    endif.
    endloop.
    endif.
    which means that the fields are disabled only if NAME and IDNO are not initial.
    Regards
    - Gopi

  • How to get the values of a selected row and edit it

    hi all,
    i am using a table component.I am populating it from the database.i used static text to display the data .i have a edit button in the last column. when i click on it that particular rows data should be shown in a text field in that row itself,so that i should be able to edit it and then if i save it it that row should change to statictext with the updated data.
    please provide a solution for this...
    regards,
    rpk

    Hi Andrea,
    If you are using ADFBC, the easiest way is to drop the attribute(Say Name) from the data control palette as outputText component and add partialTriggers property of it to point to table id(to refresh the outputText whenever the row is selected in table)
    Sireesha

  • I sent a matrix,its row and column to a child window. However "Acess violation" & 'Memory cannot be reference" error occurs when I try to plot the data in the child dialogue. Why?

    My OS is Win200 professional.
    I'm running a data acquisition program. I'd got this main dialog which the user selects the input channel.
    The child dialog should show the graph.
    I'd initialise all the NI_DAQ configuration in the main dialog class. After acquiring the data, I send the matrix to the child window for it to plot. There is no compilation error.
    However when I try to plot the data, Windows complained about Acess violation and Memory cannot be accessed error.
    I'd attached my program below.
    Attachments:
    DataAcqDlg.cpp ‏10 KB
    Ch1Dlg.cpp ‏7 KB

    Wynn:
    I believe this problem is occurring because you are using the index operator (brackets "[","]") instead of the functional call operator (parentheses "(",")") in your code to access the matrix.
    SigCh1Vect[i] = SigCh1Max[1,i];
    The index operator is not defined for the matrix, because the C++ language does not allow a two-argument overload of this operator. Instead you have to use the function call operator for matrices and remember to use the index operator for vectors.
    I believe that what is happening is that the compiler is using one of the defined cast operators on the matrix (operator DataType) to convert the symbol "SigCh1Max" into a double pointer. It then interprets the bracket as it would any array index operation. So the compile
    r effectively sees:
    SigCh1Vect[i] = *(((Real64*)SigCh1Max) + (1,i));
    In this case, I believe the comma operator is defined to return the rightmost operand, or "i". Changing your code to
    SigCh1Vect[i] = SigCh1Max(1,i);
    should fix the problem. Please let me know if any issues exist after this fix.
    In the next release of Measurement Studio, I will recommend that the index operator be defined on the matrix classes, even if it simply throws an exception. The existence of this operator will prevent problems like this from showing up.
    Hope this helps,
    -- Chris W.
    Measurement Studio R&D
    National Instruments

  • How to keep the selection as the old when I select one and click the submit

    maybe it is a HTML problem,but I still ask for help here!
    When I select one option in the form's element-select and submit it ,I want to keep the JSP page as old, but I can't .I also use cookie and bean.The problem is still being.

    store the parameter names and their corresponding values in a variable, say Hashtable. After you do the submit, you can retrieve the values from the hashtable.
    example:
    if you have these parameter names:
    "name", "age"
    then you can do:
    Hashtable h = new Hashtable();
    h.put("name", request.getParameter("name"));
    h.put("age", request.getParameter("age"));Have this hashtable available in your response jsp so you can retrive the old data.

  • When I send email and attach photos, those are been randomly resized, without asking and I can't resize them back to the original size on the screen and on the email, even if I select them and click on "LARGE SIZE" images on the right top box of the email

    By the way, I've tried to look for the Attachment Tamer box, between the Mail Prefferences but it doesn't even show me this option. So I can't do it.
    I'm using a MacPro.

    Marc Bublitz wrote:
    I thought that originally too, but that's all changed with the pool of apps that are out there now. So now what I'm trying to do is to prove that technology is progressing to the point where a tiny, handheld phone can produce images that are nearly as good as photos taken with much more expensive and bulky equipment. I've got my share of expensive bulky camera equipment, but I'm finding that I'm having much more enjoyment out of using my iPhone from initial capture, to editing, to publishing, and achieving results that are nearly as good.
    I do think you're working under a bit of a handicap. For example, lens quality. Here's an iPhone photo example of some wild turkeys in the neighborhood masked by flare that would be much better controlled on an SLR lens (click to enlarge - the flare is obvious, the turkeys are not):
    At the same time, working under a handicap can definitely spur creativity, similar to the oft-cited example of swapping out your zoom lens for a prime to force yourself to pay attention to composition.
    It's an interesting concept - I wish you luck!

Maybe you are looking for

  • Oracle Application Server 10.1.3 R3 - Restart problem and out of memory

    Dear All, I am using Oracle App Server 10.1.3 Release 3. After deploying EAR, my server is runnig for some time. But after some time its getting restarted. I m not able to find out its permanent solution. If you see below log, it showing out of memeo

  • I updated iTunes and now it won't work

    So I just updated iTunes to 11.1.4. and ever since I did that my iPod is not seen in iTunes source list. I reset my iPod, my computer, everything and nothing is working. PLEASE HELP THIS IS MAKING ME MAD!!!!!

  • Adding functionality to standard SAP program

    HI frnz, Please let me know how to go about my problem.... The problem is as follows Assumptions: 1.This enhancement will not allow end users to display Street data of employee vendors in XK03  and FK03 (Display Vendor). However it will not blank out

  • RRI Functionality in Workbook

    Hi Guys This is my first post on SDN and i am really not able to find out any solution for this problem. I have 2 queries ( One is summary report other one is detailed level report ) connected thru RRI functionality ( T-code RSBBS). I have developed

  • Is there a way to choose what photos get sent to iPhoto?

    I love using photostream so that any pictue I take on my IPhone 4s is sent to iphoto but I don't like how every photo I take is automatically sent there... Some photos I take and then delete right away on my phone but still appear in Iphoto. Is there