Matrix actions and linking the Matrix-row to some fields

Hello every One,
I would like to have the following "action" ! I have a Form where i puted 2 edit fields and 1 matrix (Screen Painter), the matrix shows me the first and lost name of the Employee ( just an exp.).
What i would like to do is to send these datas to the edit fields every time i choose another row. i cannt find any itemEvent for the raws to select the record in the data base and to bind it to the edit Fileds! is this a good way to do it ??
Thank You for every help

Hi Amir
You can use the et_GOT_FOCUS event to check for focus on the Cells of the Matrix. I recommend using et_GOT_FOCUS because this will facilitate mouse and keyboard navigation.
When you capture the event on the Matrix check the pVal.Row to get the row that received the Focus. Using this Row index retrieve the data from the Matrix and set the values for the required edit fields.
<i>Remember to include event et_GOT_FOCUS in your EventFilters</i>
<b>Event Handeling Example:</b>
If pVal.BeforeAction = False Then
   If pVal.EventType = SAPbouiCOM.BoEventTypes.et_GOT_FOCUS Then
      'IDH_MTR - Matrix Item
      If pVal.ItemUID = "IDH_MTR" Then
         Dim oMatrix As SAPbouiCOM.Matrix
         oMatrix = oForm.Items.Item("IDH_MTR").Specific
         'Work with the DataSources of the
         'Edit Fields to avoid triggering the
         'Focus events again.
         ' * ED1 and ED2 is the DataSources for the
         '   Edit Fields
         ' * Column(1) And Column(2) contains the data
         '   that will be copied to the edit fields
         oForm.DataSources.UserDataSources.Item("ED1").Value = oMatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific.Value
         oForm.DataSources.UserDataSources.Item("ED2").Value = oMatrix.Columns.Item(2).Cells.Item(pVal.Row).Specific.Value
       End If
    End If
End If
I hope this will help

