Insert the value of a column in the report in a page with JavaScript element - 2?

Hi guys,.

As explained here:
http://jholoman.WordPress.com/2012/02/26/Apex-4-1-page-items-to-submit/

We have two reports, sources of the region including:

Select * from dept
and
Select * from emp where deptno =: p1_deptno

IN report of the departments link attributes, we use this script to set the value of the point P1_deptno
onclick = "$s ('P1_DEPTNO', #DEPTNO #); return false; "
In the report used region, on the article Page to submit, we put: P1_DEPTNO

Then, we use a dynamic action to refresh the report used (she should get updated when the value of P1_deptno). where it is supposed to show the employees of a specific Department:

But I have failed to do... You can pls, take a look:

http://theexecutivetowers.info:8282 / apex
workspace: opener
user: fat
PWD: fat

Kind regards
I use apex 4.1 on win 2008 Server. listener 1.1.3 deployed on glassfish 3.1

I do not have your pencil link to work. This column did not assess the value of the #DEPARTMENT_NAME column.
Who estimated that:
OnClick = "$s ('P1_DEPARTMENT_ID', #DEPARTMENT_ID #); return false; »

as opposed to
OnClick = "$s ('P1_DEPARTMENT_ID', 10); return false; »

I got your columns Dept ID name and dept to become links by their implementation. You can see what I did there. I defined a function in the page header.

You also had a typing mistake in your SQL for employees (p1_dempartment_id) so I've corrected it to p1_department_id.

All together.

Tags: Database

