What line was clicked in webuijsf:table (similar to h:table)

Hi! I have a jsf table, binded with table in the DB. One of the colums contains hyperlink. When this link is clicked I need to show the edit form for correspondent object. I've created a listener for this hyperlink, but how can I understand, what hyperlink was clicked? I need to get at least ID of the record, to fill edit form with appropriate values. Maybe it is possible to get correspondent RowKey or something else?

put a link as one of the rows on the datatable DataTable, bind the dataTable to the backing bean,when the link is clicked an action method on the backing bean string edittable() is called.This mehod returns a row on the table.each row can then be interrogated by calling its fields i.e user.firstname ,user.lastname etc etc ...
bb
String edittable(){
dataitem= (user) dataTable.getrowdata
String fname = user.firstname;
}

Similar Messages

  • F4IF_INT_TABLE_VALUE_REQUEST - what line was selected from list displayed

    I am building an internal table and displaying it as search help using F4IF_INT_TABLE_VALUE_REQUEST.  How can I tell what line was selected from the search help?  Only one field is filled with the selection, but there are several other fields attached to this that I need in my program - but I can't tell which line was selected, and the one field is not enough information to use to get the record from the internal table.

    Hi,
    RETURN_TAB would have the selected values.
    FIELD_TAB will have the hit list fields.
    DYNPFLD_MAPPING will have the Assignment of the screen fields to the internal table.
    Regards,

  • Identifying which line was selected from a WebDynpro table

    Hi,
    can any one give me some advice, I've created a view which displays a table of filenames, which in fact are "LinkToAction" columns. The idea was that when a filename(LinkToAction) was selected, I could retrieve the appropriate file from the Applicatio server and Open the file in Excel or Save as Excel. My problem is, when I select a filename I don't know how to identify what line was selected in the table. Any advice would be great.
    Thanks,
    C

    Hi , Just identify its element which is lead selected and read attribut of that element .
    Have the code for the same
    DATA:
        node_nd_worlflow                    TYPE REF TO if_wd_context_node,
        elem_nd_worlflow                    TYPE REF TO if_wd_context_element,
        stru_nd_worlflow                    TYPE wd_this->element_nd_worlflow ,
        lead_selection_index                TYPE i,
        relation_no                         TYPE guid_32.
    navigate from <CONTEXT> to <ND_WORLFLOW> via lead selection
      node_nd_worlflow = wd_context->get_child_node( name = wd_this->wdctx_nd_worlflow ).
    @TODO handle not set lead selection
      IF ( node_nd_worlflow IS INITIAL ).
      ENDIF.
    get element via lead selection
      lead_selection_index = node_nd_worlflow->get_lead_selection_index( ).
      elem_nd_worlflow = node_nd_worlflow->get_element( index = lead_selection_index ).
    elem_nd_worlflow->get_static_attributes( IMPORTING static_attributes = stru_nd_worlflow ).
    Cheers
    Parry

  • C++ How to know what link is clicked on a Balloon tooltip after handle the TTN_LINKCLICK message

    switch (msg) {
    case WM_NOTIFY:
    NMHDR* nmhdr = (LPNMHDR)lparam;
    switch(nmhdr->code) {
    case TTN_LINKCLICK:
    <code>
    return TRUE;
    I'm able to trap the TTN_LINKCLICK notification. However I would like to retrieve the URL text link that was clicked.
    How to know what link is clicked on a Balloon tooltip after handle the TTN_LINKCLICK message ?
    MCunha

    Basically you don't know what link was clicked.  If you need more than one link, you may need to use a different UI element to display it, like a dialog or some sort of other popup window that you have control over.

  • Differentiate Next and Previous link click events in Table Region

    Hello,
    Is there a way to find out whether "Next" link or the "Previous" link was clicked in a Table region when the user tries to navigate to a different range set?
    Both "Next" and "Previous" links raise the event "goto". I need to manipulate the range start and range size of another VO. i.e., if Next was clicked I would want to increase the range start of another VO and If "Pevious" was clicked, I would want to decrease this range start.
    Thanks
    Raja

    Yes, this is clearly explained in dev guide, see Event Handling in table section in dev guide.
    --Mukul                                                                                                                                                                                                                           

  • BSP error when clicking on line item in SUS :Buffer table not up to date

    Hi Experts,
    I'm having a problem in SUS Portal. When i click on a line item of a PO to display the actual line item or see more details, i get a buffer table out of date error. I saw a thread with a similar issue where it says problem resolved but haven't had any luck getting a response from the poster, so I'm putting this question out there to everyone.
    Related Post
    Buffer table not up to date in SUS
    More details on error...
    Exception Class CX_BBP_PD_ABORT
    Error Name 
    Program SAPLBBP_PDH
    Include LBBP_PDHU08
    Line 81 
    Long text Buffer table not up-to-date {}
    Regards,
    JD
    Edited by: julian.k. drummond on Apr 13, 2010 6:46 PM

    Hi Julian,
    Please give the system some time and try again. It should work.
    Thanks
    Hari

  • Why do I have to click 'Open' to open an application or document,  when previously in Tiger, all I had to do was click on the line or image in Flow?

    I've only had OSX 10.8.2 this last month, but I've found that whenever I want to open a document, I have to click 'Open' in 'Perform tasks with the selected item' function (The gearwheel with dropdown arrow). When I had Tiger, all I had to do was click on the document and it would open. Am I missing something
    that would make my experience with Mountain Lion simpler?

    Hi sig, I was only referring to flow because that is just an alternative use to clicking on the line that the document shows on in either line view, but since asking the question, I have discovered that what I was missing was to double click on the line and the document opened.

  • The stills in my movie project do not respond when I try to edit their "duration" I change it  the clip inspector and click done, but when I exit clip inspector , it reverts back to what it was prior to my trying to change it?

    The stills in my i movie project will not allow me to edit the duration time. I change it in the clip inspector, but when I click done, it just reverts back to what it was prior to my attempt to change it?

    Hi There,
    I tried your workflow and some how I am not able to see your issue.
    - Will it be possible for you to share your project(where-in you always see this issue) with us. You can upload your project and send the link to maanand (at the rate of ) adobe (dot) com.
    - If sharing of project isn' t possible then please share the project details such as no of slides, objects etc.
    -Manish
    blogs.adobe.com/captivate

  • Identify What was Clicked

    I have a click event listener on a group component. I'm trying to figure out if a label was clicked or anywhere else in the group was clicked. The event.currentTarget is just returning the group in all instances.
    I originally had a click event set on the label and a click event on the group, but I end up with two events. Since the click event on the label is designed to remove the Group from display, remove event listeners, etc., the second click even then throws an error, because the Group no longer exists.
    The code below should give you a good idea as to what I am trying to do. Currently the groupClick() function will throw an error. I typed in in this way to explain what I am trying to accomplish.
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Specify the root tag and namespace. -->
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
    height="200" width="200" click="groupClick(event)">
    <fx:Script>
      <![CDATA[
       import flash.events.MouseEvent;
       private function groupClick(event:MouseEvent):void {
                   // Do this if clicking anywhere that is NOT on the closeX label
                   this.parentDocument.openGroupList.selectedIndex = this.parentDocument.openGroupListAC.getItemIndex(this as Group);
                   this.parentDocument.openGroupListClick();
                   // Do this if clicking on the closeX label
                   this.removeEventListener(MouseEvent.MOUSE_MOVE, this.parentDocument.mouseMoveHandler);
                   this.parentDocument.openGroupListAC.removeItemAt(this.parentDocument.openGroupListAC.getI temIndex(this as Group));  
       ]]>
      </fx:Script>
    <s:Label top="7" right="7" text="X" id="closeX" fontSize="14" color="0xffffff" buttonMode="true" useHandCursor="true"/>
    </s:Group>
    I could use:
    if (String(event.target).indexOf('closeX') > 0) {
                   this.removeEventListener(MouseEvent.MOUSE_MOVE, this.parentDocument.mouseMoveHandler);
                   this.parentDocument.openGroupListAC.removeItemAt(this.parentDocument.openGroupListAC.getI temIndex(this as Group));
    else { ....
    That works, but string comparisons seem rather inefficient. If someone has a better way, I'd like to know!!
    Message was edited by: JFillman

    Event.currentTarget is the object you called addEventListener on.
    Event.target is the original dispatcher of the event.  For bubbling events, it can be some child object, but some objects like Label may not be mouse targets.
    -Alex

  • How to Reference What Was Clicked in a TileList using an ItemRenderer

    Hi,
    I've got a Tilelist and I'm using an ItemRenderer, which is a Button.
    I don't understand how to reference what was clicked. So, if the first tile (which is the first Obect) is clicked, how do I know that that particular one was clicked.
    <mx:TileList 
        id="myTL"
        dataProvider="{myAC}"
        width="400"
            height="400"
            columnCount="2"
            rowCount="2" />
    <mx:ArrayCollection id="myAC">
        <mx:Array>
        <mx:Object id="first" label="1" />
        <mx:Object label="2" />
        <mx:Object label="3" />
        <mx:Object label="4" />
        </mx:Array>
    </mx:ArrayCollection>
    ItemRenderer:
    <mx:Button xmlns:mx="http://www.adobe.com/2006/mxml"
    click="Alert.show( 'This was Clicked')">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    ]]>
    </mx:Script>
    </mx:Button>
    Thank you.
    -Laxmidi

    Hi Laxmidi,
    Using the itemClick event you can acheive this using the event Object. Check the sample code below:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.events.ListEvent; 
    import mx.controls.List; 
    import mx.controls.Alert; 
    import mx.events.ItemClickEvent; 
    private function onItemClick(event:ListEvent):void
    var strAlert:String = "Item Row Index Clicked : " + event.rowIndex + "\n";strAlert +=
    "Item Column Index Clicked : " + event.columnIndex + "\n";Alert.show(strAlert);
    ]]>
    </mx:Script>
    <mx:TileList id="myTL" dataProvider="{myAC}" itemClick="onItemClick(event)" width="400" height="400" columnCount="2" rowCount="2">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" click="Alert.show( 'This was Clicked')">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;]]>
    </mx:Script>
    </mx:Button>
    </mx:Component>
    </mx:itemRenderer>
    </mx:TileList>
    <mx:ArrayCollection id="myAC">
    <mx:Array>
    <mx:Object id="first" label="1" />
    <mx:Object label="2" />
    <mx:Object label="3" />
     <mx:Object label="4" />
     </mx:Array>
     </mx:ArrayCollection>
     </mx:Application>
    You can also try this by writing the Click event on the Button in the TileList itemRenderer as well where you can access easily the data of the itemClicked easily using the data Object.
    Thanks,
    Bhasker

  • My keychains haven't been working so I deleted something and I forgot what it was

    My keychains haven't been working so I deleted something and I forgot what it was, but it was obviously something big and now my mac is saying that it cannot find a place to store a keychain or there is no keychain available or something along those lines. I need help with this problem ASAP. This is how this problem started:
    1) A couple days ago i changed my password and turned my computer off.
    2) Today I powered up my mac and it says "This application would like to use keychains please enter your keychain login."
    3) I didn't know what the password was so I went on Safari and the messages kept popping up.
    4) I went on Safari typed in my problem and it came up with a question similar to mine on an apple webpage.
    5) I clicked the webpage and it was telling me these steps to follow to make the pop up messages stop and how to reset the keychain login password
    6) I followed the steps and one of the steps were to delete something so i did
    7) I then tried to reset my default keychain but it said "This specified keychain could not be found"
    8) so i got worried and restarted my computer and it still had the pop ups and i had to relog into my account.
    9) I got relogged into my account and the messages kept popping up.
    So now i come to you all smart mac users asking for your help and ASAP. Please help me I don't know what i did and i want my mac back to the way it was.
    HELP ME!!!! Answer ASAP PLEASE I NEED YOU SMART PEOPLE!!!!!

    Hello Chewey
    Best thing to do here would be to reset your keychain to factory default. I’ll explain below. But first let me explain the consequences: doing the action below means that your iMac will forget your passwords until you enter them again once more. Think email passwords, wifi passwords, website passwords etc. You don’t have to change all these passwords, you will have to simply enter them once more, so hopefully you either know them by heart or wrote them down in a safe place at one point.
    Either way, I think at this point you have little choice, as your description makes me think your keychain is completely broken anyway unfortunately.
    So here we go:
    1/ click on the Finder and locate the menu called “go” in the upper left corner of your computer display. For reference, this will be somewhere to the right of the classic -menu. Once found, click on it and select: “Go To Folder”
    2/ Type the line below in the box that appears, including the ~ (or copy-paste it from here of course) and click the [GO]-button.
    ~/library/
    3/ Now the Finder will enter a folder with a lot of technical-looking folders. Scroll around until you find the folder called “Keychains” Move this entire folder - with contents and all - to the trash.
    4/ Once trashed (you don’t have to empty the trash if you don’t want to) restart your computer via:  > restart. If this doesn’t work (might happen if a lot of password prompts are hanging around for example) just forcefully restart it this once.
    Your issue should be solved and you’re now left with the slight chore of re-entering your passwords one-by-one as your computer asks for them.  

  • I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

    I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".
    I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:
    Harry
    Ron
    Hermione
    Hagrid
    Albus
    NOTE: Each line of text has a small icon to the left of the text.
    It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that
    doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :)
    Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:
    Harry Harry
    Ron Ron
    Hermione Hermione
    Hagrid Hagrid
    Albus Albus
    Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.
    Note: I have done this operation several times before, and have never seen this occur before.
    Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.)
    When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.
    Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.
    I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=
    Below is a sample of what the source HTML looks like:
    &lt;a class="lnk" target="_blank" href="http://details.aspx?id=Harry">
    &lt;img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
    &lt;span>Harry&lt;/span>&lt;/a>
    <br/>
    (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)
    To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

    Try:
    *Extended Copy Menu (fix version): https://addons.mozilla.org/firefox/addon/extended-copy-menu-fix-vers/

  • Which row was clicked in an SQL Query (updateable report)?

    I have an application with a report based on an SQL Query (PL/SQL function ...) defined on the Global Page.
    On the pages where the report is used, I want to click in a particular column (TCKT_ID) and pass the values in that row to another page for processing.
    Things I would like to know:
    1) How to determine which row was clicked?  The column is TCKT_ID and it is used as a link to another page.  The SQLis a non-trivial (for me!) join of tables.
    2) How to refer to the values of the other columns in that row?  Because I format with "div," the columns are named -- no "f02", "f03", etc.
    3) How to pass multiple values (ENAME, JOB, MGR, SAL, COMM) to the target page?  You might ask: Why not just re-query for the data using a unique key.  Splendid idea, but the unique key is four columns so I still need some way to pass these four values to have that unique key.
    I've constructed a "pretty close" example of the situation here:
    WS APEX_EXAMPLES_01
    demo / demo
    Application: Row Info  10782  - Page 0 has the report.  Page 1 displays it with a link (in red) to page 2.
    I think I can complete most of what I need if someone can just show me how to get, say, the ENAME of the row clicked on page 1, so I can use it to filter the query on page 2 to just this row clicked on page 1.
    Using <tt> </tt>, I tried to display the actual row from View -- Source of the real report I'm dealing with but it just comes out like this
    M - F
    MM_O_BD_DAILY.ctl (ftp D046)CMM_O_BD_DAILY.sh (ftp D046)17:15
    10JUN13 17:00:52
    10JUN13 17:00:53
    17:15
    10JUN13 17:00:52
    10JUN13 17:00:53
    17:00
    10JUN13 17:00:59
    10JUN13 17:01:00
    Y
    ARS003_TESTNBD

    I wonder if I'm not understanding something. This seems like a very simple thing to do without any "tricks"
    Take a look, I've modified the LINKING_NUMBER column on the p0 report.
    Basically, you just specify the fields you want to populate and their assignments.  I added 4 destination fields on p2 to receive the assignments.  Then you can do anything you want with them like modifying a report, etc...
    The only trick here is that in order to pass more than 3 items in the URL you need to change your link type from Page in this application to URL.  Then you can specify lost of items this way.
    Thanks
    -Jorge

  • How to handle double click in a table control?

    Hi,
    Can any one let me how to handle double click event in a table control in dialog programming?
    here i need to navigate to another screen when user double click on the table contols (emp number column).
    thanks in advance,
    PrasadBabu.

    to define double click in your table controlwhich is similar to 'PICK' function. Enable F2 in PF-status for this
    Table Control Question
    Check the above thread which was posted recently on SDN, please award points if found helpful

  • Line time series in pivot table

    How can I set pivot table chart to be from type 'Line time series'?

    Thanks, it is exactly what i was looking for:
    modifiying:
    <saw:view xsi:type="saw:pivotTableView" name="pivotTableView!1" rptViewVers="200510010">
    <saw:view xsi:type="saw:staticchart" chartPosition="only">
    <saw:template tid="charts/line.cxml"/>
    to:
    <saw:view xsi:type="saw:pivotTableView" name="pivotTableView!1" rptViewVers="200510010">
    <saw:view xsi:type="saw:staticchart" chartPosition="only">
    <saw:template tid="charts/*linetime*.cxml"/>

Maybe you are looking for

  • HTMLDB as Partner Application to TWO OID instances - Authentication Schemes

    For reasons I won't go into here, we have TWO Oracle OID/SSO instances running - independently. I am interested in having HTMLDB / APEX applications capable of authenticate against either one. (one at a time, but on the same engine installation) We h

  • Multiple jar files from different locations

    Hello, I am having an applet that access code from two different jar files. Of them one is a common jar file for many applets. So I couldn't place it in the local dir as that of the applet's html. I am not using any web server.      Just to give you

  • How to download list item attachment from display.aspx

    Im uploading documents to list item in list by using file upload control. Now I should download that file. I can able to insert documents into list item in attachment column which is predefined but am how can I download the attachments by clicking on

  • HT5318 OS X 10.7.4  Can't get iTunes (10.6.3) to update with software update.

    Says file can not be verified or was corrupted during download.  Nothing else wrong.  1st generation intel iMac.

  • IBook G4 with FCP 3.0

    I have been runniung FCP3.0 quite successfully on the little white IBook G3. It is getting a bit old and I am considering purchasing an IBook G$ 14" screen. I heard somewhere along the way that this G4 will NOT run FCP 3.0 and it will be necessarry t