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

Similar Messages

  • Include page flows into another page flow

    Hi,
    i have created two page flows that hit the database. i want create another pageflow that can call the two page flow i have created earlier.
    Any one please send me the docs on the eVision.
    Thanks,
    Krishna.

    http://docs.sun.com/app/docs/doc/819-6744?q=evision

  • Simulate frames by loading web page content into DIV

    Hi, does anyone know if there is a way to simulate frames
    using CSS. Essentially, I want to load the content from another web
    page into a specific DIV. The content is from another web site, we
    have permission to use it, but I want it to appear within a page on
    my site that still has my navigation and header DIVs. So I want to
    load a new page into a content DIV, as if it were a frame. Can this
    be done? Thanks, JD

    By the way, IFrames have the same problems as frames....
    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
    ==================
    "bregent" <[email protected]> wrote in
    message
    news:e1umgn$227$[email protected]..
    > >The content is from another web site
    >
    > If you are well versed in server side scripting, you
    could do this without
    > a
    > (i)frame. Otherwise, you'll have to use some sort of
    frame. Of, find out
    > if the
    > other site can provide you with an xml feed of some
    sort.
    >

  • 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.

  • Applet and Page flow communication

    Hi
    we have a design requirement where we need to have access to various peripherals
    like cash drawer,point of sales printer etc form the client workstation. We are
    usign workshop for development and we are looking into integrating an applet into
    the pageflow(actually the pages created using page flows) and need to be able
    to pass data into the applet at run time from the page (created usign page flow)
    like commands to open the cash drawer, to start and end the printing .
    Is it possible to pass data from the pages created using page flows into the applet
    at run time? if so could someone share a small code snippet.
    Thanks
    Keith

    Keith--
    You can do this if you use the JSP to render data into the applet's
    <param/> tags. For example, you can evaluate expressions that bind to
    the JPF / action form / request / etc and render the output using the
    <netui:content> tag.
    In your JSP, this might look like:
    <param
    name="<netui:content value="{pageFlow.someName}"/>
    value="<netui:content value="{pageFlow.someValue}"/>"
    />
    If the value of {pageFlow.someName} is foo and the value of
    {pageFlow.someValue} is bar, then this would write:
    <param name="foo" value="bar"/>
    If you have a data set to render in <param/> tags, you can certainly
    nest something like the example above inside the <netui-data:repeater>
    and use the "container.item" binding context.
    Hope that helps...
    Eddie
    keith shacks wrote:
    Hi
    we have a design requirement where we need to have access to various peripherals
    like cash drawer,point of sales printer etc form the client workstation. We are
    usign workshop for development and we are looking into integrating an applet into
    the pageflow(actually the pages created using page flows) and need to be able
    to pass data into the applet at run time from the page (created usign page flow)
    like commands to open the cash drawer, to start and end the printing .
    Is it possible to pass data from the pages created using page flows into the applet
    at run time? if so could someone share a small code snippet.
    Thanks
    Keith

  • How to load a large amount of HTML into HTML region?

    I am trying to display a clickable image map (HTML <map>) in a region. The HTML source for the image map is fairly large and will not fit in the Apex editor (HTTP 400 error when I Apply Changes). I would also rather not manage that much HTML in the Apex web editor. So I stored the code in a file and added it to my applications file storage.
    I have tried various methods of getting the HTML to load when the page is rendered. I tried a URL region, but that leads to all kinds of ACL/security issues that we do not want the customner to have to deal with. i also tried some PL/SQL:
    DECLARE
    l_file_id NUMBER;
    BEGIN
    SELECT id
    INTO l_file_id
    FROM APEX_APPLICATION_FILES
    WHERE filename = 'myhtml';
    APEX_UTIL.GET_FILE(
    p_file_id => l_file_id,
    p_inline => 'YES');
    END;
    But that just replaces the entire page, not just the region it's defined in (even when the HTML is without <head> etc).
    Various attampes wih #APP_IMAGES#myhtml and &APP_IMAGES.myhtml just give me the translation of the APP_IMAGES variable.
    So, how do I load a large chunk of HTML into a region dynamically at run time? I also need this to interact with APEX in the sense that JavaScript will set APEX variables and cause a SUBMIT when the use clicks on the image map.

    Hi Andy,
    ATD wrote:
    Does your HTML define the regions/points on the map using AREA tags?Yes. it is actually generated using MapSefrver from huge tables of SDO_GEOMETRY (Oracle Spatial).
    If so, you could define a report template that does this and use this for a report based on a table that has the settings for shape, coords, href etcHmm, the code (HTML map) is auto-generated so if I understand you correctly, this might be difficult. One of the HTML is approximately 180KB of text.
    I found a way to do this using dynamic PL/SQL. I created a new table that has a varchar filename and a CLOB for the file data. I then imported the HTML into the table using SQL Developer (copy&paste, nice!). I then created an HTML region and used the following:
    declare
    html clob;
    len number;
    st number;
    c number;
    begin
    select length(data)
    into len
    from FILES
    where name = 'state_query.html';
    st := 1;
    while len > 0
    loop
    if len > 32000 then
    c := 32000;
    else
    c := len;
    end if;
    select substr( data,st,c )
    into html
    from FILES
    where name = 'state_query.html';
    htp.p( html );
    st := st + c;
    len := len - c;
    end loop;
    end;
    Edited by: CoyoteTech on May 13, 2009 7:27 AM

  • ADF Security, Task Flow as a region in a page resource grant

    JDeveloper 12c (12.1.2); Application uses ADF form based security, external LDAP provider (Active Directory)
    After sign-in page (upon successful authentication/authorization) user is forwarded to a page that executes VO method prior to render. I am new to task flow concept and am told to achieve this like:
    - create bounded task flow, with method call activity (execute exposed AM method that calls VO method, runs custom SQL) and view activity as page fragment.
    - then drop the above task flow into a page as a region
    In ADF security setup, I gave resource grant task-flow to certain application role. Started the application, login and got 403 error. Then went back and gave resource grant 'view' to the actual page that contains task flow. It worked fine.
    So the question is, when protecting application (implemented with task flows) with ADF security, I thought it is enough to grant those task flows to whatever application roles (groups) and inherently any page that uses that task flow(s) (as a region) will be protected?
    From this test, it seems that I have to assign each page (that has task flow as a region) to application roles individually?

    Hi,
    any page that is contained in a bounded task flow is protected  by the task flow permission grant, this is correct. If this is not what you see, please file a bug with support or send me a simple reproducible test case please. My mail address (replace all < name > with the described symbol.
    frank <dot> nimphius <at> oracle <dot> com
    The test case will need to be in a ZIP file nemaed to "unzip" and should be able for me to run stand alone (please no database scripts to run prior to try the test case)
    Frank

  • Problem when inserting xml flow into jspx page

    When I drag and drop the xml into the jspx I should get a pop up menu where I would choose region (Im following a tutorial) but I get nothing. I drag and drop and It just opens it in the design editor.
    I would appreciate any help you guys could give

    OK, let cover the basics first:
    JDev version?
    I assume you are on 11.1.1.2.0 or 11.1.1.3.0:
    You created a new task flow (right click on the 'Web content'->new->'ADF Task FLow'
    the check box 'Createas Bounden Task flow was set and the check box for 'Create with Page Fragments' was set
    The filename was something like 'search-email-flow.xml'
    This should create a new bounden task flow with the name of search-email-flow (which creates a xml file with the same name).
    Then you put one view to the flow. After creating the page fragment (the file created should have the jsff file type) you saved all work.
    The you open up an existing jspx file and drag the new flow from the 'Page Flows' folder under 'Web content' onto the design view of the jspx file.
    after dropping the flow you should then see the 'Create' dialog. e careful, you can't drop the flow everywhere on the page. You should drop in into a panel group or some other container. If you drop it i.e. onto a table you see the effect you described: it's opening the flow!
    Timo

  • Ive just learned that i can use loadjava to load jsp pages into the database.

    Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
    Any ideas?

    Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
    execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
    PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
    ORA-29540: class ZebraGetPrinterFromXML does not exist

  • Multiple entry points into a Page Flow

    Is it possible to define multiple entry points into a PageFlow ? That is, can I forward to an arbitrary Action inside a PageFlow (other then the standard begin) ?
    If so, is there sample code illustrating this ?
    Thank you
    Cristian

    The flow view should show the action from the anchor.
    "Cristian" <[email protected]> wrote in message
    news:405892c9$[email protected]..
    >
    John,
    That answers my questions.
    One more thing though :
    When using an anchor to forward from a jsp to an action in a pageflow,
    the 'Flow View' does not show the corresponding link. Is that normal ?
    Thank you
    Cristian
    "John Rohrlich" <[email protected]> wrote:
    Cristian,
    Yes the samples implicitly go to begin because jumping into the middle
    of
    some flow can lead to code that is difficult to follow and to debug.
    If
    there are pieces of a page flow that are useful in multiple contexts
    you
    might want to make them independent page flows or nested page flows
    You can go from a jsp to an action in another page flow using an anchor
    and
    setting the href attribute, for example
    <netui:anchor
    href="/WebApp/anotherPageFlow/someAction.do">continue</netui:anchor>
    notice that you set href= rather than action= because you are going
    outside
    of the local page flow.
    If you want to go from an action in one page flow to an action in another
    page flow of the same application you can do this
    * @jpf:forward name="success" path="/anotherPageFlow/someAction.do"
    If you want to pass a form to the action you can do that also. You just
    follow the last example and add the form to the forward, for example
    return new Forward("success", someForm);
    I hope that covers it - john
    "Cristian" <[email protected]> wrote in message
    news:405787a2$[email protected]..
    I need to go from either an action or a jsp in one page flow to ajsp/action in another page flow, passing around a session scoped action
    form.
    What is the syntax for the forwarding path ?
    All the samples I found implicitly
    forward to the 'begin()' action in the destination jpf.
    How do I tell it to go to
    another action/jsp in the target jpf ?
    Thanks
    Cristian

  • Dyamic landscape table that flows into portrait page.

    Hi,
    I have a form that transitions from portrait, to landscape, and back to portrait. The landscape pages contain a dynamic table where users can click a button to add rows. I have applied the landscape master page to the landscape pages and the portrait master page to the following pages. The problem is that in the PDF preview, when the landscape table flows onto another page, it renders incorrectly because it is trying to use the portrait page. What do I need to do on the Pagination tab to make the table flow properly to another landscape page?
    Thanks...Jenn

    Hi Sarah,
    Thanks for your response. Unfortunately the pagination tab for the master page does not give me those options. It only gives me the page numbering options. I have applied the pagination option you suggested to the page where I have applied the landscape master page, however, it still flows into a portrait page. Any other suggestions are most welcome.
    Thanks again...Jenn

  • Firefox freezes when I load new pages into new tabs. This started a few weeks ago after I downloaded the latest update to firefox, currently running 7.0.1

    After installing the latest update to Firefox a couple of weeks ago, loading new pages into new tabs takes a very very long time IF the page loads at all. I usually have to close the original tab to get the new tabs to load their pages. Sometimes I have to close all Firefox windows and start over to get the page I want to load.
    This only started after downloading and installing this new update. I had no problem with new pages/tabs with previous versions.
    I have rebooted, run full scans with Spyware Doctor, Malwarebytes and McAfee without solving the problem.

    Look the SOLUTION CHOSEN:
    https://support.mozilla.com/en-US/questions/882621
    and ''John99'' reply down the chosen solution.
    thank you

  • Loading external swf`s into main page automatically after 300 frames

    hi guys
    i have a main file called DEMAND.fla that has a loader placeholder/positioner thingy in it with the instance name "loader_mc_james"
    when the page opens it uses the code below to load in an external swf named demand_001.swf. to the placeholder location
    loader_mc_james.loadMovie("demand_001.swf");
    now at the moment i have 6 external files, demand_001, demand_002, demand_003 etc and use 6 individual buttons located on the DEMAND.fla page that the viewer clicks on to load each page as required, it all works fine and I happy with it.
    In the future however i would like demand_001.swf to load up and when it gets to frame 300 autmatically load up demand_002.swf and so on.
    MY QUESTION IS: What code would i stick at frame 300 to get that to happen?
    Any advice would be appreciated.
    Ps, it would also good if all the other exteranl files were loading into memory in the background as soon as the inital page is opened.
    you can see what i have at the moment here
    http://www.omega-completion.com/downhole_demand_activated_technology.html

    What you could do is have the DEMAND file include a fiunction that manages the loading and have your loaded files call that function.  You could either have a variable that you increment to modify the name of the file to load, or just pass the name of the file to load in the function call.  For the latter of the two your DEMAND function to load the files could be something like...
    function loadDemands(swfFile){
         loader_mc_james.loadMovie(swfFile);
    loadDemands("demand_001.swf"); // to start things off
    Then, in frame 300 of the 001 file you can have...
    _root.loadDemands("demand_002.swf");
    If you prefer the first option, then your DEMAND file would do the work of determining who gets loaded next and your loaded files would call the function without the argument.  Something along the lines of...
    var currentSWF = 1;
    function loadDemands(swfFile){
         loader_mc_james.loadMovie("demand_00"+currentSWF+".swf");
         currentSWF += 1;
    loadDemands(); // to start things off
    Then, in frame 300 of the files you can have...
    _root.loadDemands();
    (NOTE: if _root fails, try _level0 )

  • Loading another page into frameset

    Hi,
    I have divided my BSP page into 3 frames. On click of a button I want to load another page into one of the frame. Could you please let me know how to do it.
    Regards,
    Ravi G

    Hi Friend,
    I have designed in a way similar to yours.
    In one frame, I have tree in which all its leaves have a link.
    Clicking a link on one frame will display the corresponding page on the other frame.
    All the pages displaying in the frame were designed separately.
    tree.do refers to the name of the controller in which this content get displayed in the left and default.do refers to the name of the controller whose content get displayed in the right in default.
    Clicking the link on the left specified in the tree will replace the default.do  content with a table named deptable.do.
    In the below code specified  zpgms1 refers to the application name and pagedivider.do refers to the name of the controller  in which the page was divided into frames.
    Tree.do page holds the codings in which tree was designed and the link attribute holds default.do page initially and clicking the link would activate the deptable page which is assigned to a variable.
    In the below code I'm replacing the content of default.do  by concatenating the default.do code with deptable.do
    <htmlb:form action = "/sap/bc/bsp/sap/zpgms1/pagedivider.do"
                          target = "_top"
                          method = "post" >
                  <htmlb:treeNode id          = "subnode2"
                                   link              = "default.do?&tag=deptable"  
                                target          = "right"
                                  image         = "@03@"
                                  text          = "Department MasterTable"/>
                               </htmlb:treeNode>
    In the defaullt.htm page specify the codings below.
    <%
      data: tag     type string,
            control type string.
      tag = request->get_form_field( 'tag' ).
      if tag is not initial.
        concatenate tag '.do'       (deptable name gets concatenated here and assigned to the src )
        into control.
      endif.
    %>
    <%
    if tag is not initial.
    %>
    <htmlb:content design = "design2003" controlRendering="sap" rtlAutoSwitch="true">
      <htmlb:document>
        <htmlb:documentHead>
          <frameset rows="75%" MARGINWIDTH="0" frameborder="0" framespacing="5" MARGINHEIGHT="0">
            <frame style="border-bottom-style:solid;border-color:#A5B1BF;border-width:1px"
             scrolling  = "auto" src="<%=control%>" name="control" target= "_top">
          </frameset> 
    With Regards,
    SHARMILA BRINDHA.M

  • Is there any way to load idml file into InDesign server Programmatically

    Hi,
         I am very new to InDesign Server development. I was able to load tagged text and generate image using InDesingServer Java APIs. Now I have new scenario to generate image. My scenario is to load an idml file into InDesign Server, then I need to generate an Image using this idml file.
         Is there any way to do this using InDesignServer Java APIs.
         Thanks in advance.
    Thanks,
    Ravi Kishore.CH

    I am not aware of a direct way of loading data from excel into
    oracle. I usually export the data into Access and then through
    ODBC save the data into a new table in the DB.
    Hope this helps.
    SUnder
    Raju Gorakhia (guest) wrote:
    : I am working on forms4.5 & i am looking for the method with
    : which i can directly access the xlsspreadsheet and upload into
    : some table into oracle database.
    : If there is no such method that how i will upload that
    : spreadsheet into the database?
    : Is there any way with which i can convert the variable lenght
    : file into fix length format with some specific delimitor so
    that
    : after that i can call sqlloader & upload that file into the
    : table?
    : Thanks Regards
    : Raju
    null

Maybe you are looking for

  • SAPConsole with PP-PI for material tracking

    Gurus, I am working on a project involving use of SAPConsole in the PP-PI area for tracking material/batch from work center to work center.What would be your suggestion on it? Have you developed any transaction for material tracking from work center

  • Need a fix for Muse upload problems to GoDaddy????  I found one!

    GoDaddy now has a new cpanel named "Plesk".  In that panel you will find File Manager.  (I use the Windows version).  In the left panel of File Manager, you will see the root directory and all of its subfolders.  When you click on any of these folder

  • Reports designed in 10g deploy in 9i Application server

    Hi, Is it possible to deploy reports designed in Reports 10.2.0.2 in a 9i Oracle application server? Thanks, Dipin

  • Animating a Symbol on Stage using a JS function

    Lets say i would like to animate SampleSymbol to the right, The following code is placed in CLICK trigger for a button, My understanding is the best way to animate stuff is to write JS functions in Action panels, is it? The following line fails to an

  • I cant reset my ipod

    i tried resting my ipod an i left in over night so it could reset. and i got up this morning an it wont reset. what should i do?