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.

    Tags: Database

    Similar Questions

    • Problems with embedding an HTML link in a report column

      Hi gurus,

      I'm trying to incorporate an HTML link in a report column now.

      What I did is entered this HTML "Edit form" column: "< a > target ="_blank"href =" http://www.google.cn/search?hl=en & btnG = Google + Search "< /a > '"

      I also put "process the text under" to "HTML" for the properties of the columns.

      I have a question at this point: when you run this report, I couldn't see text displayed in this column instead of a LINK I can click. Quesiton: What was missing?

      Then I continue this test by changing the HTML code like ' < a > target = "_blank" href = "http://www.google.cn/search?hl=en & q =' |" Products.Prod%20Category | btnG = Google + Search "" < /a > ' in order to do a search using the combination products Table.Column. ' " Prod of category", I get the following error:

      State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 27002] About <>%: Syntax error [nQSError: 26012]. (HY000)
      Publ. SQL: {call NQSGetQueryColumnInfo ("SELECT"< a > target = "_blank" href ="http://www.google.cn/search?hl=en & q =" |)} Products.Prod%20Category | & btnG = Google + Search "< /a >", products. " Prod category "(DE SH')}"

      Publ. SQL: SELECT ' < a > target = "_blank" href = "http://www.google.cn/search?hl=en & q =' |" Products.Prod%20Category | btnG = Google + Search "" < /a > ', products. "" Prod category"OF HS

      What was wrong with the syntax of my HTML code?

      Thank you
      Jeffrey

      Hi Jeffrey,.

      (1) use Category of Products.Prod instead of Products.Prod%20Category

      (2) use ' href =... target = "_blank" "instead of" target = "_blank" href =... "

      (3) use * "Treat as Hyper Text Link" * instead of "HTML Code" in the replacement data format

      It should work.

      It can be useful :)

      Kind regards
      Rambeau

    • 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

    • HTML links, how do we?

      I have seen and received, html links to Apple support articles here in answers. How is that done? Can someone post a link html with instructions on how it's done? I hope it's clear.

      You copy the link from your browser and paste in your response.

    • Cannot paste the html link in the edit box of html for ebay using 24.0 FF on Kubuntu 12.04 - the destination of the link is displayed instead.

      In chrome and rekonq under Kubuntu 12.04, in all browsers including FF 24.0 under Windows 7 64 bit, ebay html editor (accessible by clicking on the 'HTML' tab next to the 'Standard' tab in the "Add a description" section of the "Edit registration" page) works as expected. For example paste a HTML from photobucket link to an image fits the link text in the editor. With FF 24.0 under Kubuntu 12.04 image is displayed, i.e. the link is followed.

      However, nothing is really stuck, the image is displayed, but nothing is changed in the HTML itself. Closure of the area of editing html and return to it details unchanged content.

      Paste the link into the Standard editor works as expected: the image appears in the wysiwg editor and go to the shows html editor html link was added.

      Editing in the html editor works as it should, pasted from an external source links are followed instead of being stuck in.

      Correction: this is not a problem with FF. Links pasted from another tab in the same instance of FF behave correctly. The problem is caused by pasting links from an external source. I don't see why links from external sources stick properly in other browsers, but of a life too short to investigate that.

    • ButtonField in the form of html link - paint correctly when you press.

      I tried to look like an html link in an application (JDE 5.0.0) ButtonField.

      I managed to paint correctly when it is developed and not well centered. However,.

      When the user clicks the button, it is painted as a normal operated button.

      What Miss me? Is there another method that I need to replace to control how it is painted

      When you click on it?

      public class LinkButton extends ButtonField {
      
          String name;
      
          public LinkButton(String name) {
              super(name, ButtonField.CONSUME_CLICK);
              this.setBorder(BorderFactory.createSimpleBorder(new XYEdges(2,2,2,2), Border.STYLE_TRANSPARENT));
              this.setBackground(BackgroundFactory.createSolidTransparentBackground(Color.WHITE, 0));
              this.name = name;
          }
      
          protected void paint(Graphics g) {
              g.setColor(Color.BLUE);
              g.setFont(Font.getDefault().derive(Font.UNDERLINED));
              g.setBackgroundColor(Color.WHITE);
              g.drawText(name, 0, 0);
          }
      
          protected void drawFocus(Graphics g, boolean on) {
              g.clear();
              g.setColor(Color.GREEN);
              g.setFont(Font.getDefault().derive(Font.UNDERLINED));
              g.setBackgroundColor(Color.WHITE);
              g.drawText(name, 0, 0);
          }
      
      }
      

      What you see is the image VISUAL_STATE_ACTIVE in the ButtonField.  I don't know exactly how to avoid this with ButtonField. Since you are using the package set, anyway, take a look at these setBorder and setBackground with additional visual state parameter and specify those separately for VISUAL_STATE_NORMAL, VISUAL_STATE_ACTIVE and VISUAL_STATE_FOCUS.  You can also analyze those paint and set the colors accordingly, although it wouldn't be enough.

      I can honestly say that I never extended ButtonField. However, when you want a predictable behavior, ButtonField is one of the worst: he does a lot of good things for you, but there are so many things happening behind the scenes that you will be better off extending field, implementing your own layout and painting/paintBackground, as well as navigationClick/navigationUnclick and keyDown/keyUp (verification of entry and perhaps space). You must also call fieldChangeNotify (FieldChangeListener.PROGRAMMATIC) in all the appropriate places (probably uncheck and keyUp). Decide if you want a specific to the context menu. If so, substitute makeContextMenu.

      The reward will be your own hyperlink customized with behavior controlled by you, that you will be able to use in several projects.

    • How the PDF file to download, click on the HTML link.

      Dear friends,

      I have a HTML link 'List of blood banks' bottom of page on the login page. I have a PDF file.

      I want to download this PDF file when the user clicks on this link.

      How can I do that.

      Thank you

      If your PDF file stores as a static file in image workspace (WORKSPACE_IMAGES) or app (APP_IMAGES) images and then use code page attributes.

       
      Terms and Conditions Info

    • missing some basics of html link

      Hi all

      I seem to be missing some basics of html link. What is the meaning of:

      from slash...?

      < do action = "" / mypage.php "method ="POST"> as:"

      I know that these can redirect:

      dig...

      /MyFolder/MyPage.php

      and upward

      .. /MyFolder/MyPage.php

      but now I see a slash of departure and a page?

      MyPage.php

      or

      ./MyPage.php

      instead of just = mypage.php

      Q: Why use leave. / or / instead of just the page?

      MORE...

      and while I'm... I always use closing tag php like:

      <? PHP

      kind of things...

      ? >

      ... but now that I've heard if there is that php on the page - then you better * NOT * use a closing tag?

      Q: Why is it?

      The starting slash means "site root relative" which tells the browser to add the root of the site before the link, so...

      somelink.html

      ... becomes...

      h t t p :// www.domain.com/somelink.html (spaces added to http keep the forum to turn it into a link)

      .. .automatically at the browser level.

      Not sure the php thing, always heard say that as you "can" omit it.

    • HTML link to open a PDF document?

      Is it possible to create a HTML link that only opens an attachment in a PDF file? I tried to create a destination in the attached PDF file, but the destination was not available in the original document.


      I am familiar with the link below, but it is a link in a PDF file

      Adobe Acrobat X Pro * link to a file as an attachment

      Hi 12345678987645321,

      You must attach files in the PDF file & then create the hyperlink, see this KB document for the steps Acrobat help. Links and attachments in the PDF file.

      Kind regards

      Nicos

    • Column expression 22032 nQSError

      Hi guys,.

      I think I'm close to my column prefiltration by getting rid of all the offices that the user does not belong to.

      I created a logical mapping table in the repository. The table works in the responses of the OBI. Now I need set the dashboard

      right expression column, but that did not work with the bottom out of the filter. Is it really achievable?

      Dashboard of the guests:
      New line of the column - >
      Column-> expressions Editor

      FILTER ("dim_user_office". "usr_off_prompt_col" USING ('dim_user_office' ". ' username' =)"
      valueOf (nq_session. ((("" user ")))
      22032 nQSError

      I found a way to do this! I created an Oracle DB mapping view for the moment, containing two columns and filtering with user name = valueof (nq_session. ("' user ')

    • Definition of the erroneous view importing view with text column expression

      Hello

      I use SQL DM v 3.3.0.744.
      When importing a view designer and the column has a column expression, a frowned upon request is created.
      Example generated by the designer:
      CREATE OR REPLACE FORCE VIEW VIEW6
      + (COL1) +.
      AS SOME substr (col1, 55, 1)
      OF TAB1 T1
      The following text is generated by DM:
      CREATE OR REPLACE VIEW VIEW6 (COL1)
      IN SELECT
      COL1 COL1;
      The following remarks:
      -l' column expression is not repeated.
      -the underlying table/view is not included.

      Can you trigger a bug for that?

      Joop

      Hi Joop,

      Can you trigger a bug for that?

      Our knowledge of the designer is limited, so it's better create you a service request and describe how you created this view and/or provide an example in the form of exported the repository designer example.
      Maybe that's the best export to do as a text file.
      The same applies for this Migration of Designer: bad alias for the table/view used in views

      Philippe

    • Can I use hierarchical column-based action link?

      Hi all

      I used 11.1.1.6.2 OBIEE.

      And I want to know can I use hierarchical column-based action link? I want to show the link based on some certain conditions...

      I try to add conditions, such as the Department is equal to A, but after that I added, it shows me "Department is equal to", why?

      Can someone give me some advice?


      Kind regards
      Anne

      Hi Anne,.

      It should work. How to add the link of action?. Click the icon + on the TreeView column in the criteria tab, lists all the columns in the hierarchy. Each column has its own column properties. Click on the properties of column-> tab Interaction Department hierarchy level and define your conditional action link.

      Kind regards
      DpKa

    • Adding HTML link purchase subscription from article

      Hello

      Is it possible to create a HTML link from a button or a text in an article that invokes the subscription popup box buy?

      On the home page for the viewer which shows the individual issues, you can click to purchase a number, or click on a banner at the top to buy a subscription.

      Once this is clicked a pop-up box will appear which indicates different price levels.

      Is there anyway to start the purchase of subscription in an article?

      Thank you

      If you have a business account, you can use a link ww.gotoStore to open the store HTML that is associated with a Store named custom nav bar button. If you have a Pro account, I'm not aware of a way to view subscription options. You can create a button that opens the library if that helps.

    • HTML link to call actions or scripts

      I'm trying to understand how to create HTML links to run scripts, as talks manual configurator 2 on. The problem is the code they provided no sense in terms of HTML.

      Photoshop. For example:

      Call a "new file" menu item

      < a href = format point enu to call functions in Photoshop.er link

      Call action

      < a href = action://photoshop.cs5/Action/My Action Set/MyActionNamehop.er linktion < /a >

      Call a custom or predefined in the submenu "Scripts" script element < a href = uadobe://photoshop.cs5/Scripts/Image Processornder hop.er linkor < /a >

      Can someone explain, if they know about how to make this work correctly.

      Thank you

      Mike

      They must be:

      name of your link

      name of your link

      name of your link

    • HTML linking Flash framework and function

      Hello world

      I have a FLVplayer that has several movies link to it. There are also categories of films that can change without disrupting the previous video to play. It will be on the 'portfolio' of my site page. Then, I want to have links on the home page to play some videos.

      How can I set up a HTML link to a SWF on a different HTML page, linking to a certain group (category) and load the correct video in the FLVplayer?

      I read about the flashvars, but I'm not sure if they can load inside the swf pieces (ie the video).

      IM using as3.

      Is there an easy way to do this?

      Thank you

      Dan Williams

      Basically, you pass a FlashVar to the SWF and then have the ACE load the bits based on the variables passed.

      Thus, the link might look like: "http://www.mysite.com/flashpage.html?v=/videos/myVideo.flv."

      the variable 'v' would get caught by the HTML code and passed as a FlashVar to the SWF object.

      Then, in the code, something like this:

      var keyStr:String;
      var valueStr:String;
      var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
      for (keyStr in paramObj) {
      
           valueStr = String(paramObj[keyStr]);
      
           if(valueStr != ""){
      
                switch(keyStr.toLowerCase()){
                     case 'v':
                          doLoadVideo(valueStr);
                     break;
                }
           }
      }
      
      function doLoadVideo(which:String):void
      {
           //code to load the video, whose path is passed via the "which" var in this function
      }
      

    Maybe you are looking for