Display As Text (Saves State) as a Link in an updateable report

I'm running into an odd problem when attempting to use display as text(saves state) in a report as a link.
I have an updateable SQL report with the following columns in this order
1) A checkbox column
2) A column as a link using the Link Text attributes
3) A hidden column storing a key for use in the form
As I expected the checkbox is given a form name of f01 and the hidden column is f02
However, when I decide to switch the second column to be Display As Text (saves state) which also has the Link Text attributes set, so I can submit the value of that column in my form, something odd happens.
The checkbox is still submitted as f01. The hidden column becomes f03, however the Display As Text (saves state) value appears nowhere in the form. Neither does the text name="f02". It just stays as a link like it was before.
I'd really like to be able to submit the value without duplicating the column in the query(and making it a hidden value). Does anybody have any ideas about how I could do this?
Am I doing something horribly wrong? Has anybody else experienced this behavior?
Thanks,
Joe
Message was edited by:
joe.bauser

Just to flush out my examples, and as a test for myself, I copied the "broken" example to a fourth page.
After copying the example page, I left the "display as" in "tabular form element" as 'Display As Text (saves state)' and deleted everything that was in the "Column Link" section (removing the link)
Once the link was removed, the Display As Text (saves state) behaved exactly as I would expect it to.
Example here<br>
Link stuff removed

