The text element values value when the user clicks a report line.

The text element values value when the user clicks a report line.

I have a report based on the EMP table and two elements P911_EMPNO, P911_DEPTNO. When I click on one of the lines the EMPNO and DEPTNO is copied to the text elements.
It works fine if I leave the EMPNO and DEPTNO as SHOW report, but if I then these clear values are not retrieved the report form (my javascript is very limited).

I need a method to retrieve the data hidden in the report and display in the text without the reposting of the page elements.

Also, would be nice if the line was highlighted until another line is clicked but especially is my priority.

Elements
P911_EMPNO, P911_DEPTNO (field of disabled text, saves the State)

Report
Select * from emp using the model of report below.

Custom model.
standard_report_cust_P330-a copy of the standard report with a change model.
BEFORE EACH LINE
< tr onclick = "selectRow (this);" #HIGHLIGHT_ROW # >


* Javascript in the Page Header.*
< script language = "JavaScript1.1" type = "text/javascript" >
function selectRow (p_tr)
{
var l_deptno = p_tr.childNodes [8] .innerHTML;
var l_empno = p_tr.childNodes [1] .innerHTML;
html_GetElement ('P911_DEPTNO'). Value = l_deptno;
html_GetElement ('P911_EMPNO'). Value = l_empno;
}
< /script >

If anyone has any ideas. Thanks, Pete

Hello

When you use this type of report model, you actually control on where the column values are used - and they can be used several times.

For example, a setting of 'Model line 1' for one such model could be:

<tr>
<td class="c1">#1#</td>
<td class="c2">#2#</td>
<td class="c2">#3#</td>
<td class="c2">#4#</td>
<td class="c3">#5#</td>
</tr>

#1 # fact refers to the data in the first column, #2 # for the second and so on. So you can do:

<tr onclick="javascript:dosomething('#1#','#2#');">
<td class="c1">#1#</td>
<td class="c2">#2#</td>
<td class="c2">#3#</td>
<td class="c3">#5#</td>
</tr>

For example, by clicking on the line would trigger the dosomething() function and pass in that the values of the first and second columns. Also note that the 4 # does not appear now - this column is 'hidden' (but note that you must check the box to show the column)

Andy

Tags: Database

