Adding a new of style Flex in a OAF Page

Hi,
I am facing an issue while creating a new item of style flex in a OAF page.I am able to add the flex by extending the controller but its displaying twice in the page means at the region level as well as in Page level
If i comment the line-->oawebbean.addIndexedChild(GivBean); then its not displaying anywhere in the page
Here is the code that i am using
public class Class2 extends ByrAddrCO {
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
OAMessageComponentLayoutBean msgCompLayout = (OAMessageComponentLayoutBean)oawebbean.findChildRecursive("Addr411RN");
if(msgCompLayout != null)
OAMessageLayoutBean GivBean = (OAMessageLayoutBean)createWebBean(oapagecontext,MESSAGE_LAYOUT_BEAN, null, "DFFMSG");
GivBean.setRendered(true);
OADescriptiveFlexBean GivFlex = (OADescriptiveFlexBean)createWebBean(oapagecontext,DESCRIPTIVE_FLEX_BEAN,null,"DescFF");
GivFlex.setContextListRendered(false);
GivFlex.setAttributeValue(OAWebBeanConstants.VIEW_USAGE_NAME,"SitesVO");
GivFlex.setAttributeValue(OAWebBeanConstants.FLEXFIELD_APPLICATION_SHORT_NAME, "SQLAP");
GivFlex.setAttributeValue(OAWebBeanConstants.REGION_APPLICATION_ID,new Integer(0));
GivFlex.setAttributeValue(OAWebBeanConstants.FLEXFIELD_NAME, "Site Address");
GivFlex.setAttributeValue(OAWebBeanConstants.PROMPT_ATTR,"GIV Intransit Reporting");
GivBean.addIndexedChild(GivFlex);
GivFlex.setRendered(true);
msgCompLayout.addIndexedChild(GivBean);
oawebbean.addIndexedChild(GivBean);
Please provide the inputs how can i able to display the flex only at the region level.
Thanks in Advance!
Edited by: surendra on Mar 20, 2012 5:08 AM

Thanks for your response!
Yes..adding twice in the page
But if we comment msgCompLayout.addIndexedChild(GivBean); and uncomment oawebbean.addIndexedChild(GivBean);-->then its adding at the end of the page this is fine
and if i comment oawebbean.addIndexedChild(GivBean); and uncomment msgCompLayout.addIndexedChild(GivBean); -->then its not displaying any flex in the region level as well as in the page level
Is any statement i have missed out here please suggest.
Thanks in Advance!

Similar Messages

  • ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.

    Dear friends,
    Please help me with this scenario.Thanks so much for your help.
    Task: ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.
    Need to create a new item on this page called "approver notes" (column notes).
    Can this be achieved by personalization?
    Scenario:
    On credit request details page disputed invoice number, request date, status, bill to, ship to, etc are displayed.
    When the status is "not approved”, item should be displayed along the "rejected" comment.
    If the status is other than "not approved" then the item should not be displayed.

    what page is this ? are you sure it is a OAF page ?
    If it is a OAF page, you would need to extend the controller to fire a partial action for the item and then control the display property of the comments field
    Tapash

  • Unable to place a value in Flex Field in OAF page

