transient vo attribute binding returns null

I have a form with several components of text entry I created by dropping a collection on the page.
now, I want to add more fields that are transient and read-only.
I added two transient attributes in VO with Never Updatable and queryable true, I don't have the logic yet the expression is empty. I created a label using the control button.
now, I have created two links of value to attribute to these new fields.
I created two text entry fields and used these connections to their label, the value properties. I set readonly and disabled the two true for these text entry fields.
If I hard code the label properties, and the value of input text, it works, if I use for them binding expressions, it throws an error saying not found link for transitional fileds or thery returns null.
Should what steps I use to add a transitional field to an editable form.
jdev 11.1.1.5.0

Put the transitional attributes in the underlying OS, refresh the vo and add the attributes of the OT to the vo. Now, they work like any other attribute.

Timo

Tags: Java

Similar Questions

  • ViewObject get attribute always returns null

    Hi guys,.

    I need your help, I'm going crazy.

    I'm just trying to browse a ViewObject as I did a thousand times but despite getEstimatedRowCount return 1 and the Row inside the SENTENCE object is not null, getattribute always returns null, does not care if I call getAttribute (String) or getAttribut (int)

    This is the last code I tested:

    AppMod = (PeopleFinderAppModuleImpl) this.getApplicationModule () PeopleFinderAppModuleImpl;

    PfUserGetInfoImpl pf_Info = (PfUserGetInfoImpl) appMod.getPfUserGetInfo1 ();

    pf_Info.setp_userid (UserID);

    pf_Info.executeQuery ();

    System.out.println ("# view getEstimatedRowCount:" + pf_Info.getEstimatedRowCount ());

    PfUserGetInfoRowImpl r = null;

    RowSetIterator rsIterator = pf_Info.createRowSetIterator (null);

    While (rsIterator.hasNext ()) {}

    r = (PfUserGetInfoRowImpl) rsIterator.next ();

    System.out.println ("# AttributeCount:" + r.getAttributeCount ());

    String [] uploading = r.getAttributeNames ();

    for (int i = 0; i < attrs.length; i ++) {}

    System.out.println (I + "" + uploading [i] + "=" + r.getAttributeValues () [i]);

    }

    }

    rsIterator.closeRowSetIterator ();

    The output is:

    # userid: EPETRANG

    # Discovers getEstimatedRowCount: 1

    # AttributeCount: 13

    0 Userid = null

    1 name = null

    2 Givenname = null

    3 family name = null

    4 title = null

    5 Dn = null

    6 mail = null

    7 company = null

    8 Department = null

    9 Telephonenumber = null

    Mobile 10 = null

    11 Ipphone = null

    Manager of 12 = null

    My Env record:

    Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493

    1.6.0_45 64-bit JVM

    Of course, the query returns 1 row SQLDeveloper and ApplicationModule compressiometre is as well.

    You see something wrong in the code? I tried to delete and re-create the ViewObject without a bit of luck.

    Hi guys,.

    Thanks to you all.

    This morning I just tried to delete and recreate the Weblogic JDev field and now everything works fine. Looks like that integrated weblogic has been screwed

    Thanks again.

  • Need help with ics. SQL return null

    Hi experts WCS.

    I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.

    IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);

    The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).

    I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.

    The code snippet:

      System.out.println("## ics.GetSSVar(\"pubid\")          : " + ics.GetSSVar("pubid"));
    
        // Get Attribute Types
        String sqlATypes = "SELECT DISTINCT assetpublication.assettype "
                         + "FROM assetpublication "
                         + "LEFT JOIN approvedassets "
                         + "    ON assetpublication.assetid = approvedassets.assetid "
                         + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' "
                         + "AND (tstate is null OR tstate <> 'A') "
                         + "AND (voided is null OR voided <> 'T') "
                         + "ORDER BY assettype; ";
        System.out.println("##0126 sqlATypes : " + sqlATypes);
        String from = "AssetPublication, ApprovedAssets";
        // String listName = null;
        String listName = "ATypesList";
        int limit = -1;
        // boolean bCache = true;
        boolean bCache = false;
        StringBuffer errStr = new StringBuffer("");
        ics.ClearErrno();
        IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr);
    
        System.out.println("## rsATypes : " + rsATypes);
        if (rsATypes == null) {
            System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
    

    }

    The journal:

    ## ics.GetSSVar("pubid")          : 1374097570685
    ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets     ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype;
    ## rsATypes : null
    ## NO DATA in rsATypes! errStr :
    


    I got enclosing try catch block, who did not take any exception.


    The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):

            StringBuffer errSB = new StringBuffer("");
            ics.SetVar("assetid", id);
            IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
    

    Any help/ideas from anyone would be really appreciated.

    Thanks Guddu1223, I discovered why.

    The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.

    The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...

  • Debugging inaccessible FacesException:Target, 'bean' returned null

    Hi all

    Jdev: 11.1.1.7.1

    We have a living ADF application that worked very well until installing a recent where a flow is the break with the message "inaccessible FacesException:Target, 'bean' returned null. It works very well in our UAT and our production environment is clustered.

    StackTrace

    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: javax.faces.FacesException, msg=#{pageFlowScope.xyzBean.showCaseDetails}: Target Unreachable, 'xyzBean' returned null
    Supplemental Detail    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:417)
    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:479)
    at com.wellsfargo.common.view.WFExceptionHandler.handleException(WFExceptionHandler.java:57)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1380)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
    .....
    ..
    ## Detail 0 ##
    javax.faces.FacesException: #{pageFlowScope.xyzBean.showCaseDetails}: Target Unreachable, 'xyzBean' returned null
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:280)
    

    Guidance on how to debug what appears not a problem with scope as our UAT works very well.

    We were finally able to reproduce the problem in our local instance.

    Regarding the cause, the view behind the UI object, the research doesn't have the right keys. As a result, selection on the table was selecting two rows on the search results. By clicking on the commandlink, it seems that two events of Action are put in queue and after that the first action event navigates successfully, the second is pulled and fails.

  • Validation of Transient entity attribute information does not

    Hi team.

    I use JDeveloper 11.1.2.4 and struggled with a validation rule 'Simple '.  I have a transient Boolean attribute that contains a validation rule at the level of the attribute of the entity.  It's a warning information, not a mistake.  I also put the autosubmit = true.

    However, it seems that the warnings are swallowed somewhere.  I see them doing evaluated correctly, but no message is presented to the user.  Change the severity of the error, the message is displayed.  In the components business Tester, everything works fine.  If I do the same thing to the view with a transitional attribute level, everything works fine as well.  However, I need the value at the entity level to cross the field validation that cannot be done at the level of the entities.  If I try to have the validation at the entity level and the view, it does not work.

    Thoughts?

    BradW

    OK, here is the solution...

    The problem is how the taskflow was called.  He was called by a parent taskflow which has the scope of data control the isolated value.  Return to Shared, and the warnings without problem.  I believe this to be a Bug in Oracle and have posted something to Oracle for further investigation.  Seems that when the isolated value, we get an anonymous AM created that has no WarningContainer Manager.  So the warnings are not displayed.

    Hope this helps someone else than me.

    BradW

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • iter.getRowSetIterator () .getPixel (key) always returns null

    Hello

    I use jdev 11.1.2.2.

    I'm trying to get the rank of an iterator to view using the key object
                for (int i = 0; i < selectedCategory.size(); i++) {
                        Key key;
                        Object[] keyValues = new Object[2];
                        keyValues[0] = getCurrentAssetCategoryId();
                        keyValues[1] = getSelectedCategory().get(i);
                        key = new Key(keyValues);
                        Row row = iter.getRowSetIterator().getRow(key);// Keeps returning null even though the value is present in the view object
                       row.setAttribute("Attribute", "value");
    No idea why this is happening?

    Thanks in advance,
    Rakesh

    Hi Rakesh,

    Hope this link will help you.

    http://samuris.com/forum/index.php/topic/22-find-row-key-ADF

    Thank you
    Yohanna.

  • JDev 11.1.2.1 bc.getCurrentBindingsEntry () returns null.

    I use the code below to the ADF's seafood favorite shuttle component video training that is available on the web:

    public static list < SelectItem > selectItemsForIterator (String iteratorName,
    String valueAttrName,
    String displayAttrName) {}
    BindingContext, bc is BindingContext.getCurrent ();
    Link = DCBindingContainer
    (DCBindingContainer) bc.getCurrentBindingsEntry ();
    DCIteratorBinding iter = binding.findIteratorBinding (iteratorName);
    The list < SelectItem > selectItems = new ArrayList < SelectItem > ();
    {for (line r: {iter.getAllRowsInRange ())}
    selectItems.add (new SelectItem (r.getAttribute (valueAttrName),
    (((String) r.getAttribute (displayAttrName)));
    }
    selectItems return;
    }

    The call to getCurrentBindingsEntry() returns null.

    Can someone tell me what would cause this function returns null?

    Thank you, Steve

    Hi Steve, I don't know if the problem is related to the scope of the bean, because I use the same method in the beans of pageFlowScope without problem. However, I fell right on the same problem you are facing today. The problem in my case, it was the default activity of my BTF was a method call that attempted to call getCurrentBindingsEntry. I changed the default activity at a glance and then called getCurrentBindingsEntry in the constructor of the bean. This solves the problem. If you have a similar situation?

    Dar.K

  • % ROWCOUNT SQL return null after Forms_DDL on a dynamic SQL

    Hello

    I'm new to PL/SQL coding and is currently working on the development of some application in Oracle Forms as a result of the 10 g developer.

    I'm having a problem getting a number of lines (number of rows affected by the last command dml) to register after using forms_ddl
    PROCEDURE P_SQL_UPDATE IS
    
      L_string1                VARCHAR2(250);
      L_string2                VARCHAR2(250);
      L_string3                VARCHAR2(250);
      L_string4                VARCHAR2(250);
      L_rowcount                Pls_integer;
      L_count                  NUMBER;
      L_alert                       NUMBER;
    
    BEGIN
    
      L_string1 := 'UPDATE ' || :global.G_table_nam || ' SET ';
      L_string2 := NULL;
      L_string3 := ' WHERE ';
      L_string4 := NULL;
    
    ...
    ... building strings 2 and 3
    ...
    
    :global.final_sql := L_string1 || L_string2 || L_string3 || L_string4;
    
      FORMS_DDL(:global.final_sql);
      L_rowcount := SQL%ROWCOUNT;
    
      if FORM_SUCCESS then
        set_alert_property('ALT_COMMIT_ROLLBACK',ALERT_MESSAGE_TEXT, 'The # of rows affected: ' || L_rowcount || CHR(10) || 'Commit or Rollback?');
        L_alert := show_alert('ALT_COMMIT_ROLLBACK');
        if L_alert = ALERT_BUTTON1 then
          commit;
        else
             rollback;
        end if;
      else
        set_alert_property('ALT_INFO',ALERT_MESSAGE_TEXT, 'Error: ' || DBMS_ERROR_CODE  || ' - ' ||DBMS_ERROR_TEXT);
        L_alert := show_alert('ALT_INFO');
      end if;
       
    END;
    I tried to replace the global variable with a string 1 potential SQL hard coded, I changed L_rowcount to digital, attempted to directly display rowcount % SQL via dbms_output.put_line... L_rowcount is just empty during the pop-up alert.

    Another solution has been L_rowcount: = DBMS_SQL. LAST_ROW_COUNT; ... This gives a slightly different result in the alert window, instead of being white, it returns 0. If something is definitely not right. Another is that in doing so, he always returned null/one field blank on the alert popup.

    I have run tests on SQL % number of lines in the editor of TOAD and got results, but during the actual shape that l_rowcount is always null after the execution of the procedure (with the exception of being 0 using the dbms_sql.last_row_count).


    I want to emphasize that change is not introduced without the additional validation in the FORM_SUCCESS at the end... I had read that the Forms_DDL is an implicit validation and committing the SQL without anything else happening... This seemed a little odd as well.

    Before forms_ddl, I tried to use execute, exec, or run immediately on the SQL, but nothing helped. I think of one other option would be to pass this SQL to a datablock again together and use to execute query on this block? Don't know how to go about it.



    The purpose of this form is intended for users to enter values in a generic form and when he meets the validation in the field triggers, they will support on submit and ideally before the update is committed I want users to be notified of the # of lines that would be affected by their proposed... change so if the # is huge they will know that they did something wrong before they affect the entire database.


    Any input would be appreciated,
    Travis

    Travis,
    The built-in function Forms_DDL() emits an implicit VALIDATION because the transaction is issued as DDL no DML. Therefore, given that the VALIDATION is the last command issued by the call of Forms_DDL, the attributes of the cursor of the implicit cursor (SQL) will all be set to NULL. If you absolutely must have the number of LINES of the documents concerned, you can create a database program unit that you can spend your dynamic statement too and have it return zero (failure) or the number of affected records (success).

    In addition, since Forms_DDL() emits an implicit VALIDATION, you must create a BACKUP point before calling Forms_DDL() If you want the ability to RESTORE any changes made in the call to Forms_DDL().

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere July 26, 2011 09:29

  • Goal unattainable '&lt; beanInstanceName &gt;' returned Null

    Hi all
    I attend ADF of Oracle University training. Today is the last day of training. I'm having some problem with running a simple application and could not get the right answer for the sub question.

    Created a Fusion WebApplication 'Test' with model and ViewController project.
    Created a ManagedBean "TestBean", Taskflow 'TestFlow', page Jsff in taskflow 'TestJsff' and a 'TestJspx '.
    Recorded the TestBean with Taskflow in the request scope.
    Created a property String name = 'Ram' in Bean managed with the accessor of the property.
    Created an outputText component the TestJsff and set the value property to "#{requestScope.TestBean.name}".
    Dragged the TestJsff Taskflow and TestFlow to TestJspx.
    Running the page TestJspx and I see the mistake 'Inaccessible TestBean Target returned null.'

    I don't know what to do?

    Thanks in advance...

    Rajdeep

    It is a common mistake with EL.
    The problem is that #{requestScope.Beanname.attribute} refers to only the objects (beans) in memory, but do not create them when they aren't there. So you get a NPE if you are referring to a bean the first time (when it is not instantiated already). This is true for all scopes in JSF (request, session and application).
    Other scopes added by the life cycle of ADFrc (view, pageflow and backingbean) behave different due to the extended ADFrc controller. The controller looking for these special glasses and manages (for example to create them the object if it is not there).

    Frank Nimphius recorded a screen expressed about common mistakes using ADF. If you want, you can watch it here:
    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.html

    Timo

  • Get.get ('XML') returns Null

    I use AJAX in my program to recover the city and the State of the ZIP Code entered. It used to work now it isn't and I don't know why. I have not changed at all the javascript or the application process. During the decoding of the javascript, I discovered that get.get('XML') returns NULL.

    The javascript is as follows:
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_multi_value(pValue){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
        'APPLICATION_PROCESS=SET_CITY_STATE',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    }    
    gReturn = get.get('XML');
    alert('gReturn'+gReturn);
      if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    }
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }
    else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    }
    }
    }
    }
    get = null;
    }

    //-->
    </script>
    The on-demand process is as follows:
    DECLARE
    v_county VARCHAR2 (25);
    v_city VARCHAR2 (25);
    v_state VARCHAR2 (2);
    v_zip varchar2 (5);
    CURSOR cur_c
    IS
    SELECT the County, city, State, zip
    OF ZIP
    WHERE zip = v ("TEMPORARY_APPLICATION_ITEM");
    BEGIN
    HTP.p (: TEMPORARY_APPLICATION_ITEM);
    C BY cur_c
    LOOP
    v_city: = c.city;
    v_state: = c.state;
    v_zip: = c.zip;
    v_county: = c.county;
    END LOOP;
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") v_city | ("< / item >");
    -HTP.prn ("< option id ="P2_CO_STATE"value ="' | c.state |) '">' || c.State | ("< / option >");
    HTP.prn ("< item id ="P2_CO_STATE"> ' |") v_state | ("< / item >");
    HTP.prn ("< item id ="P2_COUNTY"> ' |") v_county | ("< / item >");
    HTP.prn ("< item id ="P2_CO_ZIP"> ' |") v_zip | ("< / item >");
    HTP.prn ("< / body >");
    EXCEPTION
    WHILE OTHERS
    THEN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") SQLERRM | ("< / item >");
    HTP.prn ("< / body >");

    END;
    The javascript is run when someone tabs out of P2_CO_ZIP_LOOKUP. The HTML Form Element Attributes is:
    onChange = "pull_multi_value (this.value); »
    I ran the SQL statement from the On-Demand Process (ODP) in SQL Workshop and it worked fine.
    
    It doesn't work using FF or IE7 at my company but iIt works fine on APEX.ORACLE.COM. I tried using Firefox but could not find the cause of the problem.
    
    Login Credentials:
    Workspace:  RGWORK
    Application:  Online Certification Application Prototype (21405)     
    User:           tester
    Password:    test123
    Page     :     2 (Name and Address)
    
    Can someone help me?
    
    Thanks,
    Robert
    http:\\apexjscss.blogspot.com
    
    Edited by: sect55 on Mar 24, 2010 9:52 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Hello:

    The AJAX call that happens from a public page? If so replace the '0' in the instantiation of the 'htmldb_Get' $v ('pFlowStepId').

    CITY

  • getAttribute() method of a view object returns NULL

    Hello
    I am currently implementing PPR in one of my OFA page and I took the following approach.

    I stated the Boolean attribute transitional follwing in the VO() outside of the existing attribute 'sense '.
    1 MfgEnttity
    2 MfgAcct
    3 MfgSubAcct
    4 MfgCc
    5 MfgProj

    In the page I used these attributes in the property made in the form "${oa." XXR2RMfgproSegVO.MfgSubAcct}' like that.

    Now, in the central, I wrote the following code.

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    am.invokeMethod ("initializeXXR2RMfgproSegVO");
    }
    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);

    Event string = pageContext.getParameter (EVENT_PARAM);
    Source of the string = pageContext.getParameter (SOURCE_PARAM);
    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
    am.invokeMethod ("handleSegmentChangeEvent");
    }
    }


    And the AM code is as follows:

    Public Sub initializeXXR2RMfgproSegVO()
    {
    OAViewObject vo = getXXR2RMfgproSegVO();
    If (!) VO.isPreparedForExecution ())
    vo.executeQuery ();
    Line = vo.createRow ();
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    }

    Public Sub handleSegmentChangeEvent()
    {
    PVO OAViewObject = (OAViewObject) findViewObject ("XXR2RMfgproSegVO");
    OARow hdrRow = (OARow) pVO.getCurrentRow ();
    String status = (String) hdrRow.getAttribute ("Meaning").
    System.out.println ("poRow" + hdrRow.toString ());
    System.out.println ("value of the State is" + status);
    If ("Entity". Equals (Status))
    {
    hdrRow.setAttribute ("MfgEnttity", Boolean.TRUE);
    hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
    hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
    } else
    If ("Account". Equals (Status))
    {
    hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
    hdrRow.setAttribute ("MfgAcct", Boolean.TRUE);
    hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
    hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
    } else
    If ("Subaccount". Equals (Status))
    {
    hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
    hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgSubAcct", Boolean.TRUE);
    hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
    hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
    } else
    If ("cost Center".equals (status))
    {
    hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
    hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgCc", Boolean.TRUE);
    hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
    } else
    If ('Project'. Equals (Status))
    {
    hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
    hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
    hdrRow.setAttribute ("MfgProj", Boolean.TRUE);
    }
    on the other
    {
    hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
    hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
    hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
    hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
    }
    }
    }

    Now when I change in the value of the attribute "Meaning" page that he can always get into the else part, which is where all the attributes are 'False'.

    The two System.out.Println statements return the following values.

    03/10/22 15:41:08 poRow xxr2r.oracle.apps.gl.coam.poplist.server.XXR2RMfgproSegVORowImpl@3
    03/10/22 15:41:08 state value is null

    Can you please why this 'status' returns NULL and how I can get the current selected line in the page?

    Thank you
    Lucile

    Hello

    you set the attributes of PVO, based on a condition, your old code is just the question is from where you can get the status, you may get this page, but you must pass this value to AM.

    thanx
    Pratap

  • Inaccessible, the "myPage" target returned null

    Hi all
    I use Jdeveloper 11.1.1.0
    I have a page in adfc-config, and when I run my application I have this error:
    Cause first of ServletException.
    javax.el.PropertyNotFoundException: inaccessible target, 'myPage' returned null
    at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
    at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
    at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

    What is the problem?

    Thank you

    Andrea

    Andrea,
    We cannot say without any knowledge on your page.
    All I see is that you are referencing a myPage property somewhere in your page that is not present in every bean or binding.
    Search for my page and check if the bean is present.

    Timo

  • ConnectionFactory.getConnection () returns null.

    ConnectionFactory connFact = new ConnectionFactory();
            ConnectionDescriptor connDesc = null;
            connDesc = connFact.getConnection(----here goes my url String----);
    

    Hi all

    In the code posted above, number In Line 3, reason for which the null value is returned by the statement "connFact.getConnection (- this is my String url-);"   and he is assigned to the variable 'connDesc '.  Although I was able to login successfully before 2 to 3 hours. but it is now return null...

    Could you please help me?

    Best regards,

    Hi Sir,

    After going through the link provided by you (and a few other sup on internet links), I was able to resolve the issue for now... I write the code for other users help here...

    Thank you for your support...

    Best regards.

    // make a list of transport types ordered according to preference (they will be tried in succession)
    int[] preferredTransportTypes = {TransportInfo.TRANSPORT_MDS, TransportInfo.TRANSPORT_WAP2};
    
    // Create ConnectionFactory
    ConnectionFactory factory = new ConnectionFactory();
    
    // Configure the factory
    factory.setPreferredTransportTypes( preferredTransportTypes );
    
    // use the factory to get a connection
    ConnectionDescriptor conDescriptor = factory.getConnection("http://www.blackberry.com");
    
    if ( conDescriptor != null ) {
    
       // connection suceeded
       int transportUsed = conDescriptor.getTransportDescriptor().getTransportType();
    
       // using the connection
       HttpConnection  httpCon = (HttpConnection) conDescriptor.getConnection();
       ...
    }
    
  • PersistentObject.getContents () returns null after app update

    Hello

    I'm trying to track down a bug with PersistentStore.
    Usually when I update the app I get the getContents() stored content.
    However, something in the code has changed from one version to the other and now getContents() returns null.

    I made sure the id has never changed for PersistentStore.getPersistentObject (id);
    I made sure that we use the same basic sdk (4.3.0)
    I made sure that there are the data stored in the stored hash table

    Currently, it's a hash table - no subclass (even though I know that I should change it to a subclass when it's fixed);

    I wonder if there are any suggestions on what might cause the getContents() return null - or which could result in the PersistentStore have cleared.

    What information is needed, please let me know and I'll paste.

    I found the problem after.

    Classes have begun to obscure differently. If the hash table was still readable, but because he could not read the content of the hash table, he would return null.

    It was unexpected, because if you have a custom class persisted and you try to read it, you will get the content, but you can't cast. But with the hash table, it does not return the content (uncastable) and it throws no exceptions...

    I hope this helps someone else who has a similar problem.

Maybe you are looking for