Similar Messages

  • Making a Display as Text (saves state) Item Element Bold

    I have no clue how to do it - need to make the element (not the label) bold.

    Cannot do, you must use Display as text (does not save state). If the item acquires its value during page rendering and you need to save that acquired value in session state, just use a hidden item to carry the value to the after-submit phase and use the text value only for rendering.
    Scott

  • Display document text in query instead of link to the document

    Hi, gurus!
    I'm on BW 3.10. I have a requirement from my customer that BEx web report should contain column with text of BPS document (not the link to it). How to display this text?
    Please help!
    Message was edited by:
            Anton Ermalyuk

    You may have to keep column description between HTML tags , that will create a link to BPS layout for each column.
    try with trick , couple of online documents available " how to create HTML link on column description".
    cheers
    Martin

  • Conditional display of a column link in sql updateable report

    Hi There,
    I've attempted to look thru the Apex forum about using an Authorization Scheme in an SQL Query (Updateble Report) where I can conditionaly enable (display) a column link based upon a value in the report but alas I cannot find a solution.
    What I have is a SQL Query (updateable report). What I want to achieve is dependant on the value of one of the columns in the report query conditionaly display a column link for the row being displayed. For example if the report dispayed the data from emp, dept only display a column link for rows where the deptno = 100 otherwise don't display the column link. Is this possible to achieve?
    I've tried to define in the authorizatuon scheme in the where clause of an SQL Statement to reference the report column as #deptno# but this doesn't work.
    TIA

    Boketi,
    I was unsuccessful yesterday in demoing what I believe you want to achieve. It appears that an authorization scheme will not process row by row within a standard report so as to allow a conditional display of a link or any other column attribute. You can conditionally display a column by the use of a page item but this method appears to be all or nothing.
    I was successful when I coded the return of the empno via a Case statement but the Link still appeared even though there was no value (empno) to link with. So essence the link to you to a blank for with no PK to read the database by.
    SELECT CASE WHEN deptno = 10 THEN empno ELSE NULL END empno,
           ename,
           job,
           hiredate,
           sal,
           comm,
           deptno,
           phone_nbr
    FROM   empJeff

  • Javascript not working with 'Display as Text (does not saves state)'

    Hi,
    We have these following items in P3 of our application,
    P3_EDIT_ACCOUNT Display as Text (saves state)
    P3_USEFUL_LINKS Display as Text (saves state)
    P3_LAST_APPROVED Display as Text (saves state)
    P3_ARCHIVES Display as Text (saves state)
    And we are initializing these items in a pl/sql process under 'Page Rendering'
    For example,
    :P3_ARCHIVES := '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> ';
    When our environment was upgraded from HTMLDB1.5 to HTMLDB2.0,
    instead of displaying the proper value of :P3_ARCHIVES,
    it was displaying the tags,
    i.e. instead of displaying 'Archives', it was displaying the whole
    '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> '
    So, when we changed all items to 'Display as Text (does not saves state)' and it was working.
    But then we have another problem,
    We render the rest of the same page with another pl/sql block,
    Here is a portion from that pl/sql for your reference,
    htp.p('
    <script>
    //Script to check the status change.
    //The script source is rendered through PL/SQL.
    function checkStatus()
    var promptStr = someString;
    if(ans.toUpperCase() == "AMBER" || ans.toUpperCase() == "RED")
              var cnfm = confirm(promptStr);
              if(cnfm)
              do something....
    </script>
    htp.print('
    <td width="5%" bgcolor="#ebebc5" height="19" align="middle" >
    <input TYPE="radio" name="'||l_g_fnumber||'" value="GREEN"');
    IF l_allow_update THEN
         htp.print(' onClick="checkStatus()"');
    ELSE
    htp.print(' disabled onmousedown="return false;"');
                        do something....
    Now the issue is , when we changed all items to 'Display as Text (does not saves state)', the checkStatus() function is not getting called in the onClick
    event of the radio button and hence the confirm window for the call to
    confirm(promptStr) is not coming up.
    But if we revert back the items to 'Display as Text (saves state)',
    the checkStatus() javascript function is getting called properly but html tags are displayed against the items instead of the proper value (as mentioned in ********)
    Please do let us know a possible solution to this issue.
    Thanks & Regards-
    Rupak

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

  • Display As Text (Does Not Save State) Render Behaviour

    I suppose this is directed more at the Oracle team members (as most of my posts are...) than anyone else, but others might find this interesting.
    It would seem when an item has a type of "Display As Text (Does Not Save State)" the item's value is output as pure text which shows up as text nodes under the TD cell. However if there is anything in the "HTML Form Element Attribute" text field on the "Edit Page Item" page, the APEX rendering engine will output a span tag with those attributes around the value of the item. If the attribute is left null, no span tag is output.
    Further more, the span tag does not have an ID attribute. One can also not set the "HTML Form Element" text box to contain the text 'id="" ' as APEX will throw an error stating that you can not specify the id attribute. So if someone would happen to want to access/change the value via JavaScript (say after an Ajax request of a hidden id change), it requires a hack (setting the TD cell's ID to the page item's name), DOM inspecting/sniffing, outputting an ugly disabled text element, altering the flows user's tables, or altering the render cache.
    Is there any reason, why this span tag is not always output with the ID attribute set?

    Hello Andrew,
    You are, of course, correct. The APEX engine does not use the item ID for the "Display as Text (does not save state)". However, if you need to manipulate the item, using JS, you can use the "Display as Text (save state)", which does use the item ID. The on-screen effect is the same, but the JS use is easier.
    Your original question though, remains open.
    Regards,
    Arie.

  • Display as text based on pl/sql - how to return value

    Hi,
    I have a item set as "display as text based on pl/sql". How do I get the PL/SQL anonymous block to return the value of the item?
    My function declares and populates a variable called t_output which is the value I want displayed in the item. The PL/SQL I have written is correct as I have tried it in SQLPlus* with DBMS_OUTPUT.PUT_LINE and I get the correct output, but I don't know how to set my item to the value of t_output. I have tried adding ":P73_ITEM := t_output;" into the end of the PL/SQL block.
    Thanks
    Lucy

    Hi Lucy,
    Try this and see.
    make the display as:display as text(saves state)
    source type: sql query
    in source value or expression type
    select func(arguments) from table name;
    Good luck

  • Linebreaks in Display as Text items

    See http://htmldb.oracle.com/pls/otn/f?p=24317:14:::::P14_PK:3061
    The same item (CLOB) is displayed as a editable textarea and as a Display as Text item.
    The Display as Text item type eats up all the linebreaks in the data since it is rendering HTML markup where whitespace, linebreaks are irrelevant.
    How can I preserve the line breaks in the Display as Text item?
    I guess I can wrap it in a PRE tag but that would change the font, I would like to keep the same font just preserve the linebreaks and whitespace.
    Thanks

    Hi,
    I have a Page Item P7_LAST_ACTION
    Display as: Display as Text (saves state)
    Source Type:
    Database Column
    Source value or expression
    LAST_ACTION
    Post Calculation Computation
    replace(:P7_LAST_ACTION,chr(10),'<BR>');
    But it doesn't replace.
    I have the same info in ACTION db column in a query
    select "ACTION_ID",
    replace(ACTION,chr(10),'<BR>') Task,
    "DESCRIPTION",
    from BH_ACTIONS
    It displays fine...
    (with newlines, blank lines - <BR><BR>)
    Both column types are the same:
    ACTION VARCHAR2(2000)
    LAST_ACTION VARCHAR2(2000)
    any ideas? Bill

  • Where is "Display as Text (based on LOV, saves state)"

    I am developing an application using the version of HTMLDB that comes with OracleXE.
    I have a tabular form, in which the default column for a particular item is sourced from a previously entered item on another page. This is a lookup item and needs to be non-changeable by the user. So I want to use the "Display As" option "Display as Text (based on LOV, saves state)". However, this option is not available in the pull-down for "Display As". The option "Display as Text (based on LOV, does not save state)" is available, but using this option means that the item is not saved to the database.
    Does anyone know why the stateful display as option is not available.
    Thanks in advance,
    Rob

    Scott, thanks for the feedback. The problem is that although the value is displayed correctly, it is NOT saved to the database. Effectively, header information is entered in a previous screen, and one of the entered fields is written to each of the detail lines associated with the header. We are re-platforming an existing application (written in an obscure form of basic), and at this stage changing the schema is not an option. So this header item (which is a foreign key to a "store" table), is meant to be written down to each line, on the screen displayed as the store name, and written to the inserted lines as the lookup id. If I use the dispaly as text save state option teh database is updated correctly, but displays the id rather than name on the screen. The only display as lov option i can see is the one that does not save state. If I use this option the screen displays as I want but the database is not updated. I need to use the display as lov saves state option. but i do not see it.
    Any ideas?
    Thanks for your time.
    Rob

  • Display As Text (based on LOV, saves state)  "p_t03" was assigned by APEX

    Hi All,
    I have an ITEM
    Name: P36_INT
    Display As: Display As Text (based on LOV, saves state)
    Output in my HTML:
    [input type="hidden" name="p_t03" value="YES" />[span id="P36_INT">Interior[/span>
      'p_t03' was assigned by APEX
      In my Javascript I have to access it as the following to get the "YES" value:
      var lintObj = html_GetElement('p_t03');
      Originally it was 'p_t01' but it changed from 'p_t01' to 'p_t03' somehow.. out of my control.
      How do I assign an ID or assign my own name to the "hidden" item?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Scott, thanks for the feedback. The problem is that although the value is displayed correctly, it is NOT saved to the database. Effectively, header information is entered in a previous screen, and one of the entered fields is written to each of the detail lines associated with the header. We are re-platforming an existing application (written in an obscure form of basic), and at this stage changing the schema is not an option. So this header item (which is a foreign key to a "store" table), is meant to be written down to each line, on the screen displayed as the store name, and written to the inserted lines as the lookup id. If I use the dispaly as text save state option teh database is updated correctly, but displays the id rather than name on the screen. The only display as lov option i can see is the one that does not save state. If I use this option the screen displays as I want but the database is not updated. I need to use the display as lov saves state option. but i do not see it.
    Any ideas?
    Thanks for your time.
    Rob

  • DISPLAY AS TEXT (DOES NOT SAVE STATE)

    can i use the pl/sql anonymous block or pl/sql function body for item which is DISPLAY AS TEXT (DOES NOT SAVE STATE). I am using this query and getting an error in case of pl/sql anonymous block can be used only for save state item. my apex version is 2.2.1.00.04.
    my query is
    declare
    vCNT number;
    v_exception_detail varchar2(200);
    BEGIN
    SELECT COUNT(*)
    INTO vCNT
    FROM table a
    WHERE a.col1 IN
    (SELECT DISTINCT x.col1
    FROM table1 x)
    AND a.col2 = TRIM(:P21_col2);
    IF vCNT > 1 THEN
    IF NVL(&P21_col2, -1) <> -1 THEN
    SELECT DISTINCT SR.col3
    INTO v_exception_detail
    FROM table1 SR
    WHERE SR.col1 IN
    (SELECT col1
    FROM table
    WHERE col2 = TRIM(:P21_col2)
    AND col4 = :P21_col4);
    ELSE
    v_exception_detail := NULL;
    END IF;
    ELSE
    SELECT DISTINCT SR.col3
    INTO v_exception_detail
    FROM table1 SR
    WHERE SR.col1 IN
    (SELECT col1
    FROM table
    WHERE col2 = TRIM(:P21_col2));
    END IF;
    --DBMS_OUTPUT.PUT_LINE(v_exception_detail);
    RETURN v_exception_detail;
    END;
    Could any one suggest how i can execute this code in case of item of DISPLAY AS TEXT (DOES NOT SAVE STATE).
    Thanks,
    AT

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

  • Annoying [ ] with "Display as Text (based on LOV, saves state)"

    Hi all,
    I've got a form where some items are shown as “Display as Text”. These values are displayed normally.
    But I also have some items which are shown as “Display as Text (based on LOV, saves state)”. When I run the page and these items don't return a value (because it isn't filled in in another page), we get the annoying []-sings.
    Is there anyone who knows how to fix this, I just want to display nothing when there is no value.

    I've tried this one already.
    I tried to leave it blank, & nbsp ; , text,... but the problem is that our lov is build by a function and it always returns a query, so the LOV is never null.
    I figured something out: made a process after header that has some cursors to get the values from the database and changed the item to a simple display as text-field. There were only 4 that were wrong, so it wasn't to much work.

  • Cannot see Display as Text (based on lov, saves state)

    I have raised this question on the HTMLDB forum (Where is "Display as Text (based on LOV, saves state)" but in case its XE specific I am posting here too.
    I have a tabular form in the XE version of HTMLDB, and wish to use the "Display as Text (based on LOV, saves state)" option. However, this option does is not available to me - are there some conditions necessary for this option to be displayed?
    Thanks, Rob

    Rob,
    I doubt it's an XE specific issue. I've asked for more information in the original thread.
    Sergio

  • Display as text (based on LOV saves state) : possible border ?

    Hi,
    Like mentioned in the subject, I have many Display as text (based on LOV saves state). I would like to have a frame or a border around this field eventhough it's read only, like a regular field. How can I do that ?
    thank you.

    Depending on your visual requirements, you could change the items to Text Fields (disabled or not) then simply make the Read-Only atttribute set to "always" or something that would equate to "always". It would look just like a text field (since it would in fact be one), but would be read-only.
    Sadly, this would require you to change all your items to the new type which would take time.

  • Firefox page images do not display only text and links

    New desktop (not this one) with windows 8.1 Pro, Firefox 29, Norton Internet security. When I go to many of the Firefox pages images do not display, only text and links. This is true for the "get add-ons" page. I can search for add-ons, but when I try to install one, the installation fails. Is there a security setting in windows or NIS that is blocking Firefox images and installations? The Firefox installation went smoothly without error. Other sites do not have this problem.

    Wow! I never would have thought of that! My time settings were incorrect when I set up the PC, and I thought I set them. I did have the day, date, and time set correctly. But I did not have AM/PM set right. So, I was off by 12 hours. I corrected it and, voila, all works well.
    I'm so happy now, because I can now get all the security extensions I've grown to love:
    - NoScript
    - Ghostery
    - Better Privacy
    - Adblock Plus
    You guys are great! Thank you so much for your help.

Maybe you are looking for

  • Firefox 3.6.15 hangs almost everytime I close the program, any fix soon?

    It started with the update to 3.6.14 and worsen with 3.6.15 now almost every time I close Firefox it hangs and I have to end manually the process. I have the same problem on 3 different PC running Windows 7 32-bit, Windows 7 64-bit, and Windows Vista

  • Help! CS4 overridden master page text keeps coming back...

    I work in historic preservation at an architecture firm and I've created a template in indesign, using CS4, for reports that we have to write. There are a lot of master pages set up for different text layouts, plus there are about 10 different pictur

  • My MacBook Pro has no sound, even with Apple headphones plugged in...

    My Macbook Pro won't play any sound from both it's own speakers or any speaker I plug it into. This has me very worries, please help. -Thanks

  • Buffer.position throws IllegalArgumentException

    Hi i tried the following code on linux using jdk1.4.2_05. on windows the same code same jdk and successfully done. Only linux throws me a illegalArgumentException. Anyone experience the same as i do. import java.io.*; import java.nio.*; import java.n

  • LSMW Error-Urgent

    Dear All, I have created one LSMW using Direct Input Method. The program used is RFBIBL00. Its taking '/' as nodata character. Due to this its giving the message Special character for 'empty field' is / and its not processing the session. I tried cha