Similar Messages

  • How to access a Matrix cell value outside the matrix in textbox?

    Hi
    I have created a matrix in SSRS. Columns are grouped by Channel Type. I want to access indicated cells value outside the matrix. 
    After Running the report the report shows
    How can I access cell values outside the matrix? Please help

    Hi Aladin92,
    According to your description, there is a matrix in the report, you want to reference the first value of total outside the matrix, right?
    In fact, Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope. Are the both textboxes in the same group. To workaround the issue, please refer to the following steps:
      1. Click and select the matrix, copy it and paste it in the report above the original matrix.
      2. Right-click handle of the first row in the upper matrix, click Insert Rows, then click Inside Group-Above.
      3. Right-click second cell of the first row, then click Expression.
      4. In the Expression text box, type the expression like below:
    ="A total of "& ReportItems!Textbox5.Value & "out of 258 BC CCRs have been evaluated"
      5. Set the text boxes and rows visibility to be hidden except for the text box with expression.
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Is there any way to link the individual rows of data to the corresponding bars in a bar chart so that each legend title appears simultaneously with its corresponding bar when creating a build? I can do it in a pie chart but can't in a bar chart.

    Is there any way to link the individual rows of data to the corresponding bars in a bar chart so that each legend title appears simultaneously with its corresponding bar when creating a build? I can do it in a pie chart but can't in a bar chart.

    You used the data.  Verizon can not see what it was sued for.  However your phone can see whats apps used the data.  go to settings-data usage- there will be a place that says data usage cycle.  line the dates up with your cycle.  then there will be a bar graph below that   extend bother white bars one all the way to the left and one all the way to the right.  after those are extended below that will be a list of apps,  there should be one that used over 2 gb and that will show you what app used that data in her purse

  • Can you move a row in a DataGridView to the first row and move the other rows down to make room?

    I'm using a DataGridView (I call it "dg") to display a list of items. I want the user to be able to position the cursor on a row in the middle of the list then click a button to move that row to the top of the list (and move the other rows between
    the first row and the row being moved down one row to accomodate the new first row).
    Robert Homes

    Hello,
    If the DataGridview does not have it's DataSource set we can use the following logic
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim data = (From T In DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells.Cast(Of DataGridViewCell)() Select T.Value).ToArray
    DataGridView1.Rows.RemoveAt(DataGridView1.CurrentRow.Index)
    DataGridView1.Rows.Insert(0, data)
    End Sub
    If the DataSource is set then we need to do what was done above but against the underlying data rather than the DataGridView itself. The base logic can be found in
    the following article in LanguageExtensions.vb but please note the code there is for a different type of move yet the logic is still the same in the end.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • How to execute a string formula and assign the result to a number field

    How to execute a string formula and assign the result to a number field
    Hi,
    we have a function that returns a string like this:
    '(45+22)*78/23'
    After we should calculate this string and assign the value to a numeric block field
    Example:
    k number(16,3);
    k:=fun1('(45+22)*78/23'); where fun1 execute and translate to number the string.
    Does exist a function like fun1 ??
    How can we do ?
    Regards

    Hello,
    this is the code that does the job:
    SQL> set serveroutput on
    SQL> DECLARE
    2 ch VARCHAR2(20) :='22+10' ;
    3 i NUMBER ;
    4 BEGIN
    5 EXECUTE IMMEDIATE 'select ' || ch || ' from dual' INTO i;
    6 dbms_output.put_line ('i = ' || TO_CHAR(i));
    7 END ;
    8 /
    i = 32
    Procédure PL/SQL terminée avec succès.
    SQL>
    just you have to do is to create a small stored function that take the string to calculate and return the number result
    Francois

  • ALV_grid oo: event "data_changed" on F4 in the line only for some fields

    Hi all,
    when I add a new line in ALV_Grid and I select the search help, for some fields
    the event "data_changed" has triggered even I have not finished to fill the entire fields on the line, and I don't need this.
    Opposite I have some fields which work fine and when I choose F4 the list of the
    possible values has showed without triggering "data_changed".
    Does anyboby know how is it possible?
    Since I'm new on ALV_grid oo, could you give a detailed answer?
    I thank You in advance.
                                                              Best Regards
                                                              Paolo

    I solved the problem int this way: 
    METHODS:
          handle_data_changed
              FOR EVENT data_changed
               OF cl_gui_alv_grid
              IMPORTING er_data_changed
              <u><i>e_onf4</i></u> e_onf4_before e_onf4_after.
      METHOD handle_data_changed.
    DATA: ls_good      TYPE lvc_s_modi.
    error_in_data = space.
    IF e_onf4 IS INITIAL.
      CALL METHOD check_righe_doppie  ( er_data_changed ).
      CALL METHOD update_delta_tables ( er_data_changed ).
      CALL METHOD semantic_checks     ( er_data_changed ).
    ENDIF.
      ENDMETHOD.                                  "handle_data_changed
    Message was edited by:
            Paolo Cavallini

  • I copy a row and then the next row as no actions

    I know this is easy.
    when I set up actions in a row and try to copy it and past a row below it is not there.
    can anyone help?

    Hi,
    One of the easiest ways to do this is simply select the row (discussion below about selecting) and hold the "Ctrl" + "D" ("D" is for "Duplicate"). This will duplicate the row and place it directly under it. Also, you can use "Duplicate" by clicking Edit>Duplicate
    Selecting rows can sometimes be tricky. If I use the mouse, I always try to confirm in the Object and/or Hierarchy Pallet.The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore)
    Here are 3 ways:
    The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore). You move the cursor just to the left of the table and the arrow appears.
    One of the best ways I find is selecting the row in the Hierarchy Pallet.
    Select an object in the row and on the tool bar click Table>Select>Row
    I avoid pasting anything if I can help it. If you use flowed forms and if you paste a lot, and If you aren't careful, you'll end up with a corrupt form. Designer is very unpredictable about where it will paste. If you have a large form, it can take a minute or two to track down a pasted object's location. Then you have to move it to where you want it.
    Better to use "Duplicate". That usually means it will be next to the item you're duplicating. If you copy and paste, paste, paste repeatedly too fast, You can really mess things up. Every Paste command takes longer than you think to execute. Wait at least 2 seconds before doing anything after pasting. Otherwise, you'll interpt Designer while it's busy writing the new XML. Yes, Designer is still busy doing work even after you see the new item appear. Be patient.
    Good luck!
    Stephen

  • Permute matrix columns to find the matrix with biggest trace

    I am trying to make a Labview Vi that picks any 3x3 matrix and permutes the columns (not rows!) until it gets the ordenation that has a greatest trace (sum of diagonal elements). The program should also allow a sign change of the elements of one or more columns. If I am not wrong for a given 3x3 matrix and considering the column sign change there are 36 possible matrices, and the program should automatically show the one with greatest trace
    For example: 
     1   6    3                                             6   -1   -3
    -8  -2    4   should be converted to        -2    8   -4
     3   2   -7                                             2   -3    7
    I know it should be a quite simple program, but after spending several hours with L. V. 8.5  I end with a too complicated block diagram that does not work.
    Ideally the program should also show of the permutation/sign change that has given the greatest trace but this part I think I am capable to do by myself.
    Message Edited by obarriel on 12-28-2009 06:00 PM

    Sorry, I pasted the wrong permutation matrix diagram constant for some reason. As you can see, it has only two unique permutations instead of six. Silly! You can easily paste Darin's permutation matrix and it will work correctly.
    Here's a more general version that generates all permutations on the fly (LV 8.5). It does a 10x10 in under two seconds (3628800 permutations!).
    See if this works better for you.
    The permutation algorithm is from wikipedia:
    For every number k, with 0 = k < n!, the following algorithm generates a unique permutation of the initial sequence sj, j = 1, ..., n:  
    function permutation(k, s) {
         for j = 2 to length(s) {
            swap s[(k mod j) + 1] with s[j]; // note that our array is indexed starting at 1
            k := k / j;        // integer division cuts off the remainder
         return s;
    NOTE: Indexing in LabVIEW starts at 0, so the code is changed accordingly.
    For larger matrices you'll run out of steam very quickly because the permutations increase with N factorial. I am sure there would be a much more
    intelligent algorithm to solve all that in much less time.
    Message Edited by altenbach on 12-29-2009 09:31 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MaxTraceCA2.vi ‏27 KB
    MaxTraceCA2.png ‏61 KB

  • Issue with table selection and display the seleted rows in another page as a table data

    Dear ALL,
    I have a  requirement as below:
    I have a custom OAF  page having one button, on pressing the button it will open a popup window, in that i am doing search operation and data would populate in table region below.
    Then from the table i am doing multiple selection of rows and i have a button, on pressing the button the seleted rows should display in the base page where i called this popup window and popup window should close.
    so i am able to perform multiple selection of row  from the table but how i can display the seleted rows in my base page  and how i can close the poup window after the seleted rows displayed in the base page, please help me on this.
    Thanks
    Deb

    Hi,
    For navigation data from one page to another  you can use  a hashmap that contains the parameters.
    // processFormRequest()
    HashMap hsp = new HashMap(1);
    hsp.put("myParam", "myParamVal");
    pagecontext.setForwardURL("MY_FUNCTION", (byte)0, null, hsp,true, "N", (byte)0);
    You can then retrieve this parameter in processRequest() via:
    pagecontext.getParameter("myParam")
    //Code for redirect to base page with commit
    Refer to the setPostToCallingPage method, from OADialogPage Class how to make the dialog page action buttons submit back to the calling page. In the example, the OK button commits the changes on the dialog page and the NO button rolls back the changes.
    OADialogPage dialogPage = new OADialogPage(OAException.*, mainMessage, null, "", "");
    dialogPage.setOkButtonItemName("okButton");
               dialogPage.setOkButtonToPost(true);
               dialogPage.setNoButtonToPost(true);
               dialogPage.setPostToCallingPage(true);
               dialogPage.setOkButtonLabel(yes);
               dialogPage.setNoButtonLabel(no);
    Thanks,
    Dilip

  • How to:  using the Place command in an action and remember the correct source filename...

    I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
    For each photo, I want it to have the same background.  If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
    In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder.   (I have the original file somewhere else, and am working with an intermediate copy).
    But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name?  Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’.  Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
    The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
    Thanks in advance for your help!
    Jerry
    PS - I have no scripting experience in PS, but have written code in other applications/scenarios.

    Its great that your products are cutouts layers,  Its easy to put cutouts on backgrounds and even add layer style to the product layer to enhance the composite. Still cutouts have size and resolution as  do your background images. 
    When you make composites. A document that is place in or pasted into the current document will be resample to match the current documents DPI resolution to preserve the size of the document being place or pasted in size.
    Additionally if your using place if the document being placed in does not fit within the current document's canvas size. Photoshop may scale the image to fit within the canvas.  It depends on your user id Photoshop Preference setting.
    That means you need you handle the sizes involved.
    I would think that you would want the final composite to be the size of the background image.
    You need to know its size and dpi resolution.  You must use image size on your product image and make the image have the same dpi resolution and a size smaller then the background image.  Perhas they have the same dip resolution as the background and are smaller in size. If that the cast their size are good no image resize  is required,
    Then you need to use canvas size to make the document have the same size and resolution as the background image.
    You may want to center the product layer over the canvas however Canvas size will add canvas evenly around the produt layer's layer bounds when you leave the anchor point in the center. 
    When you then place in the background image it will not be resampled for it has the same dpi resolution as the current document and it will not be scaled for it is an exact canvas size fit.  All that remains to be done is  move the current placed layer below the  product layer 
    The document name is the product image file name opened by you or by Photoshop automate batch process.

  • How to:  using the Place command in an action and remembering the source filename...

    I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
    For each photo, I want it to have the same background.  If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
    In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder.   (I have the original file somewhere else, and am working with an intermediate copy).
    But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name?  Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’.  Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
    The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
    Thanks in advance for your help!
    Jerry
    PS - I have no scripting experience in PS, but have written code in other applications/scenarios. 

    Actions don't have access to the document name (where the file name is).  Scripts do, however.
    If your products are sequentially numbered, you're in luck.  You can overide the "Save as command" and make sure that your naming uses a sequence which you can set to the same starting number as your product. Here is an example of how to configure File -> Automate -> Batch (assume the set and action are your hand built one)
    Instead of "Document name" you'd type "PRODUCT_" per your example and choose a 3 digit Serial number.
    The "Starting Serial #" is where you can change if your products are numbered say, 101 and up.

  • Insert a field and update the same row.

    Hi,
    I am inserting a value in a row.
    And later within a cursor loop I am trying to update the same row. But it is not working....
    CREATE OR REPLACE procedure Del_Note_stage
    Is
    v_delNote Delivery_Note.Delivery_Note_id%type;
    Cursor C1 is Select Heading_Name,File_Data from Sqlload_Stage;
    Begin
    dbms_output.put_line('i am here a ');
    Select Delivery_Note_Id_Seq.nextval into v_delNote from dual;
    Insert into DELIVERY_NOTE_STAGING(Delivery_Note_ID,LUT,LUB,PROCESSED) Values(v_delNote,sysdate,'Config','N');
    commit;
    dbms_output.put_line('i am here b'||v_delNote);
    For sqlload_rec in C1
       Loop
        dbms_output.put_line(sqlload_rec.Heading_Name);
        dbms_output.put_line('Del Note Id is :'||v_delNote);
        update DELIVERY_NOTE_STAGING  set deployed_by='TOM' where delivery_note_id=v_delNote;
    End loop;
    End;

    But it is not working....Why not?
    Please read: http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    Why are you updating after inserting?
    Just add deployed_by to the insert statement, or use a default value for that column.
    Also you don't need to select your Delivery_Note_Id_Seq.nextval from dual, just use it in your insert statement.
    Something like:
    Insert into DELIVERY_NOTE_STAGING(Delivery_Note_ID,LUT,LUB,PROCESSED,deployed_by )
    Values( Delivery_Note_Id_Seq.nextval,sysdate,'Config','N', 'TOM' /*or USER*/);

  • A friend set me up with icloud and in the process he lost some of the book i was listening to. I can't find it in my ipod or on my computer. It is part one and two of a book; interest part three showed up hough.

    A friend set me up with icloud on my ipod touch and in the process lost part one and two of the book I had purchased from itunes. I searched for it and it is not in my ipod any longer, although part 3 is there.  I tried to download it again from itunes store but they said I already purchased it and I didn't want to be charged again. What can I do? I am not happy at all because all I did with my Ipod was listen to my book and now I can't.

    Hi.
    If you've bought it from iTunes, you should be able to re-download it for free.
    Download directly from iPod by going to the iTunes Store-App and find the "Purchased"-menu. From here you should get a complete list of all your bought items and the ability to re-download.
    Download from iTunes on PC/Mac by opening iTunes > Go to iTunes Store > Go to the menubar on the left and choose "Purchased". Now, from the appearing window select the proper categori on top of the screen.
    I hope this was helpful.

  • I had  to restore my iPad mini. Now when I go to the App Store and tap the cloud to reload some of my apps, it times out and they won't load. Any suggestions?

    i had to restore my iPad mini and when I go to the App Store to reload some of my apps it times out and doesnt reload them. Any suggestions?

    Close the App Store app and reset your iPad.
    Now close all apps. In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    In order to reset your iPad, hold down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears on the screen after which time you can release the buttons and let the iPad start up.
    IF that didn't help, try turning WiFi off on your iPad in the Settings, restart the iPad, then turn Wifi on again.

Maybe you are looking for

  • How can I «sync» Firefox 30 on android 4.2.2

    I had a «deprecated» sync account on an android phone (and on a linux lap as well). Then I bought a new android phone which asked me to create a new account. This is the moment I learned there was a new «method». So I googled how to do the transition

  • Colour in BSP Excel Download

    Hello Experts, Could you please let us know how to download a table view output to an excel file with COLOR option. Say, suppose few rows in the tableview output have grey or blue background. When we download the same, we would like to retain the col

  • HT1947 I just installed apple tv and want to connect my iPad to apple tv to browse the internet on my tv

    I am trying to use my iPad to communicate with the apple tv I just purchased, do I need AirPlay and if so is it a free app

  • Config archiving problem

    Hi am having problem in archiving config from switches in cisco works. am having problem in only 5 switches all others switch configurations archived when I try to do this I found following error. TELNET: Failed to establish TELNET connection to 172.

  • Changing UOM

    Hi Experts, I want to change the UOM of few materials. I have already followed these steps but having a issue. Checked the stock through MARD and MMBE - No stocks Deleted all the open PRs/open POs and reservations. Now when I try to change, system al