[ADF, JDev12.1.3] 'BTF as train': is it possible to use routers and operations between views/stops?

Hallo,

I need to create a working group while the train with 4 stops.

The page showed in the 2nd stop should be based on a choiche which makes the user in step 1:

Option_1 involves using trainStop_1.jspx as point of view for the 2nd stage

Option_2 implies to use trainStop_2.jspx.

Option_3 means to use trainStop_3.jspx "" "" "


I thought to create 3 times (one for each page jspx) and to use a router to display the correct view, but it seems that the router does not allow a created task force so that the train.


In addition, between the 1st and the 2nd stop, I need to call the createWithParams operation that has 1 parameter whose value are known only after the user makes the choice of the 1st stage.


If you kindly could help solve this issue?


Thank you

Federico

Yes, you can:

http://www.techartifact.com/blogs/2012/11/method-call-between-train-flow-in-ADF-techartifact.html#sthash.FMOsLwb4.DPBS

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • [ADF, JDev12.1.3.] Where I save the managed bean used by a fragment? Main stream unlimited task or btf?

    Hallo,

    I have a fragment for which I created a managed bean extended backingBean.

    My doubt is where I save this bean.

    In the main stream task without terminals? Or in the stubborn workflow in which the frament is used?

    Thank you

    Federico

    In the BTF where the fragment is used!

  • [ADF, JDev12.1.3] Lined back workflow a lot of values used as a dialog box. How to specify and pass the values to the btf appellant?

    Hallo,

    I've created a workflow bounded (containing JSPX pages) that I use as dialog box.

    There a lot of return values...

    I would like to how to go and read all values ret in the workflow limited appeal because the return value of dialogue seems to not allow a value...

    Thank you

    Federico

    You can try with returnListener, then to returnEvent.getReturnParameters ( https://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/event/ReturnEvent.html#getReturnParameters%28%29 )

    Dario

  • [ADF, JDev12.1.3] Plating of workflow that can function as 'serch & open' and 'create '? How to build?

    Hallo,

    in a stubborn workflow, I have a fragment of Details as you can see here...

    And it is the working group...

    Then dynamic region is contained within the page that has a menu.

    Each menu item has action = "#{viewScope.mainDynamicRegion.startBoundedTaskFlowX}". "

    The bean maniDynamicRegion I have a lot of functions, each for each menu item, like this:

    public String startBoundedTaskFlowX() {}

    taskFlowId = "/WEB-INF/btf-X.xml#btf-X";

    Returns a null value.

    }

    End of details

    I would like to have 2 menu items for the btf above: one as 'research and details open' and onoter like 'create new details '.

    When I click on "search...". "a search form should appear, the user selects a folder, then click on 'Open' and finally appears my fragment 'details' showing the desired folder.

    Of course I have now that I'll have to add a new snippet to search for the folder desired to open

    When I click "create...". "my fragment displays the master desired folder should appear. Af: form in the 1st tab must be ready to be filled.

    You kindly could help me to complete the stubborn workflow? What components do I use?

    How can I let know the stubborn workflow what mode should work (research & open or create)?

    Is there something in particular, I have to take care of?

    Thank you very much

    Federico

    Hi Federico

    You can do this by using a BTF or two

    So, using only a BTF you can do the following:

    1. create an inputPram in your BTF who receives a value if the application is called from the search menu or create (set its value to S (Search) and C (Create))

    2 use a router to check if BTF is called from the search menu, then he should go to the search page

    3. and if it is called in Menu create then they should goto createPage drirectly and in the range of the router and createPage createInsert (for the first tab) operating as a method in taskFlow, so it will show a folder created in the first tab

    See -task using flow router in Oracle ADF - YouTube activity

    Thank you

  • [ADF, JDev12.1.3] Session time-out: is it possible to perform a rederict to a URL to be composed on the basis of a model session ARVS?

    Hallo,

    using this tutorial Fortune Minds - Oracle ADF: how to redirect to a custom page each time the session of delay in the application of the ADF? I implemented a simple redirect when the session expires.

    The real URL 'redirect' should be composed according to the value stored in a var to a managed bean sessionScope, but the problem it is that... the afterPhase listener is run after the session has already expired.

    Could you kindly advice me a wokaround or a different approach to achieve this goal?

    Thank you

    Federico

    Cannot use a variable of bean in any scope as the info is gone. You can store the information in a cookie and read the form here.

    Or you use a different method like adventures of the man of Oracle ADF: heroic alternatives to avoid the annoying Popups SessionTimout ADF

    Timo

  • [ADF, JDev12.1.3] (I need some advice on the 1) using panelHeader/box of 2) how achieve a specific layout

    Hallo,

    I create a page in which there are many 'af:form + af:table' groups (each group reads a VO istance).

    I would like to know if, in my case, I use it to group the CIU, panelBoxes or panelHeaders, and which of them would be advised.

    I would like that it is easy to install for all conatiners the same width.

    In addition, I would like to only 2 groups are always visible while others should be no in a space (just a panelGroupLayout?) with a vertical scroll bar.

    You could you kindly help me in achieving this layout?

    Thank you

    Federico

    PanelBox can be reduced by the user, well, can't panelHeader.

    As for scrolling, you can probably surround other sections with a panelGroupLayout and set layout = "scroll".

    Dario

  • [ADF, JDev12.1.3] When you use create/restoreSavepoint... Restore operation is still useful? And other doubts...

    Hallo,

    Dario and Timo advised me (in this thread Re: [ADF, JDev12.1.3] Master w/playback af:form only af:tables detail: how to handle insert and edit through forms?) I make a request using the functions create/restoreSavpoint to this fragment in my application.

    The tables are read-only, and the user can insert and modify records by a form of popup.

    Each table has its own pop-up that I created using a btf executed as diaolog (*).

    Before I open the popup, I create the backup point.

    BindingContext bctx = BindingContext.getCurrent();  
    DCDataControl dcDataControl = bctx.getDefaultDataControl();  
    String sph = (String) dcDataControl.createSavepoint();  
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("AdfmSavePoint", sph); 
    

    When the popup is closed, I restore the backup point if the Cancel button was clicked...

    Object confirmOrCancel = returnEvent.getReturnValue();  
    if (((String) confirmOrCancel).equals("cancel")) {  
      String sph = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AdfmSavePoint");  
      BindingContext bctx = BindingContext.getCurrent();  
      DCDataControl dcDataControl = bctx.getDefaultDataControl();  
      dcDataControl.restoreSavepoint(sph);  
    } 
    

    I have these doubts:

    1. the button "CANCEL ALL" (so far) AM restore operation is still meaningful (is always useful) when you use the check points? Or can I avoid using the restore of the AM operation, creating a backup point before you enter the fragment and restore it if the user clicks on "RESTORE ALL"?
    2. for all tables: before opening the popup insert/change the backup point is implemented pageFlowScope under the same key 'AdfmSavePoint '. Is it OK or would it be better to use a different key for each table (for example 'AdfmSavePointTable1', 'AdfmSavePointTable2',...)?
    3. If the pageFlowScope already contains a checkpoint under the "AdfmSavePoint" key... What does if I give the floor to new .put ("AdfmSavePoint", sph)? Can I be sure that the old value is overwritten?
    4. is this safe with nested savepoint? For example in my case I want to create a backup before the fragment in the image point is displayed (and restore if the user leaves the fragment by clicking "RESTORE ALL"), then within the fragment, as I said above, I would manage other points of record when inserting/editing tables.
    5. I noticed that clicking on the button "RESTORE ALL" when it relates to the AM-restore operation causes this strange thing: when before displaying the fragment I call SetCurrentRowWithKey on the master istance VO... If I click on "ROLLBACK ALL" posted master VO Records changes and 1 minutes of the main of the VO table is displayed. Why the master istance VO is not reimain in the folder I've previously selected by SetCurrentRowWithKey?
    6. With reference to the expression (*) above. The BTF 'dialogue' I created contains only the page jspx with shape and a return to activity. I also tried a) create (and restore) the backup point, b) to call createInsert inside the "dialog box" operation BTF (see images below), but the createInsert on retail VO istance called inside the 'dialogue' BTF seems not to reflect on the table as when I call createInsert by calling btf. I have to make some adjustments in the 'dialogue' of BTF?

    Thank you

    Federico

    Federico,

    (1) Yes, what should happen if a user add or edit vo1 and click ok in the dialog box but decided that ask to work must be restored?

    (2) as long as you don't have that a dialog box is open, it should work.

    (3) the flowrate range of page is a map. You can put the same key more than once. If the key already exists, the value is replaced.

    (4) in fact, I don't know, but the sounds of complicated design. I guess you can record more points, but only in the order of creation. It's as if you try to rebuild the framework. BTF yo it even for you, when worn right. Please go to ADF Architecture Square and read and watch it task flow of related things.

    (5) this behavior is as expected. A restore resets all the iterators so thagetto point at the top of he. http://www.Oracle.com/technetwork/Developer-Tools/ADF/learnmore/OCT2010-OTN-Harvest-183714.pdf 'keep the line after cancellation' shows how to handle this situation.

    (6) I suppose have you refresh the table iterator, once you close the dialog box for the new data. But that's only a guess because it depends on how the btf share control of data and the your involved.

    Timo

  • [ADF, JDev12.1.3] Which is the best way to define the properties of CIU/fragments of pages. Is the approach that I have used a good choice (for a beginner)?

    Hallo,

    in my app, that I have a lot of pages and fragments in which properties (for example rendered text, disabled, Selected,...), lots of user interface components must be set, before/when the page is displayed, depending on the session and pageFlow scope attributes.

    So far I have created for each page/one backingBean brought bean fragment in which I defined an attribute for each property defined (e.g. 2 properties for each UIC: UIC is 10...) "I have 20 attributes to manage in the bean).

    Then, I linked each attribute of the bean to the respective UIC property. You can see in this my thread (unfortunately without answers ) [ADF, JDev12.1.3] backingBean bean: a lot of properties to set for lots of CIU... is better by using the properties of the binding or access code (created by ID) UIC? a small example. I put the attributes the bean Builder (or in a function of 'action' if the APP properties must be set based on the interaction of the user).

    I would like to know:

    • If it is a good approach / recommended / safe or if there is a better way;
    • If the scope backingBean is OK, or if a larger scope would be better.

    As I asked in the thread in the link above, the situation can become difficult to manage if the PPP for which setting, properties are very different.

    So I'd like if there is no alternative that I can use to get the same result with less effort.

    For example, using the class ComponentReference or invokeOnComponentAPI could simplify my life? And their use could I always use backingBean brought beans?

    Thank you

    Federico

    Federico, please understand that this forum has no sla. I have other work to do, who pays my bills. I will do my best to help, but you can not expect the instant replay.

    (1) you must not use the bean to init your beans. You can delay load or init your beans instead.

    (2) as Frank and says you can use a bean to view range and use it to make your calculations as long as you know how their parameters go to the btf

    (3) you should always use the reference of the component if you bind a component to a bean. Make a habit of all scopes.

    As we do not know how you calculate the State and how often it changes while the Working Group is on the page, it is difficult to give further advice.

    Timo

  • [ADF, JDev12.1.3] How to create a new record in a table filling one filed with the IP address of the client?

    Hallo,

    I create a stubborn workflow that begins with a create operation on the table where a new record should be added.

    The recording fields must be filled in by the user, but before committing, I have to fill a field of the reocord with the address IP of the PC of the user.

    Could you kindly advice me which are the possible recommended approaches to achieve this?

    Thank you

    Federico

    Hello

    See this post: Blog of Zeeshan Baig: how to get the IP address of the customer in ADF merge request

    You can use a createWithParams operation and to fill in this field.

    Reference: Andrejus Baranovskis Blog: CreateWithParams operation for Oracle ADF 11g BC

    Kind regards

    Ruben.

  • [ADF, JDev12.1.3] LOV entry: is it possible to change the criteria to view / query to use before the opening of the popup?

    Hallo,

    I would like to know if it is possible to change the criteria for the view or the query used by an LOV entry before the opening of the pop-up window (on the click the icon in the search).

    Thank you

    Federico

    You can change the implicit vc used by the LOV, overwriting the popuplistener and a different VC as

    {} public void onLauchLov (LaunchPopupEvent launchPopupEvent)

    String submittedValue = (String) launchPopupEvent.getSubmittedValue ();

    run the queries only if value is submitted

    If (submittedValue! = null & submittedValue.length () > 0) {}

    RichInputListOfValues lovComp = launchPopupEvent.getComponent ((RichInputListOfValues));

    BindingContext bindingCtx = BindingContext.getCurrent ();

    BindingContainer links = bindingCtx.getCurrentBindingsEntry ();

    JUCtrlListBinding lov = bindings.get ("JobId") (JUCtrlListBinding);

    VCM ViewCriteriaManager = lov.getListIterBinding () .getViewObject () .getViewCriteriaManager ();

    ensure that the criteria of display is disabled

    vcm.removeViewCriteria (ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);

    Create a new view of the criteria of

    ViewCriteria vc = new ViewCriteria (lov.getListIterBinding () .getViewObject ());

    Use the name of the default view criteria

    '__DefaultViewCriteria__ '.

    vc.setName (ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);

    create a display for all queryable attributes criteria

    VCR ViewCriteriaRow = new ViewCriteriaRow (vc);

    for this example, I put the query filter for 60 DepartmentId.

    You can determine when running in reading to a managed bean

    or the link layer

    vcr.setAttribute ("JobId", submittedValue + "%");

    Note also that the line of view criteria consists of all attributes

    who belong to the view list LOV object, which means that you can

    filter on multiple attributes

    vc.addRow (vcr);

    lov.getListIterBinding () .getViewObject () .applyViewCriteria (vc);

    }

    }

    Here's the LOV on the employee on the work of attribte based on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/29-adf-model-driven-llist-of-values-169171.pdf

    Timo

  • Is it possible to use < af:message > to display the validation model adf instead of the default note window

    For any component input, validation that we created at the level of the entities attribute are executed and if any validation fails, the messge is displayed in a window of default note on the component of the.

    Is it possible to use < af:message > to display the validation model adf instead of the window of default note for the corresponding component in a fragemnt jsff page?

    I use JDev 11.1.1.6.0.

    Thank you

    Jean Bayard

    Michelle,

    I have good news. I was able to reproduce, locate and bypass your problem.

    The problem is the following:

    works very well in JSF pages, but it does not work in JSF fragments (which are part of a glued TaskFlow, what is included in a page parent as a ) because ADF when executing a miscalculation of the value of of 'for' - attribute when it is part of a region BTF. For example, suppose that the has id = "it1" (as it is in your JSF fragment above) and this TaskFlow defined in included as a with id = "r1" in a parent page. Then the internal ID of the input text field will be 'r1:0:it1', but at runtime, the framework will set the value of 'for' - attribute to the 'r1:it1' (which is wrong) instead of "r1:0:it1" (which is the correct value).

    You can work around this bug by specifying:

    Instead of

    in your code above. In this way the framework will make up the correct value for the 'for' - attribute at run time and will not work correctly. Don't worry the caveat against a non-existent ID in the JDev source code editor.

    You must do this trick only in fragments JSF and you should not do in JSF pages.

    Dimitar

  • Created a form of the ADF since a human task - how to get other human tasks use the same form ADF?

    We are new on the forms of the ADF and we have a simple workflow with a few different human tasks.

    The task of the initiator, I right click it and automatically generated a form of the ADF.

    The rest of the human tasks have the same payload, and I want just the other human tasks use the same ADF form I've already created. How can I do this?

    Thank you.

    Yes, there is a way to reuse the shape of the ADF and its workflow for several human tasks as long as the payload is the same.  To do this:

    1. Open the file "hwtaskflow.xml" inside your project of the ADF.  It will be difficult to read when you first open it so right mouse click the xml file-> select "reformat".
    2. Copy the 6 lines with the element with the form that you want to reuse-> pick up the 6 lines in the file under the rows that you copied.  The and elements in the text that was copied just need to be changed from the old human task name (for example, ".../MyHumanTaskOriginal") on behalf of the human recycled news of the task (for example, ".../MyHumanTaskReused").  Don't forget to leave the text in the and items of value to their original name.
    3. Redeploy the project.

    Dan

  • Is it possible to use workflows to Train for the old masters in detail for CRUD operations

    Hello

    I use Jdev 11.1.2.3

    I have a use case of the implementation of paintings by master detail (a master and 3 Details) and I want the CRUD operation will end only when all the data are introduced. It is therefore possible to use workflows to train for this use case.

    Thank you

    The pb is solved, I just replace the Taskflow newPersonalDetail by a simple point of view and for the createInsert I am using invokeAction in the pageDef:

    Thank you

  • What is the best strategy to implement a training activity of 5 days using Adobe Creative Cloud demo for 20 people?

    Hello

    What is the best strategy to implement a training activity of 5 days using Adobe Creative Cloud demo for 20 people?

    Will we have 20 unique Adobe ID? The demo can be downloaded and executed on multiple computers with a single Adobe ID? The Installation of the demo is clone-able by imaging / ghosting software? I work for a training logistics company, and we strive to take into account a client who wishes to use this software as part of their training.

    All the tips are greatly appreciated. The goal is to have an installation plan that is more effective.

    Hello

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

