Apex 4.2 - column HTML expression

I have a (classical) in 4.0.2 Apex SQL statement with the next column
  decode(some_col,NULL,NULL,'class="foo"') foo
This column does not appear in the report, but the value is used to construct the HTML Expression in another column that appears. The HTML Expression goes like this
 <img #FOO# src="/i/menu/add-small.png"/>
It is a CSS snippet that img.foo styles as needed.

In v4.0.2, this is made in the form
 <img class="foo" src="/i/menu/add-small.png"/>
But in 4.2, it comes out as
 <img class=""foo"" src="/i/menu/add-small.png"/>
Notice the doubling of the quotes. In addition to being the invalid markup, the CSS is not kick in if the element is not get made.

Is this a bug? Either my app just against the ongoing effort to generate markup more meets standards? Is there a solution?

Thank you

Hi Vikas,

can you please check what type of ' display under "your column"foo"is. Is - this "show as text (escape special characters, no State not sure)".

For security reasons (to avoid possible XSS attacks), need to improve automatic column values avoidance, if a column is used as the value of substitution (in expressions of HTML and other places). Type "display as" the substitute column defines if the value must be escaped before replacement or if it should be used without change. So in your case if you change your column "foo" to "* Standard report column *" you should get 'foo' without the quotes escaped. To my knowledge, this security change was introduced in APEX 4.1.

If I'm on the wrong track and it's not your symtom, can you please create a test on apex.oracle.com case.

Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Tags: Database

