Initial value for the interactive report

I have an interactive report that has a where clause condition clause: where =(:P50_employeeName) used.

(: P50_employeeName) is a a list of selection without value null. When the page loads the selection list displays the value employee1, but the interactive report is empty. It's not until I select another value within the selection list becoems active report. How I can so when page loading the interactive report shows instead of being blank? I can't the values of hard employee-coding as each user can see only the user in their Department.

Hello

Since I don't know all your table structure, it was just a quick sampling of the approach.

I guess that your LOV would have the correct where clause to control its content, and you can add additional conditions to the IR where clause as well.

Here is an example of one of my IR where clauses

the case when: P200_DEPARTMENT = 0 then 1

When: P200_DEPARTMENT <> 0 and: P200_CREW = 0 and: P200_DEPARTMENT = c.crewdeptkey, 1

When: P200_DEPARTMENT <> 0 and: P200_CREW | " <> 0 and: P200_CREW = c.crewkey, 1

end if 0 = 1

Kind regards
Brad

Tags: Database

Similar Questions

  • ToolTip for the interactive report column data item

    I have a report that includes the column (CURRENT_UNIT). I would like to be able to add a "ToolTip". I did it before using a classic report by the following (borrowed from another one of the APEX):

    Add this CSS

    {a.rapxxx}

    position: relative;

    z index: 24;

    {text-decoration: none}

    a.rapxxx:hover {z-index: 25; background-color: #ff0}

    a.rapxxx span {display: none}

    duration of a.rapxxx:hover {/ * poster only over time: hover state * /}

    Display: block;

    position: absolute;

    top:-20px;

    Left: 20px;

    Width: 20em;

    border: 1px blue solid dark;

    text-align: center;

    background-color: lightyellow;

    color: Blue;

    }

    And on the SHAPE of COLUMN layout, add this:

    < a href = "#" class = "rapxxx" > #CURRENT_UNIT # < span > #UNIT_NM # </span > < /a >

    But when I try it on the interactive report, I don't get the hover tooltip.  The href attribute is displayed correctly, just, I don't get the value of the span.

    Can someone help me please?

    Using APEX 4.2.3

    Internet Explorer version 9

    Thank you

    -Seattle

    Oh, if the column is not a link, just the URL target value #.

  • Default icons only for the interactive report

    Hi all

    I develop a style app catalog and display of images in an interactive report; I can get the interactive report to show the icon when users visit the report the first time, the report is quite simple. It has a series of buttons for Sections of the catalogue and when the user presses the button he fills a hidden element that is in the where the criteria catalogue, all it works fine with one exception:

    1. when the user clicks on the button catalogue and interactive data in gear changes; report changes 'View report', I want to maintain state in "Fashion icon" is possible that someone knows how can I have the interactive report only display "icon.


    Thank you very much for your help in advance, I tried a couple of things and nothing... any help would be greatly appreciated.

    958442 wrote:
    Hi all

    Welcome to the forum: read the FAQ and the forum threads sticky (if you have not already done so) and update your profile with a real handle instead of '958442 '.

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)
  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

    I develop a style app catalog and display of images in an interactive report; I can get the interactive report to show the icon when users visit the report the first time, the report is quite simple. It has a series of buttons for Sections of the catalogue and when the user presses the button he fills a hidden element that is in the where the criteria catalogue, all it works fine with one exception:

    1. when the user clicks on the button catalogue and interactive data in gear changes; report changes 'View report', I want to maintain state in "Fashion icon" is possible that someone knows how can I have the interactive report only display "icon.

    Thank you very much for your help in advance, I tried a couple of things and nothing... any help would be greatly appreciated.

    It also helps explain what you tried (even better, Show us what you have tried on apex.oracle.com).

    You can view the IR to the default icon via a dynamic Action: + {: identifier of the thread = 2187972} + (obviously using "ICON" rather than "RETAIL"...)

    However, do you really intend to make use of other interactive report features? It seems that the report display is controlled by custom buttons, rather than shares of IR (filters, control breaks etc.). If this is the case then a standard report based on a custom template may be a better option than to try to work around all that offer interactive reports.

  • The help file for the interactive report - wwv_flow_utilities.show_ir_help

    Any way to change the page that appears when you click the help in the interactive report Menu (the train)... ?

    Hello

    Yes, for example by using jQuery.
    Sample here
    http://Apex.Oracle.com/pls/OTN/f?p=40323:63

    I have in the HTML page header

    
    
    
    

    Example use jQuery from Google.
    You can install jQuery on your own server.
    Here's a guide for this
    http://www.oracleapplicationexpress.com/tutorials/66-integrating-jQuery-into-apex

    BR, Jari

  • Affecting a hidden page looking for the interactive report null element

    Hi all

    I'm a newb APEX and don't really understand processing and calculations very well yet. I want to do something fairly simple however.

    I have a page with an interactive report and two hidden page items. I want to set the value of these two elements with the NULL value when someone search the interactive report. Any way to do it?

    Thanks in advance.

    Published by: darstar007 on March 25, 2010 16:31
    
    
    
    

    Kind regards
    Shijesh
    ---
    Please reward the answer if this was helpful or correct

  • the form validation (Checkbox) does not work for the interactive report

    Hello

    I use the oracle apex 4.0 and oracle 11g.

    I wrote a under select query on interactive report

    Select
    apex_item. CheckBox(1,RESIDD) | apex_item. Hidden(2,RESIDD) row_selector.
    apex_item. Text(3,RESNUM) as resnum
    of 'PDRRES '.

    and written validation to display the error message ( error of function return text ) as

    DECLARE
    vRow directory;
    BEGIN
    -apex_application.g_print_success_message: = NULL;

    BECAUSE me in 1... apex_application.g_f01. COUNTY
    LOOP
    vRow: = apex_application.g_f01 (i);
    apex_application.g_print_success_message: = apex_application.g_f01 (i) | » -'|| apex_application.g_f03 (vRow) ;
    END LOOP;
    END;

    Output: No data available error message

    As long as it works for sql report with above logic because apex built in line selector
    but it fails in the case of interactive report for some reason any.

    Please suggest.

    Saroj Nayak

    Saroj Nayak says:

    DECLARE
    vRow BINARY_INTEGER;
    BEGIN
    --  apex_application.g_print_success_message := NULL;
    
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    vRow := apex_application.g_f01(i);
    apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ;
    END LOOP;
    END;
    

    You have set the value of vRow to the value of the number box i which is checked. There is probably nothing in the apex_application.g_f03 with RESIDD as index table

    What you want is hollow loop all the hidden objects g_f02
    and with in this loop through all verified elements checkbox g_f01
    and if the values of these in the game, you have your line for checking f03

    for k in 1 .. apex_application.g_f02.count
    loop
      for p in 1 apex.application.g_f01.count
      loop
        if   apex_application.g_f01(p) =  apex_application.g_f02(k)
        then
          apex_application.g_print_success_message := apex_application.g_f01(p)||'-'|| apex_application.g_f03(k) ;
        end if;
      end loop;
    end loop;
    

    Nicolette
    PS your NPA between

    { code }Your code { code } without the spaces between {, } and code 
    
  • Assign the value to the interactive report search string

    Hi guys,.

    I have an interactive report that has the text box 'Research report' usual. I have a text separate element called: P1_VPN on the report which is filled in when the user connects.

    What I would do is to have the text box 'Research report' must be assigned to the: P1_VPN as a default and the dataset returned to rely on this value.

    I'm looking for a way to pass the value in the text of the report item and clicking the "Go" button that is dynamically when the page is loaded, if it is possible?

    Thank you

    Hello

    Reading of: http://www.evernote.com/pub/sstryker58/Stews_Apex_tips#n=b5abf5b7-3ff8-48c2-8e60-a5038c14e0d5

    This explains how to switch a filter by using the URL - when loading the page of IR, the filter will be applied, but the user can then remove it if they wish to

    Andy

  • How to get the value of the interactive report into apex 5 column

    Hello

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    Hi SYSMAN2007,

    SYSMAN2007 wrote:

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    You can do this with the help of dynamic action. You need to get the value of the column of a line click in IR (using jQuery) and set the value to the elements which, in turn, can be used as a filter to other reports on the same page.

    See: How to use the values in the columns of an interactive report (Apex 5)

    Can you reproduce your problem on apex.oracle.com and share the credentials of the workspace, so that I can demonstrate how this can be achieved.

    See an example of how it can be done with dynamic actions: https://apex.oracle.com/pls/apex/f?p=35467:5

    Kind regards

    Kiran

  • Default values for the tabular report

    Hello

    Please forgive me if the answer to my question, there is an obvious place; I have grepped through these forums a little but you do not see a close answer what I'm looking for. My problem is that I have a tabular form and when a user clicks on 'Add the line' I want certain columns of the new line to be pre-filled, but it doesn't seem to be in any way obvious to do. Downhill report attributes don't give me what I'm looking for. I thought that the calculations would be something that would work as well, but no, that does not work either.

    What I want to do something fancy in the region Source section and fill in the values of the column it? Or have I missed things completely.

    Any help (and heckles) greatly appreciated.

    Thank you!

    Jon

    Jon:

    You need join "column attributes. Click Edit next to the column that you want a default value. Then, in the section 'Tabular form Element' choose ' PL/SQL expression or a function' for 'Default Type' and specify the default value field "Default". If your default is a string then put the value between "'". ""

    CITY

  • How to go from sysdate as the initial value for reports?

    Hi, I am using Oracle 10 G reports. I would like to know how to pass sysdate as initial value for the property of a date in the parameter element user. Help, please. Thank you

    arms777 wrote:
    I want to say is, if you select range of property for the specific parameter, there is a property for the initial value (type of data, width, mask entry, initial value, Validation trigger, list of values, etc.). Does this mean that I can just put sysdate on the initial value of the parameter property? I really need to use a trigger for this? In forms, I don't have to create a trigger to do this, simply put sysdate on the initial value of the item property. I hope you understand what I mean. Thanks again.

    I can't find another way...

    This from Reports FAQ
    How to set the initial values of the parameters to the form of the parameter at run time? +

    This is what is mainly used for BeforeForm relaxation. Even if you used a select statement to create a search list for the parameter, this statement is completely parsed before the form parameter is opened. Simply assign the parameter to a value in the trigger BeforeForm will choose this option as a default value displayed to the user. For example, suppose you have a parameter called p_input_date that is intended to contain a date of the invoice. The following example will select the date of the most recent invoice being the default and notes that it correctly handle exceptions to ensure that the report does not arbitrarily die if this default setting fails. Also note that, as all the triggers of report, it should return a true or false value.

    function BeforePForm return boolean is
    begin
    select max(bill_period_end_date + 1)
      into :p_input_date
      from billing_period
     where bill_period_end_date <= (select trunc(sysdate)
                                      from dual);
      return (TRUE);
    exception
      when others then
         :p_input_date := null;
         return true;
    end;
    

    If someone useful or appropriate, please mark accordingly.

  • 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

  • Link to the interactive report with filters

    I want to put a link to a page that contains an interactive report. But the link must set up a filter for the interactive report.

    For example, if I am looking at a customer, I want a link that sends me the reports, but filtered to show only this customer already.

    Is it possible to do?

    Thank you

    Published by: user1415525 on September 21, 2009 07:34

    Hello

    Set a parameter Anthony to ##.

    Example: Set IR_ORDER_ID to #ORDER_ID #.
    or for you
    Set IR_CUSTOMER_ID to #CUSTOMER_ID #.

    (Of course you must change the column names)

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • How to add the action button for each column in the interactive report

    Hi all

    I'm new in APEX, so pls forgive my question, if it's simple, but I am struggling with this problem for days now. I have interactive report and you want to add button in each row. What I want to do with this button is the following:

    1. to execute some stored procedure in need of that particular line item values

    2. returns a (id)

    3. go in another page in the application by passing the value out of the procedure (id).

    and I'm not find the way to do it. I tried now means:

    1. If I add the link of the column, so I can refer to the value of the current row, I don't know how to call the stored procedure and perform actions of rest I need

    2. If I add the button to the region, I do not know how to reference the values in column of a particular line of the interactive report...

    and I'm stuck...

    I just forms and global report and probably still think the "wrong" way .

    Any help would be appreciated!

    Thank you!!!


    user3253917 wrote:

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

    I request of the company: there is a customer who always orders the same standard product orders (always order the same products, fair amount is different). I want to make it simple for the user: instead of retyping the command (master and few records details every time yet) I want to copy selected command (copy of the master record and record details) so that the user will only change date order (in master record) and amount fields in record details).

    So, in order to give him:

    1. the user must be able to choose the order in which I would copy (at page 4), select it,

    2. I need to make PL/SQL procedure to insert the new master record (order) and a few record details (order_items) (copy of the order/order_items chosen in step 1)

    3. navigate the user to page 29, where the master account at stage 2 insterted appears, so that the user can change the date and quantities.

    Any solution will be highly appreciated! Thank you very much!!!

    In simple terms:

    1. Add a link to column "Command copies" in the report on page 4, which sets the COPY request and passes the order ID on page 29.
    2. On page 29, create a process before header, sequenced to be the first process executed and conditional on REQUEST be EXEMPLARY, which creates a new order as a copy of the order with the ID from page 4 and returns the ID of the new order in the PK command ID of 29 page element.
  • Ideas for work around ORA-06502: character string buffer too small on the interactive report

    Hello

    It comes to Apex 4.2.  We try to create an interactive report.  The report is for something similar at a follow-up time.  We try to concat a comments column as the sum of the hours.  For example,.

    Select TASK_NAME, sum (HOURS), to_char (XMLAGG (XMLELEMENT(E,E.COMMENTS ||) ' : ')). Extract ('//Text ()'). GETSTRINGVAL()) USER_COMMENTS of...

    This query works fine if we seek only to a window of 1 week.  The question that we live, when we expand the scope of the query to include data from 3 months, we hit ORA-06502 interactive report.  If we remove this column from the interactive report, then the report works very well.

    Anyone has any ideas on how we might be able to work around this problem?  I'm guessing we're reached the limit of 32 k on the report.  Ideally, we would show just the last X number of comments and then have a link to show all comments

    Any help would be appreciated

    Thank you

    Mike

    ListAGG raises an ORA-01489 for varchar2 > 4000 bytes

    OP has an ORA - 06502--> IR is running within a limit of 4 k / 32 k.

    quick fix: wrap USER_COMMENTS ListAGG in a substr (..., 1, 4000)

    Longer solution, use a subquery to modify comments based on ROW_NUMBER() (IE after the nth line, change the null)

    with
    -- simulating data
    t as (select task_id, sysdate - lv as date_entered
      ,round(dbms_random.value(1,24)) hours
      , '-*' || lv || '.' || task_id || '*-' as user_comments
    from ( select level as task_id from dual connect by level <=10 ), (select level lv from dual connect by level < 1000)
    ),
    -- modify data
    modified_data as (
      select task_id, hours, date_entered
        ,case
          when row_number() over (partition by task_id order by date_entered desc) < 5
            then user_comments
          else null
         end USER_COMMENTS
        from t)
    select task_id, sum(hours) total_hours,
      listagg( user_comments  ) within group (order by date_entered desc)
      || case when count(*) >= 5 then '! MORE COMMENTS !' else null end
        as user_comments
    from modified_data
    group by task_id;
    
  • Move the 2 values to 2 elements in the interactive report via a url

    Hello

    I have it here's the url to pass the 2 values to 2 elements in the interactive report via a url

    apex_util.prepare_url ('f? p = & APP_ID.:0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code, '1 year') in the form of url

    The second value is not passed in, P000_DATE the interactive report item.  "1 year" is the option in the selection list on . I also tried below and a combination of IREQ_, etc., but no worked


    apex_util.prepare_url ('f? p = & APP_ID.:0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code,'| 1 year "")


    Some advice on this one?

    Thank you

    Alexander

    The code doesn't seem right for me

    apex_util.prepare_url ('f? p = & APP_ID.: 0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code, '1 year') in the form of url

    Ilyalieude modifierlereglement like this.


    apex_util.prepare_url ('f? p = & APP_ID.: 0 00:' |: APP_SESSION |) ": 000:P000_STATUS, P000_DATE:' |" ccodes.code | 1 year") in the form of url


    Kind regards

Maybe you are looking for