Transient attribute of a view object is not reset after saving

I have a jspx page based on view object with transient attribute(This transient attribute has been created in entity object on which view object is based). User enters data in transient attribute,some calculation is done and then data is updated and page navigates back to menu page.
Now when I reenter page then old data still apears on the page.I want old data to be refreshed on reentering.Kindy help

Hi,
you can try the follwing
In the bindings of your jspx page you can see iterators defined under "executables". set the "*CacheResults*" property of the specific view object iterator that contains the transient attribute to false.(The default value is true).
Example:
<iterator Binds="EditWorkflowNodesView1" RangeSize="25"
DataControl="AdministratorAppModuleDataControl"
id="EditWorkflowNodesView1Iterator" CacheResults="false"/>
Regards,
Priya.

Similar Messages

  • How to make Transient Attribute Mandatory in View Object?

    Hi ,
    I have a Transient Attribute 'TransientFromCode' which is based on LOV .On UI ,I am showing this 'TransientFromCode' as 'SelectOneChoice' .
    So on selection of this i am populating other mandatory attributes.
    My requirement is to show this as 'Required' on UI but in View Object i am not able to find mandatory property for this attribute.
    I dont want to use required='true' . So can you plesae tell me is there any way to make Transient attibute as mandatory on UI .
    Thanks

    940637 - Your Use Case is a little vague\confusing.
    If you are just trying to get the standard "Required" architecture, it probably isn't working because you have incorrect syntax. It is #{bindings.MyViewObj.MyAttr.hints.mandatory}
    Yours: "#{bindings.UnitOfMeasureIntraClassConversion.hints.TransientItemDesc.mandatory}"
    It will "dynamically" pick this up at Runtime from the ViewObject Attributes "Mandatory" property (Attributes\Details tab), BUT the EL will always evaluate to "true" so this is the same functionally as just hard coding the UI component's Required property to "true" (although doing so is against Best Practices)
    If you are just wanting to SHOW the field as required without the standard Validation logic (because you are coding your own), you could:
    1) JUST set the UI component's "ShowRequired" property = true. This displays the * next to the Label (regardless of actual View Object Attr setting) but fires no validation.
    2) If you want to not show * but some custom standard, you could just create ANOTHER transient Attribute in the View Object and call it "TransientItemDescRequired" and set it to a Literal "y" or leave it blank and programmatically set it later... You can code your own validator\method\whatever against it, etc
    Edited by: donhoyt on Jul 5, 2012 7:58 AM

  • Transient attribute for a view object coming from a socket

    Hello,
    I'd like to create a readonly table (based on a view object without a backing entity).
    Some columns are coming from a table and some other columns (based on the table key) are coming from a socket.
    The problems is that the additional columns are all returned at once by the socket (to avoid calling it for every field and killing our network) and then stored in a java bean.
    So i'd like to make the call to the socket once for every row of the table.
    Do you know in which method of the View object should i make the call (maybe I should do this at the Row level ?)
    Do you have any idea ?
    thank you
    -regards.

    Hi,
    you can try the follwing
    In the bindings of your jspx page you can see iterators defined under "executables". set the "*CacheResults*" property of the specific view object iterator that contains the transient attribute to false.(The default value is true).
    Example:
    <iterator Binds="EditWorkflowNodesView1" RangeSize="25"
    DataControl="AdministratorAppModuleDataControl"
    id="EditWorkflowNodesView1Iterator" CacheResults="false"/>
    Regards,
    Priya.

  • Use view object as table in attribute expression of view object

    Hi. I have a view object for which I need to add some transient attributes associated to a SQL expression which works good. But when I need to define an attribute expression associated to a view object expression, not table, the framework doesn't recognize it. It is, when I want to use an expression like this:
    select attribute from MyViewObject where id=EntityObject.id
    I know I can call EntityObject.id but not use the view object MyViewObject as a table. Is it possible? Is there a way to do something like this? Greetings.

    Hi Timo. The use case consist of having a VO with static values and there is another VO that references as foregin key the previous VO, something like:
    VO1: Statuses of Vendor
    VO2: Vendor detail with attributes including the status
    In af:table component I want to show vendor info showing the status name and not the id of the status. I thought there was something like hibernate in which I could query the VO as a table. Greetings.

  • Programatically add / Rmove Attributes to a View Object

    I have a View Object with 2 attributes created at design time. I need to add more attributes to it at runtime based on some information I get. Is there a way to add/remove Attributes of the View Object programatically at runtime ?
    Any help is appreciated.

    add following method in your GridViewImpl class
    public void setDynamicColumns()
    for (int i=0;i<5;i++)
    this.addDynamicAttribute("Dynamic" + i);
    write this method in your moduleImpl
    protected void afterConnect()
    super.afterConnect();
    this.getYourGridView().setDynamicColumns();
    run your app
    Hope that helps
    Suvarna.

  • Changing Runtime View Object Settings Before and After Using Them

    Hi,
    I'm doing some VO coding at the moment and reading around the subject to get an idea of best practices.
    I stumbled across 2 blogs that are slightly contradictory:
    https://blogs.oracle.com/vijaymohan/entry/applyviewcriteria_design_timerun_time_view_criteria
    http://radio-weblogs.com/0118231/stories/2007/05/23/avoidActivationErrorsByChangingRuntimeViewObjectSettingsBeforeUsingThemNotAfter.html
    What is the best practice when programmatically using VOs? Should I do cleanup before/after when using them.
    Thanks
    Kevin

    John,
    I read it in an unofficial blog somewhere yesterday and I cannot locate it now!
    I'm reading some official documentation on this today:
    http://docs.oracle.com/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#autoId37
    The example steps given in 40.8.2 seems to contradict the latter paragraph:
    Because many of the view object's instance settings are saved in the passivation state snapshot and restored on activation (as described in Section 40.5.1, "State Information Saved During Passivation"), it is not advisable to change any of these settings just after executing the view object+ if you won't be re-executing the view object again during the same block of code (and so, during the same HTTP request). Instead, change the view object instance settings the next time you need them to be different before executing the query.
    Steps 5 and 6 seems to be changing the settings after executing the view object.+
    Bottom line is I'm looking for best practice.
    Should I do this in a VOImpl method:
    //save original VO settings
    String originalWhereClause = this.getWhereClause();
    String originalOptimizerHint = this.getQueryOptimizerHint();
    String originalOrderByClause = this.getOrderByClause();
    String[] originalViewCriterias = this.getApplyViewCriteriaNames();
    //change VO where settings and execute query
    //restore original VO settings
    this.setWhereClause(originalWhereClause);
    this.setApplyViewCriteriaNames(originalViewCriterias);
    this.setQueryOptimizerHint(originalOptimizerHint);
    this.setOrderByClause(originalOrderByClause);
    Or is that all unnecessary?

  • Invoice outputs are not printing after saving the document..!

    Invoice outputs are not printing after saving the document. Eventhough we maintain all condition records not only that Processing log also it showed that it has been processed on some date. but customer not received the printout
    Amar

    hI,
    GO TO IMG, SD, BF, OUTPUT CONTROL, OUTPUT TYPES, SELECT UR OUTPUT TYPE, GO TO DETAILS ICON AND ASSIGN THE VALUE "ISSUE OUTPUT IMMEDIATELY SAVING THE APPLICATION" FROM DROP DOWN DOWN LIST IN THE DEFAULT VALUES
    AND ASSIGN THE RELEVENT PRINTER TO USER ID IN SU01 AND IN CONDITION RECORDS
    REGARDS,
    SK
    Edited by: Sadanandam Kasarla on Mar 16, 2009 12:07 PM
    Edited by: Sadanandam Kasarla on Mar 16, 2009 12:08 PM
    Edited by: Sadanandam Kasarla on Mar 16, 2009 12:10 PM

  • HT201401 After updating to ios 6, my iphone 4 screen rotation has stopped working and will still not reset after restoring the iphone completely.

    After updating to ios 6, my iphone 4 screen rotation has stopped working and will still not reset after restoring the iphone completely.

    After updating to ios 6, my iphone 4 screen rotation has stopped working and will still not reset after restoring the iphone completely.

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • ADF-BC/JSF Attributes of reference entity objects do not appear on new rows

    Hi everyone,
    Here is something I have been meaning to ask for a long time and never found the time to do so.
    Let's suppose that we have two entities named Item and and ItemType and a view object named ItemsList defined like this
    SELECT Item.ID,
                  Item.NAME,
                  Item.TYPE
                  ItemType.NAME as TYPE_NAME
                  Item.PRICE
                  ItemType.ID AS ID1
       FROM
                  ITEMS Item, ITEM_TYPES ItemType
       WHERE
                  Item.TYPE = ItemType.IDLet's also suppose that using JDeveloper's standard ADF/SF pages, we create a list page and a create page that uses a combo box to allow the user to set the item type which then commits the changes and returns back to to the list page.
    I have noticed that new rows created using this method do not display the TYPE_NAME (and all similar) attributes, until the view is executed again. What I usually do in this case is have an Execute binding that fires only when a request scope variable is set from the creating page. This approach works for me but I feel that there must be an easier and "more right" way to achieve the same results.
    Thanassis

    Maybe you can use the getEstimatedRowCount() method on the view.
    See more info here:
    http://download.oracle.com/docs/html/B25947_01/bcquerying006.htm

  • How do I query changed view object attribute in another view object

    Jdeveloper 10.1.3.4
    My requirement is that I want to be able to query a view object (based on entity) on a non-key attribute where the value I am searching on may either be in the database on an existing record or, have just been recorded by updating a different view object based on the same entity (and yet to be committed).
    When querying the second view object for a value just updated via a different view object, the second view object always returns no rows. I had expected the process to be :
    EntityA
    ViewObjectA based on EntityA
    ViewObjectB based on EntityA
    ViewObjectA - query row with key = 123. update attribute Y with value 456 (attribute Y in database null). Entity cache for EntityA, key 123, atttribute Y updated with value 456
    ViewObjectB - query row with attribute = Y. expect record in EntityA cache just updated to be returned. Instead, nothing is returned
    Here is the code I was using (where RandScheduleEdit and RandScheduleSearch are identical view objects based on entity object RandSchedule)
      public static void main(String[] args) {
        String        amDef = "test.cache.model.AppModule";
        String        config = "AppModuleLocal";
        ApplicationModule am = Configuration.createRootApplicationModule(amDef,config);
        ViewObject rsEdit = am.findViewObject("RandScheduleEdit");
        Key rsKey = new Key(new Object[]{40});
        Row[] rsEditRows = rsEdit.findByKey(rsKey,1);
        Row rsEditRow = rsEditRows[0];   
        rsEditRow.setAttribute("SId", new Number(7827));
        ViewObject rsSearch = am.findViewObject("RandScheduleSearch");
        rsSearch.setWhereClause("S_ID = :SId");
        rsSearch.defineNamedWhereClauseParam("SId", null, null);
        rsSearch.setNamedWhereClauseParam("SId",new Number(7827));
        rsSearch.executeQuery();
        Row rsSearchRow = rsSearch.first();
        Configuration.releaseRootApplicationModule(am, true);
      }Why does rsSearch not find the record S_ID = 7827 ? It seems to only be querying new records in the database and ignoring the cached record just updated ?
    Any help greatly appreciated.
    Cheers,
    Brent

    rsSearch.setNamedWhereClauseParam("SId",new Number(7827));This might help:
    rsSearch.setQueryMode(ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
    rsSearch.executeQuery();

  • Control hints tab for an attribute of a view object shows null pointer erro

    hi
    I am using j developer 11g. I have a view object and it is working fine and i set control hints for an attribute , i set display label and length etc
    there. now i am taking the view object the control hints tab for the particular tab didnt shows and there displayed follwing error
    how can i rectiify this error.
    java.lang.NullPointerException
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.isOverridenProperty(ControlHintsPanel.java:662)
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.processUIHintsOnEnter(ControlHintsPanel.java:577)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.initializeControlsFromContext(BaseControlHintsPanel.java:187)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.enter(BaseControlHintsPanel.java:340)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:806)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:758)
         at oracle.jbo.ui.wizard.JboWizard.newMddPageSelected(JboWizard.java:827)
         at oracle.jbo.ui.mdd.MddTraversable.onEntry(MddTraversable.java:70)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:1213)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:1194)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:128)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1650)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1518)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1512)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.Dialog$3.run(Dialog.java:1097)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1095)
         at java.awt.Component.show(Component.java:1422)
         at java.awt.Component.setVisible(Component.java:1375)
         at java.awt.Window.setVisible(Window.java:806)
         at java.awt.Dialog.setVisible(Dialog.java:985)
         at oracle.jbo.ui.main.JboDialog.setVisible(JboDialog.java:164)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.setVisible(JboWizard.java:2557)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.jbo.ui.main.JboDialog.showDialog(JboDialog.java:142)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.showDialog(JboWizard.java:2493)
         at oracle.jbo.ui.wizard.JboWizard.createMddWizard(JboWizard.java:549)
         at oracle.jbo.ui.wizard.JboWizard.setVisible(JboWizard.java:352)
         at oracle.jbo.ui.wizard.JboWizard.showDialog(JboWizard.java:330)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeEOAttributeDialog(JdxMenuManager.java:1295)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeAttributeDialog(JdxMenuManager.java:1277)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doEditMenuAction(DtuMenuManager.java:1776)
         at oracle.jbo.dt.ui.main.DtuMenuManager.performMenuAction(DtuMenuManager.java:1584)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doMenuAction(DtuMenuManager.java:1377)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doMenuAction(JdxMenuManager.java:892)
         at oracle.jbo.dt.jdevx.deployment.ui.JxdMenuManager.doMenuAction(JxdMenuManager.java:66)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1363)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1348)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoBaseEditor.doMenuAction(JeoBaseEditor.java:327)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.doMenuAction(JeoEditorPage.java:777)
         at oracle.jbo.dt.jdevx.ui.editors.view.VoeAttributesPage.doMenuAction(VoeAttributesPage.java:366)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseDoubleClick(JeoEditorPage.java:642)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseClicked(JeoEditorPage.java:623)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6044)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3995)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    I did try making a VO that extends the original VO, but with the attribute based on the SDO_NN_DISTANCE function call, which means that a call to SDO_NN MUST be in the WHERE clause.
    This works to some extent, in that the common attributes and methods are in the second VO, inherited from the first, without me having to write them again. However, I have to use them in my ViewController project as two separate VOs. For one thing, I need two separate result pages, one for when the query used the SDO_NN in the where, and needed the distance in the output, and one without. One uses the original VO, and the other uses the new one. Similarly, I need two separate pages for adding additional criteria. Doing it this way with pairs of nearly identical pages is going to be a pain, and will be difficult to maintain, since any change will have to be done twice. Or can .jspx pages be written that extend other .jspx pages, and in particular override the VO bindings in the pageDef? Could a single .jspx page decide dynamically which pageDef to use?
    I decided to try a different tack. Back to a single VO, I wrote a WHERE clause that calls SDO_NN, but returns all of the rows. That way, I can have a call to SDO_NN_DISTANCE in the SELECT for all queries, and I was even able to add a parameter that sets the Distance attribute to NULL if it is irrelevant to the query the user constructs. This is a good work around, but it is a little slow, because SDO_NN is doing a lot of work but returning every row when it hasn't been replaced with an "actual" SDO_NN where clause.
    One more possibility: Can I have a method that replaces the entire SELECT command for this VO dynamically? I assume that you need to make sure that the expressions in the SELECTed data still map to the attributes one to one, with the same aliases. After all, I am already replacing the WHERE clause dynamically, and it works fine.

  • 10.1.3.1.0 : Nested View Object sould not appear in Data Control Palette

    Hello,
    I have a strange behavior in JDeveloper 10.1.3.1.0.
    I have two View Objects, a parent and a child, that are linked by a View Link.
    Although my Application Module instanciates only the parent View Object, I can still see the child View Object in the Data Control Palette.
    I've checked in JDev 10.1.3 SU5 and this behavior doesn't occur.
    Is this a bug ?
    Thanks,
    Seb.

    Hi,
    I tried to reproduce but cannot. I created a m/d ViewObject that are linked by a ViewLink. I removed the detail from the master tree in the AppModule configuration so that only the master instance is left. Opening the DataControl palette, I only see the master view.
    Is the project one that you upgraded from 10.1.3.0? If yes, please try and reproduce in a new workspace
    Frank

  • Dynamic view object loses bind variables after passivation

    I am creating a view object definition/view object programmatically in Jdev 11.1.1.2.0. The query requires a named bind parameter. All was working fine but now I am testing with app module pooling disabled and the bind variable is not being restored after passivation -- it's like the definition has disappeared or something.
    Here is my VO creation code:
    ViewObject vo = findViewObject("FinalistsWithEvalDataVO");
    if (vo != null){
    vo.remove();
    ViewDefImpl voDef = new ViewDefImpl("FinalistsWithEvalDataVODef");
         // I add a bunch of viewAttrs here...
    voDef.setQuery(fullQuery);
    voDef.setFullSql(true);
    voDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
    voDef.resolveDefObject();
    voDef.registerDefObject();
    vo = createViewObject("FinalistsWithEvalDataVO", voDef);
    vo.defineNamedWhereClauseParam("Bind_SchlrAyId", null, new int[] {0});
    vo.setNamedWhereClauseParam("Bind_SchlrAyId", new Number(1)); //For testing
    vo.executeQuery();
    The query executes fine right there and then the VO seems to passivate fine. I even see the bind var in passivation:
    <exArgs count="1">
    <arg name="Bind_SchlrAyId" type="oracle.jbo.domain.Number">
    <![CDATA[1]]>
    </arg>
    </exArgs>
    But then when it reactivates prior to rendering the page, it invariably throws a missing parameter exception and this in the log:
    <ViewUsageHelper><createViewAttributeDefImpls> [7409] *** createViewAttributeDefImpls: oracle.jdbc.driver.OraclePreparedStatementWrapper@1af78e1
    <ViewUsageHelper><createViewAttributeDefImpls> [7410] Bind params for ViewObject: [FinalistsWithEvalDataVO]AwardViewingServiceAM.FinalistsWithEvalDataVO
    <ViewUsageHelper><createViewAttributeDefImpls> [7411] ViewUsageHelper.createViewAttributeDefImpls failed...
    <ViewUsageHelper><createViewAttributeDefImpls> [7412] java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    I have worked on this for hours and can't see anything wrong. Like I said, it works fine when not forcing passivation...
    Any help would be appreciated.
    Thanks.
    -Ed

    @Jobinesh - Thanks for the suggestions. I have read all the documentation I can find. Everything works fine without passivation. Everything still breaks with passivation. I have given up on trying to get the bind variable to restore after passivation and am currently just building the query with all values embedded in the query rather than bind variables. This is bad practice but avoids the problem. However, now that I avoided that obstacle, I'm on to the next issue with passivation of this dynamic view object, which is that the current row primary key apparently cannot be reset after activation. I get the following error:
    <Key><parseBytes> [7244] Key(String, AttributeDef[]): Invalid Key String found. AttributeCount:1 does not match Key attributes
    <DCBindingContainer><reportException> [7254] oracle.jbo.InvalidParamException: JBO-25006: Value 00010000000A30303033383133343734 passed as parameter String to method Constructor:Key is invalid: {3}.
         at oracle.jbo.Key.parseBytes(Key.java:537)
         at oracle.jbo.Key.<init>(Key.java:179)
         at oracle.jbo.server.IteratorStateHolder.getCurrentRowKey(IteratorStateHolder.java:34)
         at oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3877)
    I've been trying various workarounds for over a day now with no luck. Very frustrating.
    Thanks for trying to help.
    -Ed

  • Document number....posted in T Code F-53 is not popping after saving

    Hi,
    I am posting outgoing payment in new fiscal year 1.4.2014, in F-53. After saving the document, I am not getting the pop up message:
    "Document number .... posted in T Code F-53.
    But when I check the GL line item in FBL3N, the document number is visible there.
    Please advice what can be the reason.

    Hi,
    I didnt check with other users. But I am facing this issue. May I know how the Security guy can help me and how its related to my authorization, since until yesterday everything was working fine.
    Kindly advice, is there any link to the year end closing activity?

Maybe you are looking for