This content has been marked as final. Show 4 replies
Since you want to default the value in dff , first you need identify the item style of the DFF field , you can obtain the item style
from the link "About this page " , extend the controller class and incorporate the following code .
If its an LovInput then :
OAMessageLovInputBean TicketEligibleDff=(OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("OfferDetailsFlex18");//replace your DFF ID
//here get the value which needs to be defaulted to DFF
If its an Text Input then :
OAMessageTextInputBean NoofTicket=(OAMessageTextInputBean) oawebbean.findIndexedChildRecursive("OfferDetailsFlex17");//replace your DFF ID
Note : Its very Important to identify the ID of the DFF and use appropriate ID's in the above code
Let me know if you need any help .
DFF fields are not static items I guess. They are rendered automatically by the framework and the item style for them is "flex". Moreover, as I have mentioned, I need to populated line dff attribute based on header dff attribute. that means I want to do it in the process form request. Hence I cannot do settext etc anyways or Can I????. I am still looking for someone who knows how these pages work.
Request you to go through the problem carefully before replying.
MY QUESTIONS ARE STILL NOT ANSWERED.
Edited by: Amit Goyal on Jan 20, 2013 10:17 PM
Remember ,Its always never the case that DFF item style should be "flex " ,the item style can be MessageTextInput / MessageLovInput etc ,
no matter you are using PR / PFR there is absolutely nothing wrong in using method SetText () / setAttribute () methods to default
the values .
Note : Before discussing any further on this thread Would appreciate if you could go through some technical aspects of OAF and DFF .
It was nice talking to you on the phone. As discussed, as per Oracle documentation flexfields have item style of "flex".
OAF automatically generates items for a DFF once you have an item of type "flex" in your page.
As per our phone converstation, I understand that I now need to go to "View Source" of the page and check what is the item ID of the DFF segment field (that OAF has automatically generated) and then do a set text on that.
Let me try that.