URGENT: issue of Microsoft popup task flow

All,
I have a requirement to illustrate a dialog popup logic in the workflow of ADF. So, let me give you an example.

You have a page with a command button to this topic. You click the command button to run a java method. This java method then returns a value, and according to this value, I want to show a popup in the Visual context of the original page (which means that the background of the original page is grayed out and you see the bunk popup). From there on, I want the user to select an option and then allow a control flow from the popup other interventions accordingly.

Here's what I tried.

1. I tried a workflow run as a dialog box, but the return only goes back to the command button, never of itself. IMO, I would love to see that to be changed to allow the flow of control of a popup to continue.
2. I tried the dialog box: frame, but that only works when you go directly to your popup and not do anything in betweem, as a method.
3. I have tasks flow that is not run as a dialog box, even if I tell the button to run as an external window. It simply replaces the original page.

Is there a way to do this?


Thanks in advance!

Hello

This is possible even with the solution I documented here: http://oracle.com/technology/products/jdev/tips/fnimphius/popupinuishell/declarative_popup_in_uishell.html

You can use a workflow activity call to launch a popup. The return of the context menu then determines the second stop of the navigation. Beside that, navihation always is from one view to the other and does not stop in a method call activity. For this reason you cannot use a method call activity to directly open the popup

Frank

Tags: Java

