Problem running javascript in an interactive report

I have a page which opens a pop-up window. The pop-up window displays a standard report. I added a link to the column in the report so that the selected line will be passed back to the page that opened this popup. It is in the area of the column binding, target's URL and the URL is
JavaScript:passBack('#REGULATION_COMBO_CD#'); JavaScript:parentRefesh(); JavaScript:Window.Close();

It works very well. But since I want to be able to search the report in the pop-up window, I migrated this standard report with one interactive. The link in the column no longer works. It does not return the information or close this pop-up window. So, it looks like the javascript iis does not.

I tried to change the information in the link column in the interactive report box. Can I use the target page and the value of the item fields to transmit the information back to the calling page, but it does not have the javascript code to close this pop-up window.

Have I missed a place where to go the javascript code in an interactive report? APEX 3.1.1 Oracle 10g

Published by: mimi_jones on November 20, 2009 04:44

Published by: mimi_jones on November 20, 2009 08:55

Hello

Try to create a function javascript on your page and call rather than run all the code for the link

<javascript type="text/javascript">
function passbackAndClose(v)
{
 passBack(v);
 parentRefesh();
 window.close();
}
</javascript>

put this in the header HTML of your page popup.

Then change the link to:

#" onclick="javascript:passbackAndClose('#REGULATION_COMBO_CD#');

When you connect calls javascript, the browser is expected generally that each function to "return true;" when the function is finished. Usually, it's just supposed to, but sometimes you need to add this in your code.

Also - you parentRefesh()-, if it was parentRefresh()?

Andy

Tags: Database

