Skip Property in Train Stop???

Hi, I saw some tutorial regarding Train including this >>> http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf
but while conducting a research and development using the document, I can't find the Skip property of the train stop indicated in Page 8.
Does anyone familiar with this? I have a use case wherein the train stop should be disabled and we have to navigate programaticalyl.
Thanks..

open your task flow in jdeveloper main menu.
then click on the view (train stpe) you want to change its skip property.
you will see the skip property in the property inspector.

Similar Messages

  • How to set value for  skip condition in train stop property of train compnt

    Hi,
    Iam using JDev 11.1.1.5 version, i have created a TaskFlow where having train components pointing to different jsff pages, moving from one jsff page to another jsff page.
    I want to validate the input fileds in one of the jsff page, then only have to move to next jsff page. For this, how can i set skip property of train component....to disable to go for next train component...?
    Note: I want to set boolean value(returns 'True', if all input fileds are filled, otherwise 'False') into skip property of train component.
    Regards.

    You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
    Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
    For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
    Also, you can try navigating to different train stops programmatically.
    Check: 082.      How-to programmatically navigate ADF train models
    in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Using region attributes to populate train skip property

    Hi Steven,
    It's been a while since I've looked at trains in 11g and now that I picked it up again I'm working on using the "skip" property of the train stop.
    Back in this thread Adding EL expression to train skip property you suggested modifying the groupAdfcConfig template like :
    #if ($JHS.current.group.wizardBaseGroup)
    <train-stop>
    #if ($page.itemRegion)
    <display-name>#REGION_TITLE($page.itemRegion)</display-name>
    #elseif ($page.regionContainer)
    <display-name>#REGION_TITLE($page.regionContainer)</display-name>
    #else
    <display-name>#GROUP_TITLE($page.group)</display-name>
    #end
    *<skip>${page.group.property1}</skip>*
    </train-stop>
    #end
    The problem with this is that the skip values need to be provided at the region level (ie for each stop) rather than just once for the top level group. I've played around with the groupAdfcConfig template and now have it looking like
    #if ($JHS.current.group.wizardBaseGroup)
    <train-stop id="#NEW_ID("__")">
    #if ($page.itemRegion)
    <display-name id="#NEW_ID("__")">#REGION_TITLE($page.itemRegion)</display-name>
    *<skip>${page.itemRegion.rendered}</skip>*
    #elseif ($page.regionContainer)
    <display-name id="#NEW_ID("__")">#REGION_TITLE($page.regionContainer)</display-name>
    *<skip>${page.regionContainer.rendered}</skip>*
    #else
    <display-name id="#NEW_ID("__")">#GROUP_TITLE($page.group)</display-name>
    #end
    </train-stop>
    #end
    .. using the rendered property of the train region to populate the skip property. The problem I am currently facing is when I'm using a group region because there is no ${page.groupRegion} method. You simply default to ${page.group} for the group region to get the display name but the trouble with that is there is no method in the PGGroup class to retrieve the rendered attribute. For now, I've had to wrap the group region inside a region container just to be able to get the rendered attribute property back.
    Is there a way I can access the rendered property of the group Region ?
    Cheers,
    Brent

    Brent,
    We would need to change the generator code for that. Can't you put the group region inside a region container an set the rendered property on the region container instead?
    Steven Davelaar,
    JHeadstart Team.

  • Adding EL expression to train skip property

    Is there a way I can get JHeadstart to populate the skip property of a train stop ? If not, what is the best way to preserve an EL expression entered manually ?
    Cheers,
    Brent

    Brent,
    No, we don;t have decalartive support for thos yet. You can customize groupAdfcConfig.vm to implement this.
    Using the custom group properties in the application definition, you could do this in a generic way:
    #if ($JHS.current.group.wizardBaseGroup)
    <train-stop>
    #if ($page.itemRegion)
    <display-name>#REGION_TITLE($page.itemRegion)</display-name>
    #elseif ($page.regionContainer)
    <display-name>#REGION_TITLE($page.regionContainer)</display-name>
    #else
    <display-name>#GROUP_TITLE($page.group)</display-name>
    #end
    *<skip>${page.group.property1}</skip>*
    </train-stop>
    #end
    The you can specify the boolean skip expression in the first custom property of the group.
    Steven Davelaar,
    JHeadstart Team.

  • Train-stop display-name property bug?

    Hi all,
    I'm using JDeveloper 11.1.1.4.
    When using train taskflow with fragments I noticed that when I enter Display name property on view (train stop) it doesn't appear as train stop title on page at all.
    When I enter Display name in property inspector it generates code like this:
    <view id="configuration">
        <display-name id="__3">#{bundle.configuration}</display-name>
        <page>/views/configuration.jsff</page>
        <train-stop id="__5"/>
    </view>After moving display-name tag inside train-stop it looks like this:
    <view id="configuration">
        <page>/views/configuration.jsff</page>
        <train-stop id="__5">
          <display-name id="__3">#{bundle.configuration}</display-name>
        </train-stop>
    </view>and it works fine (displays in af:train component on page).
    Is this a bug or by design?
    As far as I remember this worked fine before 11.1.1.2?

    Hi,
    this is bug 11821340
    Frank

  • Difficult to input train-stop display-name

    Hi, experts,
    In jdev 11.1.2.3,
    When i try to input train-stop display-name in the Property inspector palette,
    I do have input the name string (and leave mouse from the Display name field to ID field) and click the save button in jdev,
    but infact this display name has not been saved, next time when i come back from some where to view it, it's empty.
    And I have stopped the running of app, the computer is OK(not hanging), jdev can do other works. but this issue happens several time today (some time it can work), rather difficult to input display name.
    (This issue also happens sometime on VO's hint field inputs).
    Is that a bug of jdev? some one else has met with it? or just a mirage of me?
    Thanks.

    Hi, Timo and Vinay
    Yes, I do have tried press enter key or leave the mouse to another field on the same pallette.
    but the "Save" button didnot enabled, and i have to press the "Save all" button. and cannot be saved in fact.
    This issue not always happens, but i have met many times today.
    Thanks.

  • Train Stop Lables not Visible

    Hi All,
    I'm using Jdeveloper REL1 PS2 with ADFBC
    I'm having a problem getting my train stop labels to render. Besides the train stop label not being visible, everything else is working as advertised. I can navigate though the train stops, the data on my pages appears as expected.. etc.
    Here is what I've done so far:
    1. I created a bounded taskflow with page fragments and checked "create train" checkbox.
    2. In my task flow, I've assigned *<display-name>* values to each view activity participating in the train. See code below. According to the documentation I've read, this is what I need to set to label my train stops. However, when I run my task flow in a region, the the labels are not visible.
    I've read section 18.8 in the Fusion Developer's guide, I've followed examples in these two blogs:
    http://biemond.blogspot.com/2007/11/taskflow-train-in-jdeveloper-11g.html
    http://biemond.blogspot.com/2008/06/advanced-taskflow-train-features.html
    I've read previous posts regarding this issue like the this one:
    Re: Creating ADF Train
    Which states *"In Task flow click the View activity in structure window Right click Choose > insert inside > Display name and set the value to it."*
    I also went through the train taskflows and pages in the Fusion Order Demo app and I cannot see how my implementation of the taskflow or how I'm adding the af:train component to my .jsff pages is different from the examples that I've found.
    Any help would be appreciated. Thanks!
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="EditEventTrainFlow">
        <default-activity id="__34">EditEventDetail</default-activity>
        <transaction id="__15">
          <new-transaction/>
        </transaction>
        <data-control-scope id="__16">
          <isolated/>
        </data-control-scope>
        <view id="EditEventDetail">
          <display-name id="__10">Edit Event</display-name>
          <page>/oracle/ou/oep/ui/pages/fragments/EditEventDetail.jsff</page>
          <train-stop id="__9"/>
        </view>
        <view id="EditEventRoomAssignments">
          <display-name id="__38">Assign Rooms</display-name>
          <page>/oracle/ou/oep/ui/pages/fragments/EditEventRoomAssignments.jsff</page>
          <train-stop id="__11"/>
        </view>
        <task-flow-return id="Submit">
          <outcome id="__13">
            <name>done</name>
            <commit/>
          </outcome>
        </task-flow-return>
        <task-flow-return id="Cancel">
          <outcome id="__14">
            <name>cancel</name>
            <rollback/>
          </outcome>
        </task-flow-return>
        <view id="ConfirmEventChanges">
          <display-name id="__18">Confirm</display-name>
          <page>/oracle/ou/oep/ui/pages/fragments/ConfirmEventChanges.jsff</page>
          <train-stop id="__17"/>
        </view>
        <train/>
        <control-flow-rule id="__19">
          <from-activity-id id="__20">*</from-activity-id>
          <control-flow-case id="__21">
            <from-outcome id="__23">cancel</from-outcome>
            <to-activity-id id="__22">Cancel</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule id="__24">
          <from-activity-id id="__25">ConfirmEventChanges</from-activity-id>
          <control-flow-case id="__27">
            <from-outcome id="__35">submit</from-outcome>
            <to-activity-id id="__26">Submit</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__29">
            <from-outcome id="__30">goToEditEventDetail</from-outcome>
            <to-activity-id id="__28">EditEventDetail</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__32">
            <from-outcome id="__33">goToRoomAssignments</from-outcome>
            <to-activity-id id="__31">EditEventRoomAssignments</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

    Hi,
    You need to first name the view activity to desired name first and then change the display name.You will find a good example in JDeveloper Help Topics under Cue Cards>Work with ADF Technologies>Implement a Multi-Step page Flow with ADF Train>Step 2
    For Ex:
    In the Application Navigator, select the ViewController project and open the Create Task Flow dialog. Enter train-flow.xml in the File Name field. Select both Create as Bounded Task Flow and Create with Page Fragments. Then select Create Train and click OK.
    From the Component Palette, ADF Task Flow page, Components panel, drag View and drop it on the blank canvas in the diagrammer. Rename the activity to start. Repeat the procedure to add three more view activities, using the following names: addresses, payment, review.
    Drag and drop Task Flow Return on the diagram. Accept the default name of taskFlowReturn1. In the Component Palette, click Control Flow Case. On the diagram, click the review icon, then click the taskFlowReturn1 icon. Rename the control flow case element to commit.
    In the Structure window, expand view - start . Right-click train-stop and choose Insert inside train-stop Display Name. In the Property Inspector, enter Start in the Display Name field. Repeat the procedure in step 6 to add train stop display names to the remaining view activities: view - addresses , view - payment, view - review . Use the following values, respectively: Addresses, Payment, Review. In the Application Navigator, select the ViewController project and open the Create Task Flow dialog again. Enter childtrain-flow.xml in the File Name field. Make sure Create as Bounded Task Flow and Create with Page Fragments are selected. Then select Create Train and click OK. From the Component Palette, drag View and drop it on the diagrammer. Rename the activity to billing. Repeat the procedure to add one more view activity, using the name shipping. Drag and drop Task Flow Return on the diagram. Change the name to childFlowReturn1. Draw a Control Flow Case from shipping to childFlowReturn1. Rename the case element to done. In the Structure window, expand view - billing. Right-click train-stop and choose Insert inside train-stop Display Name. In the Property Inspector, enter Billing in the Display Name field. Repeat the procedure in step 13 to add
    Hope this helps!
    Edited by: Swathi Patnam on Sep 9, 2010 2:16 PM

  • Capturing the event on clicking the af:train stop icon

    We are using an af:train as follows
    <fnd:applicationsPanel>
    <f:facet name="appsPanelTrain">
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroupLayout2">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="train1"/>
    </af:panelGroupLayout>
    </f:facet>
    </fnd:applicationsPanel>
    I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
    Is there a way to capture the event of this click?

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • [taskflow, train]Giving name to train stop

    Hi,
    how to give a name to a stop, when train is dropped in the UI ?
    Fred

    How do I change the label for the train stop in the train component? - Again easy. Select the train stop (view activity) in the diagram and look at the property inspector, choose the Train Stop tab and set the value of display-name property to a string or an EL Expression. If you look at the XML this results in a structure like this:
    <view id="page1">
    <page>/page1.jspx</page>
    <train-stop>
    <display-name>My Custom Label</display-name>
    </train-stop>
    </view>

  • Custom af:train model to visit any train stop

    Hi
    I am using jdev 11.1.1.6.0 and af:train component in bounded taskflow..
    the default behavior with train component is, i can visit the train stop next to the current stop, and the already visited train stops.. Does anybody has the sample for custom train model where all the train stops are enabled always?
    Thanks

    All you have to do is to set the sequential property of each of the train stops to false. select a train stop in hte task flow and open the 'train stop' node in the property inspector where you find the Sequential property.
    <view id="view2">
          <page>/view2.jsff</page>
          <train-stop id="__3">
            <sequential>false</sequential>
          </train-stop>
        </view>Timo

  • How to use Train Component only with Task-flows as Train Stops

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I have below requirement:
    In a Page when user clicks the button, display the Popup with Train Component. I have to use bounded task flow for each Train Stop. I don't have any views to be used as Train Stops. (Most of the Train Samples have Views / JSFF Fragments as Train Stops and child task flows as Train stops)
    Please let me know if I can achieve this.
    Any pointers would be helpful.
    Thanks
    Ravi

    Hi,
    train stops must be displayed on a view. So if you have a task flow that navigates to other taskflows then it needs to have at least a single view to display the train stops. If you attempt to show. If you enter a task flow then this task flow will have its own train model. So maybe its better to look at what your use case is and why you need to quite called task flows without properly exiting them
    Frank

  • Af:train stop width

    Hi all,
    I like to give same width for each of the train stop.
    since train stop length is depending on length of display name.
    With Regards,
    Wai Phyo

    Hi,
    did you try with inlineStyle
    inlineStyle="width:100px;"//alter values as you want
    See
    http://docs.oracle.com/cd/E14571_01/apirefs.1111/e12419/tagdoc/af_train.html

  • Defer train-stop navigation for Custom Processing

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I'm using Train Component in one of the task-flow with 3 train stops. I want to defer the Train stop navigation if the custom validation fails.
    I referred the sample 97 in ADF Code Corner - "How-to defer train-stop navigation e.g. for custom form validation".
    I implemented the code in similar lines. I'm able to see the warning dialog in my application when validation condition is not met. When i click the 'OK' button, I'm able to navigate to the next train stop.
    But when I click the cancel in the dialog and update the view to fulfill the condition, I'm not able to navigate to next stop.
    My Code snippet is as follows:
                   <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}" id="t1" var="trainNode" rendered="#{(pageFlowScope.TDMConnectivityChannelTreeBean.hideSearch)}">
                        <f:facet name="nodeStamp">
                            <af:commandNavigationItem id="cni1" disabled="#{trainNode.disabled}" textAndAccessKey="#{trainNode.textAndAccessKey}"
                                                      visited="#{trainNode.visited}" actionListener="#{pageFlowScope.TDMConnectivityChannelTreeBean.processTrainStop}">
                                <f:attribute name="trainStopNode" value="#{trainNode}"/>
                            </af:commandNavigationItem>
                        </f:facet>
                    </af:train>
                    <f:facet name="bottom">
                        <af:popup contentDelivery="lazyUncached" id="pt_p1" binding="#{backingBeanScope.trainSourceDialog}">
                              <af:dialog id="pt_d1" title="Confirmation Dialog" dialogListener="#{pageFlowScope.TDMConnectivityChannelTreeBean.processDialogAction}">
                                    <f:facet name="buttonBar"/>
                                    <af:outputText value="Source Channels are not selected, Do you want to navigate to Target Connectivities?" id="pt_ot1"/>
                               </af:dialog>
                         </af:popup>
                    </f:facet>
            Please let me know if I'm missing something here.
    Thanks
    Ravi

    Frank,
    I tried to put the following code in the action listener method and I'm able to navigate to next stop.
                    UIComponent comp = (UIComponent) ADFUtil.evaluateEL("#{backingBeanScope.trainSourceDialog}");
                    if (null != comp) {
                        UIComponent dialog = comp.getChildren().get(0);
                        if (null != dialog) {
                            queueTrainStopEventToRegion(selectedTrainStop.getOutcome(), dialog);
                    }Not sure why I have to do this. Can you comment on this?
    Thanks
    Ravi

  • Change the language in the display-name of a train stop

    Hello,
    does anybody know how to use internationalization in the <display-name> of a train stop?
    Bye

    Hi,
    I use the default model, and when trying to set the Display Name in the View Properties (a train stop), in the train task flow, i can not select a resource boundle key in the expression builder.
    If I set something like:
    <view id="datosRegistro">
    <page>/registro/datosRegistro.jsff</page>
    <train-stop>
    <display-name>#{viewcontrollerbundle['trainlabel']}</display-name>
    </train-stop>
    </view>
    Nothing appears in the train stop label.
    Of course, I have register the resource bundle in faces-config.xml file
    Thanks

  • Train stop icon display issue

    I am using Jdeveloper 11.1.1.4.0
    Is there any way we can set the icons for each train stop in a programmatic way in the <af:train> component ?
    I have a custom train model class that extends TrainStopModel and provides getIcon() method.
    When I tried to use the nodeStamp option, icons are getting displayed twice ( one line below another) in a horizontal layout
    <af:train var="node" value="#{viewScope.StepTrain}" id="train">
    <f:facet name="nodeStamp">
    <af:commandNavigationItem
    text="#{node.label}"
    disabled="#{node.disabled}"
    visited="#{node.visited}
    icon="#{node.icon}"
    id="commandNavigationItem"
    />
    </f:facet>
    </af:train>
    And if I don't use the "nodeStamp", ADF is not displaying the custom icons at all.
    Component document says this component offers alert icon customization. How can we use that ( i.e how to set the status of a train stop to error, warning etc.) ?

    Hi,
    I have implemented train bar functionality with icons for each train stop using navigationPane.
    The sample can be found at: http://andrejusb.blogspot.in/2011/12/adf-train-apply-custom-train-stop-icons.html
    Check if it works for you.
    -Rathnam

Maybe you are looking for