Similar Questions

  • Apex 3.2 with oracle express

    Hello

    Can I use Apex 3.2 with Oracle Express edition Oracle XE without paying money and without violating the liscence agreement?

    concerning
    Hrishy

    As Obama said: Yes you can!

  • What region in the report column HTML link?

    Dear gurus of the Apex,
    OK, I'll go straight to my question. I have a page to download file with region (conditional) report that comes after the file download process. According to the report that I have a column to remove the file downloaded (column has an image link, the target application, the name of the option: P2_DELETE_ID value: #DOC_ID #). Basically the report picks up just downloaded file ID and allows me to delete the file by having Hiden point Page (P2_DELETE_ID) and before the process of header:
    BEGIN
    REMOVE FROM EBA_ASSET_ORDER_TEMP_DOCS
    WHERE annual =: P2_DELETE_ID;
    END;
    condition: Expression 1 value is not Null, and the value of the Expression 1:
    P2_DELETE_ID
    I and another conditional region (which is HTML) he comes after the file download process as well. The Source region is:
    & lt; div id = "FinalMessage" > & lt; / div >
    & lt; br / >
    & lt; div > & lt; a href = "javascript:confirmFileDelete(htmldb_delete_message,'f?p=&APP_ID.:2:&SESSION.:REMOVE_ID:::P2_DELETE_ID:#DOC_ID#')"; > & lt; "img > src="/i/delete.gif "style =" position: relative; " Top: 1px; ' / > delete the downloaded file & lt; /a >
    & lt; / div >
    where id = "FinalMessage" - is the JS success/error message
    and... href = "javascript:confirmFileDelete--is my real question. So I try to hide my region to report and show only my region HTML where I will be able to this (... href...) link delete file from my table. I am able to dele file using report link colum but my... href... link dosnt want to delete my file, doen't even want to pick up the ID of file. Is there a way where I can link my... href... link to pull the report column?

    Thank you

    NP - now access, so I will have a look

    Andy

  • Alignment of columns HTML


    column width sets the width of each column in the report table. The value you enter must be in inches or centimeters, depending on the settings that you enter in the measurement system for the column width. The default value is 1. For HTML reports, the VI multiplies the value by 100 to set the width of the column in pixels.

    Note If you set column width a high value and send several data columns in VI, the VI automatically resizes the width of the columns to fit the width of the report on a single page.
  • HOW TO ADD HYPERLINK IN THE INTERACTIVE IN APEX 5 REPORT COLUMN?

    Hello

    I'm new apex.i oracle uses apex 5.

    I want to do a column in my report to a hyperlink.

    When I put the following SQL query there are no errors, but in the report, it shows that a text.it is not rendered as a hyperlink.

    Select

    BL_BUG. BUG_TITLE as BUG_TITLE,

    "BUG_ID" BUSINESS SUCKS SO "

    " ELSE ' < a href =" http://LCS.corpnet.ifsworld.com/login/secured/buglnw/BlBug.page? & BUG_ID = ' | BUG_ID | "' target = '_blank' > ' |" BUG_ID | "< /a > ' END like BUG_ID,

    BL_BUG. DESCRIPTION as DESCRIPTION,

    CASE WHEN BL_BUG. CASE_ID = 0

    THEN NULL

    OF OTHER BL_BUG. CASE_ID

    END as case_id,

    BL_BUG. BUG_SOURCE_REFERENCE as BUG_SOURCE_REFERENCE,

    BL_BUG. MODIFIED_BY as MODIFIED_BY,

    BL_BUG. Date_modified as DATE_MODIFIED

    BL_BUG. CREATED_BY as CREATED_BY,

    BL_BUG. Date_created as DATE_CREATED,

    BL_BUG. BUG_CATEGORY as BUG_CATEGORY,

    BL_BUG. BUG_IMPACT_DESC as BUG_IMPACT_DESC,

    BL_BUG. BUG_SOURCE as BUG_SOURCE,

    BL_BUG. TASK_ID as TASK_ID,

    BL_BUG. ORIGINATING_SOLUTION_ID as ORIGINATING_SOLUTION_ID

    AT THE BEGINNING OF THE BL_BUG WITH BUG_ID =: P405_NEW CONNECT PRIOR BUG_ID = BUG_SOURCE_REFERENCE ORDER BY BUG_ID, BUG_SOURCE_REFERENCE

    bl_bug is my table.can someone tell me why is that?

    Thanks in advance!

    Hi geslin,.

    Garza says:

    I'm new apex.i oracle uses apex 5.

    I want to do a column in my report to a hyperlink.

    When I put the following SQL query there are no errors, but in the report, it shows that a text.it is not rendered as a hyperlink.

    bl_bug is my table.can someone tell me why is that?

    Yes. As narrated by Sunil, you must change the property view as of column DESCRIPTION Standard report column if you use the component view. If you use Page Designer view, and then set the column of Type plain text and No special escape characters .

    If you use followed by "Designer's Page" the following suggestions:

    Kind regards

    Kiran

  • APEX 4.0 - weird html air buttons

    I just installed APEX 4.0. Buttons html, such as those that appear with the interactive report (IE go, shares) appear to look weird. I see the button, but the first two thirds of the button, doesn't seem to match with the last third of the button. I'm guessing that they join two images together to create all the "Search" button, but it's as if they are not the tail. Everyone knows this problem. I know there are different types of buttons (no html) but it doesn't seem to be the case with interactive reports. There are different button models, but they are all the html and have the same question to display/appearance.

    Greg,

    I'm glad it works for you now.

    For the benefit of others and to answer your question "so where are the clear and concise instructions on the shape of the apex related to configuration of the DAD, if it's that important?":

    (1) it appears here in the Release Notes, in system requirements: http://download.oracle.com/docs/cd/E17556_01/doc/relnotes.40/e15512/toc.htm#BGBCJIEA

    + "The value of the character set part of PlsqlNLSLanguage in the Access database (DAD) descriptor mod_plsql configuration must be set to AL32UTF8, regardless of the underlying database character set." +

    (2) and he also appears in all of the examples of a descriptor to access data in the Setup Guide, for example, here: http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#CHDHCBGI

    Joel

  • APEX... HTML with: APP_USER

    Hello

    I tried to put a welcome message on my homepage...

    That's what I did...
    Step 1: Created the page element "display as text - does not state"
    Step 2: Type of source: I slected static assignment
    Step 3: Value of Source: text (with HTML tags) something like this Hello & APP_USER

    step 3 is not convert: APP_USER in the information of the user, instead it is treated as a text... Please advice...

    Not

    & APP_USER

    but

    & APP_USER.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • APEX: Aggregation of column in a PivotTable

    I built a nice pivot as shown table and now to crack my head how to get the total of each column.

    can you give me a head start on that.

    I tried to use the IR aggregation, it it leads to the alignment problem.

    I thought that script languages in the pivot, just do not know how and where.

    Help, please

    Hi JAS-Oracle,

    Change your Pivot and check the box to check sum column, check out this screenshot

    Hope this helps you,

    Kind regards

    Jitendra

  • Apex 4.0 on 10G Express - new - history

    The novelty of the story depends on control FineGrainAccess? The feature would work on an instance of 10Gex?

    Thank you

    Rich

    Hi rich,

    This is a feature that is directly integrated Websheets and will work on any version of the database (10.2.0.3 or superior, or XE) and any edition of database. It does not make use options cost or premium editions.

    Joel

  • How o use an icon in a standard report to display the details by using a hyperlink with APEX 5.0

    Hello

    I work with APEX 5.0.

    I would like a report (classic) display a report of details (also classical report) using a hyperlink, but not a "text-hyperlink" like 'click here for details'.

    Instead, I want to use a small icon which will occur the same result when you click on.

    It works fine, when the hyperlink is defined as text like: 'click here for details'.

    When I try to use an image, I don't get the desired result.

    Here's what I tried to Hare:

    1)

    Link-> Link attributes, then filled column: src = "& WORKSPACE_IMAGES. "" #ICON_NAME # "width ="40"height = 40 ' or img src =" & WORKSPACE_IMAGES. " "" #ICON_NAME # "width ="40"height = 40.

    = > no picture for the items in the column, but the link already created for each column of the remains (and works)

    2)

    Formatting of column-> HTML Expression, then filled: < img src = "& WORKSPACE_IMAGES. "" #ICON_NAME # "width ="40"height = 40" >

    = > the image appears for each column element, but the hyperlink is gone.

    Somone has idea how to use a picture/icon to have a hyperling in screens reported a detail?

    Thank you in advance for sharing your experience.

    Kimd cordially

    Hi Patrick,

    Link to the column-> then filled:

    Link text = #ICON_IS #

    Link attributes =.

    Target = this Application Page

    Page = 5

    Article 1 = P5_DEPTNO

    Value 1 = #DEPTNO #.

    Article 2 = P5_DEPARTMENT

    Value 2 = #DNAME #.

    Put this   in the link text not in attributes of link

    Remove the code from the link attributes.

    I don't have how to make it the way that describe you.

    Apex. Oracle.com is a hosted version of application Express, you can build online applications.

    Go to this link and the application workspace https://apex.oracle.com/en/

    Hope this helps you,

    Kind regards

    Jitendra

  • Can't do html and color in a cell of the report

    Work in apex.oraclecorp.com.

    I have a SQL report, EXPECTED_RESULTS, column that anchored the html in the data (< BR > especially for formatting). I put the column attribute "Standard report Column", and well formatted data views.

    However, I also want to color dynamically the cell according to other criteria. To do this, I generate another column in the SQL called TEST_COLOR. When I put EXPECTED_RESULTS formatting of column-> HTML Expression to ' < span > < div class = "#TEST_COLOR #" > #EXPECTED_RESULTS # < / div > < / span > ', I get the color, but lose the bet in the form HTML. < BR > is ignored (even if I do not see display them as text).

    TEST_COLOR contains values such as lookgreen, lookpink, lookyellow, etc. and those who are in a page header 0 region:

    < style type = "text/css" >
    table.apexir_WORKSHEET_DATA th {padding: 1px 1px; margin: 0px ;}}
    table.apexir_WORKSHEET_DATA th div {padding: 1px 1px; margin: 0px ;}}
    table.apexir_WORKSHEET_DATA td {padding: 0px;} BORDER-LEFT: 1px solid ;} #ddd
    .lookgreen {BACKGROUND-COLOR: lightgreen; padding: 1px 1px ;}}
    .lookpink {BACKGROUND-COLOR: #FF9999; padding: 1px 1px ;}}
    etc...
    < / style >

    Thoughts?

    "In the the layout and Pagination" section of the report attribute set strip HTML * "no":
    >
    Specify or not remove HTML tags of values in column origin for HTML expressions, links in the column and report data exported as CSV files.

    If you select values in the database that already contain HTML tags, these tags can cause conflicts with the generated HTML code for your links to columns or expressions of HTML. When this option is enabled, only the part of actual data of your column value is used.
    >
    Forgetting that the setting applies to the Expressions of HTML...

    However, valid HTML is never a bad thing {noformat} ;-) {noformat}

  • Concatenate two columns and store it in the existing column

    Hi all

    I created a form based interactive report and need help on that. In the report, I want to display a column with label the CANDIDATE's FULL NAME by concatenating the existing columns in the same table.

    Am mentioning the details and the following questions:

    Table name: CANDIDATE_DETAILS

    Column 1: CANDIDATE_FNAME (first name) Data Type: CHAR (50)

    Column 2: CANDIDATE_LNAME (family name) the data type: CHAR (50)

    Column 3: CANDIDATE_FULLNAME (full name) Data Type: CHAR (100)

    If in the case of column 3 that is, CANDIDATE_FULLNAME is not created in the database, I could have written in query to create one using the concatenation of columns 1 and 2 of the column

    ALTER TABLE CANDIDATE_DETAILS ADD CANDIDATE_FULLNAME TANK (100 CHAR)

    AS (CANDIDATE_FNAME |) ' ' || ( CANDIDATE_LNAME)

    Since then, I have already created CANDIDATE_FULLNAME column, I just change or simply store the concatenation of Column1 and Column2. I tried to use under request, but his does not work:

    ALTER TABLE CANDIDATE_DETAILS

    CHANGE CANDIDATE_FULLNAME ACE (CANDIDATE_FNAME |) ' ' || CANDIDATE_LNAME)

    Also I'm checking the code under SQL Workshop-> SQL commands by entering the query below and his works fine.

    Select CANDIDATE_FNAME. ' ' || CANDIDATE_LNAME

    of 'CANDIDATE_DETAILS '.

    but do not know where to enter this code in "The Page Creator" that without creating an additional column in the database my needs can be met.

    Please let me know if you need more information and really appreciate any assistance.

    Thank you

    Verhasselt

    Hello

    If the requirement is to display the columns and their contents concatenated in a third, you can try this:

    1. create a new column in the report by adding code to the selection of the report:

    Select CANDIDATE_FNAME, CANDIDATE_LNAME, "'"CANDIDATE_FULLNAME"'CANDIDATE_DETAILS'"

    2. in the page editor, select the "CANDIDATE_FULLNAME" column and his correspondents "formatting of column" > "HTML Expression" describe what you like:

    #CANDIDATE_FNAME # #CANDIDATE_LNAME #.

  • Column Expression HTML links

    OK, so I followed some instructions that fac586 left in an answer (via link) for another question (Presentation of the State - side by side data sets), and I need help in a particular area:

    If my model 1 attribute in my custom report template looks like this...:

    < li >

    < a href = "" #DERIVED$ 01 # "title =" #ENAME #">"

    #PHOTO #.

    < span > #ENAME # </span >

    < /a >

    < /li >

    ... And my SQL query for the report looks like this:

    SELECT

    LAST_NAME,

    ' < img src = "p? n ='|| NVL(IM.ID,0) | "" height = width = 150px auto > ' IMG '.

    FROM EMPTABLE, WWV_FLOW_FILE_OBJECTS$ IM

    WHERE EMPID = SUBSTR (IM. NAME OF FILE, 1, 6)

    What is my expression of HTML to connect #ENAME # and #LAST_NAME # and #PHOTO # and #IMG # supposed to look like.  I tried the googles but in vain.

    In fact, my question is: what is the syntax for creating a derived column URL link in the attribute of expression HTML?

    AquaNX4 wrote:

    OK, so I followed some instructions that fac586 left in an answer (via link) for another question (Presentation of the State - side by side data sets), and I need help in a particular area:

    If my model 1 attribute in my custom report template looks like this...:

  • #PHOTO #.

    #ENAME #.

  • How is the derived column defined?

    ... And my SQL query for the report looks like this:

    SELECT

    LAST_NAME,

    '' IMG

    FROM EMPTABLE, WWV_FLOW_FILE_OBJECTS$ IM

    WHERE EMPID = SUBSTR (IM. NAME OF FILE, 1, 6)

    What is my expression of HTML to connect #ENAME # and #LAST_NAME # and #PHOTO # and #IMG # supposed to look like.  I tried the googles but in vain.

    In fact, my question is: what is the syntax for creating a derived column URL link in the attribute of HTML expression?

    Some things to note:

    • The main reason using custom templates, derivatives and Expressions HTML columns is to separate concerns, so that SQL and HTML are not mixed in the access layer data. Your code does not properly separate layers of access and the data structure. In the example, the element/source of the image is generated using declarative BLOB support (which is strongly recommended for all downloads of image). If it is not using this method, then put the HTML code required in the model, to recover the source of the image (and all the other required attributes) as discrete columns and reference them individually in the model using the column substitution syntax.
    • The height and width attributes are disabled, incorrectly specified using CSS syntax. The height and width HTML attributes are specified in pixels, with no units. The CSS dimensions are specified using the attribute of syle and units must be included in digital dimensions are used.
    • The alt attribute is required for the img elements.
    • Don't use undocumented objects (WWV_FLOW_FILE_OBJECTS$). A vision documented and supported (APEX_APPLICATION_FILES) is provided.
    • The source of the image that is used will not work.

    Suggest you reproduce the problem in an example on apex.oracle.com and view identification information of developer comments for the workspace.

  • Standard Apex 5 column

    Hi, what happened to the Standard column designation in parts of report?  If I want to return dynamic html based on a feature in my article, I now have only the ability to display in the form of a text column that displays the literal html text.  I can use the settings of the HTML Expression to handle most of the cases, but is not encourage re-use.  I prefer to call a central function in my area of sql for some common display formats that we use.  Also, if I would use the formatting based on the value of the column, such as the colors of different background based on a value, it seems that I am obliged to resort to a javascript loading the page rather than made me directly to the page from the backend.

    Am I missing something?

    Thank you

    Hi Nathan Rooney-Oracle,.

    Check out the following threads on the same issue:

    Kind regards

    Kiran

  • Conditional expression HTML in a classic report-

    Apex 4.2

    I currently have a column of the report in a classic report that has an attribute of formatting of column as below. It works well, it displays a map icon that when you click on it turns off to google maps and put 2 geo points on a map. However, I need to change this report column so that the HTML expression will be different according to the value that is returned if the column returns the value 1 then the Expression HTML will be slightly different.

    EXPRESSION OF HTML

    < span class = "map_ #BROKE_GEO #_ #VALID_GEO_CODES #" > < a target = _blank href = "f? p = & APP_ID.:323: & SESSION.: P323_PARCEL_ID, P323_SCAN_ID, P323_PROP_ADDR1, P323_PROP_POSTCODE, P323_PROP_LAT, P323_PROP_LONG, P323_SCAN_LAT, P323_SCAN_LONG: & P341_PARCEL_ID, #SCAN_ID #, #LINE_1 #, #POST_CODE #, #PROPERTY_GEO_LAT #, #PROPERTY_GEO_LONG # #SCAN_GEO_LAT #, #SCAN_GEO_LONG #"> < img src =" #WORKSPACE_IMAGES #& P341_IMG_MAP_ #BROKE_GEO #. "alt ="Google Maps"title ="Google Maps"> < / has > < / span >"

    I think I can do this in the source report directly with a case statement and include the HTML code for the column but how do you manage all the quotes in the SQL statement.

    for example

    Original request

    SELECT

    parcel_id

    status

    LOCATION

    scan_date

    scan_id

    driver_comments

    card_id

    , valid_geo_codes - it's my html topic

    property_geo_lat

    property_geo_long

    scan_geo_lat

    scan_geo_long

    broke_geo

    line_1

    post_code

    OF vw_parcel_history_details

    WHERE parcel_id =: p341_parcel_id

    ORDER BY scan_date

    New query

    SELECT

    parcel_id

    status

    LOCATION

    scan_date

    scan_id

    driver_comments

    card_id

    (case

    When valid_geo_codes = 1 then: p341_valid_geo_codes1

    When valid_geo_codes = 2 then: p341_valid_geo_codes2

    When valid_geo_codes = 3 then: p341_valid_geo_codes3

    valid_geo_codes end)

    property_geo_lat

    property_geo_long

    scan_geo_lat

    scan_geo_long

    broke_geo

    line_1

    post_code

    OF vw_parcel_history_details

    WHERE parcel_id =: p341_parcel_id

    ORDER BY scan_date

    I want to put: p341_valid_geo_codes1,: p341_valid_geo_codes2,: p341_valid_geo_codes3,: p341_valid_geo_codes4 be various iterations of this large html string but I do not know how to format because all the quotes off the coast?

    Thank you

    AndyLou wrote:

    I think I can do this in the source report directly with a case statement and include the HTML code for the column but how do you manage all the quotes in the SQL statement.

    With a lot of attention.

    You are on the right track, yes you can do it.  That's all just annoying because the single quotes must be doubled in your SQL to be escaped.

    BUT the good thing is that the double quotes will not affect SQL only single quotes.

    Then. I think that your new query will look like this:

    SELECT
         parcel_id
        ,status
        ,LOCATION
        ,scan_date
        ,scan_id
        ,driver_comments
        ,card_id
        ,(case
          when valid_geo_codes=1 then
          'Google Maps'
          when valid_geo_codes=2 then
          'Google Maps'
          when valid_geo_codes=3 then
          'Google Maps'
          end) valid_geo_codes
        ,property_geo_lat
        ,property_geo_long
        ,scan_geo_lat
        ,scan_geo_long
        ,broke_geo
        ,line_1
        ,post_code
        FROM vw_parcel_history_details
      WHERE parcel_id = :P341_PARCEL_ID
      ORDER BY scan_date
    

    Baring of typos that probably works.

    I think you know that you need to change the display Standard for the HTML column displays in HTML format and not as text.

    I would be remiss in my duty if I did not mention that your values (such as line_1, post_code, etc.) if not controlled can contain the code of script in them, and then you may be susceptible to Cross Site Scripting attacks.  Not a problem for all the world, but it is worth noting.

    Thank you

    -Jorge

    PS. I should add that right now all span three of HTML is the same, if they are going to be the same, then I would refactor this to a single line of HTML and instruction box on the inside for the three sectors of the P341_VALID_GEO_CODES.  in any case, I think you get the idea.

    Post edited by: jrimblas

