1. Follow the steps from 1 to 13 from the post
"How to create a PlaceHolder Data Control in Jdeveloper 12C ?".
2. This is the 13th step from previous post.
3. We have one PlaceHolder Data Type, Now we will create another Place Holder Data Type named as "TwoPlaceHolderDataType".
2. This is the 13th step from previous post.
3. We have one PlaceHolder Data Type, Now we will create another Place Holder Data Type named as "TwoPlaceHolderDataType".
Open the SampleOnePlaceHolder.xml file and we have
OnePlaveHolderDataType view instance which contains Id and Name
attributes, now we will create a
relationship based on this Id. So select the "OnePlaceHolderDataType" on Data
Type section and click on Add icon to add as a child of OnePlaceHolderDataType.
4. Following window appears.
Now specify the file name, let say
"TwoPlaceHolderDataType" and specify the package
directory location.
Now their is a Master-Detail Section.
Join Attributes to Parent :- Here select parent attribute
on which we have to do join or create a foreign key relation. So we have to do on basis of Id. Select Id and click ok.
5. Here you will see that Id attribute is already added
in TwoPlaceHolderDataType.xml Attribute tab.
And also ViewLink is created between both view instance,
named as "DTLink".
6. Now we add one more attribute "NewName".
7. Now add data into these attributes.
8. Now we will check whether the ralation between
OnePlaceHolderDataType and
TwoPlaceHolderDataType are done correct or not.
We will check it at Model layer.
Run the DataControl.dcx file by right click on this file.
Here we can see that for Id = 0001 we had two data for
child.
and for Id = 0002 we had one data for child.
9. Now we can use this relation at data control
window, which can be used at page level, by drag and drop it on page.
0 comments:
Post a Comment