Median value in reports 6i

Hello

I use oracle reports 6i. In one of my report, I have average values datewise and I need median at the end of the report. But there is no function integrated to median reports 6i.

How to do this?

Please see if the following query works:

SELECT PERCENTILE_CONT (0.5)

WAGE GROUP (ORDER BY salary DESC)

Employees;

Tags: Database

Similar Questions

  • Dynamic cell colors based on values - Classic report

    Hello
    I have a requirement where certain columns in my classic report should change the color according to the percentage.
    I referred to the following code:
    SELECT e.*,   
    CASE     WHEN sal < 1000     THEN 'red'    
                 WHEN sal BETWEEN 1000 AND 2000     T
                 wHEN 'yellow'    WHEN sal > 2000     THEN 'green'  
    END the_color FROM emp e 
    But my requirement is quite complicated, I already do a lot of calculations on the existing columns:
    ex:
    ROUND(((COUNT(CASE WHEN class ='A' THEN 1 END)/
    nullif((SUM(CASE WHEN class ='B' THEN 1 END)+ SUM(CASE WHEN class ='C' THEN 1 END)),0))*100),1) as Percentage 
    Can someone help me to modify this code for the column, so that cells (not lines) of my changes to report Classic color dynamically, say what percentage of the above code is > = 75 it must be green, less than 50 means red.

    Thank you!

    Example query:

    select cust.*
    , case when credit_limit > 5000 then 'red' else 'green' end as bg_color
    from (
    select
     CUSTOMER_ID,
     CUST_FIRST_NAME,
     round(dbms_random.value(1000,9000)) as CREDIT_LIMIT
    from #OWNER#.DEMO_CUSTOMERS
    ) cust
    

    In the definition of the column in CREDIT_LIMIT, set the HTML Expression < div style = "background-color: #BG_COLOR #" > #CREDIT_LIMIT # < / div >

    See the result: http://apex.oracle.com/pls/apex/f?p=41715:3

    You can also create html together in SQL but I would like to split logic (SQL) and the user interface.
    Another option might be to create dynamic Action (after discounting the report area) and to create a combination of astute selector and a piece of JavaScript, but I guess it's easier.

  • 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.

  • Passing values between reports built on a different domain

    Hi all

    I was struck with a problem of passing parameters of rep1 (built from business line 1) and rep2 (built from domain 2), I have metric in rep1 values, when you click on this metric value, he should go to rep2 which is built on a completely different area...

    Thank you
    Anthony

    Hello

    Please see the link below:

    http://oraclebizint.WordPress.com/2008/04/30/Oracle-BI-EE-101332-understanding-dashboard-prompts-passing-prompts-to-multiple-subject-areas-aliases/

    Re: How to use URL GO?

    Thank you

    Deva

  • view the prompt values in report answer?

    Hi all
    Can you tell me what is the best way to view the quick responses of the report response and how to view the dashboard prompt responses in dashboard?

    Sara

    Hi Sara,.

    You are right that this works in a dashboard. Presentation variables can only be set in several ways. Dashboard of the guests is the main method for setting & their update. A prompt response to request doesn't have the ability to update and set the variables of presentation.

    If you definitely want to do this in a request for a response, you have only a few options (not include presentation variables)
    (1) add the 'filter view' on demand. This isn't the most elegant solution, however, he accomplishes the purpose of show dates that were selected in the quick query
    (2) create 2 new logical columns to the RPD. Max (date) and MIN (DATE) based on the date that is filtered in the report. These you can reference in a narrative view to accomplish the display of dates.
    (3) create a javascript that reads the results of the query and displays the dates max. and min.

    I would recommend the method of the dashboard. Put printing shaped reports and dashboards provide more control over the display.

    To solve the problem in your dashboard. Follow these steps:
    (1) open your report
    (2) remove your existing filters on 'Time D0'. "' T00 calendar date.
    (3) CTRL + click on "D0 time." "' T00 calendar date" to add a new filter
    4) click on Advanced-> convert this filter in SQL
    (5) paste the following in: "D0 time." "' T00 calendar date" BETWEEN "@{DATEFROM}' AND ' @{DATETO}'"
    (6) save your report and test your dashboard.

    I don't have a working version of the DPR SampleSales upward, so I can't test the above syntax, but it must be correct. Just give it a shot and tell me if it works properly. I know that I said earlier that the variables of presentation work only with "is equivalent to / is in", but what I meant is that dash invite you only set you set presentation variables when the operator is "is equivalent to / is in. When you use a variable presentation, you can implement using any carrier you want. Hope that clears up any confusion.

    Good luck and if you found this post useful, please give points!

    Best regards

    -Joe

  • Impossible to get Min, Max and median of the values in the date range values

    Hello

    I had a requirement as to show the data of each charge group of wise men as '< 100' ' 100-199 "" 200-299 "" 300-399 "400-499, 500-599 600-699 700-799 800-899 900-999 > = 1000 '"»

    With the query be able to get the count between the beach and the total below. But impossible to get the Min and Max values for this range. For example if the County < 100 is 3 then in these 3, the lowest value is need to display in the min. Idem for Max column also.

    In the light of the median value on these values.

    Thanks in advance.



    Requirement is as below:
    State < 100 100-199, 200-299 300-399 400-499, 500-599 600-699 700-799 800-899 900-999 > = 1000 Min Total median Max
    AK 1 2 0 4 1 4 4 35 35 4 1 $25 $85 850 $1,200
    AL 0 0 2 27 10 17 35 2 2 35 0 $103 100-$1 500 750


    * "QUERY ' * '"

    WITH t AS
    (SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 67 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 23 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 78 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 34 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 4 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 15 VALUE FROM DUAL
    UNION ALL
    SELECT "AZ" State, FROM DUAL VALUE 6
    UNION ALL
    SELECT "AZ" State, 123 FROM DUAL VALUE
    UNION ALL
    SELECT "AZ" State, 123 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 23 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 120 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 456 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 11 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 24 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 34 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 87 DUAL FROM VALUE
    UNION ALL
    SELECT 'MY' State, 23 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 234 DUAL FROM VALUE
    UNION ALL
    SELECT 'MY' State, 789 FROM DUAL VALUE
    UNION ALL
    SELECT "HD" State, VALUE FROM DUAL 54321).
    -End of test data
    AS T1
    (SELECT State,
    NVL (COUNT (DECODE (VALUE, 0, 0)), 0) '< 100 ',.
    NVL (COUNT (DECODE (VALUE, 1, 1)), 0) '100-199.
    NVL (COUNT (DECODE (VALUE, 2, 2)), 0) '200-299.
    NVL (COUNT (DECODE (VALUE, 3, 3)), 0) '300-399.
    NVL (COUNT (DECODE (VALUE, 4, 4)), 0) '400-499.
    NVL (COUNT (DECODE (VALUE, 5, 5)), 0) '500-599,'
    NVL (COUNT (DECODE (VALUE, 6, 6)), 0) '600-699.
    NVL (COUNT (DECODE (VALUE, 7, 7)), 0) '700-799.
    NVL (COUNT (DECODE (VALUE, 8, 8)), 0) '800-899.
    NVL (COUNT (DECODE (VALUE, 9, 9)), 0) '900-999. "
    NVL (COUNT (DECODE (VALUE, 10, 10)), 0) ' > = 1000.
    (SELECT STATE,
    CASE
    WHAT VALUE < 100 THEN 0
    WHAT A VALUE BETWEEN 100 AND 199 THEN 1
    WHAT VALUE BETWEEN 200 AND 299, THEN 2
    WHAT VALUE BETWEEN 300 AND 399 THEN 3
    WHAT VALUE BETWEEN 400 AND 499 THEN 4
    WHAT VALUE BETWEEN 500 AND 599 5 THEN
    WHAT VALUE BETWEEN 600 AND 699 6 THEN
    WHAT VALUE BETWEEN 700 AND 799 THEN 7
    WHAT VALUE BETWEEN 800 AND 899 8 THEN
    WHAT VALUE FROM 900 TO 999 9 THEN
    WHAT VALUE > = 10 THEN 1000
    END
    VALUE
    T)
    GROUP BY State)
    SELECTION STATE,
    "< 100."
    "100-199.
    "200 299",
    "300-399.
    "400-499.
    '500-599,'
    "600-699.
    "700-799.
    "800-899.
    "900-999."
    "> = 1000."
    '< 100 '.
    + "100-199.
    + "200-299.
    + '300-399.
    + '400-499.
    + "500-599.
    + '600-699.
    + "700-799.
    + "800-899.
    + '900-999 ".
    + ' > = 1000.
    in total,.
    less ("< 100",)
    "100-199.
    "200 299",
    "300-399.
    "400-499.
    '500-599,'
    "600-699.
    "700-799.
    "800-899.
    "900-999."
    ("> = 1000 ') min_val,.
    largest ("< 100",)
    "100-199.
    "200 299",
    "300-399.
    "400-499.
    '500-599,'
    "600-699.
    "700-799.
    "800-899.
    "900-999."
    ("> = 1000 ') max_val
    FROM t1
    /

    Why not keep it simple?

    WITH t AS
    (SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 67 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 23 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 78 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 34 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 4 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 15 VALUE FROM DUAL
    UNION ALL
    SELECT 'AZ' state, 6 VALUE FROM DUAL
    UNION ALL
    SELECT 'AZ' state, 123 VALUE FROM DUAL
    UNION ALL
    SELECT 'AZ' state, 123 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 23 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 120 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 456 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 11 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 24 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 34 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 87 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 23 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 234 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 789 VALUE FROM DUAL
    UNION ALL
    SELECT 'MH' state, 54321 VALUE FROM DUAL)
    SELECT state
         , NVL( COUNT( case when VALUE < 100 then 0 end ), 0 ) "<100"
         , NVL( COUNT( case when VALUE between 100 and 199 then 0 end ), 0 ) "100-199"
         , NVL( COUNT( case when VALUE between 200 and 299 then 0 end ), 0 ) "200-299"
         , NVL( COUNT( case when VALUE between 300 and 399 then 0 end ), 0 ) "300-399"
         , NVL( COUNT( case when VALUE between 400 and 499 then 0 end ), 0 ) "400-499"
         , NVL( COUNT( case when VALUE between 500 and 599 then 0 end ), 0 ) "500-599"
         , NVL( COUNT( case when VALUE between 600 and 699 then 0 end ), 0 ) "600-699"
         , NVL( COUNT( case when VALUE between 700 and 799 then 0 end ), 0 ) "700-799"
         , NVL( COUNT( case when VALUE between 800 and 899 then 0 end ), 0 ) "800-899"
         , NVL( COUNT( case when VALUE between 900 and 999 then 0 end ), 0 ) "900-999"
         , NVL( COUNT( case when VALUE >= 1000 then 0 end ), 0 ) ">=100"
         , count( value ) "total"
         , min( VALUE ) "min"
         , max( VALUE ) "max"
         , avg( VALUE ) "avg"
         , median( value ) "median"
    from t
    group by state
    
  • Report, SQL query based on the values of the elements (question SQL)

    Hello

    I use APEX 4.0 with Oracle 10 g r2 under Windows XP Pro SP3.

    I have an interactive report and a menu with a few items to filter the report.

    It works with most of the elements, but my problem is to select lists that have additional values, for example:
    SELECT '(null)' display_value, 'NULL' return_value FROM DUAL
    UNION ALL
    select distinct(SPAT_AREA_NAME) display_value, SPAT_AREA_NAME return_value 
    from SPATIAL_POINTS
    order by 1
    and I will return null as ' (return '%').

    For example, if the user selects "(null)", the report should return all rows with a NULL value in the column AREA_NAME.
    If he chooses "", the report should return all the lines. "
    and if the user selects a value, the report should return all the lines containing the value in column AREA_NAME.

    I don't know how to build my application. I tried with the CASE statements, DECODE, etc... but I still can't!

    My report query is for now:
    select SPAT_ID,
     SPAT_ACCL_NAME,
     SPAT_AREA_NAME,
     SPAT_CLASS,
     SPAT_NUMBER,
     SPAT_PT,
     SPAT_TYPE,
     SPAT_STATUS,
    from SPATIAL_POINTS 
    where 
     upper(SPAT_AREA_NAME) LIKE upper(:P3_FILTRE_AREA_NAME)  AND
     upper(SPAT_ACCL_NAME) LIKE upper(:P3_FILTRE_ACC_NAME) AND
     upper(SPAT_CLASS) LIKE '%'||upper(:P3_SPATIAL_CLASS)||'%' AND
     instr(upper(:P3_SPATIAL_TYPE_VALUES),upper(SPAT_TYPE)) > 0 AND
     instr(upper(:P3_SPATIAL_STATUS_VALUES),upper(SPAT_STATUS)) > 0 AND
     instr(upper(:P3_SPATIAL_POINT_VALUES),upper(SPAT_PT)) > 0
    Any idea?

    Thank you!

    Yann.

    Hello

    Then, assuming that spat_accl_name is not a string value "NULL" then you can try this...

    SELECT spat_id,
           spat_accl_name,
           spat_area_name,
           spat_class,
           spat_number,
           spat_pt,
           spat_type,
           spat_status,
           ROUND(spat_cumul,
                 (SELECT up_number_precision
                  FROM   user_preferences
                  WHERE  UPPER(up_nice_login) = UPPER(v('APP_USER'))))
              AS "SPAT_CUMUL"
    FROM   spatial_points
    WHERE  :p3_filtre_acc_name IS NULL AND spat_accl_name IS NULL
           OR(CASE
                 WHEN :p3_filtre_acc_name = '%' THEN NVL(spat_accl_name,'NULL')
                 ELSE :p3_filtre_acc_name
              END = NVL(spat_accl_name, 'NULL'))
    

    See you soon

    Ben

  • How can I force a line break to show in an interactive report

    Hello

    I use Apex 4.2 and Oracle 11.g

    I have a column called 'Transaction Details' that I display in an interactive report.  The report text display column selection As a value "Standard report column.

    The report column is selected in a table varchar2 column called transaction_detail.  I build just the table as well.  The transaction_detail of the table column is filled with a procedure with the following code:

    Insert into mail_log (transaction_type, transaction_detail)

    Values ('operation FTP',

    ' Filename =' | ' p_image_filename |

    "& lt; BR / & gt;' | "Description of the event =' | ' l_event_description);

    The code of procedure can be easily changed.

    The report does is display: Filename = myfile.jpg < br / > the event Description = description

    I tried to use Chr (13) in the procedure instead of the html characters and then tried to replace the Chr (13) in the apex with html characters.  Instead of simply select the column:

    transaction_detail

    I tried:

    , REPLACE (transaction_detail, Chr (13), "& lt;") BR / & gt ;')

    but I couldn't get past an Apex error: ORA-12899: value too large for column 'APEX_040200 '. "" "" WWV_FLOW_WORKSHEET_COLUMNS '. "" DB_COLUMN_NAME' (size: 49, maximum: 30)

    If Apex shouldn't be able to interpret the < br / > like a new line if the column is a column of report Standard?

    Thanks for looking at this.

    This is therefore a simple approach, I used in the past and can work for you.  Switch to the Chr (13) and in the IR columns use the HTML Expression like this:

    #COLUMN_NAME#

    No need to change the column to column Standard report either.

    The police by default for the content in the

    la balise est monospaced, mais si vous n’aimez pas que, il peut être changé.  Le pre respecte également les espaces présents dans vos données.

    Peut-être que cela aide.

    Merci

    -Jorge

  • How do I remove * error: failed to get cell value * in EN?

    is it possible that I can delete * error: failed to get cell value * financial reports... ?

    I use TxtCase and its gives me this error on the support of point of details...

    How to remove it... ?

    Thank you!

    You can try to delete the advanced, clear the error.

    Using the advanced in conditional removal Option

    Concerning

    Celvin

  • How to value for the default text setting is all

    Hey all

    I have a requirement they want a parameter on the article number,

    This parameter as text and field as the default value as

    I tried everything but nothing doesn't work, is it possible? If so please guide me what I'm missing or hurt

    Thank you

    Yes, this can be done.

    You must handle this in your SQL code. Here is an example

    Approach 1:

    -----------

    Definition of parameter in your data model: P_ITEM_NUM

    Data type of parameter/type: text/string

    The parameter default value: white

    In the SQL: where ITEM_NUMBER = NVL(:P_ITEM_NUM,ITEM_NUMBER) - ITEM_NUMBER here is your database column

    At runtime, if no value is given for article number parameter - the NVL function will consider the incoming value with null and it will run the report for all values of report item.

    Approach 2:

    -----------

    Everything is the same as 1, except the default approach.

    The default parameter value: all the

    In this case, your SQL must DECODE statement

    Where ITEM_NUMBER = DECODE(:P_ITEM_NUM,'All',ITEM_NUMBER,:P_ITEM_NUM) - it's like an IF statement

  • Report virtual distributed switch

    Hello

    I'm trying to write a script that will make my distributed virtual switches.  My Script is as follows:

    $reportcsv = @)
    Get-VdsDistributedPortgroup | Name - descending sort.
    {ForEach-Object
    $vdsportgroup = $_
    $vdsportgroupsec = $vdsportgroup | Get-VdsDVPortSecurityPolicy
    $Report = "" | Select-Object 'Port Group Name', 'number of Ports', 'Binding Port', 'Virtual Switch', 'VLAN Id', 'Type of VLAN", 'AllowPromiscuous',"Changes in MAC"," ' forged passes ""
    $Report. "' Name of the port group ' = $vdsportgroup. Name
    $Report. "" Number of Ports ' = $vdsportgroup. NumPorts
    $Report. "" The link port "= $vdsportgroup. PortBinding
    $Report. "" Virtual switch "= $vdsportgroup. VirtualSwitch
    $Report. "' VLAN Id ' = $vdsportgroup. VlanId
    $Report. "" Type of VLAN "= $vdsportgroup. VlanType
    $Report. "" AllowPromiscuous "= $vdsportgroupsec. AllowPromiscuous
    $Report. "' Change of MAC" = $vdsportgroupsec. MacChanges
    $Report. "" Forged passes ' = $vdsportgroupsec. AllowPromiscuous
    $reportcsv += $Report
    }

    The script works, however when I view the contents of $reportcsv values for AllowPromiscuous, MacChanges & ForgedTransmits presents itself as VMware.VimAutomation.VdsComponent.Types.V1.BoolPolicy.

    Does anyone have any suggestions?

    Thank you

    Frank

    These 3 properties are subject themselves, that's why the object type is displayed.

    You want the property of value of these items.

    BWT, no need to use the fling unsupported for vDS, all news are available via regular PowerCLI cmdlets.

    $reportcsv = @()
    Get-VirtualPortGroup -Distributed | Sort Name -Descending | ForEach-Object {
      $vdsportgroup = $_  $vdsportgroupsec = $vdsportgroup.ExtensionData.Config.DefaultPortConfig.SecurityPolicy  $Report = "" | Select-Object "Port Group Name","Number of Ports","Port Binding","Virtual Switch","VLAN Id","VLAN Type","AllowPromiscuous","MAC Changes","Forged Transmits"  $Report."Port Group Name" = $vdsportgroup.Name  $Report."Number of Ports" = $vdsportgroup.NumPorts  $Report."Port Binding" = $vdsportgroup.PortBinding  $Report."Virtual Switch" = $vdsportgroup.VirtualSwitch  $Report."VLAN Id" = $vdsportgroup.VlanId  $Report."VLAN Type" = $vdsportgroup.VlanType  $Report."AllowPromiscuous" = $vdsportgroupsec.AllowPromiscuous.Value  $Report."MAC Changes" = $vdsportgroupsec.MacChanges.Value  $Report."Forged Transmits" = $vdsportgroupsec.AllowPromiscuous.Value  $reportcsv += $Report}
    
  • Use drag and drop to sort data in the report

    Hello!

    I found a good description to sort the data in a tabular by drag and drop form.

    Hello

    Here's the example query:

    SELECT
      empno,
      ename,
      job,
      mgr,
      hiredate,
      sal,
      comm,
      deptno,
      APEX_ITEM.HIDDEN(1, rowid) AS sort_col
    FROM emp
    ORDER BY display_seq
    

    Change the SORT_COL attributes:

    The value column report Standard display type.

    Add in the link text column

    #SORT_COL#
    

    Replace the URL and URL target #.

    When you submit page you get rowid in APEX_APPLICATION. Table G_F01.

    Kind regards
    Jari

  • in 10 g reports user settings

    I created a user setting with a list of values, which selects the values from the table that the user will actually pull the data.  After you have created the User parameter, then go to the SQL code of the actual report and put in where x = '(:UserParamater)'.  But when I run the report and select the value in the list, the report displays empty.  When I replace the User parameter and just 'hardcode' the real value, the report runs very well.  what Miss me?

    Oracle reports 10.1.2.0.2.

    Thank you

    Steven


    You don't need to surround your setting in the quotes, parentheses, etc...

    Your main SQL should look like

    SELECT employe_id, employee_name, date_of_birth

    The EMPLOYEE

    WHERE employee_gender =: gender equality;

    On the assumption that: the sex is the name of your user setting.

  • How to make a form with report and a form of inclusion in the same page?

    Hey, guys:

    I was wondering if you could have any link or examples to show how to make a form with report and a form of inclusion in the same page, these two forms are related to the same table. Our customer wants that a user can add a new row to the table in a form and see all lines created by this user in a report, the report should provide link change as well. the problem is: whenever I inserted a new line or change a line or delete a line, and submitted and return to this page, all hidden elements lost their values, this report is empty, and some display only items also lost their values. Could someone give me any suggestions?

    Thank you very much!

    Sam

    So, the problem is essentially with page elements lose their session state values when re-loading of the page. How do you define values for the elements of the hidden page? You have default values defined for those? They are based on the database column? What is the "Source" parameter for these items on the page? It is set to "Always, replace any value in session state"? You have any process of 'Empty the Cache', which is reset these values to null element?

    What is your version of the Apex?

    I would recommend that you have installed for example in apex.oracle.com. This would help to better understand the issue.

    Published by: jaouad khalifi on 13 December 2012 22:11

  • Remove the download interactive report HTML

    I have interactive reports where the link in the column on a specific column must be dynamic, which means, that it can not be hard coded in the column binding attributes. Here is an example of such a report query:
    case when d.object_type_description ='Business Service' then
    '< href="f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    
    when d.object_type_description = 'Real Time Event' then
    '< href="f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    else 
       null
    end as "OBJECT NAME"
    As see you in the above example, the link in the "Object name" column could be redirect page 183 or on page 162, based on the column "Description of object Type.

    The column 'Object name' attribute has 'Type display"the value"Standard report column. This works perfectly well in the UI of the report. However, if I download the IR data (in any format) since the Actions-> download menu, the object name column values are downloaded with HTML characters such as:
    < href="f?p=15548:183:6072319179284::::P183_OBJECT_ID:255245470513999672860510787772603748464">JP010000</>
    where JP010000 is the name of the object.

    Is there a way I can strip the HTML code of the column values in the downloaded files?

    I use Apex 4.1.

    Rohit,

    You can set the query link, make hidden, use the value in the link URL column. Thus, your query will look like the following:

    d.object_name,
    case when d.object_type_description ='Business Service' then
        'f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id
    when d.object_type_description = 'Real Time Event' then
        'f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id
    else
       null
    end link
    

    Change the display type of the LINK column hidden. In the column link, enter #OBJECT_NAME # as the link text. Select the target URL. Enter #LINK # as the value of the URL. APEX 4.2, you can do this more easily by setting the HTML column Expression.

    Kind regards
    Christina

    Published by: cbcho on 27 Sep 2012 11:35

Maybe you are looking for