Maybe you are looking for

  • Satellite P750-11W - two disruptive noises

    Hi allI recently bought a Satellite P750-11W. The problem is * two noises * make this laptop. Without a/c, on the one hand, there is a static * whistle sound *, the other a * buzzing noise * that noise when scrolling upward or down on a Web site for

  • WXP on L300D - 21 p - FN keyboard keys do not work

    Hello, installed Win XP Sp3 on Satellite L300D - 21 p - also all drivers available - everything is going well so far - only the keyboard FN keys do not work.Is anyone here who is able to help? Thank you very much

  • Comparison between two inputs

    Hello I am a beginner absolut for LabView and I learned LV tutorials, but I have a question and need your help. I have two digital inputs and one digital output and I want to output for example as many entries. What I need is how to compare two entry

  • Error running Windows 8.1 installation

    I can't install the driver of my Hp officejet 4500 G510g. I get this message "program: c:\users\app data\local temp\7zS7639\setup exe." This application has requested the execution to terminate in an unusual way.

  • BlackBerry Z10 full file DONT_DEL001 SD card

    Today I opened the file manager and all the files I transferred to my SD card are missing, there must be 1000's of files named "is DONT_DEL001", "= DONT_DEL002", and so on.  There are also a bunch of files namde "= FAT. All the files are 0 KB in size