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

Similar Messages

  • 11g Process Train: How to make the entire train's width or height larger

    I cannot see how to do this using
    -Property inspector
    -Skins and their appropriate selectors
    I can do this using plain html by setting the table's width, yet again this isn't possible thru ADF, and again, the CSS width attribute doesn't expand the table.
    example (the processtrain renders as an html table):
    <table width="500"> -works, but not possible in ADF
    <table class="..."> (set the width thru the skin/property inspector (does not work)

    Hi,
    skinning will do. Below are the available selectors
    af|train      Top level style class for the entire train component. The number of stops to be displayed step is also specified using the property -tr-visible-stop-count. Valid values must be integers and greater than zero.
    af|train::body      Styles the container which encloses both the train content and the start and end overflow indicators.
    af|train::start-overflow-indicator      Styles the start overflow indicator. The start indicator is specified using a background-image.
    af|train::end-overflow-indicator      Styles the end overflow indicator. The end indicator is specified using a background-image.
    af|train::content      Styles the container which encloses the train content (excluding the overflow indicators).
    af|train::parent-start, af|train::parent-end      Styles the block that encloses the parent-start (and parent-end) elements, such as its icon and label.
    af|train::parent-start-icon-cell      Styles the cell that displays the parent start icon.
    af|train::parent-end-icon-cell      Styles the cell that displays the parent end icon.
    af|train::parent-start-content      Styles the cell that displays the parent process name at the beginning of the train.
    af|train::parent-end-content      Styles the cell that displays the parent process name at the end of the train.
    af|train::join      Styles all joins between stops. Available pseudo-classes are :disabled, :unvisited, and :train-visited.
    af|train::stop      Cell that encloses all the stop elements including icon and content.
    af|train::stop-icon-cell      Styles the cell that displays the stop icon.
    af|train::stop-icon-selected      Used to set the background image for the selected stop.
    af|train::stop-icon-disabled      Used to set the background image for a disabled stop.
    af|train::stop-icon-unvisited      To set the background image for an unvisited enabled stop. Use pseudo-classes :hover and :active to customize look.
    af|train::stop-icon-visited      To set the background image for a visited stop. Use pseudo-classes :hover and :active to customize look.
    af|train::stop-content      Content block that displays the stop name. Use pseudo-class :selected to style content for the currently selected stop. :required to style the required indicator, if stop is selected.
    af|train::stop-link      To skin all links that display the stop name. The pseudo-classes :selected can be used to style a link for the currently selected stop. :disabled to style a disabled link. :visited for a visited enabled stop
    and :unvisited for an unvisited enabled stop. Due to a bug use :train-visited instead of :visited.
    af|train::stop-icon-error      To set the background image for a stop that is in error. This is overlaid on top of the stop icon.
    af|train::stop-icon-warning      To set the background image for a stop that has a warning. This is overlaid on top of the stop icon.
    af|train::stop-icon-information      To set the background image for a stop that has some information. This is overlaid on top of the stop icon.
    af|train::stop-icon-confirmation      To set the background image for a stop that has a confirmation status. This is overlaid on top of the stop icon.
    Note that to increase the icon height and width you most likely have to change the icons
    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

  • 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

  • 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

  • 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

  • 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

  • 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

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

  • 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

  • Why does my infinite pulse train stop early?

    Dear Community,
    I have a pulse train task running on counter 7 of a PXI-6608.
    The source is the oven-controlled stable 10MHz clock, which is passed to it over RTSI2. The Gate is constant low.
    It's supposed to be high for 5e7 ticks, then low for 2^32-5e7 ticks. I.e., high for 5 seconds every time the 10MHz clock completes 2^32 cycles.
    It runs fine for 56 hours, and then stops (no more pulses). Is there any reason why this would happen?
    My vi uses the old NI-DAQ drivers.
    Thanks!
    Casimir

    Hi Casimir,
    That is strange behavior that you are seeing.  Is the 56 hour run time consistent, or is there noticeable variation from one run of your application to the next?  Are there any errors thrown by the driver when the pulse train stops?  Are you using an embedded PXI controller or an external PC via MXI?
    Regards,
    Andrew W
    National Instruments

  • Showing the custom train stop as default activity based on condition

    Hi Folks,
    I'm using JDeveloper version 11.1.1.5.0. I have requirement where in i have to show the custom train stop as default train stop based on some business logic instead of default activity mentioned as part of task flow with train.
    Test Case:
    I have a dynamic region where i'm loading diff task flows based on condition. Let us consider i have two task flows TF1, TF2 and One of these task flows (TF2) contains a train.
    TF2 task flows has a train with train stops as ts1, ts2 and ts3 and ts1 has been configured as default activity in TF2 task flow
    I'm loading these task flows into dynamic region based on my business logic. Currently i'm in TF1 and i'm doing some action in TF1 page. Based on my business logic in one of the button actions in TF1, i have to load TF2 into region and have to set either ts1, ts2 or ts3 as default activity. its not like every time only configured default activity as part of TF2 is shown.
    Consider this case. in IF1 i have 3 buttons b1, b2 and b3. When i click on b1, i have to load TF2 into region and ts1 as default activity. Like wise if i click on b2 in TF1, i have to load TF2 abd ts2 as default activity. Like wise if i click on b3 in TF1, i have to load TF2 abd ts3 as default activity.
    I have summarized my test case here. Its not exactly 100% same but it more or less like based on some business logic in TF1 i have to load TF2 with specific train stop as default activity.
    Please help me in this regard. Is this possible in ADF? if yes provide some pointers.
    NOTE:
    I'm able to show the specific trainstop as the selected one but its content is not showing. Though i'm able to see my intended trainstop selected but content is always the content related to the default activity configured as part of task flow.
    I have used below code to acheive ( setting atleast intended train stop as the selected on)
    TrainModel trainModel = TrainUtils.findCurrentTrainModel();
    trainModel.setCurrentTrainStop(activityId);
    [activity id i'm getting from model it self like java.util.Map<ActivityId, TrainStopModel> mapTrainStops = trainModel.getTrainStops(); and intended activityId is provided}
    // note end
    Thanks,
    Mahipal

    Hi Jobinesh,
    Thanks for your reply.
    When i try to do the navigation with in the task flow i.e. with in the train task flow, i'm able to navigate fine. But for different taskflow, i'm unable to do it.
    for ex: in my case i have three train stops ts1, ts2 and ts3. I have placed a button in ts3 and i'm returning the respective navigation el expression to navigate to either ts1 or ts2 in action method of this button. I'm able to do this successfully. but when i come from different taskflow, i'm unable to do this.
    I have tried this link as a workaround but it is not working.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf
    i have tried this way, but it is not working.
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExpressionFactory expressionFactory =
    fctx.getApplication().getExpressionFactory();
    ELContext elctx = fctx.getELContext();
    MethodExpression methodExpression =
    expressionFactory.createMethodExpression(elctx,
    "_adfcActivityRequest./WEB-INF/task-flow-definition.xml#task-flow-definition@*ts3*",
    String.class,
    new Class[] { });
    *//NOTE: ts3 is the activity id of third train stop*
    //queue action in region
    myspaceRegion.queueActionEventInRegion(methodExpression,
    null, null, false,
    0, 0,
    PhaseId.INVOKE_APPLICATION);
    Please let me know any pointers for this problem. is there any example with routers navigation rules which can be called from another task flow.
    Thanks,
    Mahipal

  • Change af|train::stop-icon-visited_hover in PS6

    Hi:
    I am using PS6. I want to change the train icon to be our custom icons.
    I found that I have problem getting rid of the background image in the css class: .af_train_stop-icon-unvisited:hover and .af_train_stop-icon-visited:hover
    I tried to select the style af|train::stop-icon-visited_hover on the demo page: (http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/train.jspx?), but it does not seem to have any effect. Is it a bug? Thank you!

    Hi,
    the skinning documentation is quite clear on the skin selector:
    +"af|train::stop-icon-visited      +
    +To set the background image for a visited stop. Use pseudo-classes :hover and :active to customize look."+
    af|train::stop-icon-visited:hover not af|train::stop-icon-visited_hover
    Frank
    Btw.: PS6 is not yet available to public. This is a public customer facing forum. Apparently you are from Oracle and have access to internal builds. Can you stop posting questions about non-public bui`lds on this forum?

Maybe you are looking for

  • Touch Up Text Tool

    Hi, I ran OCR on a document and wante to play with the touch up text tool.  The issue is, I don't know how to view how acrobat has interpreted the words, so how can I figure out what it has got wrong or right without converting to word etc first.  I

  • Selected groups in address book

    How to return the names (or ids) of selected groups in Address Book?

  • How to manage the operations on service order ?

    Hello, Do you know some bapi or MF to manage the operation on service order  (IW32). I have to create some operation, and in dialogue mode Iu2019m using  "Task list selection,  to reference object." But I need to do it by a bapi or MF. Tks a lot. R.

  • Customer master Mapping

    Hi All, I got a requirement to create a new mapping for Customer master data, few mappings are already existing in the system but as per my senior they are not sufficient to upload the full data into Data manager ...so I need to create a new Map. Cou

  • EOIO & ccBPM

    Hi , We have a scenario(File -> XI -> IDOC -> SAP) where in we have to post the IDOCs in FIFO manner. We have configured EOIO in File adapter, specified a queue name , the order in which the file adpater has to read files is also set(By Date). Our id