Issue with refresh of task flow in dynamic region

Hi All,
I am using Jdeveloper version 11.1.1.6. In my fusion application I am facing an issue with the task flow refresh in the dynamic region. In my application, I have one task flow in which the side navigation command links are there and on the right side it has a dynamic region which is used to display the respective task flows on click of navigation links. Now two of the links actually call the same task flow in dynamic region but for different purpose. One for creating a record and another one for modifying the record. The default activity of that task flow has a page fragment that has couple of fields. One a drop down and another one a text field for searching the accounts against which the record is to be created or modified. On click of the navigation link, I set the task flow id to be displayed and refresh the dynamic region. Now the issue is with those two links which shows the same task flow. Let's say  I searched for a record by putting some value in input text and then went on to modify flow using the modify navigation link. Then the value that I entered in search input text in the create flow stays and does not go away. I found out the cause for the issue and this is happening because of the immediate = true on the navigation command links. Now I cannot remove that because of the obvious reason that then it will start throwing exceptions for the mandatory fields when I am in middle of any flow. Is there any way to achieve it.
Please help as this is quite urgent. I can also upload the sample application if anyone needs it.
Regards
Ajay

try to put RefreshCondition in the pageDef file for that particular task Flow and try to make that condition to true only when you switch between edit or add. While switching, make sure that the mapped bean properties should also point to respective values i.e. either empty for new or holds some value for edit.
So, when ever the above condition returns true, task flow gets refreshes and it will holds only the current values not the old values.
i hope this will resolve your issue.

