Hi,
You must've seen the wizard driven registration forms on the web which provides pretty useful approach break the whole tasks into limited screens. In ADF you can do the same by using Train flows in bounded task flow in simple words Train is one type of bounded task flows.
In this post we will see how to create Train flows in Oracle ADF and we will also calling another bounded task flow in between.
There is a little trick when you are creating a Train flow based on same entity you need to skip validations on the page definition to avoid errors.
Download the sample code
More details watch in this video
Check this great Oracle ADF book
Happy JDeveloping,
Zeeshan Baig
Thanks for the tutorial. I have a question:
ReplyDeleteHow would you label af:train component?.
i.e. Instead of giving Page title "Enter Employee Basic Info", I want to give Labels to all three Blocks in a train component (between Train blocks and Back/Next Button) so that User knows what would be the next step.
Hi Anandsagar,
ReplyDeleteBy default train shows the next step in a train component.
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31973/af_navigate.htm#BABDCIAA
Where is the SQL DDL for this example?
ReplyDeleteHi Patrick,
ReplyDeleteI am using the default HR schema in oracle database.
ZB
Thanks ZB. How can I add pagination to the list of employees?
ReplyDeleteHi Zeeshan,
ReplyDeleteI want to develop a train component with 2 Train stops.
However data entry (CreateInsert) would be based on same Entity Object. I have few mandatory attributes on stop1 and few mandatory attributes on Stop2. However when I am trying to navigate from Train Stop1 to Train Stop2 it is throwing error that XX_attr must not be null which is on TRain stop2. How to overcome this error.
Thanks,
Jit
Hi,
DeleteYou can skip the validation to later stage.. Check this page http://www.baigzeeshan.com/2010/10/skipping-validation-in-oracle-adf.html
ZB
Also in the same video i mentioned about skipping validation and i have a similar use case.
Delete