Similar Questions

  • Problem with calculation on update interactive report

    Apex 3.2

    I have an interactive report, that is editable, and the functions of grand.
    My problem is when users try the function of calculation on 2 columns, we get the
    "ORA-01722: invalid number."
    My report is generated using apex_item
    The code in the first column is
    eoline.plannedqty PLANNEDQTY
    second column depends on the CASE, so it's either
    APEX_ITEM.DISPLAY_AND_SAVE(2,eoline.orderqty)
    or
    APEX_ITEM.TEXT(2,eoline.orderqty,5,10,'style="text-align:right;" onchange="show(this);"')
    I tried to_char, to_number, but can't make it work.

    I missed something obvious

    Gus

    In other words:

    SELECT 1 + APEX_ITEM.DISPLAY_AND_SAVE(2,2)
    from dual
    

    Yields:

    ORA-01722: invalid number

    Why?

    SELECT APEX_ITEM.DISPLAY_AND_SAVE(2,2)
    from dual
    

    Yields:

    2
    

    Of course, on your screen, all you see is a number in a text box, but you're still emitting of HTML code. You can not expect from the Apex to handle this. The calculations just perform calculation asked on the values of your defined columns.

    Solution? Turn off calculations in your issuing html columns because it does not work like that.

  • Problem with the cascading for interactive report selection list

    Hi all.

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored


    My Sql query for the report:

    select 
    apex_item.hidden(1, a."DATA_ID")DATA_ID,
    apex_item.select_list_from_query(10,
      b.WAVE_GROUP,
     'select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group',
     'onchange="f_set_casc_sel_list_item(this,f11_'||LPAD (a.DATA_ID, 4,'0')||')"',
     'YES',
     '',
     '- Select Group -',
     'f10_' || LPAD (a.DATA_ID, 4, '0'),
      NULL,
     'NO'
     )WAVE_GROUP,
    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user where groups = '||b."WAVE_GROUP",
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )WAVE_USER
    from "DWD_WAVE_MASTER" a, dwd_wave_assignment b
    where a.data_id = b.data_id
    and b.wave_id = 'wave_1'
    

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user',
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )
    

    Can someone please help!

    Thank you

    Nabila

    The nabila Islam wrote:

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored

    My Sql query for the report:

    1. Select
    2. apex_item. Hidden (' 1, a. "DATA_ID DATA_ID").
    3. apex_item.select_list_from_query (10,
    4. b.WAVE_GROUP,
    5. "select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group,"
    6. "onchange =" f_set_casc_sel_list_item (this, f11_'|) LPAD (a.DATA_ID, 4, '0'). ") » ',
    7. '' YES. ''
    8. '',
    9. -Select Group «-»,
    10. "f10_" | LPAD (a.DATA_ID, 4, '0'),
    11. NULL,
    12. 'NO '.
    13. ) WAVE_GROUP,.
    14. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    15. "SELECT user name d.
    16. |' username r FROM dwd_user where group = ' | b."WAVE_GROUP."
    17. '',
    18. '' YES. ''
    19. '',
    20. "- Select user -",
    21. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    22. NULL,
    23. 'NO '.
    24. ) WAVE_USER
    25. of 'DWD_WAVE_MASTER' a, b dwd_wave_assignment
    26. where a.data_id = b.data_id
    27. and b.wave_id = 'wave_1. '

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    1. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    2. "SELECT user name d.
    3. |' username r FROM dwd_user ",
    4. '',
    5. '' YES. ''
    6. '',
    7. "- Select user -",
    8. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    9. NULL,
    10. 'NO '.
    11. )

    What is the data type of DWD_WAVE_ASSIGNMENT. WAVE_GROUP? If it is not a number, then it must be enclosed in quotes when it is used as a literal:

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    
    ||'username r FROM dwd_user where groups = ' || dbms_assert.enquote_literal(b."WAVE_GROUP"),  
    
    '',
    'YES',
    '',
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
    NULL,
    'NO'
    )
    
  • Problems running JavaScript despite correct settings

    For some reason any, since I have updated to version 3.6 of Firefox, JavaScript does not work anymore.

    I checked the help files existing who asked me to check the Options in the Tools menu.

    Here are my settings, which should work, but aren't:

    1. on the content tab, 'Enable JavaScript' is checked.
    2. under Advanced options, the following are checked:

        a) Move or resize existing windows
        b) Disable or replace context menus
    

    Theoretically, this should work, but doesn't. Simply do not run scripts. You can provide any assistance is greatly appreciated.

    Sincerely,

    Robert Hieger

    This has happened

    Each time Firefox opened

    == I've upgraded to version 3.6 and now also 3.7.

    Thanks for your post, Wolfgang
    I think I'll go to Opera, until Firefox fixes some problems...

  • JavaScript - interactive report

    Hi all

    Request Express 4.2.4.00.08

    I ran into an issue using Javascript in an interactive report.

    I use this Javascript function to compare the 2 strings and to highlight the differences between the two texts.

    http://ejohn.org/files/jsdiff.js  (using the diffString function).


    Overall, I need to perform this function, a column value.  I don't know if what follows is the most optimal, but it is currently what I have learned to work to some extent. (If there is something better, I'm gladly willing to learn)


    select
    t.NEW_VALUE
    ,t.OLD_VALUE
    ,'<script>javascript:document.write(diffString("'||t.OLD_VALUE||'","'||t.NEW_VALUE||'"));</script>' as DIFF_VALUE
    from AUDIT_TRAIL t
    
    



    It works fine when the page is loaded.  However, when the user performs a search, the loading symbol appears and the screen goes all white. The only thing on the screen is DIFF_VALUE for the line that I searched on (fair value).  If I click the button back or re - submit the current URL, report charge with all columns and the specified search.  This happens in the same way for paging.  To test, I copied the entire page but used classic report (instead of interactive).  In the report, I put the PPR 'activate' on 'No', and this fixed the problem of paging.  Is there something I can do for the interactive report?

    Thank you

    Brett




    the column value is calculated after the page loads, Javascrip run once page loded (or represented), but with IR or pagination, page partially refreshes, the columns in the reports are not calculated by the report query, so the JS does not run.

    If you need a fully dynamic solution on this column, you must link the js with the partial discount code and pagination. something along the lines of (Jquery to run when the Page loads)

    populateDiffColumn();

    $("#MY_IR").bind ("apexafterrefresh", function() {populateDiffColumn ()});

    MY_IR is the static id of the IR

    and define the populateDiffColumn() function in the function and the Global Variable declaration, something like

    {populateDiffColumn()}

    a loop for each cell in the column DIFF_VALUE

    $("td[headers='DIFF_VALUE']").each (function () {}

    oldValue var = //get the old_value of this line

    newValue var = //get the new_value to this line

    var cell = / / extract the cell object

    set its value to the output of the function diffString

    Cell.Value = diffString (oldValue, newValue);

    });

    }

    JQuery would be easier to write for these things

    If this sounds too, try consider porting/rewritinh service JS diffString in a PLSQL function, then you can set the values in the column of the source of the query DIFF_VALUE, avoid according to the calculations of end of fonts.

  • tool in interactive reports not made custom jQuery overlay

    As the subject says, I had a problem in jQuery on an interactive report. He works on a pages unpaginated, like forms, as well as in interactive reports, but each time the data is paged, after that you go to the next page, jQuery does not work.


    Here's the scenario:

    I have an interactive reports page that shows the files in my table (all are images).

    SELECT
    ("< img src =" #OWNER #.) DISPLAY_IMAGE_PROC? image_id ='
    || f.image_id
    || "" width = "64" height = '48' rel = "#img" | " f.image_ID | ("" / > ") AS IMAGE
    FROM TABLE_NAME


    The attribute rel of the image is one I use to get the jQuery to work.
    The src of the image is a procedure to get the path of the image. (Based in the Dene Demo Application)


    On the interactive reports Page, it displays the image correctly.
    When you click the Image, it will display an image overlay with a size of 640 x 480.
    But when you go to the next page, the function will not work and there is no data errors (javascript / error oracle / any other).

    If you do not know how to implement a tool simple overlay in jQuery go here: http://jquerytools.org/demos/overlay/index.html

    everyone the experience of something like that?

    -Philip

    Published by: 942717 on June 25, 2012 14:44

    You must activate the overlay on after refreshing the report

    Create a dynamic action

    Event: after refresh

    Selection type: region > and select your IR region

    Action: run the JavaScript Code

    Code: add your code to overlay something like below

    $("img[rel]").overlay();
    
  • APEX 4: Dynamic Action to manipulate a search string in the interactive report

    Hello

    I have the following problem. I have an interactive report that shows a few columns and one of them has a barcode that has been saved as a numeric value for display in the column is something like ("123456789"). All works fine so far. If anyone 123456789 they will get the right line and all is well. Unfortunately if I scan in the barcode with a barcode scanner, he enters '01234567890'. I don't have nor the ability to reprogram the scanner BC and I can't change how the data gets displayed.

    So I thought I would create a dynamic action that is triggered when the contents of the textfield object change. So, I've created a dynamic action, selected jQuery and entered .apexir_SEARCH and the Change event.
    I then chose to run JavaScript and entered as cod:

    var newsearch = document.getElementById ('apexir_SEARCH').value.replace (/ ^ [0] + / g, ");
    var inputObj = document.getElementById ("apexir_SEARCH");
    If (inputObj)
    {
    Update of the value
    inputObj.value = newsearch;
    }

    So far so good. When I load the page and enter a value from a '0', it works like a charm and it removes the zero. But if I delete again on the page and the search filter, dynamic action will do nothing. I'm really confused, as if I just made a mistake in the JavaScript code or what is the reason, that the action runs only the first time. I have to reload the page and then it will still be to manipulate the string once, but the second time, it won't.

    I'm very happy for any help you can provide!

    Thank you
    Dennis

    Hi Dennis,

    The thing that comes to mind is to check that the scope of the event of dynamic action is 'live '. If it's on (default) bind, then when a partial page refresh occurs, action will not fire the first time. Direct fires each time.

    Hope this helps

  • Interactive report CSS question...

    Hi all..

    APEX: 4.1
    BROWSER: IE 7
    Database: 11g

    Please help me with this CSS problem.
    I have an interactive report that is too large for the region.
    I use the following CSS to have a bar scrolling for this region,
    If it grows more.
    Region Header:
    <div style="overflow:auto;overflow-y: hidden;">
    
    Region Footer:
    </div>
    Please see the following page.

    http://Apex.Oracle.com/pls/Apex/f?p=41803:4
    workspace: kumar2003
    Username:test_user
    password: test
    application: 41803
    Page: 4




    I have the following problems with the report.

    (1) If you scroll the report, "" OBSERVE THE "' GO AND ' ' BUTTONS of ACTION '" interactive reports.
    Even the button are also mobile and spoil the appearance of interactive report.
    Is anyway to keep the buttons in the same situation?

    Another question:

    (2) instead of a scroll at the bottom of the area bar, it is possible to
    '' increase the width of the region' "until the report develops?
    What CSS changes in the level of the region as I do?

    Please help me

    Hello

    I don't know what the problem is.
    But if fix you this move button, I guess you have problem that drop downs column header are not aligned correctly when you click the header.

    Maybe you check this plugin
    http://www.apex-plugin.com/Oracle-Apex-plugins/dynamic-action-plugin/IR-plugin-package_108.html

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • The interactive report update and problem of Plugin JQuery

    Hello


    I have interactive report in my page. So I use the plugin jQuery context menu when user right click on a column he get an option to add, delete, update and another option.
    javascript pseude code for context menu
    $(function(){
         context_menu();
    });
    
    function context_menu(){
    
      $('.Col1').contextMenu();
    }
    Suppose the user selects Delete option. In this case jQuery popup appears and users enter data that are saved in the table by using the application process. After you use gReport.search ('SEARCH'), I refresh the page...

    Now the question - now when I right click on the column of my jQuery context menu does not work...


    Used workaround solution - I've added onmouseover = context_menu () function for the column... link and it works fine...


    Now my question is... whenever the user moves the mouse over the column, it will run function context_menu()... There will be no unwanted problem... or memory leak problem...

    Please advice...


    Thank you
    shijesh

    Hello

    Okay, that's good.
    But if you take this plugin to use to select the option group you also code of loan that trigger events on IR Ajax calls.

    Kind regards
    Jari

  • interactive report formatting disappears when you run custom reports

    I have an interactive report with several variations as the public.
    I also put some column widths and the table set shaped with javascript "when loading the page.

    If the user goes to a public report the javascript is executed, not in form is not displayed.

    Is there a place of javascript to put the code to execute when run it public reports to interactive reports?

    kgough wrote:
    I have an interactive report with several variations as the public.
    I also put some column widths and the table set shaped with javascript "when loading the page.

    It is impossible using CSS?

    If the user goes to a public report the javascript is executed, not in form is not displayed.

    Is there a place of javascript to put the code to execute when run it public reports to interactive reports?

    Use a dynamic Action "After Refresh" on the IR region.

  • Interactive report Javascript Refresh, working only the first time

    Hello

    I'm trying to implement a dynamic action on an interactive report that fires a pl/sql procedure and then reload the IR.

    I have something like this:

    Select par.*,
    CASE
    WHEN (SELECT 1 OF THE AddressBook ch WHERE ch.usr_id = (select id where email = usr: APP_USER) AND ch.address_id = par.id) IS NOT NULL
    THEN ' < img src = "" #IMAGE_PREFIX #wwv_cancel.gif "class alt"Y"="delAddressFromBook"id =" "| par.ID | "" / > "
    ELSE ' < img src = "" #IMAGE_PREFIX #add.gif "alt ="N"class ="addAddressToBook"id =" "| par.ID | " » / >"
    Mapped END
    of nominal addresslist

    My dynamic action uses the '.addAddressToBook' jquery selector, and it fires properly the first time I click Add image. My pl/sql code runs correctly and ist updated IR.
    It is, when I click the second time in another entry, nothing happens. Looks like the javascript works always something.

    Updating of the IR ist done with javascript gReport.pull ().

    Thanks in advance.

    Florian

    Florian,

    If you bind an event javascript on an element that is get updated then after that it gets updated, it will no longer be bound to her event. It is possible to use the event to this situation (http://api.jquery.com/on/) delegation, he took advantage of event bubbling (http://www.quirksmode.org/js/events_order.html) and handles the event to an element that is not updated to a kind of AJAX call.

    Edit
    The following code binds the event listener for the document, but it does that raise the event handler if the initiator of the event matches the selector ".addAddressToBook". I chose the document object, because each page has a document, but you can consider using a parent element that is much closer to the initiator of the event.

    //jQuery 1.7+ use "on"
    $(document).on("click", ".addAddressToBook", function(event){
        alert('addAddressToBook Clicked');
    });
    
    //jQuery1.4.2+ use "delegate"
    $(document).delegate(".addAddressToBook", "click", function(event) {
        alert('addAddressToBook Clicked');
    });
    

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 23, 2012 07:27

  • Add Javascript to the content of the interactive report

    Hello

    I need to add some Javscript to an interactive report so that this event fires whenever the content of the report is reloaded. I found how this is done for a standard report, but not for the interactive report. JavaScript placed in the header of the region or the footer only runs on the loading of the page and not when the region of the report is updated, such as after a search, or when you apply a filter. Does anyone have an idea on how this is done? What is the function Javascript is called is charging?

    Thank you

    Rick Fanning

    Hello

    This might help you
    http://Apex.Oracle.com/pls/OTN/f?p=24382:38:

    You can find out how to see the source code here
    Implement jQuery modal form

    BR, Jari

  • Interactive report - French language character problem

    Hello

    I made an interactive report with this table:

    CREATE TABLE 'DEPT '.
    ("DEPTNO" NUMBER (2.0),)
    VARCHAR2 (14) "DNAME",.
    "LOC" VARCHAR2 (13),
    ENABLE 'DEPT_PK' CONSTRAINT PRIMARY KEY ('DEPTNO')
    )

    I have two rows in my table
    insert into dept (dname, loc) values('IT','Québec');
    insert into dept (dname, loc) values('IT','Montreal');

    When I click on the filter of the LOC. column I got a javascript error and the loading icon does not stop.

    JavaScript error:
    list of missing} after property
    http://Penelope/ax31/JavaScript/apex_3_1.js
    Line 1


    The problem is the 'e' in Quebec.

    Thank you.
    Sylvain Michaud

    Hello

    You use AL32UTF8 as the character set in your DAD PlsqlNLSLanguage setting?

    Kind regards
    Arie.

  • Problem with the display of the icon in the interactive report

    Hello

    for several days I am looking for a solution on the web, but I have not found the right article.

    I can't display images in the display of the icon of interactive report.

    I tried to understand with an example of implementation of the SUMMIT.

    I work with the same component without success.

    IN MY PAGE:

    first region

    P1O_IMG1: File Explorer to download image

    P10_TITRE: text box: title

    P10_LIBELLE: area of tex: topic

    P10_CANCEL: button cancel

    P10_submit: button to submit

    in this area, I upload a picture and create a row in the CG63_IMG table

    ID_IMGNUMBER
    FILE NAMEVARCHAR2 (400 BYTE)
    MIME_TYPEVARCHAR2 (50 BYTE)
    CHAR_SETVARCHAR2 (128 BYTE)
    IMAGE_CONTENTBLOB OBJECT
    DATE_MAJDATE
    LIB_IMGVARCHAR2 (400 BYTE)
    THE TITLEVARCHAR2 (100 BYTE)

    and everything is OK

    second region with interactive report

    Select

    cg63_IMG.ID_IMG ID,

    CG63_IMG.ID_IMG as ID_IMG,

    CG63_IMG. Name of the FILE as FILENAME,

    CG63_IMG. Mime_type like MIME_TYPE,

    CG63_IMG. CHAR_SET as CHAR_SET

    CG63_IMG. DATE_MAJ as DATE_MAJ,

    CG63_IMG. LIB_IMG as LIB_IMG,

    CG63_IMG.titre,

    Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;

    apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link

    of CG63_IMG CG63_IMG

    in my report, detail_img_no_style, icon_link are hidden


    in attributes of reports

    the normal display mode is ok

    the detail view is ok

    display the icon: problem no picture

    I would like this (in the order of the lines of the "icon view" attribute)

    YES,

    NO,

    ICON_LINK,

    DETAIL_IMG_NO_STYLE,

    TITLE,

    HEIGHT = "140" WIDTH = "140"

    #TITRE #.

    '',

    ""


    third region

    I defined a P10_PHOTO point: File Explorer, hidden

    Like this

    Parameters:

    NO,

    BLOB type column specifies in the attribute of the source point,

    MIME_TYPE,

    FILE NAME,

    ' ',

    DATE_MAJ,

    YES,

    ' ',

    Inline


    Source:

    Still, replacing everything,.

    Databas column,

    Per session.

    Value of source = IMAGE_CONTENT,

    ' ',

    ' '


    It is difficult to get information: how the element such as P10_PHOTO must be created.


    APEX 4.2.5 WITH ORACLE HTTP SERVER


    Concerning


    MARC







    user_fr_cg63 wrote:

    Hello

    for several days I am looking for a solution on the web, but I have not found the right article.

    I can't display images in the display of the icon of interactive report.

    I tried to understand with an example of implementation of the SUMMIT.

    I work with the same component without success.

    IN MY PAGE:

    first region

    P1O_IMG1: File Explorer to download image

    P10_TITRE: text box: title

    P10_LIBELLE: area of tex: topic

    P10_CANCEL: button cancel

    P10_submit: button to submit

    in this area, I upload a picture and create a row in the CG63_IMG table

    ID_IMG NUMBER
    FILE NAME VARCHAR2 (400 BYTE)
    MIME_TYPE VARCHAR2 (50 BYTE)
    CHAR_SET VARCHAR2 (128 BYTE)
    IMAGE_CONTENT BLOB OBJECT
    DATE_MAJ DATE
    LIB_IMG VARCHAR2 (400 BYTE)
    THE TITLE VARCHAR2 (100 BYTE)

    and everything is OK

    second region with interactive report

    Select

    cg63_IMG.ID_IMG ID,

    CG63_IMG.ID_IMG as ID_IMG,

    CG63_IMG. Name of the FILE as FILENAME,

    CG63_IMG. Mime_type like MIME_TYPE,

    CG63_IMG. CHAR_SET as CHAR_SET

    CG63_IMG. DATE_MAJ as DATE_MAJ,

    CG63_IMG. LIB_IMG as LIB_IMG,

    CG63_IMG.titre,

    Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;

    apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link

    of CG63_IMG CG63_IMG

    in my report, detail_img_no_style, icon_link are hidden


    in attributes of reports

    the normal display mode is ok

    the detail view is ok

    display the icon: problem no picture

    I would like this (in the order of the lines of the "icon view" attribute)

    YES,

    NO,

    ICON_LINK,

    DETAIL_IMG_NO_STYLE,

    TITLE,

    HEIGHT = "140" WIDTH = "140"

    #TITRE #.

    '',

    ""


    third region

    I defined a P10_PHOTO point: File Explorer, hidden

    Like this

    Parameters:

    NO,

    BLOB type column specifies in the attribute of the source point,

    MIME_TYPE,

    FILE NAME,

    ' ',

    DATE_MAJ,

    YES,

    ' ',

    Inline

    Source:

    Still, replacing everything,.

    Databas column,

    Per session.

    Value of source = IMAGE_CONTENT,

    ' ',

    ' '


    It is difficult to get information: how the element such as P10_PHOTO must be created.


    APEX 4.2.5 WITH ORACLE HTTP SERVER

    Instead of all that typing it would have been easier to download the application at apex.oracle.com and share the problem here...

    Why does P10_PHOTO exist when there is already an article for the download of files in P10_IMG1?

    Is there a process to look for automatic line (ARF) DML defined to fill the first area? If not, create one and its the Nevervalue condition.

  • Run interactive report only if the search filter values / entered.

    Hello

    I have an interactive report I want to post, but the problem is that too many files are in the base table, so I want to hide this report until some filter values are entered in the search field (apexir_SEARCH), so if no value entered search I do not show the report but with the search value view the report with the returned records ,


    I tried to create a hidden item (P1_TEST) USE THE CONDITION relating to THE report if P1_TEST IS NOT NULL, and then submit the report, but it does not work well enough


    Thank you

    Gor_Mahia wrote:

    I have an interactive report I want to post, but the problem is that too many files are in the base table, so I want to hide this report until some filter values are entered in the search field (apexir_SEARCH), so if no value entered search I do not show the report, but with the value of research showing the report with the returned records ,

    I tried to create a hidden item (P1_TEST) USE THE CONDITION relating to THE report if P1_TEST IS NOT NULL, and then submit the report, but it does not work well enough

    Add to the WHERE clause of the query of the IR (or add it in the WHERE clause if the report has not one):

    and exists (select
                    null
                from
                    apex_application_page_ir ir
                      join apex_application_page_ir_rpt irr
                        on ir.interactive_report_id = irr.interactive_report_id
                      join apex_application_page_ir_cond irc
                        on irc.report_id = irr.report_id
                where
                    ir.application_id = to_number(:app_id)
                and ir.page_id = to_number(:app_page_id)
                and ir.region_name = 'Conditional IR'
                and irc.condition_type in ('Filter', 'Search')
                and irr.session_id = :app_session
                and irr.base_report_id = (select apex_ir.get_last_viewed_report_id(to_number(:app_page_id), ir.region_id) from dual))
    

    The predicate will be true only if the user has created at least a filter/search condition for the report, and if it is false, that it must stop the optimizer to hit the base table. (This has been developed and tested on APEX 5.0, so there may be differences with previous versions.)

    Note that using the search field by default generates inefficient queries. If you are really serious about performance, clear the search field and get users to create filters to specific columns, which will have a better chance to allow the optimizer to use indexes or improve the execution plan.