Similar Questions

  • Insert value in a column of the report in a page with JavaScript element?

    I have a regular report. He holds a single column, and each line is clickable (as if it is a link). When you click on a line, a modal pop-up window appears (created by the use of JavaScript).

    What I want is that when I click on a line, the value of the line I've selected is inserted in a page element. I want to use JavaScript so that I can do this dynamically, without refreshing the page.

    So if this column name is #TEMPLATEID #, then I want a page element (say P24_TEMPID) to get the value of the templateid some selected line.
    The function to open the modal is named OpenForm, I'd like to be able to write the code to insert the value in the page element that you want to be in this same function.

    How can I write this in JavaScript?

    Hello

    You cannot use surrogate column #MEALTYPEID # in the header of the page JavaScript. How APEX know value of line witch who is?
    Pass the two values of the column as a parameter
    JavaScript in the HTML page header

    function openForm(pTemplateId,pMealTypeId){
     $s('P24_TEMPLATEID', pTemplateId);
     $s('P24_MEALID', pMealTypeId);
     $('#ModalForm').dialog('open');
    } 
    

    Call JavaScript as

    javascript:openform('#FOODTEMPLATEID#','#MEALTYPEID#');
    

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to dynamically change the value of a column in a report

    Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?

    970829 wrote:

    Please update your forum profile with a real handle instead of '970829 '.

    Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?

    Not really clear exactly what it is you are trying to reach. You want to replace the value of a column in the report with the value of a page element? If so, simply replace the column in the report with a reference to the required page elementquery:

    select
       empno
    , ename
    , job
    , :p2_sal sal -- Replace value of sal column with value of P2_SAL item
    from
       emp
    
  • Do not know how to insert the call to a page external python

    Hello world

    I was wondering if someone could help me out (?)

    I have an engine builder flash card, basically, an end user can upload an image of their choice, add text (if they want), and then have a personalized card printed for them. Think of a personalised gift (i.e. McDonalds GC). The company I work for as agreed that they want to be able to control the file size of the images uploaded outside. They want to be able to limit the minimum and maximum of the uploaded image sizes. This control is done outdoors, and the coding is already written (Python).

    Python developers have already been provided by the location of the Python page, I just need to insert the call within the ACE card builder. I have extremely limited experience with AS3, as will confirm a quick check of one of my posts. So I don't quite know how I can add this new call to the Python page. I say 'new' because there is already a call to another page of Python.

    I hope I explained myself properly and you understand what I'm looking for. If this is not the case please ask and I will be more then happy to further develop. I can also provide the pre-existing AS3 code if that helps. They are more than 1,000 lines of code, so I won't add it here and add to the length of this post, until it is absolutely necessary.

    Any help is greatly appreciated!

    Use the urlloader class to call executable server-side.

  • Insert the subform only after page 1

    Hello, working on my first LiveCycle form.  I would like to insert a subform (subform1) at the top of each page.  And insert subform2 only on page 1, subform1.  Y at - it somehow hide subform2 if the page is not equal to 1?  Thank you.

    There may be a better way to do it, but something that would work is the brand a master page for the first page with an appearance by max page 1 and then put all the other pages on another master page.

  • rerun a report without resetting page query other elements on the page

    APEX - 4
    Version of DB - 10 g
    Web - OHS server architecture
    Browser - IE8
    Theme - 5

    Hello

    I have an interactive report that I have added a list of selection upwards of, when someone chooses something from the list I want this value must be used to rerun the query in the report, so I created a dynamic action to submit the page when the selection list is changed, but I want only the data in the report to reset , not the list of selection at the top of the page, how can I force the query behind the report to relaunch, but does not affect anything else on the page?

    Thanks in advance for any help.

    Hello

    What you can do, have select the list with "redirect & set value" and use this selection list in your query as a variable binding and set a condition on this part of the report to only show when your selection list is not null.

    Thank you
    Tauceef

  • How can I control the spacing on a page with several media files?

    I'm trying to display a page with several Shockway files, and I can't have their space on the page - they all end up in a field, crushing the titles.

    I tried to put them in a table, tried several ways of spacing (forcing of blank lines, etc.), but nothing seems to make a difference. Here's what it looks like:

    space-error.jpg

    Here is the code I use:

    <!-beginning of the list of audio files->

    < table width = "370" border = "1" cellspacing = "2" cellpadding = "2" >
    < b >
    < td > < h6 > The incarnate Orientation of way
    < / h6 > < table >
    < /tr >
    < b >
    < td > < div id = "html0" style = "left: 120;" top: 600; Width: 503; height: 132, position: absolute; z index: 4082; "margin: 1px" >

    < p >
    < script type = "text/javascript" >
    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0, 0', 'widt h' ', ' 230 ', ' height', ' 130', 'align', 'medium', 'src', 'mp3ss126d', 'quality', 'best', 'wmode', 'trans parent', 'bgcolor', ' #000000 ', 'loop', 'true', "pluginspage",'http://www.macromedia.com/shockwa ve/download/index.cgi? ") P1_Prod_Version = ShockwaveFlash film ',' mp3ss126d ',''); End AC code
    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0,0" width = "230" height = "130" align = "middle" >
    < param name = "movie" value = "mp3ss126d.swf" / > "
    < param name = "quality" value = "best" / >
    < param name = 'wmode' value = 'transparent' / >
    < param name = "bgcolor" value = "#000000" / >
    < param name = "loop" value = "true" / >
    < embed src = "mp3ss126d.swf" quality = "best" wmode = "transparent" bgcolor = "#000000" loop = "true" width = "230" height = "130" type = "application/x-shockwave-flash" pluginspage = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align = "middle" > < / embed > ""
    < / object > < / noscript >
    < /p >
    < / div > < table >
    < /tr > < / table >

    < table width = "370" border = "1" cellspacing = "2" cellpadding = "2" >
    < b >
    < td > < h6 > The Way embodied - workshop n ° 2 < / h6 > < table >
    < /tr >
    < b >
    < td > < div id = "html2" style = "left: 120;" top: 750; width: 510; height: 132, position: absolute; z index: 4083; "margin: 1px" >

    < p >
    < script type = "text/javascript" >
    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0, 0', 'widt h' ', ' 230 ', ' height', ' 130', 'align', 'medium', 'src', 'mp3ss127d', 'quality', 'best', 'wmode', 'trans parent', 'bgcolor', ' #000000 ', 'loop', 'true', "pluginspage",'http://www.macromedia.com/shockwa ve/download/index.cgi? ") P1_Prod_Version = ShockwaveFlash film ',' mp3ss127d ',''); End AC code
    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0,0" width = "230" height = "130" align = "middle" >
    < param name = "movie" value = "mp3ss127d.swf" / > "
    < param name = "quality" value = "best" / >
    < param name = 'wmode' value = 'transparent' / >
    < param name = "bgcolor" value = "#000000" / >
    < param name = "loop" value = "true" / >
    < embed src = "mp3ss127d.swf" quality = "best" wmode = "transparent" bgcolor = "#000000" loop = "true" width = "230" height = "130" type = "application/x-shockwave-flash" pluginspage = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align = "absmiddle" > < / embed > ""
    < / object > < / noscript >
    < /p >
    < / div > < table >
    < /tr > < / table >

    < table width = "370" border = "1" cellspacing = "2" cellpadding = "2" >
    < b >
    < td > < h6 > The Way embodied - workshop n ° 3 < / h6 > < table >
    < /tr >
    < b >
    < td > < div id = "html3" style = "left: 120;" top: 900; width: 515; height: 132, position: absolute; z index: 4084; "margin: 1px" >
    < p >
    < script type = "text/javascript" >
    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0, 0', 'widt h' ', ' 230 ', ' height', ' 130', 'align', 'medium', 'src', 'mp3ss128d', 'quality', 'best', 'wmode', 'trans parent', 'bgcolor', ' #000000 ', 'loop', 'true', "pluginspage",'http://www.macromedia.com/shockwa ve/download/index.cgi? ") P1_Prod_Version = ShockwaveFlash film ',' mp3ss128d ',''); End AC code
    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0,0" width = "230" height = "130" align = "middle" >
    < param name = "movie" value = "mp3ss128d.swf" / > "
    < param name = "quality" value = "best" / >
    < param name = 'wmode' value = 'transparent' / >
    < param name = "bgcolor" value = "#000000" / >
    < param name = "loop" value = "true" / >
    < embed src = "mp3ss128d.swf" quality = "best" wmode = "transparent" bgcolor = "#000000" loop = "true" width = "230" height = "130" type = "application/x-shockwave-flash" pluginspage = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align = "absmiddle" > ""
    < / embed >
    < / object > < / noscript >
    < /p >
    < / div >
    < table >
    < /tr > < / table >

    < table width = "370" border = "1" cellspacing = "2" cellpadding = "2" >
    < b >
    < td > < h6 > The Way embodied - workshop n ° 4 < / h6 > < table >
    < /tr >
    < b >
    < td > < div id = 'html4' style = "left: 120;" top: 1050; width: 509; height: 132, position: absolute; z index: 4085; "margin: 1px" >
    < p >
    < script type = "text/javascript" >
    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0, 0', 'widt h' ', ' 230 ', ' height', ' 130', 'align', 'medium', 'src', 'mp3ss129d', 'quality', 'best', 'wmode', 'trans parent', 'bgcolor', ' #000000 ', 'loop', 'true', "pluginspage",'http://www.macromedia.com/shockwa ve/download/index.cgi? ") P1_Prod_Version = ShockwaveFlash film ',' mp3ss129d ',''); End AC code
    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4, 0,0,0" width = "230" height = "130" align = "middle" >
    < param name = "movie" value = "mp3ss129d.swf" / > "
    < param name = "quality" value = "best" / >
    < param name = 'wmode' value = 'transparent' / >
    < param name = "bgcolor" value = "#000000" / >
    < param name = "loop" value = "true" / >
    < embed src = "mp3ss129d.swf" quality = "best" wmode = "transparent" bgcolor = "#000000" loop = "true" width = "230" height = "130" type = "application/x-shockwave-flash" pluginspage = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align = "absmiddle" > ""
    < / embed >
    < / object > < / noscript >

    < /p > < / div >
    < table >
    < /tr >

    < /table >

    Ugh,.

    the file:/// access path points to the files on your local hard drive that no one can see it but you!

    Hans-Günter

  • Refresh the report SQL (Send Page element)

    I want to add a lookup field in a SQL report. I have something like this
    SELECT * FROM emp
    WHERE  emp_no  LIKE  :P1_SEARCH || '%'
    I want to make the asynchronous search on KeyPress. The problem is that a SQL report is not a ' submit: 'attribute as an interactive report. "
    So after I refresh the report:
    $a_report($x('P1_REPORT_ID').value,'1','10','100');
    The report is refreshing (the icon of circle on the top of the screen) but nothing changes cause the: P1_SEARCH supports.

    How can I submit a JS page element?

    Greetings from King,
    Cearnau Dan

    PS: I use 4 APEX and by using dynamic measurements, it is the same as the Javascript call. (still does not submit the: point P1_SEARCH)

    Hello

    Place your footer area

    
    

    And create processes on demand MODEL

    htp.prn('OK');
    

    Kind regards
    Jari

    Published by: jarola December 19, 2010 14:40
    typo

    Published by: jarola December 19, 2010 14:46

    Another typo corrected from code.

    I did fact sample
    https://Apex.Oracle.com/pls/OTN/f?p=40323:78

  • to print the report in separate pages

    Hi all

    I have an oracle 6i purchase invoice report

    in this report, we can provide a series of numbers to print as purchase bill as

    of the invoice
    to invoice

    for example if I give 5 invoice
    and Bill 10
    It prints 5-10

    That is to say
    Purchase Act No. 5
    amount kwd 56
    --------------------------------------------------------------------------------------------------------------------
    Voucher number 6 purchase invoice
    amount kwd 64
    -------------------------------------------------------------------------------------------------------------------

    like that up to 10
    but almost 3 good numbers appear on the same page

    Can I have the purchase invoice for each coupon on a new page number

    I tried all the paletter property: Print object etc.
    doesn't seem to work :(

    I would be grateful if someone could help me in this issue

    Thank you

    Hello

    The Group of high level in the report will be to have Bill No.

    For the Frame repeating respective whose Source is the high level group of the query which will include no. invoice value Maximum records per Page 1.

    I hope this helps.

    Best regards

  • Unable to turn on the window Defender, even after that I click on activate the defender of the window. THA page with the tool does not appear...

    Unable to turn on the window Defender, even after that I click on activate the defender of the window on my window vista home premium... The page with the tool does not appear...

    If you have
    one of the following AV, antivirus, programs installed, it will stop your
    Windows Defender. Purpose of these AVs have their own advocates. 2 defenders
    on the same machine will create conflicts.
    Bottom line: it's ok.
    It's normal.
    List of AVs which will stop Windows Defender

    Norton
    McAfee
    AVG
    Microsoft Security
    Essentials

    If you do not have the
    above AV programs, here's how to do to restart Windows Defender:

    Start button > in the search box, type Services > press the Enter key > scroll to find Windows Defender, click on it >...
    topic status , it must be said... Has begun
    under Startup Type, it must be said... Automatic
    If it does not say that, right click on Windows
    Defender > click Properties > to
    Startup type, click on the pointer to the right and select automatic
    to the service status, click Start
    Click OK when finished.

  • I connected to my computer and towards the high jumps "Problem reports and solution" page with a problem. It says "unable to diagnose? fix network problems"has not reported.

    The problem is in "Network Diagnostics Framework V2" Microsoft provider, and the OwnerHC is WinInetHelperClass. Files that describe it are: Eventlog.etl, which I did not open as my security system said it could be a virus and opening may harm my computer. There are a lot other categories and numbers on the report too, but I didn't know if I should include those. Help? Also, I can't install Adobe Flash Player, but I tried all night last night, without success. I can post a copy of the report, but I'm afraid I might give too much information that could come back and bite me in the yoohoo. Safety information that hackers live. Thank you.

    Hi amal.

    I couldn't figure out how to go in safe mode. Then I went to the event viewer and crossed logs and couldn't find the one I got. As sson as I can I'll add it to this topic.

    When I install Falsh Player, it goes through the installation process, then disappears when I try to pull up. Not in the files on the desktop, nowhere to be found. Then I download the uninstall wizard, even though I have no idea if it was installed, then uninstall it. After the uninstall is complete, it says "Uninstall successful" or something to that effect. That if, I try to re install the same. He has done several times and abandoned.

    So, it's the situation. Sorry it took me so long to get back to you. I appreciated your quick response however. I always have problems, but I used the Microsoft Mr. Fix, and I did not have error messages since then.

    Thank you

    Mary

  • Refresh the report to modal page

    Hello

    I use Apex 5 and with a modal page, I'm not be able to refresh the report that calls this page.

    • I have a region to report on a regular page.
    • I add a button to call the modal page.
    • I record my data, I click on save and return to the page of the appellant.

    My report is not updated. If I create a 'classic form on a page with the report' and the form is modal, when I return to the report, the data is refreshed.

    What should I do to refresh the data?

    Thank you.

    Hello

    on your calling page that contains the report, add dynamic action on the button (or region) who listens to the event "dialog closed." As an action we "Refresh" and indicate your area of report.

    As soon as your modal dialog box is closed, this event will be raised in the calling page and your report will cool off. If you look at our sample Application database, you will find several examples of using this technique.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • Auto scroll to the next part of page with mousewheel

    How can I get an effect of scrolling like on this Web site: www.wazala.com?

    Here, I need only to scroll with the mouse wheel and it automatically takes me to the next part of the page, without clicking on the anchor points.

    In Muse I could only somewhat simulate this, but using clickable links to the anchors.

    I don't want to use clickable anchors, only the mousewheel.

    I want to rebuild is something like this:

    http://pexetothemes.com/demos/story_wp/#1

    Here, the effect of scrolling is used too, but also photos are all full-screen. If I add the fullscreen-diashow-widget, that it doesn't let me scroll vertically to the next photo, as in the link above, also it only changes the image, but I can't scroll down to see the rest of the content of the Web page.

    So, how do these effects:

    -Make scrolling with mousewheel and get off at defined place

    -How to create this effect, where I scrolling with mousewheel and puts not only the image full screen, but also the text and content vertically with it?


    Does anyone have an idea? Thanks in advance.

    As the post I mentioned, said that's not possible with the current version, you can try to use a custom script to communicate with someone who can write for you.

    We invite you to add your suggestion to our section ideas for further consideration.

    Thank you

    Sanjit

  • Replace the message "No Items Found" with Javascript

    On this page http://www.sedonamagoretreat.org/test in the second box "Program Dates" in the sidebar on the right, I'm trying to set up a script that I found to replace the "No items found" message with a custom html file.

    The javascript is here: http://www.sedonamagoretreat.org/js/no-items-found.js and here is the html file that is used to replace the message: http://www.sedonamagoretreat.org/prog-dates-alternate-content.

    I'm sure this is an easy fix and I'm just on something... suggestions to get this script working are welcome - thanks!

    Linda

    Well Yes, it's easy to fix.  You are the javascript file requires jQuery is working properly and in the HEAD of your page or the page template you load the '/js/no-items-found.js' before calling jQuery.  Just move this SCRIPT reference in your page or your page template to the bottom of line to make AFTER the dismissal of javascript jQuery.

    Once correct you this error, it seems that the script is a not can prepare to deal with multiple instances of your web applications list.

  • Lists of category of FAQ on the same page with common elements behave oddly

    I have two lists of FAQ category on one page with some of the elements contained in the two lists (that is, they are assigned to these two categories). The two lists are active AJAX. When I click on the link for an article that appears on both lists, the details may end up on the list of "wrong". Is there anyway to fix this?

    OK sorry for the confusion!

    So what is happening here is to have an action click on which opens the div hidden that contains the answer to the FAQ, something like:

    The Show FAQ function calls the first div on the page with this id (this illustrates well why it's a bad habit two are duplicated on a page) that's why it always opens the first element. You have two options to avoid this problem:

    -run a script that changes the id of the div for the first article, so that when you press the duplicate faq entry, it opens upwards and not the first.

    -load the 2nd category faq in an iframe

    Kind regards

    Alex

Maybe you are looking for