Disappear Segment in DFF

i want to disappear a segment of AdditionalAssignmentDetailsDFF in notification detail page。please tell me how to do。
my way :
extends co CUXOfferDetailsNotifStkCO
OADescriptiveFlexBean dffBean =
(OADescriptiveFlexBean)paramOAWebBean.findIndexedChildRecursive("AdditionalAssignmentDetailsDFF"); //Pass the id of the Flex in place of DescFF
if (dffBean != null) {
OAMessageStyledTextBean segment8 =
(OAMessageStyledTextBean)dffBean.findChildRecursive("AdditionalAssignmentDetailsDFF1");
if (segment8 != null) {
segment8.setRendered(Boolean.FALSE);
but it can't find AdditionalAssignmentDetailsDFF.
and in oracle standard co OfferDetailsNotifStkCO :
i find the code
Object localObject1 = (OADescriptiveFlexBean)paramOAWebBean.findIndexedChildRecursive("AdditionalAssignmentDetailsDFF");
if (localObject1 != null)
((OADescriptiveFlexBean)localObject1).mergeSegmentsWithParent(paramOAPageContext);
so i add the following code
Object localObject1 = (OADescriptiveFlexBean)paramOAWebBean.findIndexedChildRecursive("AdditionalAssignmentDetailsDFF");
if (localObject1 != null)
((OADescriptiveFlexBean)localObject1).mergeSegmentsWithParent(paramOAPageContext);
OAMessageStyledTextBean segment8 =
*(OAMessageStyledTextBean)((OADescriptiveFlexBean)localObject1).findChildRecursive("AdditionalAssignmentDetailsDFF1");*
if (segment8 !=null)
segment8.setRendered(Boolean.FALSE);
but it didn't work also.please help me . it is urgent. thank you

You need not write ctrllr code for doing this.You can simply personalize the flex field and set the segmentList property.
Global Data Elements|[global segment1]|[global segment2]||...||Context1|[segment1 for context1]|[segment2 for context1]||...||Context2|....
Example,
Global Data Elements|Warehouse||Box|Items per Box|Box Size||Pallet|Items per Pallet|Pallet Weight
If suppose you need to hide pallet weight for pallet context then change this segment list to
Global Data Elements|Warehouse||Box|Items per Box|Box Size||Pallet|Items per Pallet
Regards,
Guru krishnan.

Similar Messages

  • Assigning a value to a Read-only Segment of DFF

    Hi Friends,
    I have a read-only segment of DFF. I want to assign a value based on the value entered in other segments to this read-only segment. There are a couple of issues I am facing. I am not able to get a handle to this read-only segment and also how can we assign the value to this segment..
    Any ideas please
    Thanks in advance

    Hi Friends,
    I have a read-only segment of DFF. I want to assign a value based on the value entered in other segments to this read-only segment. There are a couple of issues I am facing. I am not able to get a handle to this read-only segment and also how can we assign the value to this segment..
    Any ideas please
    Thanks in advance

  • How to make segment of DFF mandatory in OA Framework.

    Hi All,
    I have one DFF where I want to make one of the segment mandatory in OA framework. Can anyone please let me know the process to make DFF segment madatory but at the same time this shouldn't be mandatory for core application.
    Regards,
    Mangesh

    Hi Mangesh,
    Please check this thread
    Making a flexfield segment 'required' for a particular function
    You will have to customize the page controller and include the code mentioned
    in the above thead.
    Cheers
    Muthu

  • Removing Segment in DFF

    Hi Experts,
    I have never worked on flex items. Here i got a requirement on this.
    DetailsPG is having DFF and it is displaying in page. There are five segments in that i have not to display one segment among them. These flex has created at runtime in seeded CO.
    Can you please help me how to make the segment disable in PG?
    Regards,
    Murali

    Thanks for the reply Gyan. It is very helpful. But here i the DFF created dynamically and i am not able to find the id of DFF bean. I tried in page.xml also. There is no item with DFF but it is displaying in the page. I so much confused by seeing the code. I am giving piece of code below. How can i get handle of this item?
    private int createFlexBean(boolean flag, OAPageContext oapagecontext, OAWebBean oawebbean, String s, String s1, String s2)
    OAMessageLayoutBean oamessagelayoutbean = (OAMessageLayoutBean)createWebBean(oapagecontext, "MESSAGE_LAYOUT_BEAN", null, null);
    oawebbean.addIndexedChild(oamessagelayoutbean);
    String s3 = "DFF_" + s + "Rendered";
    oapagecontext.getApplicationModule(oawebbean);
    ArrayList arraylist = (ArrayList)oapagecontext.getTransactionTransientValue("flexList");
    Object obj = null;
    Object obj1 = null;
    if(arraylist != null)
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)arraylist.get(0);
    String s4 = (String)arraylist.get(1);
    if(oadescriptiveflexbean != null && s4 != null && s.equals(s4) && oadescriptiveflexbean.getUINodeName().equals(s2))
    oamessagelayoutbean.addIndexedChild(oadescriptiveflexbean);
    oamessagelayoutbean.setAttributeValue(UIConstants.RENDERED_ATTR, new OADataBoundValueViewObject(oamessagelayoutbean, s3, "DetailsPagePVO"));
    oapagecontext.removeTransactionTransientValue("flexList");
    return oadescriptiveflexbean.getIndexedChildCount(null) - 2;
    OADescriptiveFlexBean oadescriptiveflexbean1 = (OADescriptiveFlexBean)createWebBean(oapagecontext, "DESCRIPTIVE_FLEX", null, s2);
    oamessagelayoutbean.addIndexedChild(oadescriptiveflexbean1);
    oamessagelayoutbean.setAttributeValue(UIConstants.RENDERED_ATTR, new OADataBoundValueViewObject(oamessagelayoutbean, s3, "DetailsPagePVO"));
    oadescriptiveflexbean1.setAttributeValue(UIConstants.READ_ONLY_ATTR, new OADataBoundValueViewObject(oadescriptiveflexbean1, "SDP_PageReadOnly", "DetailsPagePVO"));
    oadescriptiveflexbean1.setContextListRendered(false);
    oadescriptiveflexbean1.setAttributeValue(OAWebBeanConstants.FLEXFIELD_NAME, "AP_EXPENSE_REPORT_LINES");
    oadescriptiveflexbean1.setAttributeValue(OAWebBeanConstants.FLEXFIELD_APPLICATION_SHORT_NAME, "SQLAP");
    oadescriptiveflexbean1.setAttributeValue(OAWebBeanConstants.REGION_APPLICATION_ID, OIEConstants.STATIC_INTEGER_222);
    if(flag)
    oadescriptiveflexbean1.setViewUsageName("ExpenseReportLinesVO");
    } else
    oadescriptiveflexbean1.setViewUsageName("ItemizedLinesVO");
    oadescriptiveflexbean1.setFlexContext(oapagecontext, s1);
    try
    oadescriptiveflexbean1.processFlex(oapagecontext);
    catch(Exception _ex)
    oamessagelayoutbean.setRendered(false);
    return 0;
    return oadescriptiveflexbean1.getIndexedChildCount(null) - 2;
    Regards,
    Murali

  • DFF segment as LOV return item

    Hi ,
    I have a requirement to default the value in the fields in the page depending on LOV on another field in the Page.
    But the field that needs to be defaulted is one of the fields in the DFF.
    As such i am not sure what should i give in the "Return Item" property while defining the LOV mapping
    Could someone please guide me in this
    Thanks and Regards,
    Akash

    Hi Sumit,
    Niot sure what you mean when you say to save the record.
    I have this requirement in the iRecuitment Create Vacancy page and when i select the organization in that page , one of the segments of DFF should get autopupualted from the organizaton LOV.
    Not Valueset is associated in the DFF segment
    Could you please suggeest where i may be going wrong.
    Thanks,
    Akash

  • Defaulting DFF Segment Value using sql statement in SSHR gives error when using parameter

    Dear All,
    i am having an issue that i am making one segment in DFF (SEGMENT3) being defaulted by using sql statement
    Select MAX(SEGMENT7) FROM PER_ANALYSIS_CRITERIA cri, PER_PERSON_ANALYSES ana where cri.Analysis_Criteria_id = ana.ANALYSIS_CRITERIA_ID and ana.PERSON_ID = :ANALYSES.PERSON_ID
    The Above Select Statement is working fine on the PUI form and getting the Default value correctly but when opening the SSHR page that contain this DFF, it  gives me the below error.
    "No field listener is registered to resolve field ANALYSES.PERSON_ID referenced by the flexfield with application short name PER and name PEA. Please contact your system administrator. "
    Any Help Please???

    Please see the following docs.
    Cannot Add Salary:No Field Listener is Registered to Resolve Field Review.assignment_id (Doc ID 558295.1)
    No Field Listener Is Registered To Resolve Field Assgt.Effective_start_date (Doc ID 889794.1)
    List of Current Enhancement Requests (ER) for Oracle EBS Self Service Human Resource (SSHR) (Doc ID 1381936.1)
    No field listener is registered to resolve field xxx.xxx referenced by the flexfield with application short name ASO... (Doc ID 1359270.1)
    Customer Form, Address Error: No field listener is registered to resolve field GLOB.FLEX_COUNTRY_CODE referenced by the flexfield with application short name AR (Doc ID 1276934.1)
    DFF issue : No Field Listener Is Registered To Resolve Field XXX Referenced By The Flexfield (Doc ID 555589.1)
    Thanks,
    Hussein

  • How to derive DFF segment id programatically, attached to OAF page

    Hi Guru's
    I am facing below challenges in handling the segments of DFF which is attached to OAF page.
    As per the requirement, we need to do the changes on the segments of DFF(Party Information). But segments of these DFF are different for each attribute category in DFF.
    I can get the segment id by seeing the View Source of that page where DFF is attached but this id differs when sequence of DFF segments differs.
    for ex.:- for Attribute Category Comany segments sequece are-
    1) Acounting
    2) Sub Accounting
    so for this attribute category Accounting segment id will be 01 and Sub Accounting segment id will be 02
    but for Attribute Category Agency segment sequece are-
    1) Sub Accounting
    2) Accounting
    so for this attribute category segment id will 01 for Sub Accounting and 02 for Accounting.
    So we need the approach to derive the segment id instead of getting it from View Source page.
    Can any one please help on this?
    Please reply incase you require more details on it..
    Regards,
    Piyush
    Edited by: Piyush_Gupta on Feb 4, 2013 10:00 PM

    Hi All,
    I am still facing the challanges.
    Could anyone help me on this?
    Regards,
    Piyush

  • DFF in iSupport to be made dependent on SR type

    Hi,
    Can DFF in iSupport be made dependent on SR type?
    I want to show few fields in DFF depending upon SR type.
    For example :
    If SR type is Incident, show fields 1,2 and 3.
    or if SR type is complaint, show fields 3,4 and 5 in DFF.
    Let me know how to implement this?
    Regards,
    Mohammed

    Hi Anurag,
    We are already using SR templates, but as you know validation and dynamic list is not possible in template fields.
    That is the reason , for few of the information we are going for DFF.
    We have a specific requirement here of building a tree like structure for capturing reason of failure of product.
    It would be basically 3 level tree structure where once you select one option in first field, second field options should change and so on for second and third field.
    We are achieiving this by creating dependent segments in DFF.
    But this DFF is required only for one SR type and should not be there for others..
    So was exploring if we can set contexts for DFF for this or find a work around for it.
    Regards,
    Mohammed

  • FlexField Validation based on Form Status

    Hi ,
    Background :
    I have a Valueset attahced to a segment in DFF, that say, stores a employee ID. My Value set picks up only active employees based on a specific condition. So that, when user enters data, he/she can choose only active ones.
    But as days pass by, the users are end dated. So when I query the Order ( to which this DFF is attached, ) that has an end-dated employee attached to it, the validation fails.
    My Question :
    Is there a way to have the Value set fire only in the Entry Mode and not fre in Query mode?
    Do we have to do this using the FORM.STATUS ( 'NEW','CHANGED') in the valueset query to acheive this? Or is there a simpler way?
    Thanks
    konnektme

    Hi Karthik,
    Instead of making the value set not to validate, you can make the value set to validate as successful. This can be achieved in any of the following ways.
    1) Make the Employee value set to display both Active/Inactive employees. If required the Status column can be displayed in the LOV. Also the list can be ordered by active employees first, then followed by inactive employees. There by user have the option to select the exployees be referring the employee status. This provides a provision to create records based on inactive employees also. If we strictly want to restirct to select only active employees. As said earlier, we can validate in Key-Commit or When validate Record.
    2) Change the value set to return active values always and inactive values only based on condition. Say the condition is (:system.record_status <> 'QUERY' and active_flag = 'y'). In this case only active records will be retreived in the record status is not query, where as if the record status is query, inactive records will also be retreived.
    If you have any solid condition to restrict the records, you can use those instead of record status/form status.
    I would prefer to use Option 1. Which will provide a solid result all the time. Where as option 2 might cause some issues if it is based on record/form status.
    Thanks
    K.Nataraja Suthan,

  • EBS SLA 12.1.1

    Hi experts,
    Would like to define an Accounting Derivation Rule reading (INPUT) and DFF source putting the value into the Natural account segment (OUTPUT).
    I do not undestand why i can not assign the ADR reading the DFF source (OUTPUT TYPE = VALUE SET) to another ADR (OUTPUT TYPE = SEGMENT).
    DFF value set and COA value set for natural account segment are the same (same flex_value_set_ID)
    Please advise
    Edited by: user811677 on 29 avr. 2010 03:34

    Could you please attach the screenshots somewhere showing us exactly what you are doing?
    Thanks,
    Anil

  • Unable to default DFF segment based on selection of other field value.

    Hi Gurus,
    *I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
    I have extended my CO and tried many ways (from simple to little complex) but to no success.
    Simpler way:
    *=======*
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
    Row row = vo.first();
    row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
    row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
    This code doesn't work.
    Understanding that, DFF segments can't be set as simple bean, I have done below:
    *===================================================*
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
    oadescriptiveflexbean.processFlex(oapagecontext);
    if (oadescriptiveflexbean != null){
    ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
    if(contextmap != null){
    Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
    if(enumeration != null){
    do
    if(!enumeration.hasMoreElements())
    break;
    Object obj = enumeration.nextElement();
    OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
    oapagecontext.getParameter("WorkRequestDesc1")
    //String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
    if(oawebbean1 != null)
    if(oawebbean1 instanceof OAMessageTextInputBean)
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
    //oamessagetextinputbean.setReadOnly(true);
    oamessagetextinputbean.setText("Jawad");
    } while(true);
    Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
    More info:
    *======*
    VO: RequestDetailsVO
    DFF Regions ID: WorkRequestDesc
    Attribute1 (DFF segment1) ID: WorkRequestDesc1
    Appreciate your responses,
    Jawad

    Dear Guys,
    I found out a workaround for this case (If this helps others): :)
    *1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
    *2. In the extended CO, in PFR, get the handle of these created fields.*
    *3. Set the values as required.*
    Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
    But I still am hunting for the possibility of setting a single segment.
    Thanks and Regards,
    Jawad
    Edited by: Jawad on Apr 19, 2012 3:36 AM
    Edited by: Jawad on Apr 19, 2012 3:38 AM

  • Java null pointer exception while getting a segment DFF handle

    Hi,
    my requirement is to make a field mandatory based upon a dff segment value (Y/N). i override PFR since segment is a poplist on the page (and poplists don't fire any event)
    i searched in the "view source" of the page and found that segment id is ActFlexField0
    when i click on save button i got "java null pointer exception"
    here is code:
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean) throws OAException
    +{+
    +//get a handle to AM+
    OAApplicationModule am;
    am = oapagecontext.getRootApplicationModule();
    oapagecontext.writeDiagnostics(this,"Root AM=>"oapagecontext.getApplicationModule(oawebbean).getName() ,1);+
    if(oapagecontext.getParameter("applyCreActBut") != null || oapagecontext.getParameter("saveDtlBut") != null)
    +{+
    +/*Conditional mandatoryness of IdContribuente field*/+
    +// first, find the flexfield's handle+
    OADescriptiveFlexBean oaDFF;
    oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ActFlexField");
    +//oaDFF.processFlex(oapagecontext);+
    oapagecontext.writeDiagnostics(this, "Niccal: i got DFF handle", 1);
    +//oapagecontext.writeDiagnostics(this, "Niccal: oamcb value is:"+oaDFF.getAttributeValue(), 1);+
    +/*+
    RenderingContext con = (RenderingContext) oapagecontext.getRenderingContext();
    Enumeration x= null;
    x= oaDFF.getChildNames(con);
    oapagecontext.writeDiagnostics(this, "After getChild", 1);
    while(x.hasMoreElements())
    +{+
    String aParamName = (String)x.nextElement();
    oapagecontext.writeDiagnostics(this, "Niccal: DFF segment names are:"aParamName, 1);+
    +//OAWebBean dffbeans=(OAWebBean)oaDFF.findChildRecursive(aParamName);+
    +}+
    +//oaDFF.mergeSegmentsWithParent(oapagecontext);+
    OAMessageChoiceBean oamcb = (OAMessageChoiceBean)oaDFF.findChildRecursive("ActFlexField0");
    +//String sIsForeign = (String)oaDFF.getAttributeValue("Attribute1");+
    +//oapagecontext.writeDiagnostics(this, "Niccal: Attribute1 is:"+sIsForeign, 1);+
    oapagecontext.writeDiagnostics(this, "Niccal: before if", 1);it's urgent
    any help appreciated
    thanx
    N

    hi Keerthi,
    thank you.
    i tried with below code but still unsuccesfully
         +     oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ActFlexField");+
    oapagecontext.writeDiagnostics(this, "Niccal: i got DFF handle", 1);
    OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    oapagecontext.writeDiagnostics(this, "Niccal: before if", 1);
    i am able to print 1° comment line but not second. so i think it's something wrong getting the segment handle.
    anyway i'm not able to reach your suggested if statement because execution stops before.
    Infact, if i comment line :OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    page doesn't give error and saves data.
    any suggestion appreciated,
    thanx,
    N

  • DFF segment Issue

    Hi All,
    I have added a new attribute to existing DFF in standard forms, and that DFF is there on standard OA Page. But the newly added attribute is not visible on OA Page. pls Help
    Regards,
    Raghava

    Hello Raghav,
    How did you acheive this. I am putitng below below text in the segment list in personilization window. Below are segment display names of my DFF. But it is now reflecting in OAF page. Last 2 field i added new in DFF segments.
    Addl Info Line 1||Addl Info Line 2||TAN Number||*Addl Info Line 3||Addl Info Line 4*

  • Disable updating of DFF segment in PO form using Form Personlization

    Hi All,
    I have to make a dff segment in PO form non-updatable after the PO number has been generated.
    I tried to do form personalisation of item PO_HEADERS.ATTRIBUTE2 making its property(update_allowed) as false.
    But when I test the form, I get an error cannot set attribute of a null canvas item.
    How can I make DFF segment disabled after PO Number is generated in Form
    Regards
    Prajesh

    One approach you can try is using the custom.pll.
    You can write code that makes the attribute non-updatable if the po_num is not null.
    If that does not work, you can consider writing a before-update database trigger on po_headers.
    In the trigger, if :old.attribute1 != :new.attribute1, then you can raise an error.
    Typically, I avoid writing database triggers but if you must, this could help you achieve it.
    Hope this helps,
    Sandeep Gandhi

  • How to use $FLEX$ for DFF segment

    We have below requirement for “Add'l Salary Admin. Details” DFF.
    we have three segments:
    Current Additional Amount -first segment
    Additional Allowance Change % - second segment
    New Additional Allowance - third segment
    e.g.
    Now first segment has fixed value, Assume it is 2000 AED
    And in second segment if value is 3
    Then third segment should show the value: 2000 + 2000 * 3/100
    Third segment is dependent on segment1 and segment2.
    I think, we can achieve this by using $FLEX$
    But I need your guide line, how can we do that?

    below solution is only possible solution.
    Hi,
    Keeping the default SQL statement on its place, use table based value set for segment3 which contains all values from 0 to let say 1,000,000 (such that your calculated values falls in the range).
    Try it. It segment3 will now calculate on the basis of values of segment1 & 2.
    Regards
    Ayaz
    Thanks for everyone's input.

Maybe you are looking for