Maybe you are looking for

  • Recovery P750 satellite 10-FC12-0017 error

    Hi all I have the P750 satellite that I am recovering from a friend. To the 100% mark on the recovery by the sector of hard disk recovery, it comes up with "error 10-FC12-0017 recovery. What happened after 4 attempts. I ran the software hard drive on

  • Presidio v3000 compact: compact V2000 v3000 drivers

    How can I find the drivers I need to install windows 7 own hard .wipe and now does not see harddrive.don't driver instalation disc. hope you can help. Thank you...

  • Use of niScope.lib in VS2015

    I try to use niScope 4.1 in VS2015 (C++, Win7 64 bit), but I got error "niScope.lib (glu32.obj): error LNK2001: symbol external _sprintf pending. The same code can run under VS2010. Anyone know how to solve? Either niScope cannot be used in VS2015? T

  • scrolling of the vertical scrollbar in the list by program

    Hi all I use single-column listbox to update certain values to it progrmatically, when the values at the end of the vertical scroll bar of the listbox appears, but to see the last added item I need to manually move the scroll bar and it causes proble

  • Windows Update error code: 646 (KB982331) failed

    I can not update KB982331 I tried the stand alone far from the center of update, that I turned my UAC off I disabled Norton I get the message that it was a problem of update error code 646 as I tried to save the download, disconnected from the intern