How to select a line of table on click using javascript?

I have an ADF table with some data. If the user clicks on a cell in the table, I want to do something for the whole line.

However, the event.getSource () method only gives me the column that was clicked.

How can I find the line using Javascript?

Hello

Try the approach given by frank at https://forums.oracle.com/thread/2205398

Tags: Java

Similar Questions

  • How to select the lines/odd table...

    How to select lines / odd in a table?
    Help, please.

    Published by: vaibhav on May 7, 2012 05:30

    This can be done by using the function mod like this:

    For even rows
    Select * from (select rownum rn, nom_table.* from tableName) where mod (rn, 2) = 0;

    For the odd lines
    Select * from (select rownum rn, nom_table.* from tableName) where mod (rn, 2) = 1;

  • How to select a line in the middle of a recordset?

    UserID answered QuestionID

    10 9 N
    10 8 N
    10-7 N
    10 6 N
    10 5
    10 4 Y
    10 1


    In the table sorted by QuestionID DESC, how can I select the first row from the bottom up with answer equals 'n'?

    In the example above would be:

    10 6 N

    I need to select that line and get the value of equal to 6 QuestionID.

    Right now I have:

    Select QuestionID
    of tblMap
    When answered = ' don't
    and ROWNUM = 1
    order by QuestionID CSA;

    This always tidy most of the top, that would be:

    10 9 N

    by reversing the sort in a sorted query under such as rownum 1 is the record of interest:

    select userid, questionid, answered
      from (select userid, questionid, answered
              from tblMap
             where answered='N'
             order by questionid ASC)
     where rownum=1
    
    USERID                 QUESTIONID             ANSWERED
    ---------------------- ---------------------- --------
    10                     6                      N        
    
    1 rows selected
    

    Published by: Sentinel July 8, 2009 13:53

  • selection of lines AF:table after sorting

    Hello

    If I select a line to an af:table and then to sort a column, the first line in the sorted table is selected.
    Is there a way to keep the selection while sorting?

    jdev versions:
    -11.1.1.4.
    -11.1.2.0.

    Edited by: Fortega January 25, 2012 0:47

    Please mention your version jdev 11g being ambiguous...

    A sorting table normally means that the query is executed again with the selected sorting criteria. It also means that the current line that you checked before disappeared and the first line is marked as the current line.
    You can save the key to the current line before the sort and place after sorting (using a managed bean).
    However, you should be aware of the impact:
    lets assume your table has 1000 rows and is sorted by Crescent after the default name column. Now select you the first line and click Descending in the same column. In this case the selected line will now be the last line. This line is not visible, then you need to scroll in the view with the effect that all the lines are read into memory. If you have 100000 lines that get worse (more memory and more time).

    Timo

  • How to select multiple lines of text (without selecting all the text) within a title? (Holding Cmd does not work)

    I need to select several lines of text (in the various sections of the text) within a title without selecting any text. Holding Cmd like you would in other applications does not work, and now Shift selects all. Does anyone have a solution?

    Thank you.

    YYou cannot select several segments of text in a text block.

  • How to get IMEI number with phonegap app by using Javascript?

    Hello

    I suffer on this the last 2 days to get the IMEI number in phonegap app by using javascript.

    I found all things related to Phonegap with Android, but I want to get the IMEI number with phonegap app by using javascript/JQuery according to requirement.

    Could you please give me the process step by step to get the IMEI number with phonegap app with javascript/JQuery?

    Thanks in advance.

    Thank you

    Jayaram

    You can use the cordova-plugin-device plugin for a UUID of the device (this api is the same on iOS, Android,...)

    This isn't exactly the same as the IMEI, but it is unique enough to identify the device, while protecting the privacy of the owner of the phone.

    If you need to get the IMEI, then google is your friend. This [1] was the first result when searching for "imei cordova.

    There's a good stack overflow article here [2] which has the disadvantage of using this value and encourage you to consider other ways to identify users, because users cannot trust your application if you ask for this info. Read the accepted answer.

    [1] GitHub - aquto/cordova-plugin-imei

    [2] http://stackoverflow.com/questions/1972381/how-to-get-the-devices-imei-esn-programmaticall y-android

  • How to get the line object table View

    Hello

    I use Jdev 11.1.1.7

    My requirement is, there are two ways I can get lines in my logic, you're based getFilteredRows (RowQualifier) and vo.executeQuery () - on a specific condition or I should consider first or later...

    getFilteredRows() returns the line [], I need to find a way to make [Row] of the View object properly after ececuteQuery() on the VO... When I use vo.getAllRowsInRange () which returns only a single line, but what iterate the VO even, I see that there is more than one line... How can he get all the range of the VO table?

    Thank you

    You can set the size of the field-1?

    ViewObjectImpl (Oracle ADF model and Business 10.1.2 API components reference)before calling getAllrowsinRange?

  • How to select multiple lines of text?

    I need to "BOLD" certain positions and instead of choosing one, then formatting, and then by selecting another, formatting, etc... is there a way to select/highlight several lines of text and apply formatting to each of them at the same time? The sections are separated by other lines of text, they are not continuous.

    Thank you for your help. I use Dreamweaver CS5.5.

    trailslady wrote:

    I can not properly explained. How can I physically select several strings of text with the cursor? Some applications allow you to hold the CTRL key, for example. DW offers a similar feature?

    You have to wait for one of the next versions of Dreamweaver when media becomes an integral part of the tools of coding or do as Nancy and I do, use brackets to the sides of Dreamweaver.

  • How to transfer a line of table (instance) from table1 to table2?

    Hello - I am an active user of the following Adobe LC designer but I'm getting into difficult (for me) territory regarding the javascript coding!

    My problem is the following: how to transfer an instance of array (lines) of the object table 1 to table 2?

    that is, there are 2 tables on a form and I want to click a button that removes the first line from Table1 and insert this same line (data intact) at the bottom of table 2

    the code I used below does not work! (it could be complete rubbish but, like miles off the mark)


    var oTransferInstance = form1.pg1.subformRow [0];
    var nIndexFrom = oTransferInstance.index;
    var nIndexTo = form1.pg2.subformRow.index + 1;

    Form1.PG1.subformRow.instanceManager.moveInstance (nIndexFrom, nIndexTo);

    Help, please! I'll be very grateful

    concerning

    David

    Sure, send it to [email protected] and include a descriptionof the question.

    Paul

  • How to select the lines whose value min on a specific column

    I have a query:

    Select

    m.X1,

    round (to_date (l.y1, ' dd/mm/yyyy hh: mi: SS AM')-m.x 2, 0) as numofdays

    Of

    Table 1 m,

    Table2 l

    where

    l.x3 = m.x3 and

    TO_DATE (l.y1, ' mm/dd/yyyy hh: mi: SS AM' ') > = TO_DATE('01012013','MMDDYYYY') and

      ... ;

    and I got this result table:

    x 1 (ID) NumOfDays
    0015

    001

    1000220033003140 °000566......

    several IDs have several values on the second column, I want to have only separate IDs with smaller "numofdays' like this:

    x 1 (ID) NumOfDays
    0015
    0022
    0031
    0040
    00566
    ......

    Any ideas?

    Hello

    The more general and more versatile way is a Request of Top - N:

    WITH got_r_num AS

    (

    Select

    m.X1,

    round (to_date (l.y1, ' dd/mm/yyyy hh: mi: SS AM')-m.x 2, 0) as numofdays

    ROW_NUMBER () OVER (PARTITION BY m.x1

    ORDER BY to_date (l.y1, ' mm/dd/yyyy hh: mi: SS AM' ')-m.x 2

    ) AS r_num

    Of

    Table 1 m,

    Table2 l

    where

    l.x3 = m.x3 and

    TO_DATE (l.y1, ' mm/dd/yyyy hh: mi: SS AM' ') > = TO_DATE('01012013','MMDDYYYY') and

    ...

    )

    SELECT x 1, numofdays

    OF got_r_num

    WHERE r_num = 1

    ;

    If you would care to post CREATE TABLE and INSERT statements for your sample data, then I could test it.

    Note that the subquery (got_r_num) is exactly what you have posted, only with a new column (r_num) added to the SELECT clause.

  • How to select a line in a picture of a document?

    How to value an entry in a picture of a document?

    Hmm strange. Try to re - set preferences by going to:

    Edit > preferences > General

    Click on the button to re - define prefs on the next launch.

    Then, close the program and reopen.

  • How to select an image (all black) describe the use of script

    Hi all

    We have thousands of clip art images to convert wmf to png. We need to apply a treatment to each image. We do this by selecting the black outline with contiguous offshore so it selects all the black. We then inverse the selection and apply the treatment to the remaining parts of the color of the image, leaving intact black. We can easily automate all steps except the first selection of black outline.

    Anyone have an idea how we can do this?

    If not do that in illustrator when we convert wmf to png and create layers it?

    Thank you.

    Here is an example of a mask created in a way that can be scripted without user intervention.

    The good news is it was easy to create a script that starts with a record of wmf files in subfolders and end with the converted png file is either in the same folder as the non-neurologique used to make the png or to a new folder while keeping the original folder structure.

    Now, it's just a matter of defining what measures to use to smooth an image. If you are happy with the mask of the sample, I can post a script for you to try on a subset of the files.

  • How to load several files DBF table 1 target using only 1 interface?

    Hello, I am a beginner in ODI and I have a problem.

    I have several DBF / Foxpro files that is stored in a directory like this:
    2010_10/account.dbf
    2010_11/account.dbf

    All DBF files have the same structure, but stored in a different folder (the folder name is < year > _ < month >)

    I managed to create an interface to load a DBF unique for the target table and the source table is hardcoded in the interface. Ideally, the interface will take place once a month.

    How can I use the same interface to load other DBF files?

    I know, if the data source is a text file, you can link the resource name to a variable, and the variable can be set to a file name. But I can't do since I use a JDBC driver to connect to the DBF file.

    Any help will be appreciated

    Hello

    I have no idea on the DBF files, yet...

    What is create a variable to build the 'months' and then pass this variable to OdiFileCopy, move this file to a specific directory. Then run your interface to load this file into your database. Once the work is successful, you can delete the file using OdiFileDelete (optional)

    Thank you
    Fati

  • Tables in InDesign using JavaScript

    I am fairly new to scripting and hoped someone could help me a table script InDesign. I already have the updated styles in place. What I need is some advice to apply styles to specific lines - so, application of styles to header and footer and application of style for the remaining lines. Any help would be much appreciated as I'm pulling what little hair I...

    See you soon

    Dave

    Dave,

    The key is that Table.rows has its own property .cells, a collection of only the cells in the same row. So, to adapt your code:

    using your version; I prefer return 0 if table not found

    function findTable (obj) {}

    While (obj.constructor.name! = 'Table') {}

    obj = obj.parent;

    If (obj.constructor.name == "Application") {}

    launch "could not find the table."

    }

    }

    return of items

    }

    var myTable = 0;

    If (app.documents.length > 0 & app.selection.length > 0)

    myTable = findTable(app.selection[0]);

    check at least enough lines for 1 row from the top, 1 body line, row 1 down

    If (myTable! = 0 & myTable.rows.length > = 3) {}

    remove all the rules; the INSET value 0

    myTable.cells.everyItem () .appliedCellStyle = "[None]";

    row of below format

    (don't forget the account of the lines uses 0-based)

    a = myTable.rows.length - 1;

    myTable.rows [a].cells.everyItem () .appliedCellStyle = "4.cell_body_last";

    format rows

    first = 1;

    last = myTable.rows.length - 2;

    for (a = first;<= last;="">

    myTable.rows [a].cells.everyItem () .appliedCellStyle = "3.cell_body";

    row of the top format

    a = 0;

    myTable.rows [a].cells.everyItem () .appliedCellStyle = "2.cell_header";

    }

    Hope this helps,
    Steve Caine
  • How to change the title for the alert box using javascript in Blackberry Z10?

    Hi all

    I developed 10 Blackberry webworks using the emulator to ripple and Blackberry Webworks SDK 1.0.4.11.In I use box alert and drop-down list in Javascript... When you use those Blackberry Z10... It displays the title for the alert "JavaScript Confirm" box and the "Select"dropdown list... So I want to change the title for these controls. Please me... Thanks in advance...

    Kind regards

    Marimuthu_P

    Alerts are native OS controls and you can not change the titles.

    You can use the WebWorks dialog API to create custom if dialog boxes:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.UI.dialog.html

Maybe you are looking for

  • Hello. My Thunderbird stopped working yesterday. Crashes

    It just hangs there, at the bend in the little blue wheel. Nothing works. When I try to close it, dialog box says "program does not. I when even close. That's all

  • Satellite P750 - webcam no longer works

    I have an a P750 for 6 months and one day when I'm going to use Skype webcam had stopped working.I had not been playing with the settings or make changes, so it just came out of the blue. I tried to reinstall the application webcam on Toshiba site, s

  • Which is the default value?

    When I go to devices and printers, I have a HPA3FEDE marked printer icon (HP photosmart plus B209a-metres) I also have a laptop icon; Named my PC name, when I click it it says HP Photosmart Plus B209a-m and shows the same as the icon of other print q

  • Desktop is not boots up

    So, I have a rather unusual type of a problem. My pc was working fine until yesterday when I stopped him and wanted to go back, he na not green light blinked, but it does not start. Then after a while I turned on it and he gave me 'beeps 9, REDS', he

  • Remote Desktop for the external IP address is no longer works

    Hello and thanks for your help. For months I could access my desktop from my laptop (via Remote Desktop) / Tablet (via PocketCloud), both inside and outside my network. Recently, the external IP address for my router has changed. As this happened, I