Help Popup not rendered HTML based on the referenced element.

I have a named item & P104_GENDER on a page that references a hidden item, which is calculated using a calculation that uses a database function to retrieve data to help for the item and fill in the hidden element.

So for this article, is the source of help & P104_GENDER_HELP. & P104_GENDER_HELP is filled with "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female' according to the debugging session.


When I click on the label to display the context-sensitive Help window, it displays: "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

Apex 3.X, the HTML would render correctly and it would display:

Please enter a sex. Possible values are:
-Male
-Female

But in Apex 4.0, it makes just the text as if it had no HTML implementation involved form, i.e. "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

However, if I put the source directly for help on the question "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female", without reference to the hidden item, it renders properly in HTML format.

I tried to change my label template to use javascript:popupfieldhelpclassic instead of the javascript:popupfieldhelp function, but I get the same wrong result.

When I looked at the source that is generated in the pop-up window when you reference an element hidden, is to convert the < and >, symbols of "& lt" and "& gt" respectively, which means it does reference the text from the element hidden in the form of literal text and convert anything that resembles HTML in plain text instead of treat it only as HTML. I can see why this would be useful for some people, but it's not so useful to me, especially since he is used to the opposite effect.

They have both have in common, is that they use the wwv_flow_item_help.show_help function. I guess that the culprit lies in this encapsulated code.

Anyone has an idea on how to work around this problem so that text coming from referenced items analyzed and presented in HTML format instead of literal text?

Thank you very much.

Published by: user12021046 on December 15, 2011 13:51
Changed for good formatting HTML :-)

Ah, now I understand!

