Saturday, April 17, 2010

Working with Placeholder Data Controls in Oracle ADF

Hi,

Sometimes in Application development it is required to create UI (User Interface) before the actual database table or entities are available or you want to show someone the features / demo of your application without any database involve then what to do in this case?

Well in Oracle ADF "Placeholder Data Controls" solves this problem. You can create your data controls, define attributes manually and populate them with sample data or import the CSV file. Later when real data is available you can easily link you Data Controls to actual entities.

In this post:
- I will create a simple Data Control names "SalesDC" and create inside "SalesData" Collection.
- I will create a 3 different Graphs based on SalesData Collection


Steps to follow:

- Right click on Model project Choose New
- Go to Data Controls section and Choose Placeholder Data control Press OK

- Enter the name of the Data Control e.g "SalesDC"

- Right click the Data control and choose "Create Placeholder Data type"


- Change the name of your collection at the top in this slide as shown as "SalesData"
- Define your attributes and their data types

- Click Sample Data tab page and enter sample data or import from CSV and Click OK


- Thats all now you can use this data controls and collection to create your User interface with some runtime limitations (Create, Update, Delete operations)

I have created one JSF page based on Oracle 3 column template and i am using 3 different types of Graphs components to represent my data for demos on different facet by just simply drag and drop the DC collection on the page as shown in the slides



On Run-time Page would look like this

Feel free to comment you can Download sample workspace

More info Check Oracle Fusion Developer guide topic
Designing a Page Using Placeholder Data Controls

Happy Jdeveloping,
Baig

No comments:

Post a Comment