Maybe you are looking for

  • Portege M750 and Win8 - metro and touchpad interface does not work

    For those of you who, like myself, tried to install windows 8 in a Toshiba Portege M750 and had problems in tablet in portrait mode I recommend the following driver, it works perfectly: http://CDN.Wacom.com/U/drivers/TabletPC/ISD_DualTouch_710-8.zip

  • print size is expanded - how to reset

    1 HP Photosmart C3146 All in One 2. Windows XP 3. no error message - I used the drive to make it work 4. no I remember - I ususally use this printer to make pictures for children of color. 5. I am trying to print a label in Exchange for Amazon - but

  • Photosmart 6520: printers claim code

    accidentally deleted the printer. must re - install. printer code does not demand. Can't find the page to print

  • When you play a game, it will reduce to a minimum on the desktop.

    jumps to desktop screen Trouble with all games jump on the desk. I reinstalled windows 7 two times and done all the updates and still this problem persists. Brand new computer Windows 7 64 bit processor - intel 2500 k memory - 4 GB nvidia ti 550 gtx

  • WHY am I BEING FORCE to A MICROSOFT ACCOUNT OPEN? I DON'T WANT ONE!

    I JUST WANT TO BE ABLE TO GO TO QUCKLY ONLINE (AND EASY!) WITHOUT NEEDING A MICROSOFT ACCOUNT. WITH THIS NEW WINDOWS 8, I CAN NO LONGER: 1 SAVE AN ARTICLE OR MESSAGE TO 'MY DOCUMENTS', OR ANOTHER, ANY PLACE BESIDES. 2. AN AGENT TECHNIQUE HAS CHANGED