So I think the problem is, when you click the label, he calls a procedure that returns the text of help via AJAX. In my view, this procedure escapes html tags, and from what I can tell, there is no setting to disable. :( Even if you load classic help, these tags are also escaped. There may be tweaks that I don't know, but I looked into the security of the shared components section, but nada.

So a possible solution?

If you look at the label, you'll see that it links to the following function:

function popupFieldHelp(b,a){
     if(!$x("pScreenReaderMode")){
          apex.jQuery.getJSON("wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=JSON",
          function(c){
               var d=apex.jQuery("#apex_popup_field_help");
               if(d.length===0){d=apex.jQuery('
'+c.helpText+"
"); d.dialog({title:c.title,bgiframe:true,width:500,height:350,show:"drop",hide:"drop"}) } else{ d.html(c.helpText).dialog("option","title",c.title).dialog("open") } }) }else{ popupFieldHelpClassic(b,a) } return }

A quick and dirty solution would be to replace the escape with their html tags characters so that it is rendered correctly

that is, add the following:

               c.helpText = c.helpText.replace(/</g, '<');
               c.helpText = c.helpText.replace(/>/g, '>');

-These forums are not keep what I write here, I'm sure you can understand what im speak well.

Of course, change the label template to point to your custom function.

The other solution I was going to suggest was to write your own application process that gets you some JSON - Martin D'Souza has written a blog on the use of the apex_util.json_from_sql; which is what you would probably use a query such as:

select label, item_help_text
from apex_application_page_items
where item_id = apex_application.g_x01

The problem is the text of the done element refers to another page, so it would return to the value chain e.g. & P12_ITEM. of course it wouldn't be to hard to get around.

for example, select replace (item_help_text, '&' | apex_application.g_x02 |'.) (', v (apex_application.g_x02)) item_help_text
of apex_application_page_items
where item_id = apex_application.g_x01

(not tested)

and then as a quick primer to a way of doing AJAX

1. create a htmldb_Get object: helpText var = new htmldb_Get (null, null, "APPLICATION_PROCESS = nom_processus");

Where nom_processus is the name of an application process that you create

2. Add the necessary parameters

helpText.addParam ("x 01', 'itemId')
helpText.addParam ("x 02', 'P12_ITEM')

This is to add temporary variables that can be reference via apex_application.g_f0x; the alternative is that you can add paremeters State session with

helpText.add ('nom_element', 'ITEM_VALUE') and get sent when you call the object's get() function.

3. get the JSON and parse
obj = JSON.parse (helpText.get ());

Then create the http://jqueryui.com/demos/dialog/ for the help dialog box

..

Well I hope that gives you some ideas / a starting point.

Tags: Database

Similar Questions

  • Mail 10.0 in macOS Sierra not rendered HTML

    Hello

    Sierra installation went flawless. Mail that I normally get displayed as HTML does NOT appear in HTML format, and there is not a button load remote content. Previous mail received El Capitan and 9.3 mail always display and work properly in Mail 10.0 (it displays the content "Remote Load" button). I look at the raw source of Amazon and PayPal and the headers mime drive ins are all the same. So far, four sites, that I normally get HTML mail, 10 Mail will NOT be rendered in HTML.

    Note: Mail-> Preferences-> "Load remote content in messages" on or off makes no difference.

    Anyone else having this problem? It's boring get raw HTML.

    Thanks in advance for any help.

    Best regards.

    This seems to be associated with some mail files. I can take validly rendered HTML of the Inbox and manually move (drag) the file and is no longer makes but appears in raw HTML. Placing the message in the Inbox was still raw and not rendered HTML display. Remove the mailbox and then recreate it makes no difference. I had formerly imported mail before and it associated with maybe 'archived mail"even if these mailboxes are not empty / delete all ~/Library/Mail plist files does nothing to solve the problem.

    Who wrote 10 Mail should have enough information to explain this. I have a fix. It's stupid and reconstruction of the mailboxes does nothing to fix.

  • My quickbooks help does not appear (to connect to the internet). What can I do?

    My quickbooks does not connect to the internet, my computer has vista wondows

    Hi Timmyh,

    Thank you for visiting Microsoft Answers.

    ·         Remember to make changes to the computer recently?

    ·         Do you receive an error message when you try to configure an internet connection for QuickBooks?

    If you have a firewall, make sure that security settings permit QuickBooks to access the Internet.

    1 port 80 (HTTP) and port 443 (HTTPS) must be enabled.

    2. these two files must be able to access the Internet: qbw32.exe (QuickBooks program) and qbupdate.exe (QuickBooks Update Agent).

    For more information, see:

    http://support.QuickBooks.Intuit.com/support/pages/InProductHelp/core/QB2K7/olb_n/online_bank_errors/help_test_direct_connection.html

    If this does not help, please contact fast support for assistance.

    http://support.QuickBooks.Intuit.com/support/default.aspx

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Help do not know how to restore the top of my computer

    Sorry not to read and write about it

    I lost the top lines 2 ex: file, tools, Favorites, bookmarks, "back" button and also the open search bar right click on the top, but nothing came

    So I hope that someone out there could help me on this

    (Windows vista)

    Sorry not to read and write about it

    I lost the top lines 2 ex: file, tools, Favorites, bookmarks, "back" button and also the open search bar right click on the top, but nothing came

    So I hope that someone out there could help me on this

    (Windows vista)

    Using IE9 beta? If Yes...

    1. it has NO search box in top right more. The address bar doubles as a search box.

    2. the geniuses in Microsoft decided to hide the menu bar. Here is the tutorial to always show the Menu bar:
      http://www.SevenForums.com/tutorials/111483-Internet-Explorer-9-turn-menu-bar-always.html

    The link says Win7. Its ok. The method applies to Vista as well. I used on my IE9 beta.

    Use the Open Option - Download the .reg file and follow the simple instructions.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • ISE 1.3 not allow authentication based on the group network

    ISE 1.3

    MS AD 2008R2

    Two groups: all employees, all students

    Problem: Students employee network connection

    I have two wireless networks, STUDENTS and EMPLOYEES. In ISE, I have two strategies for approval for these networks. In an effort prior to keep students to connect to the network employee, I set the permission policy:

    Employee: If (Wireless_802.1X AND AD1:ExternalGroups is equal to mydomain/accounts/all employees AND the AD1:ExternalGroups NOT_EQUALS mydomain/students/all students) then: Employee_Profile

    Unfortunately, it did not work. Students have their own username and password in AD and each faculty and staff member. I checked that students are using their identification and employee network connection information. Conversely, I can connect to the student network using the credentials of the employee. The main problem is with the students, employee network, they use all the applicable DHCP scope addresses.

    I need to not allow the network connection used by students and the network of students by employees.

    Any help would be appreciated!

    Kevin

    Glad you were able to solve your problem! Also thank you for taking the time to come back and share the solution with everyone (+ 5) to me.

    If your problem is resolved, you must mark the thread as "answered":) ".

  • BitmapData.draw is not rendered content outside of the visible part of the canvas

    My application has a canvas with a bunch of items to this topic and who has a scroll bar to see the entire contents of it, i.e. the canvas has a height of 200px, but objects in extend beyond the 200px all the way to 400px. When I pass this canvas object to my BitmapData instance which I created with a height of 400px, the result is that I get a 400px image, but only the top 200px are actually rendered. If I move the scroll bar down and you call the draw, I get the background of the canvas, rendered 200px on half superior of the BitmapData.

    Is there a way to make all of the content of the object from the canvas and not only what is currently visible in the display window?

    Thank you

    Ruy

    It is internal, which means that it is not documented, but it should be in the rawChildren or you can access it via mx_internal.  I think that if you set the height = 400, called validateNow() and bitmapData.draw then it might work.

    You can also try setting scrollRect = null.

    FWIW, people often have a print view that connects to the same model of data.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Primavera P6 R 7 - need help on hide a field based on the role

    I'm on P6R7 Primavera and to hide a gift of basic field rile to a level of activity.

    is this possible?

    You can not put the text. You can have a Code resource field and make them all Secure, but you need to come up with answers possible HR you want to join.

  • After the online PC, Vista Home Help does not start, difficulty goes to the window, then once outside.

    I made a safe mode and removed the Trojan horse, I don't know how this forum works, so I won't be a gene, sorry.

    Is this the same computer as in this thread more early of yours? -Online http://answers.microsoft.com/en-us/windows/forum/windows_vista-desktop/how-can-i-change-the-black-color-at-the-top-of/820b0374-5652-e011-8dfc-68b599b31bf5

  • The default view sysdate to a form based on the table element

    Hello

    How to display the current sysdate to a default element value...

    In my scenario, I have transaction date not I have no need to have a date for she picker...

    I do display the element, and then how to display the date current system, and it needs to be changed dynamically on the basis of the day...

    Kind regards

    Vincent

    Edit the item page and and the default configuration of sysdate value text field

    and the type of default value expression plsql

    Leave.

  • H4 element not allowed as child of the ul element in this context - better fix

    This page looks and works like I want to, but clearly, I broke the standards, so what is the best way to change to achieve the same thing?

    Case studies of promotional Marketing and service APTCOWEB Articles - news

    It seems it should be easy to penetrate the long ul of many courts, with headers between. But the way in which the styles are defined, I create new problems.

    Personally I would break the lists into manageable as pieces below:

    2015

    2014

    2013

    Then use the underside of css to style the h4:

    #main h4 {}

    color: #f6c238;

    background: #0d2b88;

    text-align: center;

    }

  • splash screen does not work when Self contains the .jar

    I use a function of the start screen for the appliction of javafx. I use the javafx ant task to run in the order, the fx:jar, the fx:signjar, the fx: deploy to produce the jar file, the jnlp, the HTML file and the nativeBundles including 'image' and 'exe '. The splash works well when they are packed in the .jar file by double-click.

    When I double-click on the exe file in the application image file or the shortcut after installation by running the installation .exe file, however, there is no splash screen. Why? The exe file does not have to based on the jar file? Thanks for help.

    The jar is produced by < fx:jar=""> . stand-alone file is produced by with inno installed on Win7. The generated jar has the start-up screen, double-click, but not .exe. Why? or something else has to do with the generation of a stand-alone application? I guessed that the .exe file runs based on the jar file it should have the boot too. Thanks for the reply ~ ~

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • Standard rates and the entrance of the element do not allow to enroll in the NEW program

    I have a problem when creating a new program that has a weekly reference period. Currently I have age on a two-week program that must be moved in the weekly program. (NOT ALL EAS IS MOVED). I'll be the error of:

    "You cannot register a person in a plan that includes more than one rate of activity with the same element and the input value. Flat rates ADD - provider - ER and ADD - provider - ER - weekly uses the same element and input value and are attached to the subject of compensation. You must change your configuration so that these rates of activity do not use the same element, the input value and purpose of compensation or register the person in a plan that does not include participation rates with the same element, the input value and object of compensation. "

    -NOTE: the entrance of the same element and the input value are used in the same plan for different types of employees already (options) (i.e. service provider, hourly, salary)

    Standard rates use the same element and input value, but the object of compensation called a different program and is not the same combination. (EITHER 1. Weekly program-ADD-Service Provider-ER 2. Benefits of the program - service provider of ADD - ER). I need assistance or advice to fix this problem. I'm trying to enroll individuals in the current program so that it will not draw the same entry element but without success. I tried to register for a 'new' employee so that has not already been registered in any program and still receive the same error. Any suggestions?

    Hello

    Either way, I got the same error today and here is what happened in my case: in some sort eligibility has failed and the life event gave eligibility for both options using the same rate. This is why the error message.
    The error message is misleading and makes you look to the configuration of the rate.
    However, the central question is if employee is faulty (in my case) for the two options (Oipls in my case) including standard rates are atatched to a single item, then obviously the system think, you assign the same employee element twice.

    Check if it is the case with you as well.
    To do this, you can do the rates involved as 'dormant' at an earlier date - run an event admin and test. Making inactive will decouple the rate to the eligibility/electability.

    Let me know if this helped.

    Kind regards

  • Cannot delete alias if the referenced object does not exist

    My JavaScript does not alias in OSX when the referenced object no longer exists. The bug occurs on a network volume when the referenced object has been deleted or moved from another system. Do you have any idea how to remove/relpace this alias dead with JavaScript? Why it is not possible to remove an alias with a missing object? Thank you for helping me!

    myShortcut.remove ();

    Bildschirmfoto 2012-03-21 um 10.52.26.png

    Hmm. I have no problem removing broken aliases created in the Finder, but am not able to delete the symlinks broken on remote filesystems created with ln -s (or withile.createAlias ()f). Seems to be a bug for me, as the broken symbolic link can be deleted otherwise (in the Finder or with rm ). I guess you can use doScript() and an Applescript script:

    app.doScript('tell application "Finder" to delete POSIX file "' + myShortcut.fsName + '"', ScriptLanguage.APPLESCRIPT_LANGUAGE);
    

    Slow, however. You can use a 'do shell script' Applescript with rm but the multiple levels of bids and escape are a puzzle.

    Jeff

  • Retrieve the item based on the content of another element

    I have an xml that looks like this

    <? XML version = "1.0" encoding = "UTF-8"? > < WF_EVENT_T xmlns = "http://xmlns.oracle.com/xdb/APPS/GetPOApprovalEvent" >
    < PRIORITY xmlns = "" > 50 < / PRIORITY >
    < SEND_DATE xmlns = "" > 2012-04-27T 15: 33:31.000 + 1200 < / SEND_DATE >
    < RECEIVE_DATE xmlns = "" > 2012-04-27T 15: 34:18.000 + 1200 < / RECEIVE_DATE >
    < CORRELATION_ID NULL = "TRUE" xmlns = "" / >
    < PARAMETER_LIST xmlns = "" >
    < PARAMETER_LIST_ITEM >
    APPLICATION_ID < NAME > < / NAME >
    < VALUE > 201 < / VALUE >
    < / PARAMETER_LIST_ITEM >
    < PARAMETER_LIST_ITEM >
    < NAME > DOCUMENT_DIRECTION < / NAME >
    < VALUE > ON < / VALUE >
    < / PARAMETER_LIST_ITEM >
    < PARAMETER_LIST_ITEM >
    < NAME > DOCUMENT_NO < / NAME >
    < VALUE > 363475 < / VALUE >
    < / PARAMETER_LIST_ITEM >
    < PARAMETER_LIST_ITEM >
    < NAME > ECX_DEBUG_LEVEL < / NAME >
    < VALUE > 0 < / VALUE >
    < / PARAMETER_LIST_ITEM >

    It is an object of purchase wf_event_t from e-Business Suite order. (The list is much longer)

    One of the parameter values is a number of PO

    < PARAMETER_LIST_ITEM >
    < NAME > PO_NUMBER < / NAME >
    < VALUE > 363475 < / VALUE >
    < / PARAMETER_LIST_ITEM >

    What I want to do is to look for the < VALUE > element based on the < NAME > element.

    that is, if NAME = PO_NUMBER THEN
    RETURNS the ELEMENT VALUE

    I suppose I could use a building WHILE in my BPEL but would like to know if there is anyway, this could be done with XPATH?

    See you soon

    Owen

    Hi Owen,.

    The xpath expression will be like:

    / WF_EVENT_T / [NAME = 'PO_NUMBER'] PARAMETER_LIST/PARAMETER_LIST_ITEM / VALUE

    Refer to:
    http://www.w3schools.com/XPath/xpath_syntax.asp

    See you soon,.
    Vlad

    Give points - it's good etiquette to reward an answering machine (5 - useful; 10 - correct) points for their position if they answer your question. If you think it's useful, please consider giving points

Maybe you are looking for