0 Replies Latest reply on Jul 18, 2019 3:45 AM by user8608279

    How to assign a value from OASwitcherBean?

    user8608279

      I am extending a controller where I need to assign a value to a LOV field which is within another region stacklayout.  Here is my code.  I am getting a null for the LOV field.  Can anyone please help what I am missing. 

       

       

      oaPageContext.writeDiagnostics(this," Log in OIEPageCO inside lprjid and lprjnum is not nulll" ,OAFwkConstants.STATEMENT) ;

      oaPageContext.writeDiagnostics(this," Log in OIEPageCO- Start of assigning project values",OAFwkConstants.STATEMENT) ;

      OAStackLayoutBean projstacklayout=(OAStackLayoutBean)oaWebBean.findIndexedChildRecursive("ProjectLayout");

      oaPageContext.writeDiagnostics(this," Log in OIEPageCO- projstacklayout1-1 is - "+projstacklayout,OAFwkConstants.STATEMENT) ;

      if (projstacklayout != null) {

       

      OASwitcherBean projswitcher1=(OASwitcherBean)projstacklayout.findIndexedChildRecursive("ProjectSwitcher");

      oaPageContext.writeDiagnostics(this," Log in OIEPageCO- projswitcher1-1 is - "+projswitcher1,OAFwkConstants.STATEMENT) ;

       

      if (projswitcher1 != null){

      OAStackLayoutBean projstacklayout2=(OAStackLayoutBean)projswitcher1.findIndexedChildRecursive("Updateable");

      oaPageContext.writeDiagnostics(this," Log in OIEPageCO- projstacklayout2-1 is - "+projstacklayout2,OAFwkConstants.STATEMENT) ;

       

                             if (projstacklayout2 != null){

      OAMessageLovInputBean projnumlov2=(OAMessageLovInputBean)projstacklayout2.findIndexedChildRecursive("ProjectNumber");

      oaPageContext.writeDiagnostics(this," Log in OIEPageCO- projnumlov2 is - "+projnumlov2,OAFwkConstants.STATEMENT) ;

       

       

       

      <oa:stackLayout version="9.0.3.8.12_1330" xml:lang="en-US" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:jrad="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:user="http://xmlns.oracle.com/jrad/user"

      xmlns="http://xmlns.oracle.com/jrad" file-version="$Header: ProjectLayoutRN.xml 120.2 2007/05/04 11:47:03 rveliche ship $">

         <ui:contents>

            <oa:switcher id="ProjectSwitcher" viewAttr="RenderProject">

               <ui:case name="Updateable">

      <oa:stackLayout id="Updateable">

      <ui:contents>

      <oa:messageLovInput id="ProjectNumber" externalListOfValues="/oracle/apps/ap/oie/webui/OIEPROJECTLOV" readOnly="false" columns="15" prompt="Project Number" viewAttr="ProjectNumber" maximumLength="80"

      user:akAttributeCode="FND_PROJECT_NUMBER" user:akAttributeApplicationId="0" unvalidated="false" dataType="VARCHAR2">

      <lovMappings>

      <lovMap id="lovMap1" requiredForLOV="false" criteriaFrom="ProjectNumber" lovItem="ProjectNum"/>

      <lovMap id="lovMap2" lovItem="ProjectNum" resultTo="ProjectNumber"/>

      <lovMap id="lovMap73" lovItem="ProjectId" resultTo="ProjectId"/>

      <lovMap id="lovMap77" lovItem="ProjectName" resultTo="ProjectName"/>

      <lovMap id="lovMap78" lovItem="ProjectName" resultTo="ProjectNameFormValue"/>

      <lovMap id="lovMap79" lovItem="ProjectId" resultTo="TaskProjectId"/>

      </lovMappings>

      </oa:messageLovInput>

      </ui:contents>

      </oa:stackLayout>

      </ui:case>