Similar Questions

  • The input parameter to pass between 2 maybe bounded task flows a whole list of table or table?

    Hello experts, Im a beginner to ADF dev, currently using Jdev / ADF 12 c.

    I need to move from a table or list of tables of the values of A bounded task flows to delimited the workflow B. How to do in this case, the use of an input parameter?

    I mentioned the following links which have had in the string values as an input parameter, and replaced related fields accordingly with the data type of table list, but it did not work:

    http://docs.Oracle.com/CD/E21764_01/Web.1111/b31974/taskflows_parameters.htm#ADFFD1689

    https://technology.AMIS.nl/2014/01/21/taskflow-InputParameters-explained/

    Oracle JDeveloper 12 c (12.1.2) tutorials - working with stubborn workflows, regions and routers

    The requirement of the business is such that I need 2 different workflow, where the workflow B must be in a popup with train component.

    I thought of using just a stream unique task bounded with pop-up windows on the pop-up windows... which is less elegant... y at - it smoother workaround?


    Thank you very much.

    Even though I know this isn't answering your question, let me stress the design element: in the ADF, view objects are intended to replace beans support / managed in ADF in detention is. It is one of the worst confusion with ADF + ADF BC, where people still use accompanying beans on the scope of the session/view/task flow to maintain user state. Instead of this, you must use display objects, the objects in view transition in case the data does not come directly form DB.

    To finally answer your question: you can pass any type of objects for workflow settings, just make your parameter of type java.lang.Object. Then you can convert it in turn, in the second task flow.

  • Method call as default activity in ADF task flows

    Hello

    I have a workflow to execute a method on the page loading to set cookie values.
    I added a control method of data as the default activity in the workflow. But it is not called immediately, it is executed only if it is called from another view.

    Any help will be appreciated.

    WebCenter Portal App 11.1.1.6


    Code workflow task:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < adfc-config xmlns = "http://xmlns.oracle.com/adf/controller" version = "1.2".
    ID = "___5" >
    < task-flow-definition = id "cookie-task-flow" >
    < default activity id = "__17" > addEmpNoCookie < / default activity >
    < transaction id = "__38" >
    < new-transaction / >
    < / transaction >
    < data-control-scope id = "__39" >
    < shared / >
    < / data-control-scope >
    < managed-bean id = "__1" >
    < id managed-bean-name = "__4" > cookieBean < / managed-bean-name >
    < managed-bean-class id = "__3" > tr.com.signum.roketsan.utils.CookieBean < / managed-bean-class >
    < managed-bean-scope id = "__2" > pageFlow < / managed-bean-scope >
    < / managed-bean >
    <-l' call the method id = "addEmpNoCookie" >
    < method id '__8' = > #{bindings.addEmpNoCookie.execute} < / method >
    < result id = "__16" >
    < id fixed-result = "__7" > addEmpNoCookie < / fixed-results >
    < / results >
    < / method >
    < use-page-fragments / >
    < / task-flow-definition >
    < / adfc-config >

    Def of the activity of the Middle page of

    <? XML version = "1.0" encoding = "UTF-8"? >
    < pageDefinition xmlns = "http://xmlns.oracle.com/adfm/uimodel."
    version = "11.1.1.61.92".
    ID = "cookie_task_flow_cookie_task_flow_addEmpNoCookiePageDef".
    Package = "TR.com.Signum.roketsan.pageDefs" SkipValidation = "true" > "
    < Settings / >
    < executables / >
    < links >
    < methodAction id = "addEmpNoCookie" RequiresUpdateModel = "true".
    Action = 'invokeMethod' MethodName = "addEmpNoCookie."
    IsViewObjectMethod = 'false' DataControl = "CookieBean."
    InstanceName = "CookieBean.dataProvider" > "
    < NamedData NDName = 'cookieValue.
    NDValue = "#{webCenterProfile [securityContext.userName] .employeeNumber} '"
    NDType = "java.lang.String" NDOption = "3" / > "
    < / methodAction >
    < / links >
    < / pageDefinition >

    Hello

    It contains only the activity of the method, and if so, why is he launched with the help of a new transaction? Note that navigation always is an ID of the view and the workflow will not run if there is no view to navigate to. So either the calling flow calls this workflow and workflow returns immediately after execution of the activity of default method then it refers to a display of flow tasks calling or you add a view. Note that cookies are set on the response of a call and it is not issued before coming to a view. For this reason, using a method call activity could be a bad approach to try this so a phase listener is better suited

    Frank

  • Impossible to make the task flows 'content '.

    Using JDeveloper 12c.2.1

    I have a casting of task defined (using fragments) which have a point of view, which is a page jsff with a button and an input field.

    I have a jsf page based on a template and I insert the workflow defined in one of the facets, but the display of limited work flow content is not displayed.

    I tried to insert the workflow bounded in a single page without a template as well.

    As far as I know, makes it is quite true that I just put the items on the JSFF page.

    Simple page

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="test_filter_no_template.jsf" id="d1">
            <af:form id="f1">
                <af:panelGroupLayout id="pgl1" layout="vertical">
                    <af:region value="#{bindings.filtertaskflow1.regionModel}" id="r1"/>
                </af:panelGroupLayout>
            </af:form>
        </af:document>
    </f:view>
    

    Where filter task flow is the flow of work.

    Filter task flow display

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:beanFilterStatCodeView-->
        <af:panelGroupLayout id="pgl1" binding="#{backingBeanScope.beanFilterStatCodeView.pgl1}">
            <af:inputText label="Input" id="it1" binding="#{backingBeanScope.beanFilterStatCodeView.it1}"/>
            <af:button text="Filter" id="b1" binding="#{backingBeanScope.beanFilterStatCodeView.b1}"
                       action="#{backingBeanScope.beanFilterStatCodeView.b1_action}"/>
        </af:panelGroupLayout>
    </ui:composition>
    

    Tour out which had not activated the fragments of page under security configuration.

    DOH.

  • Query about the ADF task flows call using URL

    ADF Version: 12.1.3 and 11.1.7

    We have a scenario where we want to implement a Home Application and product Application deployed as separate web applications.

    Now the House must have the ability to call the Application of product using call URL delimited task flow.

    My query is whether the return of a stubborn workflow will work in this scenario, because it works with the delimited call task normal flow.

    What are the other alternatives if it won't?

    Also anyone provides me with examples of applications for the above scenario.

    Kind regards

    Nikhil

    Here's a nice article on this topic

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/43-remote-task-flow-169185.PDF

  • get the property of task flow display name of java

    Version 12.1.3 jdeveloper

    I use this method to get the task flow display name property

    public String getTaskFlowDisplayName() {
            MetadataService metadataService = MetadataService.getInstance();
          //Get the task flow binding defined in our pageDef file
            DCTaskFlowBinding taskFlowBinding = getTaskFlowBinding();
          //Get Id of the currently running task flow
            if (taskFlowBinding != null) {
                TaskFlowId taskFlowId = taskFlowBinding.getViewPort().getTaskFlowContext().getTaskFlowId();
              //Get the definition of the currently running task flow by its Id and return its display name
                if (taskFlowId != null) {
                    logger.info("task FLow: display name:" + metadataService.getTaskFlowDefinition(taskFlowId).getDisplayName());
                    return metadataService.getTaskFlowDefinition(taskFlowId).getDisplayName();
                } else {
                    return "?? task flow name ??";
                }
            } else
                return "?? task flow name ??";
        }
    

    This method worked in 12.1.2 version

    but now, the getViewPort() method is not available

    Any other solution pls? ()

    Thank you

    Have you tried: taskFlowBinding.getTaskFlowId ()?

    Note that DCTaskFlowBinding is an inner class so you should probably not use it.

    If there is no better way, you can try using TaskFlow initializer is to remind current taskFlowId (you can retrieve the current workflow task id with: ControllerContext.getInstance () .getCurrentViewPort () .getTaskFlowContext () .getTaskFlowId ())

    and TaskFlow finalizer to clean the memory value.

    Dario

  • XmlMenuModel cannot be used with bounded task flows

    My project need to use the navigation menu, and use with XmlMenuModel. But I know that use only with the unlimited workflow (can't go with the flow of tasks defined ADF)

    Can anyone explain to me why this problem exists?

    Thank you very much for the support.

    Hello

    This is because the model XML Menu navigates pages and not the task flow. The menu Menu XML, to give you a historical reason why, as developed by the open source Apache MyFaces Trinidad and here there is no bounded workflows. The implementation of the adfc - config.xml xml menu under uses the API provided by Trinidad. In stubborn workflows, view view navigation is done by train stops configured in the stubborn workflow. So you can say that the menu XML template only works for the top-level pages and top-level pages should be defined in the unlimited workflow.

    So for your use case work, you set pages in the unlimited workflow, and then add the workflow bounded as a region (if the region is the only child of a page, then the impression is that it is in fact a page without terminals and not a workflow). In this way, you can implement your design goal.

    Hope this helps

    Frank

  • consultation «task-flow-back»

    As a home return of task flow.

    For example I have a main stream I call another work stream, which leads to another, as I can return from the last call to the first workflow task that calls unleashed?

    I would be very happy.

    Hello

    task flow calls are stacked and for the conduct of the task n + 3 in the flow of tasks n + 1, n + 2 and from here you return to n + 1

    Frank

  • Input parameters of the task flow and "back" button

    Hello experts. I have two stubborn workflow created by page; say they are TF1 and TF2. Each workflow task has their own controlled beans. These controlled beans are kept in the Page flow scope. The two task-flow has their own of initializers.

    By an action on TF1, I redirect to the TF2. During this redirection, I pass some parameters. After redirection when it enters the TF2, I extract the parameters programmatically. Now I'm back on TF1 and TF2 of TF1, I'm clicking on the back button of the browser. Note that I put anything if the re-entry allowed or not in TF2. After clicking the browser back button access me for the new TF2. TF2 called if I generate any action of the initializer. BUT now I can not get the input parameter values more. All values in the set of input null parameter.

    My question is:

    • Why have defined null values?
    • How can I make persistent values?

    Any pointer would be very useful.

    I use JDeveloper 11.1.1.6.0, WebLogic 10.3.5.

    Thanks in advance.

    Tapas

    There is a way. Click on "back" button is not invoke the lifecycle JSF and browser displays the previous pages in its cache. If somehow, I can say browser not to cache the page, then every time a click the back or next button, the browser would GET the page headed from the server, which would eventually be my.

    So I added a filter to achieve this:

    public class NoCacheFilter implements Filter {
        @SuppressWarnings("unused")
      private FilterConfig _filterConfig = null;
    
        public void init(FilterConfig filterConfig) throws ServletException {
            _filterConfig = filterConfig;
        }
    
        public void destroy() {
            _filterConfig = null;
        }
    
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
            HttpServletResponse servletResponse = (HttpServletResponse) response;
            servletResponse.setHeader("Cache-Control","no-cache, no-store, must-revalidate, private, max-stale=0, post-check=0, pre-check=0");
            servletResponse.setHeader("Pragma", "no-cache");
            servletResponse.setHeader("Expires", "Sun, 16 Dec 1984 07:48:00 GMT");
            chain.doFilter(request, response);
        }
    }
    

    Note that I have to specify browser to cache resources, I do R & D to change this filter.

    It works. Hope, now I can spend my weekend peacefully :-).

    Ref:

    Tapas

  • Deployed Captcha Code on webcenter spaces using custom task flow

    Dear,

    I use Captcha Code, the new workflow and the fragment to be deployed on webcenter spaces, the code works correctly when am run of JDeveloper 11.1.1.4.0, but when I deploy him on spaces webcenter 11.1.1.5 version and call this webcenter flow task space image appears not (actually its code Servlet).

    as mentioned on Oracle PDF (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html)-> How to use Captcha with ADF Faces and Oracle ADF

    Add Servlet in web.xml, then do Managed Bean Code (add in faces-config. (XML), then create a new task workflow and call the method that run the managed Bean of ADF task flow Page.

    1 - Servlet in web.xml:
    < servlet >
    < name servlet - > CaptchaServlet < / servlet-name >
    > the servlet class < nl.captcha.servlet.SimpleCaptchaServlet < / servlet-class >
    < init-param >
    width of < param-name > < / param-name >
    < param-value > 250 < / param-value >
    < / init-param >
    < init-param >
    height of < param-name > < / param-name >
    < param-value > 75 < / param-value >
    < / init-param >
    < / servlet >
    < servlet-mapping >
    < name servlet - > CaptchaServlet < / servlet-name >
    captchaservlet.jpg < url-pattern > < / url-pattern >
    < / servlet-mapping >

    2 - managed Bean:
    public void callMethod() {}

    FacesContext fctx = FacesContext.getCurrentInstance ();
    ExternalContext ectx = fctx.getExternalContext ();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest ();
    CAPTCHA captcha (Captcha) = ectx.getSessionMap () .get (Captcha.NAME);
    try {}
    request.setCharacterEncoding("UTF-8");
    } catch (UnsupportedEncodingException e) {}
    bad luck - but ignore
    System.out.println ("unsupported UTF!");
    }
    String response = (String) ectx.getRequestMap () .get ("bestGuess");
    If (response! = null & & captcha.isCorrect (answer)) {}
    sendMail();
    SendMail_ToExternal();

    } else {}
    fctx.addMessage (null,
    new FacesMessage (FacesMessage.SEVERITY_ERROR, "Please enter the number shown in the picture",
    null));
    }

    }


    I'm download the JAR of Captcha of Oracle: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html, Captcha download a use as task flow to deploy on webcenter spaces, but as I told you when I run this code of JDeveloper works correctly, but the problem when I deploy him on webcenter spaces code Servlet with image does not appear. I want to know if the servlet working with deployed code task flow on the webcenter spaces, or not?

    Please advise...

    Thank you

    Did you add the configuration of servlet to WebCenter spaces? See the documentation for steps to do this: http://docs.oracle.com/cd/E25054_01/webcenter.1111/e12405/wcadm_app_config_files.htm#CHDJCCBI

  • How not to use no connection DB App with task flows created as 'New deal'

    Hello

    My request is entirely dependent on the Custom java datasource implementation and don't requires no connection DB at all. I made the necessary implementation (http://andrejusb.blogspot.in/2012/03/use-case-for-adf-bc-with-no-database.html) by creating CustomDatabaseConnectionStrategy that says
        @Override
        public ApplicationModule createApplicationModule(Hashtable env) {
          env.put(Configuration.DB_REQUIRES_CONNECTION,Boolean.FALSE);
          env.put(PropertyMetadata.ENV_DO_FAILOVER.pName, PropertyConstants.FALSE);
          return super.createApplicationModule(env);
        }
    My application works great until I have keep my transaction flow of task as "Operation No. Controller. Yes, I use the shell dynamic tab as UI model. But when I keep it as "Begin a new Transaction" and not to share control of data, the screen is not for all. I get an exception (I assume that when I try to open the workflow, he tries to get the connection. Since there is no connection available, it gives me this error. What then?)

    One of my requirement of customer is to open the screen even under multiple tabs as a screen of costs (i.e. with different transactions. "We do a transaction via Tuxedo transaction server). If I load a screen under the first tab with some data, added a few record, deleted records... and if I load the same screen on another tab, it should not refelect the same given what I have under the first tab.


    Requirement:

    I have no DB connection in my application. But I should be able to define the task flow to open with the new instance of the Application module whenever it is open.

    Your help on this would be appreciated.

    Rambeau

    If I understand correctly you requirements, you don't need transactions taskflow-ADF, but you just need to charge DataControls. If this is the case, you don't have to set the behavior of the taskflow transaction to "Always start with new Transaction" (e.g. keep it to 'No controller Transaction'), but the value of the "isolated" DataControl framework (e.g. uncheck the box "Share the data with the calling workflow controls" in the property inspector of the taskflow). In this case each instance taskflow starts in a different frame of DataControl (e.g. it will instantiate its own set of ApplicationModule instances).

    Dimitar

  • Info by exception display JDev 11.1.2.1 ADF task flows activity

    Article 22.4 of the 11.1.2.1 Fusion developer's guide tells me how to designate an activity as the exception handler for a workflow. I followed the directions; created a page error, placed in the workflow, marked as the exception handler. I force an exception and indeed the page.

    What I don't know is how to extract the data of the exception, so I can filter, format and display it. How is the exception page receives the exception data?

    This level of exception is adequate handling? All my treatment in the workflow. If each of them has an exception handler is something more, what I should do to catch exceptions alll?

    Thank you, Steve

    You can use

    #{controllerContext.currentRootViewPort.exceptionData.message}
    

    also chk
    ADF task flows of exception handling

  • Train ADF task flows of value name complete bundel comonent

    Hello

    I've got som problem with train of delimited adf task flows.

    I'm building a workflow bounded as the fragment and the train and I add the component display name for each view, but how do I give the value of the display name of a bundel of view controller.

    cordially mohammad.j.yaseen

    Hello

    It works as John says. Here is a write are:

    http://blogs.Oracle.com/jdevotnharvest/entry/reading_train_stop_display_names

    Frank

  • Unbounded task flow works is not in standalone Weblogic Server

    Hello

    JDeveloper Version: 11.1.1.3
    WebLogic Version: 10.3

    I built an application using Oracle ADF, and the application is deployed on weblogic 10.3. In this application, I use unbounded Oracle ADF task flows to navigate between pages.

    The application works fine when it is deployed on the integrated Weblogic Server that is part of Jdeveloper (11.1.1.3 version). However, when I deploy the same application (ear file) on a stand-alone weblogic server, the page navigation not working - no error/exception is provided in weblogic logs. When I click the button to navigate to the next page - the same page reloads.

    My WLS independent field produced JRF Oracle installed on it.

    Please note that I can always access individual pages (.jspx) providing individual URL.

    Any help in how to solve this - or of the indications regarding how I would go about debugging of this.

    Thank you
    Ash

    Ash,

    Looks like you're running the JSPX rather than the workflow. Try to remove the ".jspx' to the end of your URL.

    Compare the URL that works in JDev with the URL that does not work, and it becomes apparent.

    If things work out after clicking on the item a second time in a row, it is certainly your question.

    John

  • Is it possible to access the task flow parameter in the EOImpl.create () method?

    Hello

    Is it possible to access the task flow parameter in the EOImpl.create () method? In the affirmative, please let me know how to access.
    FYI... I have a CreateInsert < xxx > activity in the workflow, which, I believe, called the EOImpl.create () method internally. During the creation of the entity, I want to assign a default value based on the parameter of workflow.

    Thank you

    A way to pass parameters from workflow for the model is during the initialization of the workflow. To do this, you can create a prepare() method in the Module of your Application and call it from the workflow. By defining this method by default in your workflow, it will be called every time that the workflow starts. You can pass any task rate desired as the arguments of a function prepare() method. In the prepare() method, save the workflow of the values for parameters in the transient variables EO or VO. These variables will then be accessible in the create() methods.

Maybe you are looking for

  • FF22: no box orange, so the options or add-ons. No bar appears. Help?

    Today I've updated 16.2 FF to the latest version. But now FF misses the orange box in the left corner above. Or he showed all the bars. With no navigation bar, that I can't even type a url. Without the orange box and/or the bars, I can't reach my Add

  • IPhone 5 s messages are silent

    IPhone 5 s - no sound when I receive messages, this function worked several days ago. Ringer is at the top, do not disturb is not lit

  • Re: Tecra M10 - BSOD with memory stick pro duo

    Hello As a first step, I would like to apologize for my English. I'm not so good at this. I have a M10 - 11U (PTMB3E) and Windows XP. When I insert a Memory Stick Pro Duo card to the card reader the system just fall into BSOD and reboot my laptop. It

  • How can I connect via Wi - fi on my canon mg5300 series printer?

    I have no problem printing via a usb connection. When I try to connect wirelessly it says the printer is offline. I've set up the connection Wireless to the printer already.  A the answer thanks!

  • Is background clones locked?

    I'm playing with parallel reentrant loops running in order to solve a larger problem. I ran Popup.vi and Popupmain.vi and I know how they work. The difference with mine is that I will have a different value to the front of each clone. I received this