Put a child page into a region in a parent page?  (APEX 2.2.0)

Hi, all,
Thanks so much for all of your help previously.
I want to have the entire contents of child page inserted into a region of parent page. The child page uses the "Empty Template" template and has an report region that uses the "No Template" template.
The parent page has a region containing a single div into which I want to insert the child page. If I do this using JavaScript and htmldb_Get object, inserting the result of the AJAX request into the DIV, I get what I want. I can't figure out how to preload the page into the region.
I've tried using the URL region, but I keep getting
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1674
ORA-12545: Connect failed because target host or object does not existwhen I enter the URL for the child page.
I can't use UTL_HTTP.REQUEST, either.
select utl_http.request('http://myserver/f?p=100:100:12345678901234')
from dual;I get roughly the same error. (I copy and paste the same URL that I use for the AJAX request. I can also type that URL into a browser and get the page.)
I can get both Google's and Oracle's Web sites this way.
My other option is to render the entire page to a string, store it in a VARCHAR2 / CLOB, and output it to the screen. Is there a way (maybe using WWV_FLOW) to render a page to a string?
I want to avoid using DHTML when it's not needed and I don't think that I would need it to initially load the page.
Thanks!

Carl,
(Sorry about the reply gap.)
As best as I can tell, iframes can't auto-fit their contents without JavaScript. I've also heard mixed things about iframes and accessibility. The contents of the iframe also don't inherit the CSS definitions from the parent frame. (None of those may be good enough reasons to not use iframes, but I am totally unfamiliar.)
There are workarounds for all of those problems, but I'm just as inclined to write some PL/SQL function that generates my page for me and call that from a PL/SQL region, since the page is so simple. It might take me less time to write the PL/SQL function and PL/SQL region than it will to make the iframes look pretty.
Thanks for the reply!
Message was edited by:
Don_84
Well, that's odd. When I changed my authentication scheme from what I was using to the database authentication (the DAD one), the utl_http.request call works, as does the URL region. So the authentication is getting in the way. I wonder if there is a (elegant) way around that?
Message was edited by:
Don_84
Is WWV_FLOW.SHOW documented? In a PL/SQL region, I can call
WWV_FLOW.SHOW(P_INSTANCE => '&SESSION.', P_FLOW_ID => '100', P_FLOW_STEP_ID => '1000');where 100 is my app number and 7000 my page number, but it only works if I have no other regions. Otherwise, the page entirely fails to render.

