Static html with url to apex pages

I have a table with html content that contains url's to apex pages similar to
<a href="f?p=115:300:???:PAGE:::P300_PAGE_NAME:test_page>test page</a>
<a href=f?p=115:300:???:PAGE:::P300_PAGE_NAME:another_test_page">another test page</a>
Where ??? needs to be the session id.
I could use wwv_flow.do_substitutions to render the content and use &SESSION. in place of the question marks. Did not like this option as my content is in a CLOB and didn't want to parse all the content if the links are never clicked, also the content could be very large.
I don't have much control on how the url is generated, only the base path.
I also thought about building my own procedure to change the link value and then call the original f procedure, similar to:
<a href="set_session?p=115:300:#SESSION#:PAGE:::P300_PAGE_NAME:another_test_page>another test page</a>
This set_session procedure would get the session using plsql and then do the substitution and then call the existing f function.
Is there another solution to have static url's and render the content in an html region so that when clicked the session id is maintained?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

mwooldridge wrote:
I have a table with html content that contains url's to apex pages similar to
<a href="f?p=115:300:???:PAGE:::P300_PAGE_NAME:test_page>test page</a>
<a href="f?p=115:300:???:PAGE:::P300_PAGE_NAME:another_test_page>another test page</a>
Always post HTML code using <tt>\...\</tt> tags to prevent it being rendered by the forum software.
Where ??? needs to be the session id.
I could use wwv_flow.do_substitutions to render the content and use &SESSION. in place of the question marks.How do you retrieve and render the content?
Did not like this option as my content is in a CLOB and didn't want to parse all the content if the links are never clicked, also the content could be very large.I don't like that option because it uses an undocumented, unsupported API call.