    Hi all,
    I am unable to place this flex value in the flex field, but i can do this same thing in a normal "Text Field" am able to reterive that number and place in that text field .
    Problem is placing the same in Flex field , please suggest me how to do this .
    I have one Function Standard one that i am calling here and making use of that i can call that function and am able to get that value and place in a "Text Field" but the same thing i couldn't place in the "Flex Field" how to do this any idea am thank full to them. Its a very urgent issue i have to solve this.
    MY Controller Code:
    OAKeyFlexBean revenue = null;
    String s8 = pageContext.getParameter("Purpose");
    revenue = (OAKeyFlexBean)webBean.findIndexedChildRecursive("reveFF"); ------------------- this is the Flex Field where i have to place the output
    revenue.useCodeCombinationLOV(true);
    if(s8.equalsIgnoreCase("BILL_TO")) {
    try {
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setInt(1, orgid);
    ResultSet resultset = stmt.executeQuery();
    if(resultset.next()) {
    String revenuenum = resultset.getString(1);
    revenue.mergeSegmentsWithParent(pageContext);
    revenue.setStructureCode( ); ---------------------- What i have to give here
    revenue.setCCIDAttributeName("GlIdRev"); ---------------------- Attribute Name
    revenue.useCodeCombinationLOV(false);
    revenue.setAttributeValue(FLEXFIELD_SEGMENT_LIST, revenuenum); ------------- How to use this FLEXFIELD_SEGMENT_LIST (unable to retrieve anything)
    revenue.setText(revenuenum);
    } catch(SQLException se) {
    se.printStackTrace();
    throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
    Standard function i have:
    create or replace FUNCTION SDS_CUST_BILL_INFO(P_ORG_ID IN NUMBER,P_ACC_TYPE IN NUMBER) RETURN VARCHAR2
    AS
    *- Purpose: This PL/Sql program that will return GL_ID_RECEIVING_ACCOUNT or GL_ID_REVENUE_ACCOUNT
    *- information for new Customer BIll_TO site
    V_ACCOUNT VARCHAR2(2000);
    BEGIN
    BEGIN
    SELECT TRUNC(SEGMENT1)||'-'||TRUNC(SEGMENT2)||'-'||SEGMENT3||'-'||TRUNC(SEGMENT4)||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7
    INTO V_ACCOUNT
    FROM GL_CODE_COMBINATIONS GCC
    ,HR_ORGANIZATION_UNITS HOU
    ,RA_CUST_TRX_TYPES_ALL RCTA
    WHERE HOU.ORGANIZATION_ID = RCTA.ORG_ID
    AND HOU.ORGANIZATION_ID = P_ORG_ID
    AND GCC.CODE_COMBINATION_ID = DECODE(P_ACC_TYPE,1,RCTA.GL_ID_REC,2,RCTA.GL_ID_REV)
    AND UPPER(RCTA.NAME) = 'INVOICE'
    AND HOU.ATTRIBUTE3 = 'Y';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    V_ACCOUNT := NULL;
    WHEN OTHERS THEN
    V_ACCOUNT := NULL;
    END;
    RETURN(V_ACCOUNT);
    END;

    Hi parag,
    You mean to say i have to write like this :--
    if (pageContext.getParameter("apply")!=null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject accountsViewObject =
    (OAViewObject)am.findViewObject("ArBusPurAllVO");
    if (accountsViewObject!=null)
    OARow row = (OARow) accountsViewObject.getCurrentRow();
    if (row.getAttribute("GlIdRev") == null || row.getAttribute("GlIdRev").equals(""))
    //call your function here and say row.setaatribbute= revenue_acct_id from your function.
    if(s8.equalsIgnoreCase("BILL_TO")) {
    try {
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setInt(1, orgid);
    ResultSet resultset = stmt.executeQuery();
    if(resultset.next()) {
    String revenuenum = resultset.getString(1);
    row.setaatribbute(revenuenum) ;
    } catch(SQLException se) {
    se.printStackTrace();
    throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
    if (row.getAttribute("GlIdRec") == null || row.getAttribute("GlIdRec").equals(""))
    //call your function here and say row.setaatribbute=rec_acct_id from your function.
    if(s8.equalsIgnoreCase("BILL_TO")) {
    try {
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setInt(1, orgid);
    ResultSet resultset = stmt.executeQuery();
    if(resultset.next()) {
    String receivablenum = resultset.getString(1);
    row.setaatribbute(receivablenum) ;
    } catch(SQLException se) {
    se.printStackTrace();
    throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
    super.processFormRequest(pageContext, webBean);
    Am I, correct parag please tell me, if this works i will send u mail again that it is working fine .
    my mail id is [email protected]

  • Problem with adding a second Categories field to my Enterprise Wiki Page template

    I wanted to add a second category field beside the default wiki category. So I did the following steps:-
    Inside my enterprise wiki site collection, I added a new Site Column, named “customer” with a managed metadata type.
    Then I added the site column to the “Enterprise Wiki Page” content type.
    After that using the SharePoint Designer , I added the new “Customer ” column to my EnterpriseWiki.aspx page layout.
    The result was that I got a new category field , but I am facing these two problems:-
    When selecting items for the new metadata column, the items are not clickable, unlike the default Wiki Category field, which allow users to click on the terms , as follow:-
    The new category column was not displayed inside the Tree View , same as for the default Wiki category, as follow:-
    So can anyone advice how I can solve these two problems ? Thanks

    The Visio Web Part displays Visio diagrams that are located in SharePoint.  Once you log out it won't have access to your desktop anymore.  Instead you should upload the Visio document to a SharePoint library and then reference it from
    there.  It would be nice if it was integrated into a single process, but I suspect its not something MS thought enough people would do to spend the time writing the extra code to integrate it.  So at least for now its a two step process.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    so to add a visio diagram , we need to do the following:-
    1. upload the visio to SP.
    2. add a web part.
    3. Browse for the Visio drawing.
    by defualt there is no way to directly upload a new Visio diagram...

  • Error encountered when Adding an Item style Flex in Search criteria

    Hi All,
    I am trying to add an Item style Flex in the Searchable region(search criteria region) ,then I have encountered an error saying
    Program error. Please inform your support representative that the descriptive flexfield in the application could not be found.
    Thanks
    AK

    Can I use the DFF which exists in different Responsibility,caz i am using the DFF which exists in Oreder Management and i am adding the DFF in Sales Contracts Workbench User Responsibility.
    Thnaks
    AK

  • Adding new "Paragraph Styles"

    Hi,
    I am trying to modify different text styles in different cells in Numbers 3.5.2 (Yosemite) and I cannot figure out how add a new Paragraph Style to the existing drop-down styles list. Is there a duplicate existing style or add a new style option in this Numbers version? The "+" next to "Paragraph Styles" in the drop-down list does not work in Numbers but works in Pages or Keynote, is this a bug?
    Thanks for the help!

    I found the answer and posting it in case others have the same issue.
    A text inside the cell has to be selected for the "+" sign to be activated, just selecting an empty cell alone does not activate the "+" sign.

  • Need help with adding a Key flex field to a seeded OAF page

    We have a seeded OAF page on which we already have Account Key Flex Field.
    Properties of this flex field are:
    The ApplShortName - SQLGL
    Name - GL#
    Type - Key
    As per the client requirement, in the KFF screen, we have disabled the seeded structure for Accounting Flexfield and created a custom structure.
    Our custom structure for the KFF is displayed correctly on the OAF page.
    But now the requirement is to add a new KFF on the OAF page which is duplicate of the existing KFF, along with the existing KFF field; the structure and segments are same. Only difference being the display name of the existing KFF field is Account; the new one needs to be Tax structure.
    Using personalization we added a new flex item and added the properties same as the existing KFF.
    ApplShortName - SQLGL
    Name - GL#
    Type - Key
    But the page is giving following error:
    The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: KeyFlexfieldDefinitionFactory.getStructureNumber could not find the structure definition for the flexfield specified by Application = SQLGL, Code = GL# and Structure number =
    We tried options like compiling the flexfield definition, but the error persists.
    Any help in this regard is highly appreciated.
    Regards,
    Kiranmayi.

    Hi,
    Please check whether your key flex structure is frozen or not. If now please freeze it and re compile and try.
    This may helps too
    error while developing KFF in oaf
    Thanks
    Bharat
    Edited by: Bharat on May 10, 2013 4:51 AM

  • How to create new character styles in Numbers 3.0

    In Numbers 3.0, it is possible to update existing characters styles, but I cannot find how to create a new character style, the + sign in the popup is always inactive when I edit text in a cell. The paragraph style popup has an active +, but it doesn't work for character style.
    Is there any way to create a new character style?

    Guillame,
    You're right about not being able to add styles, and I have not figured out how to modify a predefined character style, other than to Rename or Delete a predefined style. I have added this to my list of things lost.
    Jerry

  • [svn] 3501: Adding the new CallResponder component.

    Revision: 3501
    Author: [email protected]
    Date: 2008-10-06 17:42:26 -0700 (Mon, 06 Oct 2008)
    Log Message:
    Adding the new CallResponder component. This is best used from MXML to implement
    a specific invocation of a specific RPC service operation. It separates the use of the
    RPC operation from its definition.
    QE: New class (and MXML component)
    Docs: Yes - see the asdoc for info.
    Checkintests: pass
    Reviewer: Pete, Seth, Ed, Sameer
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/manifest.xml
    Added Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as

    Did you import the 3 required SC:
    SAP-JEE,
    SAP_BUILD
    SAP_JTECHS
    the DC: sap.com/tc/ddic/metamodel/content is part of SC SAP_JTECHS
    You can brouse all imported DCs from CBS
    SAPs should be 161. The one you are looking for is N:31 in the SAP_JTECHS
    If you have problem with the local bild, than you havn't checked out all DC to your NWDS.
    Regards, Angel

  • [svn] 3891: Adding a DataGroup and Group Flex Explorer example for Steve S.

    Revision: 3891
    Author: [email protected]
    Date: 2008-10-24 16:32:40 -0700 (Fri, 24 Oct 2008)
    Log Message:
    Adding a DataGroup and Group Flex Explorer example for Steve S.
    Linked these examples to the ASDoc.
    Modified Paths:
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/DataGroup.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/branches/gumbo_alpha/samples/explorer/explorer.xml
    Added Paths:
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/asdoc/en_US/mx/components/example s/DataGroupExample.mxml
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/asdoc/en_US/mx/components/example s/GroupExample.mxml

    Is this the webpage you're referring to: http://www.ngeneng.com/services/default.html
    If so, consider using <h2> <h3> <h4> tags for headings and use <p> only for paragraphs.
    Something like this:
    <h2>Services</h2>
                <h4>
                Watershed Planning and water rights</h4>
                <p>
                NextGen staff have worked on watershed assessments and management
                plans from data collection to reporting and implementing
                recommendations, as watermaster staff in adjudicated basins (San
                Gabriel River, and Central Basin), and participated in the court
                process to determine water rights (Santa Maria groundwater rights).
                This understanding can be helpful in any water conflict negotiation
                or planning process.</p>
                <h4>Creek Restoration, Levees, Embankments and
                Bio-Engineering</h4>
                <p>
                Planning and design of creek restoration and flood protection
                facilities including river embankments, open channels, underground conduits, levees, debris and
                detention basins, use of bio engineering methods to retain and
                enhance environmental values of project sites. Designs include use
                of spurs, dikes, large wood debris (LWD),
                vegetation and natural
                materials.</p>
    Your markup has lot of redundant spaces in form of   tags. Clean your markup first. Then style the page with CSS.
    Define your CSS properly and call them as classes or IDs within your html constructs. Do not ever use inline styling.

  • [svn:fx-trunk] 11919: TLF has added a new 'illegalOperation' error message, so I've added it to Spark's textLayout.properties for localization.

    Revision: 11919
    Revision: 11919
    Author:   [email protected]
    Date:     2009-11-17 17:01:16 -0800 (Tue, 17 Nov 2009)
    Log Message:
    TLF has added a new 'illegalOperation' error message, so I've added it to Spark's textLayout.properties for localization.
    I also changed the // comments to # as requested by Jeff R.
    I updated only the en_US file; the localization system should update the other locales.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: Carol
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/textLayout.properties

    Thats good news.

  • Error while adding a new col with check constriant

    Hello
    I tried adding a new column with check constraint but giving the error please correct me..
    drop table testchk
    create table testchk(typenm varchar2(5))
    insert into testchk values('mon')
    alter table testchk add typechk varchar2(5) default 'both' constraint chk_test check(typechk in('m','d') and typechk is not null)For the alter comman getting the ORA-02293 cannot validate error..
    I dont want to create any other constriant like not null etc .. but need only one check constriant
    Thanks

    You cannot assign a default value = 'both' while the constraint allows only 'm' or 'd'.
    This will work:
    ALTER TABLE testchk ADD typechk VARCHAR2(5) DEFAULT 'both'
    CONSTRAINT chk_test CHECK(typechk IN('m','d', 'both') AND typechk IS NOT NULL);Edited by: kordirko on 2010-05-14 18:41

  • Error while adding a new method to the Session Bean

    Hello everyone. I'm using jdev 11g, ejb, jpa & jsf. Everything works fine. But when I try to add a custom method to the Session Bean, I'm having an error.
    Here is my steps:
    1) I added a new method to SessionBean.java. Something like this:
    public void Hello() {
    System.out.println("Hello!");
    2) Then using Structure palette I exposed this method through Local interface and created data control
    3) Finally, I made a command button binded to this method (just droped it from DataControls.dcx to my page)
    When I start the page and click the button, I'm having the following error:
    Error 500--Internal Server Error
    javax.faces.el.EvaluationException: Method not found: Hello.execute(javax.faces.event.ActionEvent)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    ... (I've truncated the log because there is nothing important in the missing part)

    Yes, I have binding in the page def. Everything is correct there:
    <methodAction id="Hello" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="Hello" IsViewObjectMethod="false"
    DataControl="PriceServiceLocal"
    InstanceName="PriceServiceLocal.dataProvider"/>
    I've droped the method from the Data Controls panel

  • Error while adding a new field to the Segment in we31

    Hi ,
    I am getting error when i am trying to add the new field to the cust. segment.
    It is released for the adding the new fields i am cancelling the release , but i got a message like this
    Error while resetting release of segment 'segment name'.
    it is comming from the message class EA and message number 259.
    Thanks in advance.
    Reagrds,
    bharani

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    You can try the steps recommended here: http://www.apple.com/support/ipad/assistant/itunes/

Maybe you are looking for

  • "Itunes cannot connect to the internet" message is doing my nut

    When I try and update 3GS, i get an error message claiming that Itunes cannot contact the Iphone software update server because there is no internet connection. Rubbish. I'm talking to you via internet arent I. Have tried altering LAN settings. Any h

  • Avoid explicit closing tag in XML using graphical mapping

    Hi, I created a data type with an element called TAG1 which has an attribute called attr. I mapped an empty constant to the element and the value XXX to the attribute.  I`m using graphical mapping and the XML I get is the following: <TAG1 attr = u201

  • 'processing file' for downloaded items.

    I have been trying to download a TV show for a couple of days now and all it keeps saying is 'processing file'. Why isn't it downloading completely?

  • Basic Panel Keyboard Shortcut No Longer Works

    For some reason when I try to use the keyboard shortcut (command 1) to return to the basic panel it no longer works. Any ideas?

  • Multiuser pulseaudio issues

    I've been having some troubles getting pulseaudio to work in a multiuser environment.  Well, it only works for on user at a time.  This is the situation. On my laptop, as long as only one user is logged in, pulseaudio plays audio fine, as soon as a s