Similar Messages

  • Problem reentering task flow in dynamic region

    Hi All,
    I have problem with reentering task flow in dynamic region.
    JDeveloper/ADF 11.1.2.3.0
    Use Case:
    Application contains bussines modules(implemented as bounded task flows) displayed in dynamic region.
    In some modules, default activity is Method Call activity which performs some validations(input parameters, state of records in db, etc.)
    and if some conditions are not satisfied, shows message to the user and exits module (navigates to Task Flow Return activity).
    Problem:
    If user tries to start the same module again, nothing happens(message is not shown).
    If user choose some other module and after that start first module, message is shown(so I suppose this means that task flow was correctly exited first time but dynamic region state was not refreshed).
    Current implementation info:
    Dynamic region has attached regionNavigationListener which resets taskFlowId variable in dynamic region bean if regionNavigationEvent.getNewViewId() == null but this listener is not called if Method Call activity directly navigates to Task Flow Return activity.
    (if user navigates to Task Flow Return activity from button on some page, this works as expected)
    Also, I tried to reset taskFlowId variable from task flow finalizer and to programatically refresh region binding, but this still doesn't work.
    So, am I missing some point about refreshing dynamic region or this is bug in ADF?
    Thanks,
    Dario

    I don't have any popup.
    There is only page which contains dynamic region.
    This dynamic region can be empty or can contain one of business modules(bounded task flows) which are invoked from menu.
    In some cases business module must exit(by invoking task flow return activity) immediately after invocation(because some business validations fail).
    In this case, module will show message to the user.
    Problem is that if user call the same module again, nothing happens(message is not shown) because regionNavigationListener(which only purpose is to reset taskFlowId variable when business module exits) is not triggered when Method Call activity(which is default activity in BTF) navigates to Task Flow Return activity.
    Also, I tried to use Router activity instead Method Call, but problem still exists(regionNavigationListener is not triggered).
    Obviously, regionNavigationListener is called only if navigating from page(or fragment) and this is probably a bug in ADF so I opened SR.
    Edited by: kdario on Oct 27, 2012 5:04 AM

  • Swap task flow in dynamic region from menuitem in menubar

    Hello,
    I have a dynamic region and two task flows. I have action listeners that swap the task flows into the dynamic regions. When these action listeners are tied to buttons, everything works as expected, but if i attach them to menuitems on a menubar, despite the fact the the listener is executed (based on log file debugging), the task flow in the region does not change.
    Can anyone please give me an idea why, and exactly how someone can swap a task flow in a dynamic region from a menuitem.
    I'm using Jdeveloper 11.1.1.0.1
    Thanks
    Edited by: fakintoy on Apr 22, 2009 3:45 PM
    Edited by: fakintoy on Apr 22, 2009 3:46 PM
    Edited by: fakintoy on Apr 22, 2009 4:06 PM

    Hi,
    My guess is that the region is not added to the list of partial targets. Add a partialTrigger on the region pointing on the menu item.
    p.s. Code snippet would really help to get a more precise answer here
    Regards,
    ~ Simon

  • Navigate to initial task flow in dynamic region with JDeveloper 12c

    I have a home page with a dynamic region and three links and I am working with page fragments. The initial bounded task flow is "btfInicio".
    The requirement is that in each bounded task flow I have to implement a close button to return to the initial bounded task flow. This is my code:
    My Bean for my home page.
    public class AdministradorActividades extends DataControlBean {
        private HashMap parametrosGenerales = new HashMap();
        private String taskFlowId = "/WEB-INF/btfInicio.xml#btfInicio";
        private RichRegion regionPrincipal;
        public String gestionarDatosClinicos() {
            taskFlowId = "/WEB-INF/datosClinicos/btfDatosClinicos.xml#btfDatosClinicos";
            refrescarRegion();
            return null;
        public void refrescarRegion(){
            AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
            UIComponent region = findComponentInRoot("rPrin");
            adfContext.addPartialTarget(region);
    My Home page.
    <af:decorativeBox id="db4" theme="medium"
                                                                          inlineStyle="margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;">
                                                            <f:facet name="center">
                                                                <af:region value="#{bindings.regionDinamica.regionModel}"
                                                                           id="rPrin" partialTriggers="::lCli ::lCon ::lRep"/>
                                                            </f:facet>
                                                        </af:decorativeBox>
    My Home page Def:
    <taskFlow id="regionDinamica" xmlns="http://xmlns.oracle.com/adf/controller/binding"
                      taskFlowId="${pageFlowScope.managerRegion.taskFlowId}" activation="deferred"
                      parametersMap="#{pageFlowScope.managerRegion.parametrosGenerales}" Refresh="ifNeeded"/>
    I have tried this inside a fragment from my bounded task flow "btfdatosClinicos" where I have a button , but doesn't work. The home page is not refreshed:
            AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
            AdministradorActividades admActividades = (AdministradorActividades) adfContext.getPageFlowScope().get("managerRegion");
            admActividades.setTaskFlowId("/WEB-INF/btfInicio.xml#btfInicio");
            UIComponent region = findComponentInRoot("rPrin");
            adfContext.addPartialTarget(region);
    If I Implement a control flow case inside my bounded task flow "btfdatosClinicos" to "btfInicio" then I can see the page fragment that correspond to the bounded task flow "btfInicio", but if I clic one of the three links, then the action event is not executed.

    Hi Miguel,
    I think you are complicating the requirement without needing. Why would you put the back button inside your other taskflows? This would be useful just if you are calling those from another bounded taskflows.
    Look what you can do;
    You can create your links for dynamic regions. Cool. But in your decorative box, in the top facet, you can drag a drop the btfinicion and display it as a link (yes, this will be your back button). and that's it. You don't need to mess with partial triggers or refrescar regiones methods.
    Let me know if this doesn't impact your requirement.
    By the way, en que pais trabajas?
    Saludos

  • 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 in passing parameters between flow task in a dynamic region

    Hi,
    I have a problem with the passing of parameters between task flow when it is executed within a dynamic region. To implement this, I followed the Baranovskis Andrejus Blog "JDeveloper 11g and ADF Task Flow Parameters" and everything works perfect as the task flow are not invoked from a dynamic region. But if the same task flow are converted to fragment of pages and executed in a dynamic region, the filter in the task flow that is called does not work, it does not return any records.
    Any idea that I may be missing to make this work well?.
    Thanks in advance.

    Hi Frank.
    My case is the first, ie in a single dynamic region, a task flow call another passing parameters to filter data to display in the second, using a task flow call activitie. As I said in the message above, everything works well as both task flow to not become unbounded task flow with fragmet page.
    Any ideas?
    Thanks

  • Issue with refresh of an input schedule

    Hi Experts,
    We are facing an issue with the refresh of an input schedule.
    We have a custom refresh via macro whereby we first refresh 3 reports in other tabs and then refresh the main schedule.
    The problem is for a particular test id we need to click on refresh twice but for developer id we refresh it only once and see the value.
    Can you help what could be the cause of it.
    In the main report we have all dimensions in either row or column axis and we are also using Dimension override for 3 dimensions.
    Let me know if any other info is required.
    Thanks
    Raman.

    Hello,
    Could you please specify the following information:
    1) What do you mean by "custom refresh"? is this feature developed by the custom development team?
    2) What are the level patch and the version of the product?
    Regards,
    Inès

  • Error when launching bounded task flows in dynamic tabs from UI Shell templ

    Hello,
    could you tell me what is wrong with launching task flows in new tabs?
    I am using the UI Shell template, the task flow is bounded with one simple page (I tried with both fragments jspf and pages jsp)
    The execption is the following:
    java.lang.ClassCastException: javax.faces.component.UIViewRoot cannot be cast to oracle.adf.view.rich.component.fragment.UIXRegion
    Here's the code I am using to launch the bounded task flow:
    private void launchActivity(String title, String taskflowId, // taskflow is something like "/WEB-INF/mytask_flow.xml"
    boolean newTab) {
    try {
    if (newTab) {
    TabContext.getCurrentInstance().addTab(title, taskflowId);
    } else {
    TabContext.getCurrentInstance().addOrSelectTab(title,
    taskflowId);
    } catch (TabContext.TabOverflowException toe) {
    toe.handleDefault();
    Root cause of ServletException.
    java.lang.ClassCastException: javax.faces.component.UIViewRoot cannot be cast to oracle.adf.view.rich.component.fragment.UIXRegion
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:105)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         Truncated. see log file for complete stacktrace

    Hi Pramod,
    Have you tried setting the Transaction attributes of your task-flow? Open up your task flow definition then go to Overview Tab. Try changing the appropriate attributes like setting the transaction as "Always Begin New Transaction" and/or unchecking the "Share data controls with calling task- flow". Try to mix settings and find the one that suit your needs.
    Regards,
    Pino

  • Encore issues with finding sw to decode media & Dynamically Link to Pr timelines?

    Two issues:  (1) When I try to bring in a Premier Pro timeline into Encore CS6, I receive this message: " The software that's used to decode the media is not available on this system.  Installing the correct decoders for the files you are working with may help to correct the problems."  However, I AM on the same system that created the timelines in Premier Pro and trying to import them into Encore.
    Issue (2) - Within Encore I select Adobe Dynamic Link to link to an existing timeline sequence created in Premier Pro - but the options are grayed out. 
    Any help would be greatly appreciated.  

    The common cause of this issue is still image files where the pixel size is too large.
    http://helpx.adobe.com/encore/kb/error-software-used-decode-media.html
    And in this example where it was not an image issue, the user fixed the problem by re-encoding the problem file.
    http://forums.adobe.com/message/6004428#6004428
    What versions of EN and PR? DL only works between the same versions: PR CS6 and EN CS6, not PR CC and EN CS6.

  • How to create an init method with executeEmptyRowSet() in task flow

    hi i try this <method-call id="Empty">
    <method>executeEmptyRowSet()</method>
    </method-call> in my task flow but am geting error
    am in jdeveloper 11.1.1.6.0

    1) In your Application module, create a public method in service class.
    2) In that method you do your executeEmptyRowSet() on the view objects you want to.
    3) Expose the method (AM > Services > Client interface).
    4) Drag the method from your DataControl onto you taskflow.
    5) Right click that method > Mark Activity > Default

  • How to get return values from task flow in af:region ?

    Hi!
    I'm working with a taskFlow that is rendered inside a popup using the "popup inside a region pattern" (http://www.oracle.com/technology/products/adf/patterns/popupregionpattern.pdf), but now this taskFlow has an input parameter and a return value definition. So the question is how to get a value returned by this taskFlow thas is called inside a region?
    Any suggestion?
    Thanks in advance!

    Hi,
    write the value to a shared memory scope like session and read it in the regionNavigation listener. If you follow the paper you refer to then the listener determines of the viewId is null, this a return happens. It wuld then look in the memory scope for the return value.
    Another option would be to use an object that you pass as an argument to the task flow you open in the popup. Then you change the object you passed in, which then makes the return information available in teh calling flow. The object you pass in would have to be in a shared scope too
    Frank

  • Are there any issues with starting a task sequence one day and finishing it up days later?

    Hello, 
    We have a few techs who, for whatever reason, will sometimes start a deployment task sequence (from boot media, USB) and then finish the task sequence the next day or days later.  For example, I had a recent one where the smsts log file had all of the
    PXE steps taking place on Friday, but then everything after the first reboot took place today, on Monday.
    The log was full of messages like below, and no software was installed:
    reply has no message header marker TSManager 3/3/2014 7:46:36 AM 1452 (0x05AC)
    Failed to send status message (80004005) TSManager 3/3/2014 7:46:36 AM 1452 (0x05AC)
    Error calling message lib Send(). Code 0x80004005 TSManager 3/3/2014 7:46:36 AM 1452 (0x05AC)
    Non fatal error 0x80004005 in sending task sequence execution status message to MP TSManager 3/3/2014 7:46:36 AM 1452 (0x05AC)
    So obviously something is wrong, but I'd like to know a little detail as to why. Is there a timing issue when communicating with the MP?

    I need the complete smsts.log. Only part of them does not help.
    Anyway, the TS can run up to 24 hours if I have not remembered wrong. So, if you have too many steps in a TS and need to spend too much time to finish, this will cause the TS failed.
    Juke Chou
    TechNet Community Support

  • I need help re-installing my OS on a new hard drive. Having MAJOR issues with this simple task.

    I have a MacBook Pro 15" (mid 2009) I recently needed to get a new hard drive for it, the old one stopped working. It came with OS X Snow Leopard already installed from Apple, and it also came with the install disks. I have booted up using the install disks and put OS X Snow Leopard back on the computer.
    I tried booting with a USB install disk of OS X Lion (10.7) but had no luck on multiple occasions. It would only get through the initial step of the install and then say it couldn't download additional components needed for OS X 
    So finally, I decided to try a full erase and reformat of my brand new hard drive (less than a week old) and stated with the basic software that came with the computer. Installing that worked fine, until I tried to do a software update through the built in program. My computer refused to download 10.6.8 from the apple servers, so I had to find it on a 3rd party website. Once I found it and downloaded it, I finally got it installed. There were 12 more updates after I did 10.6.8 and none of them worked when I tried downloading and installing as a group. I had to do each one individually, the last one being a security update.
    Up to this point, the Mac App Store didn't work (even after the 10.6.8 update), I couldn't download any of my previous purchases. I needed to download lion, to see if having it on the Mac hard drive itself would help with the install, but I couldn't do that until after the security update.
    Other than that, the Mac worked normally except for during each start up, the apple logo would flash along with the forbidden sign and the folder with a question mark on it. It flashed for a few seconds randomly, then would boot up normally or say that my computer would need to be restarted.i figured this issue would be fixed after I successfully installed lion.
    FINALLY I got the App Store to download lion, and began the install process. Halfway through the install, it failed and when I tried to restart the computer, it continuously flashes through those three symbols at startup. I can't get it to do anything else. I'm so ****** off I'm ready to just sell it for parts.
    My questions are:
          1. Can I install OS X Lion OR OS X Mountain Lion clean from the start after a full format of the hard drive?
          2. How do I go about installing clean and get my computer to stop flashing those symbols during start up?
    *I have performed the Apple Hardware extended test and all systems are reporting normal function*

    Okay, so, fast forward from July to now -
    - I've visited my closest Apple store's genius bar twice now. (Over an hour and a half away.)
    - My computer spent at least 8 hours behind their closed doors in the workshop
    - Several complete erases of the harddrive have taken place
    - Most of the Apple geniuses I dealt with were nice and very knowledgeable, but they were and still aren't 100% sure exactly what is wrong with my computer.
    The good news is:
    - They were able to at least get it running again, with a clean install from their servers of OS X Lion 10.7.5
    - They believe that my problems stem from either 1 of 2 things:
            - Faulty Hard Drive (even though it is brand new)
             - The wrong build of software being installed.
    Now, while the wrong build does seem like it could be the problem, it doesn't make sense in the aspect that all of the initial problems began when the first hard drive failed. The same problems continued when I changed out the failed hard drive with the brand spanking new one, and only slightly improved when I was able to successfully install the OS that came with the original disks for my computer. I'm not convinced this thing is back to normal, but hopefully I can make it last through getting a shiny new retina Macbook Pro in the coming future. Thank you so much to everyone who read and replied to this post!
    - Andrew =)

  • Issue with Refresh link avaiable in standard UWL iView

    Hi All,
    We have added the custom column "Comment" in the Tasks tab of UWL iView.In the Tasks tab we can view some rows in the table.When we click on one row it is opening the ABAP ADOBe forms.In this Form when we change the text for the field Comment and click on save button in adobe form then we can see the new text in SWI1 tcode for the work item id. But in portal the new text is not appearing in the custom comment column.If we click on Refresh link (this link is the standard link available in UWL iview) also the new text is not appearing.
    After clearing UWL Cashe from System Admin role after that we can able to see the new text in the comment column.
    If in Adobe form after changing the text we click on Check and Send button then on portal UWL automatically new text is appearing in commnet column.In this case no UWL cacshe release is required.
    Please find the attched document
    Can you please provide me the inputs why refersh link is not working to show the updated /modifiedd text in the comment column?
    Thanks & Regards,
    Susmita

    Hi Rajesh ,
    you can implement using java script also
    check below thread
    Implementing iView auto-refresh in JSP DynPages
    Koti Reddy

  • Issue with Java Embedding task in BPEL

    Newbe: i have java embedded task in my bpel process which returns one variable(Written java code in editor as it is only 2 lines of code). when i tried to deploy this i am getting the following compiler error in Jdeveloper
    Error(36,39): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "BPELSampleProcess" of composite "default/BpelSampleProj!1.4"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    please suggest me what are the jars needed and where to be placed.

    Try this
    Random randomGenerator = new Random();
    int randomInt = randomGenerator.nextInt(100);
    setVariableData("outputVariable","payload","/client:BPEL_Process/client:result",randomInt);
    Delete this line public class ChSam
    Edited by: KrishnaChaitanya on Nov 25, 2010 9:30 PM

Maybe you are looking for