Possible to display null item value as 'All'  in blank HTML region?

Apex 4.1
Theme 21
Hi There,
I have select list which has null and other values. I have created a blank HTML region with the following text
Report for the year &P2_YEAR. and for geography &P2_GEOG.
Now P2_YEAR works fine because, it is always populated with a year. However, &P2_GEOG has 'All' as null value since we can see the report for all geographies. However, if the all option is selected, the above &P2_GEOG. shows as null. Since its not a PL/SQL proc, I cannot put in a NVL. I am guessing one possible way is to write a PL/SQL code before region and then check if its null and then try to populate a new hidden field and show, something like that. Wondering if there is a way to do it directly in the HTML region?
Thanks,
Sun
Edited by: ryansun on Jul 2, 2012 12:49 AM
Edited by: ryansun on Jul 2, 2012 12:50 AM
Edited by: ryansun on Jul 2, 2012 12:55 AM

Hi Morten,
in the validation callback you could use apex_util.set_session_state to modify the page items value. We do that ourself in the "Number Field" native item type plug-in.
Regards
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

Similar Messages

  • How do you display an item value based on other items?

    Item C's value depends on item A and B. If both A&B are null then C should display null , if A is null but B is not null then display 'Ok', everthing else display ' problem';
    3 items on page 5
    item A: name p5_A, display as text (saves state). source type is a dabase column
    item B: name P5_B, display as text (saves state). source type is a databbase column
    item C: name P5_C, display as text (based on PLsql doest not save state), source type pl/sql anonymous block ? like the following
    if :P5_A is null and :P5_B is null then :P5_C is null; else if :P5_A is null and :P5_B is not null then :P5_C := 'OK'; else :P5_C := 'Problem'; end if;
    Can someone tell me what did I do wrong on these stements unde apex? Thanks a bunch.
    Tai

    Alternatively, you could do a add a computation for that item - same source as mentioned in the previous reply, but each will work.
    Also, in your anonymous block, you have:
    if :P5_A is null and :P5_B is null then :P5_C is null; else if :P5_A is null and :P5_B is not null then :P5_C := 'OK'; else :P5_C := 'Problem'; end if;should probably be
    if :P5_A is null and :P5_B is null then :P5_C := null; elsif :P5_A is null and :P5_B is not null then :P5_C := 'OK'; else :P5_C := 'Problem'; end if;so instead of :P5_C is null , assign it a null - :P5_C := null. Also, else if in pl/sql is written as: elsif
    Edited by: tr3nton on Jan 19, 2010 3:03 PM

  • Display Distinct Item Value

    Hello All,
    I am having an problem displaying a distinct value for Item 'PK_EMPL_ID'. I need all the Items below because I am passing these values to another page in APEX. But I need help with this select statement syntax.
    SELECT hs.pk_session_id,
           hsp.pk_session_process_id,
           hs.fk_class_id,
           hsm.pk_empl_id,
           hsm.last_name || ', ' || hsm.first_name studentname,
           dg.department_group_descr,
           pd.department_descr,
           hsm.fk_dept_group,
           hsm.fk_dept_code,
           hsp.fk_empl_id,
           hs.session_meridiem,
           hsn.session_name,
           hs.session_date,
           hsp.session_process_status
        FROM   hrt_session hs,
               hrt_session_name hsn,
               hrt_session_process hsp,
               hrt_student_master hsm,
               cobr.department_group dg,
               cobr.pps_department pd
        WHERE  hsn.pk_session_name_id = hs.fk_session_name_id
           AND hsp.fk_session_id = hs.pk_session_id
           AND hsp.fk_empl_id = hsm.pk_empl_id
           AND hsm.fk_dept_group = dg.pk_department_group_id
           AND hsm.fk_dept_code = pd.pk_department_idMy output is like:
    -PK_EMPL_ID-
    JOHN
    JOHN
    JOHN
    BOBBY
    JAMES
    I only want to display each 'PK_EMPL_ID' value once when the select statement is executed, not duplicate values. I have tried distinct, group by etc... but I am having trouble since I am using multiple tables using these foreign keys. I have viewed a few threads but they are only handling one or two item values from one table. Can anyone assist me with please? Thanks ahead of time.

    Hi,
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements) for all tables, and the results uyou want from that data.
    You may have a clear idea of where you're coming from, and where you want to go, but the description alone doesn't convey that clear idea to us.
    You can also rephrase your question in terms of some commonly available table, like scott.emp.
    For example: "I'm doing this query on scott.emp:
    {code}
    SELECT      job
    ,     deptno
    FROM     scott.emp
    {code}
    How can I get only 1 row per distinct job?"
    Without sample output, the question is still vague.
    There are 14 rows in scott.emp.
    You can reduce the output to 9 rows by changing "SELECT" to "SELECT *DISTINCT* ":
    SELECT DISTINCT
         job
    ,     deptno
    FROM     scott.emp
    ;which produces:
    OB           DEPTNO
    MANAGER           20
    PRESIDENT         10
    CLERK             10
    SALESMAN          30
    ANALYST           20
    MANAGER           30
    MANAGER           10
    CLERK             30
    CLERK             20But that's as far as you can go without changing the results.
    For example, all three departments have MANAGERs. If you want only 5 rows of outptu (one for each of the 5 distinct jobs), then which deptno do you want?
    If you want the lowest one, here's one way to do that:
    WITH     got_rnum     AS
         SELECT     job
         ,     deptno
         ,     ROW_NUMBER () OVER ( PARTITION BY  job
                                   ORDER BY          deptno
                           ) AS rnum
         FROM    scott.emp
    SELECT     job
    ,     deptno
    FROM     got_rnum
    WHERE     rnum     = 1
    ;Output:
    JOB           DEPTNO
    ANALYST           20
    CLERK             10
    MANAGER           10
    PRESIDENT         10
    SALESMAN          30There are other apprioaches to this problem, too. The advantage of this one is that it works well with any number of columns in the output.

  • Do not display NULL tables/values(Urgent)

    Hi,
    My template consists of a parent BC and child BC fields(BIP integrated with Siebel) . I have inserted the child table inside the parent table. When there are no values in the child record i do not want the parent record to get displayed. I tried giving a condition <?if:ActivityStatus!=''?> in the child. The child table does not get displayed if there are null values but the corresponding parent record gets displayed. I tried constraining in the parent also but of no use. Any kind of help is greatly appreciated.Thanks in advance.
    Regards,
    Pavithra
    Edited by: 856511 on May 11, 2011 5:53 AM

    send your xml and rtf to [email protected]
    let me check

  • Using unbounded item value for rendering expression in a region

    Hi there,
    I use jheadstart 11g tp2.
    I have a question about a group in application definition module which all of the items are unbounded.
    For 3 of them I use text input lov which related to lov that is bounded to a view.
    I use the return value of the lov for filling unbounded items and I want to use that filled unbounded item for rendering expression of a region.
    my problem is after using lov I can't use the binding value of the unbound item (which filled by returning value from lov) for another part of the the group
    I have a region that should be visible and invisible based on that item
    Please let me know is there anyway for doing this or not?
    Thanks for your help
    Setareh Rajaei

    the unbound item has a variable binding in the page def, so you can refer to the value of the unbound item using the expression
    #{bindings.[groupName][itemName].inputValue}
    Steven Davelaar,
    Jheadstart Team.

  • Grouping to display null values for all the missing dates

    Hi SAP,
    I am trying to display '0.00' value for all the missing dates in my crystal reports as follows:
    17-Jan-14     40.00
    18-Jan-14       0.00
    19-Jan-14       0.00
    20-Jan-14     80.00
    However, my crystal report is showing as follows:
    17-Jan-14     40.00
    18-Jan-14       0.00
    19-Jan-14
    20-Jan-14     80.00
    The missing dates with no data are group together and my '0.00' value is not. Kindly advise me the solution. The formula is shown as per attached.
    Thank you.
    Regards.

    Hi,
    Thanks for your reply.
    Fyi, I am using a formula field in crystal report to display "0.00" for days in between as follows:
    whileprintingrecords;
    if Days_Between({Command.DocDate},next({Command.DocDate}),'dd-MMM-yy') = "" then "" else "0.00"
    There is another formula field in crystal report to display the missing dates in between as follows:
    whileprintingrecords;
    Days_Between({Command.DocDate},next({Command.DocDate}),'dd-MMM-yy')
    Below is my report custom functions:
    Function Days_Between (datefield as datetime, nextdatefield as datetime, format as string)
    ' This function is only used to display what data is missing within a specified date range...output type is text
    dim thisdate as date
    dim nextdate as date
    dim output as string 'output is the text display
    dim daysbetween as number
    dim looptimes as number
    looptimes = 0
    daysbetween = 0
    output = ""
    thisdate = datevalue(datefield) + 1
    nextdate = datevalue(nextdatefield)
    if nextdate - thisdate > 1 then daysbetween = nextdate - thisdate else daysbetween = 1
    do
    if nextdate - thisdate > 1 _
    then output = output + totext(thisdate, format) + chr(10) _
    else _
    if nextdate - thisdate > 0 _
    then output = output + totext(thisdate, format)
    looptimes = looptimes + 1
    thisdate = thisdate + 1
    loop until looptimes = daysbetween
        Days_Between = output
    End Function
    The issue arise when when there is more than one missing dates in between but the null values ("0.00") displayed is only for the first missing dates and not for all the missing dates.
    Regards,
    Ting Wei 

  • Is it possible to display Suffix values in ALV Report

    Hi,
    Is it possible to display a suffix value in the output of ALV Report? If so how I can proceed? Please let me know an example.
    Thanks,
    Sekhar.J

    Hi Siddarth,
    I am sorry for the typo. It shold be Sub Script, Not a Suffix.
    Let  us take an example H2O, If we print it in this way it won't be meaning full, So i want to display this like
    H Subscript 2 O. I have a requirement for a column to always to display this kind of values, Is it Possible?
    Thanks,
    Sekhar.J

  • Is it possible to use a content query web part to pull and display rows/items from an Excel spreadsheet saved in a SP library?

    I have an Excel spreadsheet that I want to upload to an SP library. Is it possible to display these items (in a non-excel format, more like an SP list format) in a web part? 

    Have you tried using the Excel web part
    Display Excel content in an Excel Web Access Web Part

  • How to send a list item value to URL to open data related to item value

    Hi,
    Iam using Apex4.0 and iam facing some problem. Iam unable to send selected list item value to the url specified in the HTMl region.
    Here i want to open the data related to list item value in other page.
    List item - :Familyp
    i want to pass this selected value to the url and when ever user selected the list item and clicks on the url, then it should display the item value related data in new page.
    I tried with &FamilyP in url but it's not working. Any one help me plz.
    Regards
    Vamsi.Tata

    Is it a normal Select list or Multi Select list?
    If you have select list that allows you to select multiple options then you cannot pass it through URL. Multi-select /Shuttle keep colon separated list in the item, and this confuses Apex because the Apex URL uses colons for a different purpose. No escaping or URL encoding will help.
    If it is normal select list that allows selection of only one option then you can pass through the url. Unless of course the data has a colon in it.
    For multi-select, and when the value contains colon, the only way is to save the value in session state, same page item or any other place like Application Item, and then reference it at the other end. Never pass through the URL.
    Regards,

  • How to Display Parent Form Values in Child Form

    Hi,
    I have Order Page and Item Page
    In the order Page If I select any Item and click on Submit Button, It should open Item Page and results should display in advance table region. In my Item page i have header region(Default double) with 3 fields (dummy) like
    Item
    Description
    org
    Now my question is I need to display the Item Value in the Item Page Header region in the Item Column which I was selecting in the Order Page.
    I have an order 100 with item A, B , C I select B and click on submit It should open Item Page and in items page i have a column called Item and the value B sholud be populated.
    Thanks,
    Mahesh

    Hello Ajay,
    Thanks for your reply..
    What Iam doing is Iam capturin the values in session variables like below when submit button is clicked
    pageContext.putSessionValue("SItemNo",ItemNo);
    And when my item page is opening I need to set this value to that VO Attribute..
    Iam trying the below way to set the attr value in PR
    String SItemNo=(String) pageContext.getSessionValue("SItemNo");
    OAMessageTextInputBean oa = (OAMessageTextInputBean)webBean.findChildRecursive("ItemNo");
    oa.setAttributeValue(SItemNo);
    But it is giving compilation error
    Error(35,9): method setAttributeValue(java.lang.String) not found in class oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean
    Please correct me ajay.
    Thanks,

  • Display Dataset field Value in the footer based on the Group

    Hi Guys,
    My current SSRS report is displaying multiple projects data. One Project data is rendering into 1 or 2 pages based on the project specific data.
    Now, the requirement here is to display the "ProjectName" in the footer of the SSRS report in below format. For instance, if project A data is rendering in 2 pages then the footer in two pages should display project Name A and in the
    third page it shows display the Project Name b in the footer of the report.
    ProjectName [Insert Reporting Month]                                                                                                Page
    # of #
    Has anyone come across such requirement. Thanks.
    Warm Regards Badal Ratra

    Hi Badal,
    In SQL Server Reporting Services (SSRS), we cannot use the “Project” filed without specifying a dataset aggregate in page footer. However, we can display the item value in the page footer. Please refer to the following steps:
    Add a list in the report. Configure this list with the corresponding dataset.
    Configure the list “Group on:” ProjectName.
    Add the tablix in the list, add page break “Between each instance of a group” of the list.
    Add a text box (TextBox1) with expression below:
    =Fields!ProjectName.Valu
    Set the visibility of the text box to Hide.
    Add a text box in the page footer fill with following expression:
    =ReportItems!TextBox1.Value
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • PAGE RADIO BUTTONS and APPLICATION ITEM VALUE

    I have several pages that use same radio button group that permits filtering the report query (of course on each page, it is a page level radio button item).
    I created an application item value to hold the last used value of a radio button item.
    On login, I would like the application item value set to a default value.
    For a given page using the recurring radio button group item,
    I would like the radio button item value set to the application item value on entry into a page.
    I would like the report to use the application item value on entry to a page.
    I would like the application item value be updated anytime the page level radio button item value is changed, so that when you move to another page,
    the next radio button group and report can use the last selected radio group button value.
    I am trying to use a variety of solutions in COMPUTATION and CONDITIONAL COMPUTATION... to include use of set_session_state procedure, and I am not getting desired result, partial success, but not complete.
    Can you have a computation item that is only for initialization of the report and radio button group on page entry?
    And a separate computation item that senses user selection of another radio button, updating the report, and updating the application level item?
    Help requested. Thank you.
    Would be nice to have application level objects, like radio button groups.

    Created Page 0
    Created an HTML region in COLUMN 2 and SEQUENCE 10.
    Selected under region CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished the HTML region to appear.
    Created the radio button group item P0_RADIO and assigned to Page0 HTML region.
    Selected under item CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished theradio button group to appear.
    In SHARED COMPONENTS I created an APPLICATION COMPUTATION
    In the computation I created a PL/SQL function to initialize the radio group
    BEGIN
    IF :P0_RADIO IS NULL THEN
    RETURN 'A_ALL';
    ELSE
    RETURN :P0_RADIO;
    END IF;
    END;
    'A_ALL' being the default value for :P0_RADIO
    Radio group appears on the desired pages, is initialized to the desired default value, and works properly on each page.

  • How to display the value of a javascript variable in a html region ?

    Hello,
    I need to display my page title or name in a html region.
    I added a script in the <title> section of the template header... :
    (thanks Andy : Get page name from page attributes ?
    <script type="text/javascript">
    var pageTitle = '#TITLE#';
    </script>... so I can use it in a javascript variable.
    But now I don't know how to display it in a html syntax..
    Thanks!
    Fanny

    ... so I can use it in a javascript variable.Don't see any reason to modify page templates to introduce an unnecessary global JS variable when the document property is already there. Display it using an appropriate HTML element, e.g <tt>h1</tt> if it's the overall page heading.
    <h1>
      <script type="text/javascript">
        document.write(document.title);
      </script>
    </h1>

  • Display word/pdf document in the HTML region or report

    Hi,
    How to display blob content stored in a table in HTML region or report region.
    I already have a process to display the image content.
    But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
    Any suggestions/solutions would be of great help.
    Thanks in advance...
    Thanks,
    Ramesh P.

    I was dead wrong.
    The display of images from BLOB is a special case because APEX provides a Display Image item type.
    Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
    Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
    This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
    Regards,

  • Conditionally display items based on null LOV value

    Hello,
    I've seen several examples that do what I'd like to do but with different implementations. Perhaps someone can steer me in the right direction...
    I have a pop-up lov that pulls a list of names from various places. If, however, the name cannot be found I'd like to display a few text boxes where the user can enter a new name.
    For my list of values I have configured the following:
    Display Null: Yes
    Null Return Value: -1
    Null Display Value: Not Found
    My HTML Form Element Attributes has: onchange="doSubmit()";
    My Source section has:
    Source Used: Only when current value in session state is null
    Source Type: Static Assignment (value equals source attribute)
    My entry text boxes have a condition specified:
    Value of Item In Expression1 = Expression 2
    Expression 1: P4_LOOKUP_NAME
    Expression 2: -1
    I also have an unconditional branch to this same page (Page 4) that sets the value of P4_LOOKUP_NAME to P4_LOOKUP_NAME.
    I cannot seem to get this item to display though...any thoughts?
    Thanks in advance for your suggestions!

    jhammer,
    I like the concept. This would require a custom popup lov - something that can be a little tricky/time consuming the first time around. The popup lov would probably have to create new entries via Ajax to be able to pass back the correct ID/display values to the parent window on close.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

Maybe you are looking for

  • Which type of Antenna connectors does the WAP4410N have?

    Hi. I recently purchased a Linksys WAP4410N. While I was surprised how much reach I get out of this thing, I now consider maybe upgrading it with a few better antennas. I basically just need to know if the antenna connectors are RP TNC or some other

  • Adding a Custom Version Number for a schema

    Hi, I'm currently looking at ways to set an arbitrary version number that would help me know where a particular is currently at. I already have a logging table to indicate which scripts have been run. But I want to "tag" my schema with a version. In

  • I can't get itune store to load on my computer..all other websites load fine

    I need help in accessing the itunes store on my computer. The webpage will not load

  • Backup for lost iPhone

    Hi Guys! I Just lost my iPhone at sea... My question now is if there is any way to get the hold of the pictures in the phone? It was saved from my last phone alot of pictures into something called Photo Stream. I am not very technical but i would rea

  • Garageband Storage Error

    I was in garageband and i have 18GB of storage but when I try to download the undownloaded loops it says "There is not enough free space on your computer to download and install the content. Create some more free space, then try downloading again."