Plsql in html content layout

Hi,
I define an item type and a content layout to display that item type.
in the content layout, it is need to call some API package in PORTAL schema.
between <oracle></oracle> tag, I made a call like
package_name.procedure_name(parameters) but it fails.
PORTAL.package_name.procedure_name(parameters) also fails.
how to make that call works? how to specify a shcema for plsql?

You may wanna see the item attributes defined for your item.
If it is a custom item of type 'none', then check the following:
* go to Navigator, pull up the item through search, and click Edit in front of the item types.
* now click the second tab (Attributes)
* see if the item has in its attribute properties Plsql Execute Options listed or not.
In order to process a text using pl/sql commands we should have a PLSQL Execute option in this list of attribute properties.
one other way to test it is to just write some simple statement like the following within the <oracle> tabs and see if your item responds.
<oracle>
declare
   v_user    varchar2(10):=portal.wwctx_api.get_user;
begin
   htp.p(v_user||'<br>');
end;
</oracle>hope that helps.
AMN
[br]

Similar Messages

  • HTML content layout substitution tags

    Hi,
    We have a multi-language Portal 10.1.4 and use HTML content layout substitution tags in a HTML Template. The problem is that we would like to use the ITEM.PUBLISHDATE.LABEL and the ITEM.UPDATESDATE.LABEL tags but the text rendered isn't exactly what we would like to get (f.e. in English it's 'Publish Date' and in French it's 'Date de mise à jour').
    I looked in the documentation and found that the text rendered correspond to the display name of the attribut (not 100% sure of this). But, those attributs are in the Shared Objects and we can't modify them.
    1. We would like to modify the display name of those attributs (both in French and in English) or find any other way to make it.
    2. We also want to apply an other format to the date retreived with the ITEM.PUBLISHDATE.VALUE and the ITEM.UPDATEDDATE.VALUE tags.
    Can someone help us with those issues ?
    David

    Yes, we added languages in the Translation tab of the shared object pagegroup properties.

  • Bug in HTML Content Layout ?

    Dear all,
    I'm facing something weird...
    I've created an HTML Content Layout to display ITEMS on my own way.
    If i want to display the CREATEDATE like this
    htp.p('#ITEM.CRETEDATE.VALUE#');
    or like this
    htp.p(to_date('#ITEM.CRETEDATE.VALUE#', 'DD/MM/YY'));
    everything's correct.
    But if i want to display the PUBLISH_DATE like this :
    htp.p('#ITEM.PUBLISHDATE.VALUE#'); ---> OK
    but
    htp.p(to_date('#ITEM.PUBLISHDATE.VALUE#', 'DD/MM/YY')); ---> returns nothing !
    Same behaviour with my own "DATE attribute".
    htp.p(to_date('#ITEM.MYDATE.VALUE#', 'DD/MM/YY')); returns nothing...
    Thanks for any ideas.
    Max.

    I think the problem is that the publish date includes date AND time so you'll need to also add the time format when doing TO_DATE. Then you can TO_CHAR it to whatever format you want to show, if you want it different than the default for your system. In the following, I'm changing the date format on our system to be shown as DD/MM/YYYY w/o the time.
    HTP.P(TO_CHAR(TO_DATE('#ITEM.PUBLISHDATE.VALUE#','DD-MON-YYYY HH12:MI PM'),'DD/MM/YYYY'));

  • HTML Content Layout

    Hi,
    I'm currently using Oracle Portal 10.1.4.2.0.  I've built an HTML content layout to display my document/item content in the style and layout I want and all is working fine.  I now have a requirement where a user is to upload a lot of content at one time using a zip file.  I need to have the "unzip" link displayed next to the file name as is designed in portal.  However, the link does not display because I do not have this as part of my template.  So my question is, how do I get this link into my layout template?  Is there a substitution string for the unzip?  If so, I can't find it.
    Thanks in advance for any pointers in the right direction.

    Try this.
    <oracle>
    if '#ITEM.TYPE#' in ('baseportletinstance', 'portlet_instance') then
    htp.p('#ITEM.PORTLETCONTENT#');
    else
    htp.p('#ITEM.DESCRIPTION#');
    htp.p('#ITEM.CONTENT#');
    end if;
    </oracle>

  • HTML Content Layout Tables

    I need to set up a new HTML Content Table Layout. I can get the table set up, but I can't get the header to not repeat. Does anyone know how to set up a table layout with a non repeating header?

    HTML Content layout repeats for each item in the region. You should set the header above the content region seperately.
    thanks
    Suresh

  • Examples of conditional statements in 10.1.4 HTML Content Layout Templates?

    I've read all the documentation on metalink/OTN and gone through the OBE but what I really need to see are some REAL WORLD EXAMPLES of an html content layout for an item region that may have a mix of several different item types and display options. What is the best way to handle the conditional statements for item types and display options in an HTML Content Layout Template?
    Hey, hasn't anyone started a SKINS/TEMPLATES web site for Oracle Portal yet???
    :-)

    Since I have multiple item types allowed in a page group and I want any of them to be used for an Items region, I am trying conditional statements based primarily on #ITEM.TYPE# and #ITEM.DISPLAYOPTION#. I have an html content layout I've been working on (lots of trial and error!) for use in an Items regions but I'm still looking for some examples that other people may have implemented in their portal.

  • HTML Page skins and content layouts

    We're running Portal 10.1.4 and trying to use page skins and content layouts to override the portal-generated html to comply with our accessibility standards.
    Portal still inserts some of its html, even though I attach my own html templates to the region and page.
    For example: it surrounds each item in my regions with another HTML table, and throws in an iframe tag with some custom JS.
    Our templates do not use tables for layout, but the html code Portal inserts in between is breaking our pages.
    Any thoughts?

    That's what I was afraid of too. I just took some Oracle training on Portal, and when I asked our instructor about this particular issue, he kind of dodged the question.
    I'll look into the docs some more for the custom renderers.... but won't it do what HTML content layouts already do for you?
    I looked at the W3C WCAG, Oracle claims Portal is AA compliant (Priority Level 1 and 2)
    Priority 1:
    5.1 For data tables, identify row and column headers.
    5.2 For data tables that have two or more logical levels of row or column headers, use markup to associate data cells and header cells.
    I don't think Portal includes the row and column identifiers.
    Priority 2:
    Do not use tables for layout unless the table makes sense when linearized. Otherwise, if the table does not make sense, provide an alternative equivalent (which may be a linearized version).
    5.4 If a table is used for layout, do not use any structural markup for the purpose of visual formatting.
    I don't think the tables, when linearized, will make sense to Screen Readers, especially if the page design contains many regions. (ie nested tables) We've tried the JAWS screen reader in the past, and it red across table columns, not down. (problem when you have a 3-column layout, the reader reads the first text item in the first column, then jumps over to the first line of text in the middle content column and so on...)

  • Applying HTML Content Templates to Builtin Item Types

    Using 10.1.4,
    Is there any way of applying HTML Content Templates to the Builtin Item Types, e.g. Page Path, it doesn't appear to work if you set the attribute to use the template on the region settings?

    The Builtin Item Types are indeed not affected by the HTML Content Layout. This is an undocumented feature in the product. A documentation bug has been logged to get it amended in the Portal documentation :
    Bug 5581113 : DOCUMENT RESTRICTION FOR HTML CONTENT LAYOUTS AND BUILT-IN NAVIGATION ITEMS

  • SSRS 2008 R2 report prints empty spaces for html content till end of page

    Hi
    I need to display records containing long html content say each record of different size ranging from 5 lines to 3-5 pages.
    Issue observed is:
    When a record complete is printing say half the page and subsequent record is bigger then half a page, the subsequent record is printed on the next page rather than continue immediately after the previous record is completed.
    Is their any property or any other solution to resolve the issue. Print on next page is not set.
    Nikesh Shah

    Hi Nikesh,
    As per my understanding, I think the issue is caused by the blank space in the report body. In order to get rid of the blank space when print the report, please refer to the following steps:
    Click on Report > Report Properties > Layout tab
    Make a note of the values for Page width, Left margin, Right margin
    Close and go back to the design surface
    In the Properties window, select Body
    Click the + symbol to expand the Size node
    Make a note of the value for Width
    Please check the Page Break settings on all your report items and make sure the Body Width + Left margin + Right margin less than or equal to Page width, just like the equalities below:
    (Body Width + Left margin + Right margin) <= (Page width)
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Best practice for sharing html content on different group spaces?

    How can html content be shared between several group spaces?
    One way I have found is to add a html doc to ucm and then to add this doc as a iframe to a page.
    Are there other ways, like adding on one group space page a html layout element and then to view this content in a different space. How could this be done, with an expression language reference?
    Has someone experience in presenting the same html content on different spaces and can share how he does it. Any ideas are welcome.
    Thanks,
    Max

    Hey Max,
    Check out our technical whitepaper on Integrating ECM with Portal Technologies.
    Our "Fishbowl Portlets" allow you to share any content - HTML, WYSIWYG user generated content, documents etc - in multiple contexts (portlets, web apps, etc).
    This is one of the things that we showcased as the recent Collaborate conference in Vegas - WebCenter framework, UCM and the portlets surfacing the same items in different contexts - all personalization aware, configurable and end user/super user editable.
    The white paper can be found here:
    http://www.fishbowlsolutions.com/StellentSolutions/ContentManagementResources/index.htm
    A blog post on it can be found here:
    http://cfour.fishbowlsolutions.com/2010/03/10/fishbowl-portlets-followup-cis-and-content-consumption-options/
    warmly,
    Billy Cripe
    Fishbowl Solutions

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute javascript and all....Is there any component for it???? Please help....

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to Edit html content of My First Days in ESS

    Hi All,
    My requirement is to change only the html content displayed in My first Days under Life and work event tab.
    Currently it shows content provided by sap.
    e.g ; it displays "Welcome to xyz_Company_name  "  and some dummy content.
    where as we want to customize it as per client requirement i.e. to  display client specific policies and     
    name etc.
    Please help to solve the problem.
    Thanks,
    Zaid

    s.r.e.e wrote:
    I am reading this html file in java class file and displaying the template as it is in jsf page, now when user clicks on edit button one pop up should be opened and entered data should be displayed at appropriate place in layout, on clicking clear content should be cleared.
    Can anyone help me how to write the logic to open a popup using html button instead of a4j:commandbutton in jsf and how can I bind the values to backing bean list without using a4j:repeat using normal html template
    I'm not sure you are going to get any binding happening without a lot of cajoling.
    The real question is why are you trying to write (hardcode?) HTML in a Java class that needs to interact with JSF components?

  • Setting html content with setContent() does never show images

    I've an application set sets dynamically generated html-content in a webview node by using the webengine.setContent() method. This generated html content uses image-tags.
    Here's the problem: the image is not displayed. I tried all variations (absolute url like "http://localhost/c:/test.png" or "file://c:/test.png", relative urls like "test.png" with png in jar-file).
    Anyone out there who has a workaround for me? I appreciate any comment.

    one non-working apple <img src="apple.png"> You loaded the page content with loadcontent, then inside the page content provided a relative url. This is likely an error.
    The question is, what is this url relative to?
    The answer is either likely undefined as no protocol was used to load the page content and so it can't be determined how to load the relative url resource.
    and two non-working peaches <img src="http://localhost/c:/peaches.png">
    You attempted to load content using the http protocol server on the localhost, but you have no such server on the host, so this cannot work.
    and a working remote image url <img src="http://docs.oracle.com/javafx/javafx/images/javafx-documentation.png">
    This works because you fully specified how to load the content by providing the protocol and valid resource reference.
    OK, so the question remains how do you images from the local drive?
    There are three options for this in the following code.
    package org.jewelsea.examples.webviewlocal;
    import javafx.application.Application;
    import javafx.beans.value.*;
    import javafx.scene.Scene;
    import javafx.scene.layout.FlowPane;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    /** Example of a webview loading resources from the file system. */
    public class WebViewLocal extends Application {
      public static void main(String[] args) throws Exception {
    //    URL.setURLStreamHandlerFactory(new HandlerFactory());
        launch(args);
      public void start(final Stage stage) throws Exception {
        final FlowPane layout = new FlowPane();
        WebView webView = new WebView();
        webView.getEngine().load("file:///C:\\dev\\gettingstarted\\timeforgotten.html");
    //    webView.getEngine().load("jar:file:///C:\\dev\\javafx\\JavaFXidea\\out\\artifacts\\JavaFXidea_jar\\JavaFXidea.jar!/org/jewelsea/examples/webviewlocal/timeforgotten.html");
    //    webView.getEngine().load("resource:///org/jewelsea/examples/webviewlocal/timeforgotten.html");
        webView.getEngine().getLoadWorker().exceptionProperty().addListener(new ChangeListener<Throwable>() {
          @Override public void changed(ObservableValue<? extends Throwable> observableValue, Throwable oldThrowable, Throwable newThrowable) {
            System.out.println("Load exception: " + newThrowable);
        // layout the scene.
        layout.getChildren().addAll(webView);
        Scene scene = new Scene(layout, 1000, 600);
        webView.prefWidthProperty().bind(scene.widthProperty());
        webView.prefHeightProperty().bind(scene.heightProperty());
        stage.setScene(scene);
        stage.show();
    }which loads the following html file:
    <html>
    <head>
      <style type="text/css">p { color: sienna; font-size: 20px; text-align: center; }</style>
    </head>
    <body bgcolor="cornsilk">
    <p><em>
        <br/>
        On either side the river lie,<br/>
        Long fields of barley and of rye,<br/>
        And through the fields a road runs by,<br/>
        To many towered Camelot.
    </em></p>
    <p><img src="camelot.jpg"/></p>
    </body>
    </html>If you want to test this example the camelot.jpg image is downloadable from http://www.timelessmyths.com/arthurian/gallery/camelot.jpg.
    Option 1: The file:// protocol for lookup from the filesystem.
    This is the most straight-forward as it is just based on standard html layout in the filesystem - just place your html and it's relative referenced images somewhere in your filesystem in locations relative to each other - if your browser loads it properly, then your webengine will to if you give it the right file:// path.
    In the case of file:///C:\\dev\\gettingstarted\\timeforgotten.html, timeforgotten.html is placed in c:\dev\gettingstarted and camelot.jpg image is placed in the same directory.
    Option 2: The jar:file:// protocol for lookup from a jar hosted on the filesystem.
    This makes use of the http://docs.oracle.com/javase/7/docs/api/java/net/JarURLConnection.html to find your resources.
    If your application resources are packaged in a jar file (could be the same jar file as your main application class) then you can reference the jar file through the file protocol, then pick out the resources packaged in the jar file via their relative paths.
    Option 3: The resource:// protocol for lookup based on the classpath.
    This type of resource lookup is the one most Java programmers are familiar with - a classloader is used to load a resource. The pattern is widely used in web application frameworks on the server. But usually the means to do this is via a classloader.getResource() call, not via a URL.
    Java does not, by default, have a URL protocol handler for looking up resources on the classpath, so if you want to do this, it is necessary to create your own protocol and install it.
    The installation function is the commented out line: // URL.setURLStreamHandlerFactory(new HandlerFactory());
    It is a system wide call for the VM and should be called (just once) before any URL Connections are established.
    To get this to work I used a resource handler from http://www.arakhne.org/arakhneVmutils/index.html which included the following classes:
      java.org.arakhne.vmutil.resource.Handler
      java.org.arakhne.vmutil.resource.HandlerFactory
      java.org.arakhne.vmutil.resource.URLConnection
      java.org.arakhne.vmutil.ClassLoaderFinder
      java.org.arakhne.vmutil.Resources
      java.org.arakhne.vmutil.ResourceNotFoundException
      java.org.arakhne.vmutil.URISchemeType
      java.org.arakhne.vmutil.URLHandlerUtilDetails on how all this works are in http://java.sun.com/developer/onlineTraining/protocolhandlers/ which defines "A New Era for Java Protocol Handlers" by defining a URL handler extension mechanism which is hardly ever used.
    As a final note to my way overly long forum post, when the WebEngine doesn't process the urls sometimes you can get info on what went wrong via the monitoring the loadWorker's exception property, but sometimes I was able to get more complete stack traces by trying to open a connection on a URL to see if I had got the URL correct - for example:
        URL url = new URL("jar:file:///C:\\dev\\javafx\\JavaFXidea\\out\\artifacts\\JavaFXidea_jar!/org/jewelsea/examples/webviewlocal/timeforgotten.html");
        url.openConnection();Anyway, just using the file:// protocol in webEngine.load() will probably accomplish what you need.
    Note that if it is a webstart or browser embedded app, then you'll need to sign it if you want to access the local file system.

  • HTML content sits on top of Flex application

    I'm trying to load a PDF document in my AIR application using the MX:HTML component. When a popup opens, the HTML component's default behaviour is to hide the content when a popup opens and reappear when the popup disappears. This is what I would expect.
    However if the HTML content is reloaded while the popup is open, the HTML content is reappearing automatically and sitting on top of the popup.
    I can replicate this behaviour using Flex SDK 4.6, 4.11, 4.12 and 4.12.1.
    Is this a normal behaviour? Is there a way to stop this from happening?
    Here is some working sample code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           creationComplete="maximize()">
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <fx:Script>
            <![CDATA[
                import flash.utils.setTimeout;
                import mx.managers.PopUpManager;
                import spark.components.TitleWindow;
                private function openPopUp():void
                    var popup:TitleWindow = new TitleWindow();
                    PopUpManager.addPopUp(popup, this, true);
                    PopUpManager.centerPopUp(popup);
                    setTimeout(function():void{html.reload()}, 1000);
            ]]>
        </fx:Script>
        <s:Button click="openPopUp()" label="CLICK"/>
        <mx:HTML id="html" location="http://www.energy.umich.edu/sites/default/files/pdf-sample.pdf" width="100%" height="100%"/>
    </s:WindowedApplication>

    Hi,
    What about if you create a separate title window as: pdf.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   width="800" height="600">
    <mx:HTML id="html" location="http://www.energy.umich.edu/sites/default/files/pdf-sample.pdf" width="100%" height="100%"/>
    </s:TitleWindow>
    And call the title window as:
    private var pdfWin:PDF = new PDF();
    private function openPopUp():void 
    PopUpManager.addPopUp(pdfWin, this, true); 
                    PopUpManager.centerPopUp(pdfWin); 
    popup should be gone when you reload.
    I hope this help.
    Best,

Maybe you are looking for

  • My iTunes Plus songs are no longer Plus in iTunes

    I upgraded my iTunes songs to Plus a year or so ago. I created an MP3 from one just to make sure the DRM was gone and it was. I paid my money and all is good. Today I want to make some more MP3 files to play in my car. Low and behold all my previousl

  • HP 6735s and Windows 7(Driver Support)

    Need driver for HP 3D DriveGuard(HP Mobile Data Protection also called).HP recommended Windows 7 but no oficial drivers for my laptop.I try lastest driver from HP web site but i Control Panel i can see this "HDD not supported''.Work great with XP and

  • Linking between Skype login and microsoft login - ...

    hi I've created a skype login, then tried to link to my microsoft account, but cant find any command to do that.  In desperation I tried logging out of my sskype account and then loggining back in using my microsoft account, and now I seem to have to

  • "Add a copy of this File to iTunes music folder when adding to library" ???

    why on earth is this feature a feature??? now that i finally realized what i have been doing all this time... i see that i have 1000's of dupes eating up HD space. obviously when i add a song to my library - i want it in the folder i have chosen to b

  • 10.1.0.4 on SLES 9 SP1 ora-03113

    Hello, SLES9 SP1 is on PIII with two 800MHz procesors and 2GB RAM, on four SATA 156GBhard disks are created two RAID1 arays, on one RAID is OS with 1GB swap and Oracle 10.1.0.4 enterprise edition, on second RAID are two raw partitions each 70GB ....