Similar Messages

  • Get the Values of the components inside the region onto the Parent Page

    Hi All,
    I am using Jdeveloper 11.1.1.5.
    I just wanted to know that my use case can be fitted to contextual events or should i use the #{data.pageDef.Attribute.inputValue} to get the values.
    I have a bounded taskflow "ChildTF.xml" with fragment say "child.jsff".Now i have dragged the ChildTF.xml on the other page say "Parent.jspx" as a region.In the child.jsff page i had input form having 20 fields and all the 20 fields are dragged from a View Object so i don't have the field values binded to the Managed Bean and on the parent page "Parent.jspx" i have a button. Now on click of button i need to get the values of those 20 fields of "child.jsff" page.
    How can i achieve this?
    Thanks
    Shah

    Hi Timo,
    Thanks .
    For sharing the data control i should follow this :-
    In the Property Inspector for the called task flow i.e ChildTF.xml, select Behavior.
    In the data-control-scope list, select shared.
    Is there anything else do i need to do ??
    I mean do i need to add the iterator to the parent page also. ?
    Kindly Suggest!!
    Regards,
    Shah

  • Display a seeded page as a region in another seeded page in OA Framework

    Hi All,
    I'm newbee to OAF. I have a requirement of displaying a page (seeded), inside another seeded page. Previously that use to come as a link and on click of the link the next page opened up.
    The page here Im talking about is Notification details page for Invoice creation Workflow and on click of the link 'View Additional Invoice Details', a new page opened with the invoice details, fetching from a VO based on the Invoice ID. Now the same, Invoice id + attachment link + line details + buttons I want to display in place of that link. How do I proceed with that?
    Any help will be greatly appreciated.
    Thanks in advance.
    Regards,
    Abhik.

    Notice that it, too, is an affiliate link....
    Posted without disclaimer.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JFK" <[email protected]> wrote in message
    news:em8oij$htq$[email protected]..
    > This is a great service to send christmas email cards to
    clients as well
    > as email throughout the year.
    >
    >
    http://www.constantcontact.com/index.jsp?pn=webgreen
    >
    > "pellio" <[email protected]> wrote in
    message
    > news:em8ipo$bjl$[email protected]..
    >> we are looking to send clients an e-card for
    christmas and im trying to
    >> figure
    >> out how i could incorporate this into a web page and
    insert it in the
    >> email so
    >> it displays when they open it. im also wondering how
    you could insert a
    >> flash
    >> file in an email so that it displays as the message
    and not just an
    >> attachment.
    >>
    >
    >

  • When printing anything off the internet it shrinks the full page into one forth of the full page. How can i print using the enitre page?

    Every time I use firefox I can't print full pages off the internet. I will find the page I want, for example, map quest. I push the print button and my printer prints the entire page in one forth of the space. The entire page I printed can be found in the upper left hand corner of the full page, just shrunk down to a fourth of its size. How can i get a full page printed from the internet?
    == This happened ==
    Every time Firefox opened

    See this:
    [http://kb.mozillazine.org/Problems_printing_web_pages#Prints_to_a_small_portion_of_the_page]

  • How to translate text on a page into actual data on another page?

    I would like to translate (parse and replace) the words that are on one page into their actual values on another page. These words are in a text area box that are displayed as the following:  [[type name]] and [[start date]].  Again, I'm trying to show their actual values on a different page.  Any help will be greatly appreciated.

    They are in a text area.  I'm basically trying to get what is in the Problem Description text area  translated into actual data from the database i.e. EVENT TYPE NAME=EVENT.EVENT_TYPENAME. 
    Please click on the following click to see the code I would like translated:  http://pastebin.com/imfuSTbT
    Please click on this link to see code for the page where the translation occurs:  http://pastebin.com/m2t9Vp7w

  • Page Zero (0) - Regions Caching / Page Caching not available

    Hi,
    My page zero display information from a calendar table (fiscal year, etc.). This information will be the same all day long (get updated at midnight). It's not possible to enable caching of regions on page zero. It's also impossible to enable caching of the page zero.
    Why?
    Thanks,
    Louis-Guillaume
    [My Blog|http://lgcarrier.blogspot.com]
    [APEX and jQuery demos|http://www.insum.ca/jquery]

    Louis-Guillaume,
    Good question. We have asked ourselves this and are considering removing the restriction in 4.0. I think it initially had to do with preventing unwanted side effects and anomalies although none of us can recall the details right now. We will have to carefully look at ways to make this something developers can use easily while preventing strange results. First of all, caching of page 0 doesn't make sense. You want to be able to cache regions on page 0. Now, say your page 0 has two regions, P0_CACHED and P0_DYN (one cached, one dynamic). And your page 10 has region P10_CACHED. When page 10 is rendered, you'll get:
    P0_CACHED
    P0_DYN
    P10_CACHED
    That looks okay, you get one cached region from page 0, one dynamic region from page 0, and one cached region from page 10. Of course you have controls with which to purge any individual region from the cache so you can cause P0_CACHED to be refreshed whenever you like.
    But say page 20 is a cached page. When it renders you'll get:
    P0_CACHED <-- not from the page 0 region cache but from the page 20 page cache, regardless of the "stale-ness" of the page 0 cache
    P0_DYN <-- not rendered dynamically from page 0 but retrieved as part of the page 20 page cache. But this content may be different from the content for the same page 0 region displayed on page 10 one second ago or one second from now.
    P20_DYN <-- from the page cache as is normal for a dynamic region on a cached page
    Hardly a thorough treatment, I realize. Just wanted you to know some of the aspects we have to consider. We will also have to read this thread again to come back up to speed: V3 Caching - any more info? .
    Scott

  • Using Two asp Page into Master-Page

    Hi All,
    I Have Master-Page and I want tow assign two Different Asp Page into the "div" tag in master Page , however
    I have different "div" tag in my master-Page , and I focus Assign in one "Div"  the Home-page by suing "ContentplaceHolder",
    and i Assign to another "div" different asp page using "Contentplaceholder" , but when i assign the second asp page to the "div" it give me
    nothing on that "div",  while the "div" which i assign the Home-page it works fine.
    I just think that the Master-page already know the Home-page by setting  it as "Home-Page" while the other page is do nothing.
    So could you please help to assign different asp page to different "div" in master Page.
    thanks all .

    Hi,
    According to your description, my understanding is that you want to insert two asp pages to mater page in SharePoint 2010.
    You can use <!– #include file=”[filename].aspx” –> to include the pages in the master page.
    More information are provided in the link below:
    http://triaslama.wordpress.com/2008/11/19/how-to-include-file-in-aspnet-pages/
    I recommend to use User Controls to include the asp pages in master page.
    http://blog-sharepoint.blogspot.com/2011/10/sharepoint-2010-add-user-control-to.html
    http://pankaj-sharepoint2010part12.blogspot.com/2011/10/add-custom-user-control-to-sharepoint.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Computed Region TItles being Escaped in Apex 2.2

    In Apex 2.0, HTML contained within a hidden item to be display in a Region's Title was not escaped. <BR>In Apex 2.2, the same information is now escaped and my computed Region titles are displaying HTML text, instead of the HTML.
    I would like to be able to generate region titles instead of them just being fixed text.
    Is there anything I can do here? It would be great if there was a way to unescape the Title.<BR>
    Furthermore:<BR>
    If I put the HTML directly into the Region Title, it displays fine. So the question is .... why does the info get escaped if it is in an item for display? You can imagine how long the region title will become if a few anchors are presented in the title.
    Message was edited by:
    sgreber

    Doug:
    I agree, I think the help text is, in fact, stating the opposite of the observed behaviour.
    Quoting When session state is referenced in this way, the value emitted to the page will have special characters (<, >, &, ") escaped if the referenced item has one of the following safe item display types:
    But what we see is that if the referenced item is of type "Hidden", special characters *are* escaped. If the item is a "safe item", then, by definition, it cannot be tampered with, so there is no need to escape it on output!
    What worries me is that such a major change was introduced in a minor patch release like 2.2 where even the export/import API version has not changed i.e. it is otherwise compatible in all aspects. I am sure this is going to cause Production applications at many customer sites to break because they rely on HTML markup in &ITEM. variables being rendered unchanged.
    Thanks

  • MB2320 - Scanning multi-page documents and saving as a single, page-consecutive PDF

    I just purchased and set up a Maxify MB2320 to replace my PIXMA MX892, which fell victim to the dreaded "Incorrect Printer Head - U062 Error." My only disappointment thus far is the replacement of "MP Navigator" with "Canon Quick Toolbox" and the unavailability of ADF-AutoDuplex scans. My problem: I've searched the instructions, tried the "Document," "Custom," and "ScanGear" utilities and cannot figure out how to scan multiple-page documents, have the scanned images appear in a single place where they can be put into sequential order, and save the whole mess into a single PDF file that can filed and saved in a folder designated by me. I'd very much appreciate a step-by-step tutorial on how to do that. Thanks in advance.

    Thank you for your prompt response and suggested solution. It worked! (One of the reasons I got lost is that the CSR I spoke to when I called initially sent me straight to the "ScanGear" tab in the "IJ Scan Utility," rather than "DocumentScan" (not "ScanDocument.") Couple other observations. When I installed the utilities onto my laptop running Windows 7 Home Premium SP-1, the shortcuts were installed to the Hidden Icons Folder in the System Tray, not the Desktop; I can pin the utility to the taskbar or add it to the Start Menu, but I can't create a shortcut for the Desktop by right-clicking. Also, after scanning two double-sided pages manually for the saved PDF, I was able to rearrange the pages into proper order mostly because the pages were graphically distinct enough to tell them apart in the thumbnails. This would be impossible for pages that are all-text, since the thumbnail images are so small. Is there a way to make the utility windows any larger, or otherwise make the thumbnail images readable? Thanks again.

  • How do you put safari web pages into icloud with the safari iCloud button?

    how do you put safari web pages into icloud with the safari iCloud button?

    What that button does is sync your tabs between your devices. So if you have multiple macs with Mountain Lion and/or devices with iOS 6 (once it comes out this fall) you can pick up where you left off. For example, let's say I have apple.com, nytimes.com, and facebook.com open on my mac, but I need to run. Later, if I need to use another computer in my household, I can just restore the tabs that I was using before on this other mac.

  • Loading a Page Flow into a region programmatically

    Hi everyone,
    I'm currently using JDeveloper 11.1.1.0.2, I have a fragment with a backing bean that programatically generates a set of RichPanelSplitters to create a page with a user-defined amount of rows and columns.
    This is working fine, but while creating these panels I want to insert into each facet a RichRegion that will contain a Page Flow that I've created (e.g. my-flow-definition.xml which I would normally drag onto a page and select 'Region' from the context menu).
    I can easily create a RichRegion in my managed bean, but I have no idea how I'd 'insert' my flow definition into it programatically, is this possible?
    Thanks in advance, Tom

    Hi,
    Ok, the post I linked you to won't be useful for that as you really need a "varying amount" of task flows in your page. Since you also posted on another topic about that part I pretty much get that you're trying to create a page composer on your own. MDS would greatly help you do that but, sadly, it's not available and you said your time frame is pretty short in the other thread, leaving you with very few options. Here's what you can attempt, but it's going to be complex:
    1. Create a custom TaskFlowRegionModel (you'll have to check the ADFc API, including the private one, to create a working one). This step is the most complex one;
    2. Make sure all dynamically added task flow do NOT use page defs / data binding nor call task flows that does;
    3. Create an user preference table;
    4. Create a model layer service managing the table;
    5. Change your managed bean you retrieve/write properties on the service and creating region dynamically using your custom made RegionModel created in 1;
    6. Add code to include the current fragment's content at that point, which is very fishy outside JSP pageContext.
    You should plan between 10~20 days to create the model alone (step 1) and maybe 5~10 for fragment inclusion step 6. I've created my model in 3 days and the inclusion code in 2, so it's doable in that time frame as well, but I'm not a newbie with JDeveloper, ADF nor JSF at all so I would take those number as close to absolute minimum time required and even then I could not overcome the point 2's limitation. I'm not allowed to share the code though, sorry about that.
    Regards,
    ~ Simon

  • Putting jalbum page into iweb.. Help please.

    I would like to find an easy step-by-step description of how to get a jalbum page intergrating into a iweb as a separate page. Is this possible. I see posts say yes it is possible, but I see no clear instructions for doing this. I am basically "code illiterate" so I really need step by step instructions and explanations.
    I use Aperture for my photos....
    Thanks so much

    Make sure you do not use this garbage :
    <IFRAME SRC="http://oldtoad.net/Hubbel/index.html" WIDTH="800" px HEIGHT="800" PX FRAMEBORDER="0" --if "0" no border, otherwise "1" with border MARGINWIDTH ="0px" MARGINHEIGHT="0px" SCROLLING="no" --"no" no scrolling bar, "yes" show always, "auto" showed when need > Your browser does not support IFRAME </IFRAME>
    Use this :
    <iframe src="http://url.to.file.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>
    Or :
    IFRAME ALTERNATIVE IN THE HTML SNIPPET

  • Popup not INSERTing into table and not refreshing called page ...

    Greetings
    Environment: APEX 3.1.1.00.09 on AIX 5.3 in 10gR2
    I have read many of the threads concerning my issue and I feel I am getting close to the answer but somehow have combined too many of the suggestions and am tripping over my own code.
    Please look at my sample application on apex.oracle.com:
    Workspace: galway
    User: gwicke
    Password: gwicke
    Please start with Page3, select any Agency and then click 'Add New Contract'.
    There is currently a <strong>BOLD </strong>label 'Add New Builder' that is a link that should open a popup window. Type any name into the field and click 'Create Builder'. This should INSERT the row into the builder table, close the popup, assign the new builder name to the calling page item 'Builder Name' and populate the screen item.
    In it's current state, the application will open the popup window, allow entry and close upon clicking the 'Create Builder' button. However the new builder is NOT inserted into the table and the calling page item is not populated.
    By looking at the Page Items and Session State I can see the correct values assigned to the 'Pn_BULDER_NAME' items on both the popup page (4) and the calling page (2) but the value does not appear on the screen.
    I've read where there's really two parallel universes, no sorry, two versions of the screen items, one in Session State and one that is displayed in the browser and there are steps to take to be sure the one displayed is updated from Session State as I would like in this case.
    I've entered Javascript code in the Page4 - header to define the 'passBack2()' function and code in the 'Optional URL Redirect' section of the 'Add Builder' button to hopefully execute the ARP for the INSERT, assign the Page2 items and close the popup. It doesn't quite get all that done.
    Any helpp is greatly appreciated. Thanks to Denes for most of the code suggestions I've followed.
    -gary

    Hi Gary,
    I think that there's a very simple solution to this - didn't really spot it last night.
    Firstly, yes, you could use a "button" to handle the call for the popup - just make sure that the button is a URL type "button" that is actually an A tag with the call in the URL target setting. Alternatively, you could take you existing A tag and use the same class attribute for one of your buttons as this should make it look like a button.
    More importantly, though, I think that we could do it as:
    1 - On your page 2 popup call, clear that cache for page 4 (the popup page) - I have already done this in your app by updating the url
    2 - On the popup page, allow the user to enter in their desired P4_BUILDER_NAME value (not sure if you want to do something to make this unique?)
    3 - Let the user click the Create button on the popup. This will submit the page, which will get your P4_BUILDER_RANK (the pk) value and insert a new record into the table (you could consider creating a sequence and a trigger to handle the creation of a new PK value?).
    4 - Assuming the P4_BUILDER_RANK then exists (it wouldn't if there was an error somewhere), then conditionally display a region that had a piece of javascript that submits page 2 and then closes itself - we don't need to pass anything back to page 2 (see below)
    5 - As the P4_BUILDER_NAME and P4_BUILDER_RANK exist in the session, when page 2 is being reloaded, (A) the select list would be updated with the new Builder (still not sure why all my entries appeared at the bottom instead of in alpha order??) and (B) both P2_BUILDER_NAME and P2_BUILDER_RANK can have Post Calculation Computations set (NVL(:P4_BUILDER_NAME,:P2_BUILDER_NAME) and NVL(:P4_BUILDER_RANK, :P2_BUILDER_RANK) respectively) - the effect of this is, if there are values stored in the P4 page items, we use them, otherwise we use whatever values were in the P2 page items
    6 - Finally, to stop (5) happening in all page 2 loads, you would need to clear the cache for page 4 in as many places as possible - eg, branches to page 2 or buttons on page 2
    The reason we can't pass values back to page 2 is that one of the items is a select list. The value we want to select won't appear on the select list until the page has been submitted. So, we can't set the value and submit because the value isn't there. We can't submit and set the value because javascript wouldn't know when the page has been updated (or, at least, you would have to put some independant mechanism in place to identify this, which may become complicated).
    So, simply put, as long as we know that if the values are in the session, we can use Post Calculation Computations to set our fields to these values. The only thing to bear in mind is that we need to ensure that these session values only exist when we need them - hence clearing the cache. This principle should work for any type of field - but, as you have no doubt seen, simple text fields can be updated by the popup directly as the field should accept any value we give it.
    My only other recommendation would be to completely remove the MRU processes from the page as these are not required (they just confuse the issue) and you could make your PK fetch and record insert into a single process - just to keep things neat and tidy, you understand!
    When I finished with your app last night, I did leave it so that javascript would create a new option on the select list and then set the value. But the above methodology seems to be a lot simpler.
    Andy

  • ADF: want to add multiple instance of .jsff page in af:region dynamically

    Hi,
    I am having following requirement.
    We have one .jsff page, and we want to add multiple instance of this fragment page in <af:region> at runtime.
    Basically our requirement is anyhow we want to add multiple panel which is having many other child component at run time.
    Your suggestion will be very helpful.
    Regards,
    Deepak Parmar

    Vinod,
    Hmm.. only option left is i should add component at run time. but i am facing following issue...
    I am trying to add child component into RichPanelStretchLayout object at runtime, but getFacetCount() and getFacet() method of RichPanelStretchLayout is returning 0 and null respectively.
    can you please suggest me how can i add child component into RichPanelStretchLayout object?, i have directly added component using getChildered.add() method. but it wont work as i must need one facet object ( either START,BOTTOM or CENTER).
    Regards,
    Deepak

  • Including page in a region : best practice

    Hello all,
    I know that this subject has been already discussed many times but my question is not really "how to do it"...but "is it the best way"?
    So the initial need was the following :
    I had to be able to include the content from a page in an application into the region of another application using a generic solution that allows end user to configure easily what page he wants to render without having to use Apex.
    For this :
    1. I first defined a plugin that allows to render an parametrized iframe into a region.
    2. I defined my plugin region on the first page that is linked with elements to define the parameters (page number to render, items and values to set on the page).
    3. Then the user can easily change the rendered page on the first application changing the database row that specify the page id.
    That is working pretty good but I would like to be sure that there is no proper solution because some customers do not really like the idea to have an application with embedded iframes.
    I considered a solution using PLSQL dynamic region, trying to retrieve the page content using an HTML post in PLSQL. But it was not really a success. After fixing access issues, I just noticed that the page was rendering but nothing was functionnal on it (buttons, process...) because of the unknown session context.
    I did not succeed to fix this.
    I also considered to use an AJAX with htmldb_Get but I do not really like this in that case. Because I want the region to be displayed on pageload. Then that does not really seem logical to make a server call to render first the original page and them refresh the region content.
    Moreover, I already used this in the past, and I also had issues about session context (processes not working and so on...)
    Do you have any other idea? Do you think the iframe solution is the best one?
    Thank in advance for your help and advices.
    Best Regards,
    Max

    Hello,
    because some customers do not really like the idea to have an application with embedded iframes.How do the customers know whether you are using iframes or not. If you apply page templates similar to "pop-up" and if you use same CSS definitions as of calling application for embedded application, then they can't make it out whether is part of application or iframe calling another application.
    Regards,
    Hari

Maybe you are looking for

  • Webdynpro PDF forms issue

    Hello All: I am facing an issue, with opening pdf forms using webdynpro applcaions, after applyign support stacks. I am using linktoaction UI element to display a pdf form which is stored in mimereporsitory, and i am displaying it after getting URL.

  • Have changed from Firefox 10.0.2 (slow) to 3.6.27 (very fast)!

    I have recently asked why 10.0.2 is so VERY slow. I have just now changed to 3.6.27. Works well and quite FAST - using same commands on both versions. Something is very wrong with my earlier 10.0.2 installation, or with this software version. I will

  • RAC  11g certification exam

    Hi, Does anybody know when the 11.2 cert exam will be offered this year ? Raja

  • How do I solve what is causing a kernel panic?

    I am working on a friends MacBook6,1 and it randomly crashes with kernal panics. I've ran AHT, Disk Utility & Memtest86 but to no avail. He's an app hoarder with 184 items in his Application folder and I've got a hunch that may have something to do w

  • MicroSoft Content Management Server with WL Portal 10

    Hello, Has anyone got experience with integrating MS Content Management Server with the BEA WL Portal 10? i need develop a custom SPI? Comments, Issues, opinions? Best Regards, Zarco