Similar Messages

  • Limit to HTML Header text in APEX Page

    I have an APEX page that has a fairly large amount of javascript in the HTML header. After I added some more, the page blows up. Is there a limit to how much you can add. It doesn't look like Page 0 has the limitation. Is there one one on either?
    What is the best way around this? Adding the individual page javascript to Page 0 or creating a .js that gets included on that page only.
    Thanks!

    Large page sizes will DESTROY your perceived performance. High performance apps go way out of their way to improve page load times by:
    - Minifying or compressing javasript
    - Making sure it is cache-able
    - Loading the minimum amount of javascript you need for the page to function, then "lazy loading" (background loading) the rest
    - Lazy loading all of the JavaScript files you need for the app on the login page or first page to cache them
    - Using gzip compression in the app server
    - Using a Content Delivery Network (CDN)
    - Reducing HTML size using CSS and other techniques
    - Reducing the number of network requests for images using CSS sprites. (more info here: http://www.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/ )
    Storing JavaScript in the head of the page flies in the face of almost everyone of those concepts. Have a look at this if you have time:
    http://developer.yahoo.com/performance/
    Tyler Muth
    http://tylermuth.wordpress.com
    "Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book

  • Using Skillbuilders modal plugin with a non apex page

    Hello,
    I have created an apex application that includes a page with a button that uses the skillbuilders modal plugin in order to open a .jsp page. The issue is that the size is too short and I can not display all the components (Just the tittle and two buttons). I have tried to set up the height or weight but the size does not change. Any ideas?
    Kind Regards
    Eva

    Hi Dovi,
    I had a look at your application and can see the link your using for the kids and tech fields modal isn't passing the session ID which is why it is asking you to log in again.
    Below is an example URL for your issue, it isn't tested though.
    f?p=&APP_ID.:20:&APP_SESSION.:::19:P20_EMP_ID:&P19_EMP_ID.:: You will need to change the page numbers of the pages and items to match the page numbers of yours. This is using the statically defined url inside the plugin itself, I have also only done this in an earlier version of plugin but believe the functionality is very similar.
    Hope this helps.
    Paul

  • Protlet with URL to a page or a book

    We have been trying to create a start page with some small advertisement portlets.
    And now we want it to call a new page that will be shown on the whole page.
    I attached a word document that illustrates what we want to do.
    [portletlink.doc]

    You can use the PageURL tag for this purpose. For example, you can add
    the following HTML to the portlet in the Start Page:
    ">Go to Page 1</a>
    where page1 is the instanceLabel of Page 1.
    Hope this helps.
    Subbu
    Henrik S Poulsen said the following on 12/18/2003 05:28 AM:
    We have been trying to create a start page with some small advertisement portlets.
    And now we want it to call a new page that will be shown on the whole page.
    I attached a word document that illustrates what we want to do.

  • HTML-DB 1.6 (Apex) Page size and Page Model and monitor size

    Hi everyone,
    We developed our application based on 17 inches monitor. But, today one user told us that she has a 15 inches monitor. Thus, she don't see full page, she has to use the scroll.
    Is it in our model that you can reduce the page size for example 80% size in the page model to fit with 15 inches monitor ?
    Or to define a variable in the page model and have two different buttons one for 15 inches monitor (80% page size) and an other related to 17 inches monitor and more (100% page size) this pourcent should be the value of a variable in the page model ?
    Thanks. Bye.

    Hi Timiche,
    The easiest thing to do would be to make sure that the width of items on the page (especially tables) are set to a percentage and not a fixed px value. This way, the items will spread out to fill the available screen width.
    You should also bear in mind that users can change the resolution of the screens - 640x400, 800x600, 1024x768 etc. It would become a nightmare to try and cater for all possible resolutions and screen sizes by dynamically changing the fixed width dimensions of all objects on a page! I would check what items need to be of fixed width and change all the rest to percentages.
    We tend to inform our users that pages have been designed for a particular resolution - currently 1024x768.
    Regards
    Andy

  • A beginner question: How can I call an APEX page from outside

    I want to mix APEX functionality and other enterprise tools.
    Thus I wish to call by an URL an APEX page by transmitting the mandatory page argument and optionnal argument like an order number. I just couldn't found any information in the documentation about own argument in an URL
    Any idea?
    Frederic

    Hello,
    The following will give you everything you need to know about using ApEx URL:
    http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    Regards,
    Arie.

  • Publish no static html page with Web services

    Hello All,
    I would like to publish no static html page using Web services. I can't attach this html page as static because I need to change it dynamically from another vi. So, client can read this page by browser with refresh 2 sec.
    Thanks,
    Yustas

    Hi,
    I think It is not possible to create a dynamic HTML page, at  the most you could edit your page HTML and publish it again with the same URL
    I hope to be helpful.
    Sabrina

  • Is it possible to serve a few plain old simple static HTML pages with ITS?

    Hi,
    I am looking for a way to serve a few plain old simple static HTML pages (together with some javascript and image files) with ITS?
    The HTML page should be served unaltered.
    Is this possible somehow?
    Thanks,
      Wolfgang

    Hello Wolfgang.
    Yes, that is possible.  What ITS are you using, Integrated or Standalone?
    With Standalone you could just put the static HTML anywhere in the web server directory. 
    With Integrated ITS you will need to upload it to the Integrated ITS and then publish your static HTML.  There is an example of this in the SYSTEM service.  Just go to SE80 > SYSTEM Internet Service > Topic SL > Mime Objects > PAGE > aboutbox.html.
    Edgar

  • Accessing an APEX page with a URL ...

    Greetings:
    Our users are going to receive emails with an embedded link in the body. When they click on the link, it should open up a public APEX page. I have created the links the way I think they should be. Here is an example:
    http://domainname/pls/apex/f?p=200:NMCI_NIPR_ACCT:::NO:F200_CICO_ID,F200_LINK_KEY:5,V618GH823RMAW5FO9SECG3ANHSYJRW
    The page has an alias of NMCI_NIPR_ACCT. My parameters reference application items, and they are defined properly. However, when I copy this url into the browser, I get the following message:
    Unexpected error, unable to find item name at application or page level.
    Error ERR-1002 Unable to find item ID for item "V618GH823RMAW5FO9SECG3ANHSYJRW" in application "200".
    Can someone tell me what is wrong with my URL syntax?
    Thanks,
    Stan

    Hi Stan,
    I think you may have your parameters in the wrong spots?
    The APEX URL takes 9 Parameters.
    The page items must be in the 7th position (comma separated), and the values in the 8th position.
    You are missing one ':', so therefore you are trying to feed the item names into the 6th position, and the values into the 7th position, where the Page Item names should be.
    This is the reason for the "Unable to find item ID" error.
    Try this:
    http://domainname/pls/apex/f?p=200:NMCI_NIPR_ACCT::::NO:F200_CICO_ID,F200_LINK_KEY:5,V618GH823RMAW5FO9SECG3ANHSYJRWAlternatively I found a good resource which may help:
    http://www.oracleapplicationexpress.com/tutorials/55
    Amanda.

  • How to develope a par file with a static html pages in NWDS

    Hi to all,
    what is the procedure to put static html pages as iviews by using programming.
    In my project hierarchy where should i keep the html file, and what component should be generated? to generate a par file.
    using that par i'll generate a iview and i will link to my page.
    but i need a procedure to generate a portal component of this type.
    if any body is having the procedure of this, or any online help documentation link u have please forward to me.
    Thanks & Regards,
    sireesha.

    Hi,
    Check whether KM is installed in your server. If yes then you can view it under Content Administration>> KM content(like the Portal Content).
    In that you can see the Root folder>>documents>>Public Documents. If you wish you can create your own folder or can  just upload the file inside that folder.
    1. to create a folder go to Folder >> new folder...
    2. to upload the file click Folder>>New>>upload.. then you can browse to the local system and from there you can upload file.
    The path that you have to give in the Iview shloud be like
    \documents\Public Documents\<your foldername>\filename.
    Hope this Helps
    gEorgE

  • TREX Search : static HTML pages in KM with links to other intranet websites

    Hi there,
    we have some static HTML pages stored in KM. Besides text, these pages contain links ot other intranet websites, pdf or word documents.
    I have defined an index, according to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm">creating an index</a>
    Following parameters have been added :
    IndexInternalLinks = true
    indexContentOfExternalLink = true
    showWithoutDatasource = true
    Already had a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm">Crawlers and Crawler Parameters</a>, tried by creating a new crawler profile and setting
    Maximum Depth = 3 (we want to search three levels deep)
    There is also <a href="http://help.sap.com/saphelp_nw04/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm">Resource Filters</a>
    The html pages itself are included in the index, but the content of the external links is not included.
    Would this be possible? We don't want to define an <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm">HTTP System</a> in the system landscape, as we don't need to index the whole external website and some parts of it are obsolete - we only want following the links and included the external content in the index.
    Portal version is NW2004S SP10.
    Thanks & best regards,
    Kevin

    Hello Kevin,
    If you don't want to create a HTTP system then you can create a simple web repository.
    For details you can follow help guide:
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/76bd3b57743b09e10000000a11402f/frameset.htm
    Also you can create a Web Repository:
    http://help.sap.com/saphelp_nw04/helpdata/en/12/47833ceb3da02ce10000000a114027/frameset.htm
    Do refer to "Dynamic and Static Web Repositories" section in the document. This will answer your query.
    Regards,
    Anjali

  • Pass parameter to apex page via the URL

    Hi, I need to pass a parameter into a page that will be used in a query inside a report region,
    e.g report region query is
    select link_id, page_id, menu_parent_id, link_text, link_url
    from portal_pages
    where page_id = :page_id
    So the page will display different links depending on what value is passed to the page in the variable.
    I know with normal URL syntax it would be something like
    http://www.domain.com/page.html&page_id=1 (where page_id is a hidden variable in apex)
    but how do I do this with an apex page like :-
    http://host:port/pls/apex/f?p=123:9 <what goes here ? and what goes in the page for it to work>
    Any help appreciated - noob to Apex
    Thanks
    Phil.

    If your item to be used in the url is P1_Page_Id, the
    url should be something like:<br>
    http://host:port/pls/apex/f?p=123:9:page_id:&P1_Page_I
    d.
    Thanks for comments, understand the syntax of the apex URLs now, got the item sorted in the page now, all working.

  • Static HTML pages as iViews

    Hi All,
    I have static html pages that are not published to the Web. I was wondering, can I create iViews for them to be displayed in the portal without having to publish them and creating URL iViews out of them?
    Thanks
    TM.

    Hi Tony
    Make a component with the following code and portalapp.xml. For each static piece of text, make an iView from the component and set the HTML property to the HTML you want to display, and it should work... In the HTML you may need to change any
    <
    character to
    &lt;
    Yes, it's a hack...
    The portal component code
    package com.michael;
    import com.sapportals.portal.prt.component.*;
    public class StaticHTML extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IPortalComponentProfile profile = request.getComponentContext().getProfile();
              String theHTML = profile.getProperty("HTML");
              response.write(theHTML);
    The relevent portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        <property name="SharingReference" value="com.sap.portal.navigation.service"/>
      </application-config>
      <components>
        <component name="StaticHTML">
          <component-config>
            <property name="ClassName" value="com.michael.StaticHTML"/>
          </component-config>
          <component-profile>
            <property name="HTML" value="<b>bold</b><i>italic</i>"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

  • Displaying a static html content on new pages

    Hello,
    I am a newbie on APEX. Sorry if the question is stupid and/or the answer straight forward.
    I am trying to build APEX prototype with some pages displaying static HTML content stored in BLOB columns of a table.
    What kind of page/region/item should i use to display? On which object do i put the select query that will return the HTML content?
    Thanks in advance,
    Daniel

    Hello,
    For static content you may use a html-region.
    But I think you want dynamic content (selecting it form a table). Then you should use a report region with sql.
    Please look in the packaged application Opend discussion Forum to see examples.
    Hope this helps.
    Leo

  • Help with URL Parameters and HTML DataSet please.

    Hello everybody!
    Looking at the example page: "Using URL Parameters to Control Data Regions", towards the bottom it gives an example of "Set by Product Name", from an XML DataSet using the following sample code:
        //Data set for the second example. var ds2 = new Spry.Data.XMLDataSet("../../demos/products/products.xml", "products/product");    //If the URL parameter 'product' has a value, set the XPath that includes a filter and then load the data. if (params.product){    ds2.setXPath("products/product[name = '"+params.product+"']");    ds2.loadData(); }
    Can anyone please explain how to amend this to work with a HTML Dataset rather than XML?
    The first example on the page (Set by RowID) works unchanged for the HTML DataSet, but I don't know what I should replace the 'setXPath' line with.
    I see this has been asked before, but I'm afraid I can't find any answer that works (or, more often, that I can understand properly!)
    Grateful for any suggestions.
    Len

    Wow! Thanks Ben.
    I hadn't thought about using Stacked Containers.
    I'll test this out tonight and let you know how I get on.
    Cheers,
    Len
    A few days later and at last I've been able to test your suggestions.
    I think I must be doing something wrong as the links and content don't work at all:
    http://www.myosanthe-bernhard-huber.com/html/stack1.php
    I know that the stacked containers do work (http://www.myosanthe-bernhard-huber.com/html/stack0.php), so I guess there are some errors in the coding somewhere.
    Would you mind reviewing, please?
    The important thing for me (in this case, anyway) is to get the called page's content using its 'Ref', and I'm not sure what benefit there is in using stacked containers as opposed to master-detail containers.
    The master-detail method works reasonably well for me at
    http://www.myosanthe-bernhard-huber.com/html/fotoalbum.php and sub-pages.
    Perhaps I am betraying my lack of knowledge, but as I said in my original post, I think that I just need the HTMLDataSet equivalent to:
        //Data set for the second example.
    var ds2 = new Spry.Data.XMLDataSet("../../demos/products/products.xml", "products/product");
       //If the URL parameter 'product' has a value, set the XPath that includes a filter and then load the data.
    if (params.product){
       ds2.setXPath("products/product[name = '"+params.product+"']");
       ds2.loadData();
    which as you can see uses an XMLDataSet, but does exactly what I need.
    (see http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html)
    Thanks again for your help, Ben.
    Len
    Message was updated by: ec1lennie

Maybe you are looking for

  • How to find out the maximum value of one array

    hi all.. I have one array that consists of some elements so I want the maximum value of the list ... if anyone knows this please help me.. thanks..

  • Help writing to file in "C" using JNI

    Hi, I am trying to write the encrypted data that I read from a file. It writes the decrypted data; however, it prints extra characters at the end of file after the data. I am not sure why this is happening. Below is the code that I use to write the d

  • Can't drag app to other page on iTunes 12

    I tried to drag the app to other page but I can't,  though It works before a week. iTunes version is 12.1.0.50 and I'm using to backup to the iCloud backup and Yosemite. Plz help me.

  • Regarding Backup of ABAP+JAVA system

    Hi, We've ECC 5.0(ABAPJAVA) system in which we've configured JDI and NWDS was installed on server's desktop. Now my concern here is how to take the backup of ABAPJAVA system which should include NWDS changes as well. Please give me some suggestions o

  • Adobe Air Application Crash After installation

    Hi, We have developed a windows application "DsNetHTML5Player" in Adobe Air which shows HTML pages in sequence using <mx:HTML> control. When I run application in "Flash Builder" all plays fine.After creating its build and installing on system (Window