Setting an Item with source

I have a group of textboxes I want to populate with stored data, it's an edit existing data page. I've written the following under Source for one of my textboxes:
SELECT process_valid
FROM maintenance
WHERE id = :NEWITEMNUM
AND seq = :SEQUENCE
I have Source used set to Always, Type set to SQL query and maintain set to Per Session.
It comes up blank, Session state shows null value and Debug doesn't show that the query was processed. How do I get Source to populate my textbox?
Furthermore, I tried to use something like this:
SELECT exp_date, purpose, miles
INTO :P7_DATE, :P7_PURPOSE, :P7_MILES
FROM maintenance
WHERE id = :NEWITEMNUM
AND seq = :SEQUENCE
And I got a No Data error.

Definetely sounds like a session state issue if the straight query doesn't work....
How are the items that Scott mentioned being populated? You aren't accidently doing something like clearing the cache on your branch and repopulating them too late on page load?
What if you replace :NEWITEMNUM and :SEQUENCE with hard coded values within Apex? Does all look well then?

Similar Messages

  • Pre populate an item with source type="Database Column"

    Hello gurus,
    How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"?
    I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on some parameters from the previous page. How can I achieve this?
    I tried adding a conditional process when PK is null and populate the expected fields, but in the browser they are not shown with those values, even if I look into the session I can see that they have the values assigned in the process ?!?!?!
    Thanks in advance,
    Florin

    Florin,
    Use the Default Value item attribute. In you case, set the Default Value Type to Static Text with Session State Substitutions and enter your item using the &P1_ITEM_NAME. syntax in the Default value text box.
    Thanks,
    - Scott -

  • BUG?: Paginate Doesn't Work with Page Item with Source as Database Column

    CREATE TABLE T_PARENT
      ID NUMBER NOT NULL
    , STAFFID VARCHAR2(20)
    , CONSTRAINT PARENT_PK PRIMARY KEY
        ID
      ENABLE
    insert into T_parent values (1, '77258317');
    commit;
    create table T_child as
    select
      rownum id
    , '77258317' staffid
    , dbms_random.string('U', 5) aa
    , dbms_random.string('U', 15) ab
    , dbms_random.string('U', 3) ac
    from dual
    connect by level <= 100;
    /Form page for T_PARENT.
    Classic report:
    select id, aa, ab, ac
    from t_child
    where staffid = :Px_STAFFIDTry and paginate = no data found.
    However, if you first submit the page, then paginate, it works as expected.
    Reproduced:
    http://apex.oracle.com/pls/apex/f?p=54920:57:106342795192226::::P57_ID:1
    If I for e.g. use an item with static assignment, it works fine.
    Cheers,
    Trent
    Edited by: trent on Apr 19, 2013 11:59 AM
    Also, it works fine when you reference the PK column.

    Just like with the paginate, the problem may also happens when you change the sort column or direction by clicking on the header.
    If the item in the WHERE clause was being set fromt he URL this wouldn't be an issue because it would be saved on the Persisten Session state.
    Regarding session state, there are two kinds Temporary or in memory and Persistent. When the page is rendering the item values are only on the Temporary session state. This is why the report renders correctly on page load.
    The item value won't go to Persistent session state until the page is submitted. Item values also go to Persistent session when they are passed in the URL, or explicitly set with a computation, etc..
    The Session state Dialog can only show the Persisten session state which is saved in DB tables. It's unable to show you the values during page render. For that you need other mechanisms like debug messages.
    I think that when you set page item as SQL query and Only when current value session state is null the value must be saved to Persistent session state. If you can examine the value with the Session Dialog then that would confirm that.
    Hope this helps.
    Thanks
    -Jorge

  • Set multiple items with javascript function in chart link

    Hi Folks
    I am able to use the javascript $s function to set the value of one item from a chart link. I need to pass values to multiple items.
    Is there a way to use javascript function to pass values for multiple items on a page from a chart link
    Appreciate your responses
    Thanks
    Gopal

    Hi Arnau,
    You need to surround your JavaScript code like this (without the spaces before and after script):
    < script language="Javascript">
      window.open("<%=ABAP_VARIABLE%>").focus();
    </script >
    Regards,
    Patrick.

  • Calling a method and setting an ImageIcon with source from anoth class

    I am trying to make a simple game, first I am trying to set up a game board, and make it possible to place units on the board. (This game will probably never be possible to play, I am just using it to try to understand Java, GUI, Swing, and using more than one class).
    So far I have 4 classes: Board (extends JFrame, sets up a gameboard, on which to place the pieces), Unit (a class from which the specific units types will inherit), Horse (my only type of unit, which extends the Unit class), and Game (which calls methods from the other classes).
    (These don't do much now.. this is what they will do, hopefully).
    All these classes are in a package called Gamev1.
    In the main method of Game, I do:
    ---code--
    public static void main (String[]args){
    new Board().show();
    Horse horseUnits[] = new Horse[1];
    horseUnits[0] = new Horse();
    horseUnits[0].moveUnit(squares[0]);
    end of code--
    when I debug it I get:
    myjava/FirstGraphics/Gamev1/Game.java [25:1] cannot resolve symbol
    symbol: variable squares
    location: class.myjava.FirstGraphics.Gamev1.Game
    horseUnits[0].moveUnitsquares[0]);
    1 error
    ---code----
    moveUnit(JLabel moveTo)
    is a method in Unit class:
    public void moveUnit(JLabel moveTo){
    target=moveTo;
    target.setIcon(this.image);
    if (this.position !=null)
    this.position.setIcon(noUnit);
    this.position=moveTo;
    ---end of code---------
    squares[] is an array of JLabels which is set up in the Board class, whenever a new Board is created:
    ---code---
    JLabel squares[] = new JLabel[100];
    for (int s=0; s<100; s++){
    squares[s] = new JLabel();
    ---end of code---
    I tried changing the reference from squares[0] to Board.squares[0] but I got the same error message in debug.
    Any idea what is wrong?
    I have another problem, which is probably similar.
    in the Board class I call:
    squares[s].setIcon(Unit.noUnit);
    and in the Unit class I have:
    static ImageIcon noUnit = new ImageIcon("images//none.gif");
    I don't get an error message mentioning it, but (without the attempt to place the horse on the board) the program compiles, but doesn't put this image on the labels. Any idea what is the porblem here?
    If I have not given enough information for anyone to help me, please tell me what further information I should give.
    Thanks to anyone who answers.

    I got it to work with
        Board board = new Board();
        horseUnits[0].moveUnit(board.squares[0]);To use Board.squares[0], squares would have to be static.
    The ImageIcon seemed to work okay. I noticed that your post had two slashes in the url [/] - that might throw things off . . .
    The code below has the icon call at the end of setLabeLProperties.
    I got carried away playing with the graphics so the squares don't work very well.
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class HumaniBlue {
      public static void main(String[] args) {
        Board board = new Board();
        board.show();
        JLabel label5 = board.getLabel(5);
        //System.out.println("label5 name = " + label5.getText());
        Horse[] horseUnits = new Horse[1];
        horseUnits[0] = new Horse();
        horseUnits[0].moveUnit(board.squares[0]);
    class Unit {
      static ImageIcon noUnit = new ImageIcon("images/bclynx.jpg");
      public void moveUnit(JLabel square) {
    class Horse extends Unit {
      public Horse() {}
    class Board {
      JFrame f;
      JPanel gameBoard;
      int labelSize;
      JLabel[] squares = new JLabel[16];
      GridBagConstraints gbc = new GridBagConstraints();
      public Board() {
        gameBoard = new JPanel(new GridBagLayout()) {
          public void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            double width  = getSize().width;
            double height = getSize().height;
            g2.setPaint(Color.white);
            g2.fill(new Rectangle2D.Double(0, 0, width, height));
            g2.setPaint(Color.black);
            Shape line;
            double
              gridSize = (width < height ? width : height) * 0.8,
              gridUnit = (width < height ? width : height) / 5,
              x = (width  - gridSize) / 2,
              y = (height - gridSize) / 2;
            labelSize = (int)gridUnit;
            for(int j = 0; j < 5; j++) {
              line = new Line2D.Double(x, y, x, y + gridSize);      
              g2.draw(line);
              x += gridUnit;
            x = (width - gridSize) / 2;
            for(int j = 0; j < 5; j++) {
              line = new Line2D.Double(x, y, x + gridSize, y);
              g2.draw(line);
              y += gridUnit;
          //System.out.println("width = " + width + "\theight = " + height + "\n" +
          //                   "x = " + x + "\ty = " + y + "\n" +
          //                   "gridSize = " + gridSize + "\tgridUnit = " + gridUnit);
        f = new JFrame();
        f.getContentPane().add(gameBoard);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(400,400);
        f.setLocation(600,200);
        //f.setVisible(true);
        setLabelProperties();
      private void setLabelProperties() {   
        int
          r   = 30,
          g   = 30,
          b   = 0,
          inc = 55;
        //System.out.println("labelSize = " + labelSize);
        for(int j = 0; j < squares.length; j++) {
          squares[j] = new JLabel("Square " + j, JLabel.CENTER);
          squares[j].setOpaque(true);
          squares[j].setPreferredSize(new Dimension(73, 73));
        // add labels
        int index = 0;
        gbc.gridx = 0;
        gbc.gridy = 0;
        for(int y = 0; y < 4; y++) {
          for(int x = 0; x < 4; x++) {
            index = y * 4 + x;
            squares[index].setBackground(new Color(r,g,b,90));
            gameBoard.add(squares[index], gbc);
            gbc.gridx++;
            r += inc;
          gbc.gridy++;
          gbc.gridx = 0;
          r = 90;
          g += inc;
        squares[9].setIcon(Unit.noUnit);
      public void show() {
        f.setVisible(true);
      public JLabel getLabel(int index) {
        return squares[index];
    }

  • Problem with Sourcing for multiple line items SRM 7.0

    Dear All,
    We are in SRM 7.0, extended classic scenerio,
    For sourcing we have selected config "Sourcing is carried out for items without a Assigned source of supply" for all sytems and all product categories
    Our requirement is Catalog items should not go to sourcing, Item with and without assigned source of supply both should go to sourcing and external requirements SC should go to sourcing.
    We have done coding in BADI "DOC SAVE BADI" and "BBP_SRC_DETERMINE" method DETERMINE_SOURCING.
    Now we create SC with line items only using Catalog it is working fine, SC not going to sorcing,
    Create SCfor line items with assigned source of supply only it is working fine, SC going to sourcing,
    and Create SCfor line items without assigned source of supply only it is working fine, SC going to sourcing,
    But problem is with the combination of all items i.e. Catalog, with and w/o assigned source of supply in one SC
    Assigned  source of supply item is not appearing in Sourcing cockpit, and some time catalog items also available for sourcing.
    Please help
    Thanks in Advance
    Vikas
    Edited by: VIKAS CHINCHORE on Oct 4, 2011 11:53 AM
    Any luck?

    Hi
    Please revisit your logic wriiten in this method
    DETERMINE_SOURCING
    Are you checking here sc has item or sc  has supplier or not ( fixed supplier) in the logic? it must be item check.
    As per sap standard , catalog item / fixed source of supply assigned will not venture to cockpit (Sourcing is carried out for items without a Assigned source of supply)

  • HTML Region with source as an item not rendering HTML

    HI All,
    1) I have a hidden item P1_ITEM which will be populated after page submit. This item value will be a text with HTML tags
    2) I have created a HTML region with source as &P1_ITEM.
    However the text in HTML region is not getting rendered properly for eg;-
    If the value of P1_ITEM is
    *HI &lt;BR &gt; HOW R U &lt;BR &gt;
    &lt;BR&gt; tag appears as such and is not rendered in HTML format.
    What should I do to get the HTML rendering correct.
    Thanks & Regards,
    Vikas Krishna

    Hi
    I created the scenario you explained and found the same issue. I don't know the reason may be some other expert can explain the it.
    However as a workaround you can create a PL/SQL (anonymous block) region and in the source you can use
    htp.p( :P1_ITEM );----
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Help with Error: Jcarousel: No width/ height set for items....

    Hey everyone.  I have a user that is using a Tour and everytime he opens up a site like ESPN he receives the following error:  Jcarousel: No width/ height set for items. This will cause and infinite loop. Aborting…  I had him pull his battery but this did not work.  I have tried to search the forums and google, but I have yet to find anything concerning Blackberrys.  He is on V 4.7.140.  I'm not sure what the current version of the Tour software is, but I can definately try updating it to see if this solves the problems.  Before I do this though I wanted to see if anyone here had any ideas or has ran into the same problem.  Thanks for the help.

    What are you talking about? The width/height of what? Is this some sort of error message? If so from what?

  • I want to add new songs to my ipod.  When I set it up with itunes years ago I had a different computer that I no longer have.  Now it will not let me add new songs to my ipod shuffle without erasing everything that is already on it.  Help!!!

    I want to add new songs to my ipod.  When I set it up with itunes years ago I had a different computer that I no longer have.  Now it will not let me add new songs to my ipod shuffle without erasing everything that is already on it.  Help!!!  Is there any way around this?

    Yes, I was aware of this but the phrase "Any items imported from audio CDs or acquired from other sources will not copy from your device to the iTunes library." is what worries me.  Will this eliminate my Notes, Calendar Events, etc or will it apply mostly just to the music?

  • Set Text Item To SQL Query Result

    I am trying to set a text item to a SQL query result. Something like the following:
    (I am trying to accomplish this in the SOURCE portion, set to 'SQL Query' source type, of the text item properties)
    SELECT empno FROM emp WHERE empno = :SEARCH_EMPNO;
    This only displays as the literal text when the application renders and not the value from the SQL query.
    I apologize if this has already been posted but I could not find what I am looking for. I have seen posts that reference a pre-region computation but do not know the exact steps to accomplish the results I want.
    Thanks in advance for anyone's time to help me with my issue.
    Kyle

    Scott,
    The literal that displayed (I have fixed it) was the actual SQL statement: SELECT empno FROM emp WHERE empno = :SEARCH_EMPNO;
    I have resolved the issue, using SQL Query as the "Source Type" and Always, replacing any existing value in session state as the "Source Used" for the properties of the item.
    What I was trying to accomplish is a search text item that would return the data for that record in a table into other text items, for each column in that record, for update; based on the search text item as a unique SQL query search for that record.
    Thank you for your quick reply!
    Kyle

  • Populating item with pl/sql function body

    Hi,
    I want to populate a "Display as text (saves state)" item with the difference of 2 other items.
    The source of my item is:
    - Only when current...
    - PL/SQL Function body
    - Source expression:
    DECLARE
    v_diff NUMBER;
    BEGIN
    v_diff := :P1_AUFWAND_TOTAL - :P1_AUFWAND_BERECHNET;
    return v_diff;
    END;
    Now I get this error:
    ORA-06502: PL/SQL: numerischer oder Wertefehler: Fehler beim Konvertieren von Zeichen zu Zahl
         Error      ERR-1904 Unable to compute item default: type = Function Body...
    I tried to track down the problem with to_number conversion:
    v_diff := to_number(':P1_AUFWAND_BERECHNET'); or
    v_diff := to_number(':P1_AUFWAND_BERECHNET', '999G999D00');
    What's wrong here? It feels like I'm making a simple mistake...
    Thanks for any help,
    Roger

    Hi Denes,
    Thanks for your help. You were right, item :p1_aufwand_berechnet was not a number.
    I created the problem myself by setting the format to:
    return TO_CHAR(v_aufwand,'999G999G999G999G990D00');
    Now the dilemma is that I want to calculate the numbers, but at the end I want a nice format to display them. This obviously only works with TO_CHAR, see:
    Re: Number format mask of text item is not applied
    Maybe this is to be solved with a seperate process after the calculation, to set the format?
    Cheers,
    Roger

  • Set hidden item in Javascript

    Hi,
    I am having a hidden page item P4_SELECT in my page. I am trying to set this page item with a value in javascript function.
    function getTheCurrentRow(triggerItem){  
        alert( triggerItem.slice(6));
       document.getelementbyid(P4_SELECT).value=triggerItem.slice(6);   
    // $x(P4_SELECT).value=triggerItem.slice(6);
    </script>Eventhough i am getting value in the alert getting javascript error "P4_SELECT Undefined" .
    When i checked the "view Source" of the page it is having this line in it
    <input type="hidden" name="p_t04" value="" id="P4_SELECT"  />I tried
    $x(P4_SELECT).value=triggerItem.slice(6);But getting same result only. Can't we set hidden item values in Javascript.
    Regards,
    Jyothi

    Hi,
    If you are on Apex 3.x or higher , try
    function getTheCurrentRow(triggerItem){  
    alert( triggerItem.slice(6));
    $s("P4_SELECT", triggerItem.slice(6));   
    /* Alert hidden item value you did set */
    alert($v("P4_SELECT"));
    </script>Here is link to Apex JavaScript API document where you can find functions $s and $v I did use
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CDEEIGFH
    Regards,
    Jari

  • Item Finder Source Code

    I am looking to create a page with the same functionality as the 'Item Finder" with in the HTMLDB design tool. It is used on pages like region definitions or any where you need to search for existing items with in your application like on page branching where you can set the item and the value. Does any one have the source code for that page or an example of how to search all of the objects with in the application?

    <html lang="en-us" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i/javascript/htmldb_get.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    /*Global JS Variables*/
    var htmldb_Img_Dir = "/i/";
    //-->
    </script>
    <link rel="stylesheet" href="/i/css/core.css" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" href="/i/css/htmldb_V2.css" type="text/css" />
    <title>Item Finder</title>
    </head>
    <body style="margin:5px;">
    <form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm" >
    <input type="hidden" name="p_flow_id" value="4000" id="pFlowId" />
    <input type="hidden" name="p_flow_step_id" value="273" id="pFlowStepId" />
    <input type="hidden" name="p_instance" value="17091739936304412237" id="pInstance" />
    <input type="hidden" name="p_page_submission_id" value="62324" id="pPageSubmissionId" />
    <input type="hidden" name="p_request" value="" id="pRequest" /><a name="PAGETOP"></a>
    <div id="htmldbMessageHolder"></div>
    <div><table summary="" ><tr>
    <td nowrap="nowrap" align="right"><label for="F4000_P273_SEARCH"><a class="htmldbGALabel" href="javascript:popupFieldHelp('17538524240255101','17091739936304412237','Close')" tabindex="999">Search</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="17538524240255101" />
    <INPUT TYPE="text" NAME="p_t01" SIZE="15" MAXLENGTH="2000" id="F4000_P273_SEARCH" ></td>
    <td nowrap="nowrap" align="right"><label for="F4000_P273_PAGE"><a class="htmldbGALabel" href="javascript:popupFieldHelp('17561408257292898','17091739936304412237','Close')" tabindex="999">Page</a></label></td>
    <td nowrap="nowrap" colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="17561408257292898" />
    <noscript>
    JavaScript not supported
    </noscript>
    <script language="JavaScript1.1" type="text/javascript">
    <!-- Comment out script for old browsers
    function filter_escape(in_value) {
    out_value = in_value;
    out_value = out_value.replace( /%/g, '%25');
    out_value = out_value.replace( /\?/g, '%3F');
    out_value = out_value.replace( /&/g, '%26');
    out_value = out_value.replace( / /g, '%20');
    out_value = out_value.replace( /;/g, '%3B');
    out_value = out_value.replace( /\//g, '%2F');
    out_value = out_value.replace( /:/g, '%3A');
    out_value = out_value.replace( /@/g, '%40');
    out_value = out_value.replace( /=/g, '%3D');
    out_value = out_value.replace( /\+/g, '%2B');
    out_value = out_value.replace( /\$/g, '%24');
    out_value = out_value.replace( /,/g, '%2C');
    out_value = out_value.replace( /#/g, '%23');
    return out_value;
    function genList0_p_t02_2()
    w = open("wwv_flow_utilities.gen_popup_list" +
    "?p_filter=" +
    "&p_name=" + escape('p_t02') +
    "&p_element_index=" + escape('2') +
    "&p_form_index=" + escape('0') +
    "&p_max_elements=" + escape('') +
    "&p_escape_html=" + escape('') +
    "&p_ok_to_query=" + escape('YES') +
    "&p_flow_id=" + escape('4000') +
    "&p_page_id=" + escape('273') +
    "&p_session_id=" + escape('17091739936304412237') +
    "&p_eval_value=" + escape('') +
    "&p_translation=" + escape('N') +
    "&p_lov=" + filter_escape('select id||\' \'||name n, id from wwv_flow_steps where flow_id = :FB_FLOW_ID and security_group_id = :flow_security_group_id order by 2') +
    "&p_lov_checksum=361EF0E5FBE4F62F2941F94F08F82C22",
    "winLovList",
    "Scrollbars=1,resizable=1,width=400,height=500");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    }//-->
    </script>
    <INPUT TYPE="text" NAME="p_t02" SIZE="8" MAXLENGTH="2000" VALUE="800" id="F4000_P273_PAGE" ><IMG SRC="/i/htmldb/icons/view_small.gif" width="18" height="18" alt="List" border="0" align="bottom"></td>
    <td nowrap="nowrap" align="right"><label for="F4000_P273_MAX_ROWS"><a class="htmldbGALabel" href="javascript:popupFieldHelp('17569726576299523','17091739936304412237','Close')" tabindex="999">Display</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="17569726576299523" />
    <select name="p_t03" size="1" id="F4000_P273_MAX_ROWS" >
    <option value="5">5</option>
    <option value="10">10</option>
    <option value="15">15</option>
    <option value="20">20</option>
    <option value="25">25</option>
    <option value="50">50</option>
    <option value="75">75</option>
    <option value="100">100</option>
    <option selected="selected" value="500">500</option>
    <option value="1000">1000</option>
    <option value="5000">5000</option>
    </select></td>
    <td nowrap="nowrap" align="left"></td>
    <td colspan="1" rowspan="1" align="left"><input type="button" onclick="javascript:doSubmit('GO');" value="Go" class="htmldbButton" /></td>
    </tr>
    </table>
    <span class="nodatafound"><span></div>
    <div style="text-align:middle;"></div>
    <input type="hidden" name="p_md5_checksum" value="" /></form>
    <script language="JavaScript1.1" type="text/javascript">
    first_field('F4000_P273_SEARCH');
    </script>
    </body>
    </html>

  • Display item with HTML affected by dynamic action

    Hi,
    I'm using APEX 4.1.1
    I have a item P1_TEST set as "Display only", escaping special characters "no", and the source as pl/sql expression of
    'hello <b>world</b>'I then create a dynamic action executing PL/SQL on click of a button.
    P1_TEST is listed in both "page items to submit" and "page items to return", and it doesn't matter what happens in the pl/sql code - it could just be null;
    When opening the page, I see
    hello world
    as desired.
    After clicking the button, the field contents become escaped and I see hello <b&GT;world</b>which is not desired.
    Is this expected behaviour / a bug? Is there a workaround?
    Cheers
    Scott

    Hi Scott,
    This was indeed a change of behaviour from 4.1.1 to 4.2 and has to do with how APEX handles input escaping (or when saving values into session state). I should say, we plan to revisit the current behaviour to make this more transparent and obvious, but that won't be for 4.2, for your information.
    As you identified, the escaping is happening as part of the 'Page Items to Submit' functionality, so in other words when the item value is saved in session state. APEX has some predefined rules about when and when not to do input escaping based on the item type, and this is what has changed slightly from 4.1.1 to 4.2.
    In 4.1.1, regardless of whether item values are set via the URL or via an Ajax call, the same rules applied for when APEX does input escaping. We always input escape the 'safe' item types. These types used to be documented in the 3.2 documentation, here: http://docs.oracle.com/cd/E14373_01/appdev.32/e11838/sec.htm#CDDBBECI
    (Obviously the item types have changed slightly with the consolidation of some of those into single items, with different settings. But hopefully that is still of use, and we no longer cite them in the same way in recent documentation so I couldn't link to something more recent.)
    In 4.2, this behaviour was 'relaxed' slightly, such that this logic only kicks in when setting values over the URL, not for Ajax calls. This is why this is no longer an issue with your DA, because we no longer obey the same item type escaping in the context of an Ajax call.
    As a workaround for 4.1.1, I would suggest to use a non-safe item type to set your value into (eg a 'Hidden' type), then use JavaScript just to copy that over to your displayed item. The 'unescape' function didn't work, because that does URL unescaping, not HTML unescaping.
    Hope that helps,
    Anthony.

  • Setting an item value before print report in BI Publisher

    Hi,
    I am having an issue with setting a page item's value once a button (that prints a BI Publisher report) is pressed. The session state for the item is set, however because the page does not re-load no value appears in the item on the page.
    I am using a button as a page Item and using a Page Branch with the Branch Point set as On Submit: After Processing(After Computation, Validation, and Processing) with the Page set to 0 and the Request set to PRINT_REPORT=REPORT
    Is there any way to set the item value on the page before branching to the report?
    Your help is greatly appreciated.
    -Marsha

    Marsha,
    You can do that as follows:
    1- create a hidden text item (P20_date_hidden) with default value set to sysdate.
    2- for your button >> edit >> Buttom display attributes >> attributes >> type in : onFocus= "set_date();" (( note: am using onFocus because it takes places before onClick ))
    3- In your page >> edit >> HTML header >> type in :
    <script language="JavaScript" type="text/javascript">
    function set_date()
    v_date = $x('P20_DATE_HIDDEN').value;
    $x('P20_DATE_LETTER_SENT').value = v_date;
    </script>
    Hope this helps,
    Sam
    Please reward good answers by marking them correct or useful!

Maybe you are looking for

  • Output shows in report builder but not in concurrent program

    Dear All I have made a concurrent program and attach to responsibilty. but when it is submitted it does not fetch any data , it fetches the data when it is run in report builder. Kindly update it regards Arifuddin

  • Draw signature box for a tablet computer

    I work for a public library and Acrobat is not my area of expertise so I need some help please! We have a PDF form for a lease agreement for a meeting room space. Using a tablet computer, we go over the lease with the renters and then sign it in pers

  • [SOLVED] Low resolution on game exit

    I was doing some research, but was not able to find an acceptable solution. When I exit a game my resolution will go to 800x600 every time. (My resolution is 1366x768) I'm pretty sure that I can do something like "when you exit a game/full-screen mod

  • Accessing File Shares Over NAT

    Hello, I am working with a client that set up a new sub net that uses hide NAT. When I try to access a file share on a server in a different sub net, I can only browse for a few seconds and then an error such as "Server service not started" or "netwo

  • 10.8.4 won't boot

    I recently bit the bullet and started using my 10.8.3 drive as my main drive, even though it breaks some of my plugins that work fine in Logic under 10.6.8. After 3 weeks of running stably, Apple pushed out the 10.8.4 update, which made my 2008 Mac P