Similar Questions

  • [ADF, JDev12.1.3] af:table: how to perform certain actions when the user clicks on a line?

    Hallo,

    When a line of my af:table is selected, I'd like to perform actions; in particular, I have to toggle a button based on the values of a group of fields to the selected line.

    What are the possible approaches to achieve this?

    Thank you

    Federico

    Use a generic selection listener (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf) and call your actions here before or after the selection of the new current line.

    Timo

  • Report - Warning Message When the user clicks on the link with the value 0

    Hello

    I have a report with several areas, for example. Year, high priority project manager, County of medium priority project, project manager of low priority.
    I used column attributes to bind the data of the report on page 22.



    Now, some cells in the report have 0. Isn't it possible that when the user clicks on 0 binding doesn't to page 22, but see the window alert javascript indicating no data.


    Any help will be much appreciated.


    Kind regards
    Shijesh

    You can take a look at the following page

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:228

    to see how this is possible.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Make the text appear in the box when the user clicks on the part of an image

    Is there an easy way to do this in the Muse?

    (1) do different areas of an image map.

    (2) automatically type the letter 'A' in a text box when the user clicks the area 'A' and so on.

    Thank you!

    Essentially, you want a keyboard on the screen? This is not possible with the standard tools of Muse. It would be quite simple with Javascript, however.

    David

    Creative muse

  • How to make a text field required at run time when the user clicks on the box?

    I had a form, there are several checkboxes fields and the text associated with the check boxes. If the use clicks on the checkbox then partner

    text fields should become mandatory. I tried the change event and the click event of the boxes. There is error in the onChnage event and I got some odd results in the click event on. Sometimes, if the user clicks the check box, then for the 1st time the field is not required, then the user onclicks the box and when the user clicks the check box for the second time the field becomes necessary, but if I turns off the option highlight the field and selects the field becomes necessary even if the user onchecks I am totally confused! To add that I have also written an incorrect code always I reached the goal? How it can be possible. I write the codes below, please help me because I am working under a deadline from the client.

    onChange event:

    var = this.boundItem (xfa.event.newText) newVal;
    if(newVal == 0)
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = "disabled";
    }
    on the other
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = 'error ';
    }*/

    For the onClick event:

    var a = xfa.resolveNode ("form1..") RawValue Subform0.Subform1.Subform9.Subform10.Table48.row2.CostItemRecovere d_OnlyEnergyCharges");
    App.Alert (a);
    if(a == 0)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = 'error ';
    }
    if(a == 1)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = "disabled";
    }

    Please help someone!

    Hello

    You may need this resolved at this point, but here are a few tips.

    An example of a loop in a dynamic array is here: Re: how to make invisible/visible or hidden columns with checkbox?

    You are usually not necessary to resolve the nodes, especially when the script object is in the same table as the target objects.

    For example if the table was not static your script could be simplified:

    if (this.rawValue == "1")  // this object is in Row2
    {
         Row4.ComplianceCheck_L1_1.mandatory= "error";
    ...
    }
    

    However because you will be to loop through all the rows in the table repeatable instances / then you need to resolve the nodes. Take a look at the example above.

    In your script, you have to Row8 Row4. I don't know if this is repeatable or just some of them. If we take Row4 as being repetitive, then you can apply the following to all repeatable lines.

    var vRow4 = Table48._Row4.count;
    console.println("Row4: " + vRow4); // You can delete this or comment it out after testing
    
    if (this.rawValue == "1")  // this object is in Row2
    {
         for (var i=0; i
    

    I have not tested, but it should be close to work.

    Good luck

    Niall

  • Place a text created dynamically when the user clicks on the ground

    I have a simple drawing program. I want to add a text field where the user clicks on the Whiteboard. Here is the code

    function writeText(e:MouseEvent):void

    {

    var textfield = new TextField();

    board.addChild (textfield);

    TextField.x = mouseX;

    TextField.y = mouseY;

    textfield.defaultTextFormat = textformat;

    textfield.setTextFormat (textformat);

    textfield.embedFonts = true;

    textfield.antiAliasType = AntiAliasType.ADVANCED;

    TextField.type = TextFieldType.INPUT;

    textfield.autoSize = TextFieldAutoSize.LEFT;

    TextField.Selectable = false;

    TextField.Width = 300;

    textfield.wordWrap = true;

    textfield.textColor = activeColor;

    Board.Focus = textfield;

    }

    TextField.x = mouseX and textfield.y = mouseY place a texfield on-screen. But, you have to click two places to make it work; essentially to an x and y location with the location being lower and to the right of the location x. by clicking on any other way has unpredictable results. What Miss me? Thank you, Jon

    If the Board of Directors has the mouse listener, you must use e.localX, e.localY.

    I don't see where you're awarding text or htmlText

    You probably want to enable the multiline property of your textfield object.

    and, you probably want to do something to manage the multiple clicks to have a way to control the created textfields.

  • How to get the user clicks SeriesName APEX 4.2 flash chart and defined on a hidden element?

    Hello

    I'm developing a graphic clickable flash of APEX, which should be linked to a specific set of data on another page using the SeriesName (clicked several sets of cards).

    (Returned by a function) sql for APEX chart is

    Select distinct null link, d. DNAME label
    , sum(e. SAL ) over (partition by e. ( DEPTNO salary ( )
    , sum(e. Comm ) over (partition by e. DEPTNO ) comm
    de d Dep. , emp e
    e. DEPTNO = d . DEPTNO

    Currently I am able to disply SeriesName (e.g. salary or Comm) on the 2D chart. This is done by including {% SeriesName} Custome XML.

    But I am unable to detect which series name, the user clicks on - pay is comm.  for example, I am not able to enter the name of the series clicked and set it to a hidden item (called P38_SERIES_NAME).  I have to use JavaScript to achieve this? If so, how?

    The reason why I want to use the unique sql is due to that I will have to call a function to return the dynamic and running sql code, I don't know how many series I. i.e. could be comm, average age, salary, bonus etc...

    What is the easiest way to achieve this?   I use APEX 4.2 and Oracle 11 g.

    Thanks for your advice.

    Concerning

    Susanna Su

    Susanna,

    What you experience is the difference between session state and the value of the element on the page. The URL you have is generated on the rendering of the page and use the value of current session state of the question right now. Then when the page is on the client side and that you set the value of the item through javascript this value is still next to the customer and not in session state. Put the value in session state would not matter, however, because the link has already been made. Your best option is to send the page, ensuring the correct value is set to session state and use a branch in present after the process to redirect the user to the correct page.

    I have also described this here: https://forums.oracle.com/message/11110579#11110579

  • How to trigger DA when the user clicks a button close the standard window

    Hello!

    Apex 5.0 & universal theme.

    I want to trigger some DA when the user clicks on the button indicated to my image (button close the standard window). In fact, I would like to pass a value of my hidden form IR back and refresh IR if value = 1 or don't refresh with another value.

    Is this possible?

    Thank you.

    close_form.png

    Hi Yava,

    Seems that you have chosen to add the event handler to the page parent (the one with the IR). I think it's best. This means that the code above does not apply.

    The dialogclose event and all other dialogue jQuery UI events are triggered in the dialog box to create a DA pull on the IR will not work (because the dialog box is outside the IRR while she bubbles it won't go through the SORTING). You must handle the event on the body. This works because the event propagates to the body. Set the Type to choose to be "jQuery Selector". JQuery Selector enter 'body' (without the quotes). The event you want to handle is a custom, event which means that this isn't one of those in the select list. For event, choose "Custom". Then enter Custom Event "dialogclose" (without the quotes). Now you have a DA who fires when * all * dialog closes. You may or may not need to get more selective than that. For action, you can use refresh as you do already.

    Kind regards

    -John

  • How to put in pause/playback my project when the user clicks?

    Hi all

    I'm working on a project using Cp4.

    My project plays automatically without user intervention.

    I need project to be suspended when the user clicks a clickbox running.

    I can break the project by adding a clickbox and applying the property ' to pause project until user clicks on

    But it must be a user interaction whether to pause or play.

    I use playback controls by hiding all the options to control playback bar red break and play option, but I need to pause the button inside the project.

    I dnt want to display playback controls by using the Table of contents.

    __________________________________________________________________

    I could find this content at http://help.adobe.com/en_US/Captivate/4.0/Using/WSCB934979-86BE-40d2-8BB8-A66956575988.htm l #WS8898B608-FC25-4439-BABC-3AD722144202

    ad.gif

    In this page, it clearly says that we can break the project if we set the value of the variable 'rdcmndPause' to 1.
    In this page, it clearly says that we can play the project on hold if we set the value of the variable 'rdcmndResume' to 1.

    But I applied the same values for these variables and tried to control my project its does not work.

    Kind regards

    Kartik.P

    Hello

    Maybe the link below will help?

    Click here to see

    See you soon... Rick

    Useful and practical links

    Begin to learn Captivate 5 times now! $29.95

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcererStone blog

    Captivate eBooks

  • Canceling a task of bpm when the user clicks Cancel

    I have a BPM process with a task that appears on a users workspace, the user needs to update a field on a screen (implementation of entry). The task has autocomplete, checked, so they do not have to manually click the next step in the task. When the user clicks the Cancel button, it seems to cancel the entire process, rather than just the task. Is there a way to do this?

    Brand

    That's the problem with the help of the ' entry' option for main task of the Interactive activity (the 'Cancel' button is not doing its job properly).

    Go with a screenflow. If you want to continue to use the "entry" for the Interactive task component call, be returned of course to have the named conditional transition 'Cancel' and the button of setting the value of the entry to be the predefined variable "result" (BPM object presentations normally use 'Cancel' - instructions Input need to 'Cancel').

    Dan

  • Can I re - open a dialog when a user clicks the Ok button?

    Hi all

    I would like to catch missing entry (selection of the menu drop-down) in an Illustrator scripted dialog box and return the user to the dialog box, as it was before he clicked on ok.

    Now the script logic goes in this direction:

    var windowResource = "dialog {------}.

    text: "Batch Converter,------."

    maximizeButton:true,------.

    assets: true\

    {resizable: true} ';

    var aDialog = new Window (windowResource);

    Add all sorts of UI elements

    [...]

    Display dialog box

    var returnValue = aDialog.show ();

    user clicked ok

    If (returnValue == 1) {}

    Search for user input

    -> reopen dialogue if there is something missing

    }

    the user clicks Cancel
    else {}

    aDialog.close ();

    }

    I really don't want to mess with the custom event handlers, just go back to the original dialog box seems the simplest and the easiest to use right now.

    Is it still possible?

    See you soon,.

    Mike

    Another method that I like is to disable the ok button until all the requirements.

    I just made some changes to W_J_T code to make it simple to see the differences

    function test() {
        var w = new Window("dialog", "Drop Down List");
        w.margins = 25;
        var txt = w.add("statictext", undefined, "Select A Drop Down Item:");
        var dropArray = [];
        for (var i = 1, l = 50; i < l; i++) {
            dropArray.push("Drop Down List Item = " + i);
        }
        var dropList = w.add('dropdownlist', undefined, dropArray);
        dropList.onChange = function() {
            if(dropList){
                okBtn.enabled = true;
            };
        }
        var okBtn = w.add('button', undefined, 'OK');
        okBtn.preferredSize = [200, 25];
        okBtn.enabled = false;
        okBtn.onClick = function() {
                w.close();
        }
        w.show();
    }
    test();
    
  • Is there a signal when the user clicks the overflow (3 points icon) on the actionbar button?

    Hello world

    Is there a signal when the user clicks the overflow (3 points icon) on the actionbar button? I would like to receive this signal (and signal when the overflow menu is closed) in order to modify the list of action items.

    Thank you very much

    -tom

    actionMenuVisualStateChanged is what you are looking for

  • Call the action when the user clicks on notification of hub

    I wish that my application to call directly when a user clicks on a notification of hub (as with BBM messages).

    Is it possible, or BBM is a special case?  Currently, I have it so there is a button 'open' on the notification of hub, but that is not optimal.

    No, it only is not supported today.

  • How to make only two columns as editable in five online when the user clicks a line using adf 12.1.3.

    Hello

    I displays a table on the screen. This table is read only during the initial page load. I want to do only two columns as editable on five in a row when the user clicks a line using adf 12.1.3.

    Is it possible in the adf. If possible how to handle this. Please help on this.

    For example, drop table editable Full and then replace rest inputText (components entry in general) with af:outoutText, everything except those two.

    And use the clickToEdit feature...?

  • Disable the first/previous/next/last buttons when the user clicks on the button "create".

    Hello

    I have a requirement to disable the first/previous/next/last buttons when the user clicks on the button "create". The must be enabled after the user clicks on the submit, and then the button "validate".

    Is this possible please?

    Thank you.

    Hello

    Using BC4J in the model layer? If so, you might use an EL to the property of disabled button. Something like

    
    

    Replace in the binding attribute on your page (preferably the primary key of your form attribute).

    Arun-

    Edit: Check out this blog for more information on this EL: https://blogs.oracle.com/adf/entry/highlighting_new_rows_in_adf

Maybe you are looking for