View object reexecutes when any event is fired on a page

Hi All,
I have following requirement
Create a page which containts a table.
Table has 2 fields one is Employee number LOV and second is emp name field which is read only.
One view object is associated with this table.
This view object has two transient attributes one is EmpId which is of type number and second is name which is of type string.
View object does not have any query.
when you enter any no in lov field,it goes to lov region and populates the respective emplyee details in the LOV region, when user selects any employee,it comes back to main page and shows Employee no and emp name in first row of a table.
I have allowed the user to enter as many rows as he wants into the table.
for that i have created Add another row button using footer property of table.
but the problem is When i click Add another row button,row is added it to table but emp name which i have selected from LOV had lost.
i know the reason is when i click Add another row button VO executes query again and my value has lost.
i want to know that is there any way to prevent reexecution of view object query?
Regards
Hitesh

Hitesh,
Mukul, i can put my own Add another row button and do cusom code,but what about other events?
Yes, see dev guide and old threads. It has been explained in dev guide claerly and have also replied this in old threads.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Unable to view Object Gallery when clicked File - New Menu. why?

    Hi,
    I am using JDeveloper( ver 3.2.3 build 1018) on Windows 2000
    recently installed and i access using Novell Netware.
    After I create a new workspace and a new empty project, I try to
    click on File - New ... to see the object gallery. But i am
    unable to see the wizards and i get only an Empty page with OK
    button disabled and Help and Cancel button enabled.
    I have restarted my machine several times and There is no other
    application other than JDeveloper running. But still problem
    persists.
    I do have 256MB Ram on my 40GB Harddisk.
    I wonder if this is a problem due to
    1. Insufficient Memory Space
    2. Improper installation or configuration.
    Can someone give a solution.
    Thanks
    Hari

    Thanks for the reply. I would look into that. Both of the files
    are there. I do not understand when you say to check the "file
    is correct". All the object names and params within the file is
    there and seems correct.
    Is there any details specifically I have to look for?
    This Unable to view Gallery happens when we continously try to
    open the gallery 3-4 times and fifth time, Gallery doesn't
    appear. When i close Jdeveloper and open again...it starts
    showing the gallery. But again after few times, it disappears.
    Anyway, I would look into my files as you said. Thanks for the
    reply.
    Thanks
    Harihara Subramanian

  • How to prevent creation of view object rows when using browser refresh butt

    HI i have the following problem:
    I have a creation form using a partial submition. The problem is that if i have entered some value by using autosubmit , this value will be setted as attribute in the ViewObject . After that if i click refresh button of the browser then the new Row of the view object will be created and i will have a pending row with setted attribute. So if execute commit then the both rows will be tried to commit. How can i prevent this?
    Krasi

    Hi,
    If i've understood you have a invokeAction that create a new row, right? If yes put on condition that it invokeAction won't invoke if is a postback.
    Let me know if i miss understand your doubt.
    Best Regards

  • EBS Accounts Payable : Which tables updated when any event fires..?

    Hi
    I request help / guide to let me know for the subject mentioned question.
    For example,
    When any invoice saved, which tables are updated?
    When payment is made , which tables are updated?
    When Create Accounting runs, what steps does it follows?
    How can I check the Create Accounting program in SQL developer?
    etc
    Can any one help / guide me ..?
    regards
    Ahsan

    When any invoice saved, which tables are updated?
    AP_INVOICES_ALL and AP_INVOICE_DISTRIBUTIONS_ALL
    In R12: AP_INVOICE_LINES_ALL
    When payment is made , which tables are updated?
    AP_CHECKS_ALL and AP_INVOICE_PAYMENTS_ALL
    Please be a bit more specific on your other 2 queries.
    Thanks

  • Why do I get an error message in safari 5.1 telling me to restart in 32 bit mode in order to "view the movie" when I first start safari on opening page?

    why do I get an error message when I start safari 5.1 telling me I need to open browser in 32 bit mode in order to "view movie" ? This occurs when I start safari on the opening page (the page with all the boxes for most viewed web sites). This had never occurred with safari up until the latest updates to safari & OSX [Version 5.1 (6534.50)] and OSX 10.6.8.
    also, I'm not trying to view a movie - this occurs for the page previews that load when safari opens.
    thanks.

    go here:
    http://get.adobe.com/shockwave/otherversions/
    choose "different version">full 64 bit and download - seems to have solved probem...let you know if it happens again

  • Passing Object when custom Event is fired

    Hi,
    I need to pass an object from one page flow to other.
    I have referred to e-docs of bea. In a custom event, you can pass form beans.
    The object I need to pass is an hashmap. I can very well set it ina form bean and pass it, but that does not sound good creating a formbean just for passing object.
    Is there any better method to pass objects from Controller to other?
    Note:
    I am not invoking controller by giving its relative path in forward.
    I am using event handlers and custom events.
    Please reply,
    Suman

    I'm using Netweaver Developer Studio 7.1 SP03 PAT0005.
    Do someone knows if this version produces code that has some bugs related to custom event firing?
    This bug that I'm experiencing seems non deterministic and is driving me crazy.
    Thank you,
    Pietro
    Edited by: pietro.m on Oct 28, 2010 4:40 PM

  • Keyflex value disappears from page when lov event is fired

    Hi All,
    There is a keyflex field and one lov field in my page. When i select the value from kff and after that selecting any value from lov item my kff value disappears from page.
    Plz help asap.............

    Hitesh,
    Mukul, i can put my own Add another row button and do cusom code,but what about other events?
    Yes, see dev guide and old threads. It has been explained in dev guide claerly and have also replied this in old threads.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unable to view Object Gallery when clicked File - New Menu JDevelop 10.1.2

    I am using JDeveloper( ver 10.1.2.0.0 build 1811) on Windows 2000
    when I click on CTRL-N the New Gallery doesn't appears.
    Any suggestion?
    Thanks

    I found by myself the solution. In file ide.properties there are two var MainWindow.x and
    MainWindow.y. If this vars have negative values the Gallery Window desappear.
    Example:
    MainWindow.x=-4 // wrong
    MainWindow.y=-4 // wrong
    MainWindow.x=68 // OK
    MainWindow.y=51 // OK

  • Runtime Error when Usercommand event is fired in ALV

    Hi all,
    i'm writing ALv report and i successfully got Top of Page and End of List but when im try to fire Usercommand a run time error  .
    ERROR:
    Too many parameters specified with PERFORM.
    Error analysis
    A PERFORM was used to call the routine "GENERATE_USER_COMMAND
    "ZSAP1_ALV ".
    This routine contains exactly 0 formal parameters, but the cu
    call contains 2 actual parameters.
    parameters.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = IT_EVENTS
    EXCEPTIONS
      LIST_TYPE_WRONG       = 1
      OTHERS                = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WA_EVENTS-NAME = 'TOP_OF_PAGE'.
    WA_EVENTS-FORM = 'TOP_FORM'.
    APPEND WA_EVENTS TO IT_EVENTS.
    CLEAR WA_EVENTS.
    WA_EVENTS-NAME = 'END_OF_LIST'.
    WA_EVENTS-FORM = 'END_OF_FORM'.
    APPEND WA_EVENTS TO IT_EVENTS.
    CLEAR WA_EVENTS.
    WA_EVENTS-NAME = 'USER_COMMAND'.
    WA_EVENTS-FORM = 'GENERATE_USER_COMMAND'.
    APPEND WA_EVENTS TO IT_EVENTS.
    *ENDIF.
    and after this i created a form for Generate_user_command.
    using perform keyword.
    Please help me...
    Thanks in Advance
    Kiran.

    Hi
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    * EXPORTING
    * I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = IT_EVENTS
    * EXCEPTIONS
    * LIST_TYPE_WRONG = 1
    * OTHERS = 2
    IF SY-SUBRC 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    " You shold not append the events to IT_EVENTS table. as all the alv events will
    " get populated from the above FM.you need to modify the required events with the formnames.
    READ TABLE IT_EVENTS INTO  WA_EVENTS WITH KEY NAME = 'TOP_OF_PAGE'.
    IF SY-SUBRC EQ 0.
    WA_EVENTS-FORM = 'TOP_FORM'.
    MODIFY TABLE IT_EVENTS FROM WA_EVENTS TRANSPORTING  FORM INDEX SY-TABIX.
    ENDIF.
    READ TABLE IT_EVENTS INTO  WA_EVENTS WITH KEY NAME = 'END_OF_LIST'.
    IF SY-SUBRC EQ 0.
    WA_EVENTS-FORM = 'END_OF_FORM'.
    MODIFY TABLE IT_EVENTS FROM WA_EVENTS TRANSPORTING  FORM INDEX SY-TABIX.
    ENDIF.
    READ TABLE IT_EVENTS INTO  WA_EVENTS WITH KEY NAME = 'USER_COMMAND'.
    IF SY-SUBRC EQ 0.
    WA_EVENTS-FORM = = 'GENERATE_USER_COMMAND'.
    MODIFY TABLE IT_EVENTS FROM WA_EVENTS TRANSPORTING  FORM INDEX SY-TABIX.
    ENDIF.
    FORM GENERATE_USER_COMMAND USING r_ucomm LIKE sy-ucomm
                                        rs_selfield TYPE slis_selfield.
    " Write the code here
    ENDFORM.

  • Browser flashes when any button is clicked on web pages

    This started about a week or so ago. Every time I click a button on any web page the browser flashes to white then back. It usually takes 3 or 4 clicks before it actually does anything. It started after I upgraded to Version 4 so I reverted back to Version 3 and worked my way back up to 4 to see if it would stop with any other version but it hasnt. Is this an issue with my browser or my pc?

    Hi Andrey,
    Thanks for your time and response.
    Let me told you, i was traying to implement what you say in your last post but now i'm facing a new problem,
    The way i used to create the new field from HTML for the comment is not correct because the data in the GRIDLAYOUT are paged, so, when i change the page all data that i introduced in the field are ereased and i must save that values before change the page in a kind of buffer or something like that.
    so my new question is this, Do you know a right way to add that field to GRIDLAYOUT?  and then save this values in a Z table before save al plan data into the infocube.
    Sorry for all this questions but ive read a lot of articles and I can't find anything really helpful
    I've read some articles what talk about this issue but in IP, sincerely i'm NEW in this topic.
    Regards.
    Tony Montes.

  • ADF swing tree TreeSelectionListener on view object

    hi
    i want to make an action according to the selection on a tree, and i don't know how to reach a view object and perform some event. i have made a method in the VO and put it in the client interface, but how to drag it to a specific node in the tree??
    this is the code:
    class TAction implements TreeSelectionListener
    public void actionPerformed(ActionEvent e)
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode)
    jTree1.getLastSelectedPathComponent();
    if (node != null){
    CreateDocumentForm gu = null;
    if(node.isLeaf()){
    String userinfo = node.getUserObject().toString();
    String parentinfo = ((DefaultMutableTreeNode)node.getParent())
    .getUserObject().toString();
    if ("All Document".equals(parentinfo)){
    if ("By Number".equals(userinfo)){
    JUControlBinding jucd = panelBinding.findControlBinding("sortByNumber");//the method in the VO is sortByNumber
    jucd.refreshControl();
    if ("By Status".equals(userinfo)){
    if ("By Project".equals(userinfo)){
    if ("By Creation Date".equals(userinfo)){
    }

    hi
    the method is not in the pageDef, how can expose it there if this solves the problem?
    the sortByNumber is working when i attach it to a button from the Data Control panel.
    what about using the setControl in the JUControlBinding, but i have problems using it.
    anyway, i want any solution to the problem as i need to attach the method in the VO programatically to the node in the tree TreeSelectionListener

  • Questions on ADF View Objects, Links and Iterators

    I have a number of questions regarding using ViewObjects in applications where there are alot of relationships between tables.
    First, lets say that I have ViewObject SomeView that was added to the App Module (AM) as VO1. And because it has a number of "detail" records that have to be iterated through in a "report like" view it has those other VO's added under it as "children" in the AM.
    So I have
    VO1 (an instance of SomeView)
    --> VO2 (an instance of some other view)
    --> VO3 (an instance of some other view)
    that is used on pages where only a single VO1 is shown at a time.
    Now because I had another page I wanted to make that had a listing of all SomeView objects. Some of the fields in SomeView are foreign keys to records in VO2 and VO3 and while I don't want to show all the fields from VO2 and VO3, I do want to show a name field from each rather than just the foreign key.
    My experience (though I've never read this anywhere) tells me that when doing a "table" that is a list of rows from a VO, you can't display info from the child VO's because the child VO's are on whatever record corresponds to the "currentRow" in the parent VO and just displaying the rows in a rangeSet doesn't make each the "currentRow" so even we display 10 records in a for loop, the "currentRow" is just one, and the child VO's iterators aren't moved as we go through the for loop. (Can someone confirm if I am correct on this conclusion????)
    So the only way I know of to show some field from a related table in each row is to make the VO have the entity objects from the related tables be part of the view as references. Is this the only way?
    If I do that on a view that didn't have other views as children defined in the AM I don't have any problem and it works like I want.
    But if I do it on a view that did have other views as children defined in the AM it makes the page(s) using that view with the children iterators behave badly. Half the information quits showing up, etc.
    For example, ... if I go to the "SomeView" which was defined with only one entity object association, and I add the entity objects (that are the basis of instances of VO2 and VO3 ) as referenceable only, it totally breaks the page where I display a single VO1 and use it's VO2 and VO3 children. IS THIS NORMAL OR AM I MISSING SOMETHING?
    So, is the solution that I have to have more view objects defined for different purposes ?
    Can anyone give any general guidelines for when/where to use different view objects vs. when to use different iterators. I'm not having much luck with using secondary RSI's and haven't found much info on them.
    Also, how about issues of naming iterators that are in various binding containers (ie. UI Model for a page). If I do and LOV it creates an iterator and gives it a default name like ViewNameIterator1. If I already have a different page that uses a regular (non LOV) iterator with that name, and the user goes back and forth between those pages, is that a clash?
    Finally, I've read a couple of Steve Muench's blogs on View Link consistency but I'm not sure what the rules are on when it applies and doesn't. How you turn it on or off, etc. One of his examples in http://radio.weblogs.com/0118231/2004/02/27.html talks about it in the context of two view objects that are NOT typically "linked" in a master/detail kind of way. Like an AllDepartments and a DepartmentsLessThan view. Do you have to create a View Link between them to have results of one be reflected in the other if they aren't used in the same page in a web app? Or does it happen automatically (with the caveat that you have to do the rowQualifies method). Just feels like I'm missing some pieces.
    Thanks in advance,
    Lynn

    Hi,
    I am also interested in a best-practice note from oracle.
    Currently we store history in seperate history tables for columns that changed. All this implemented in our BaseEoImpl overriding the EntityImpl.prepareForDML().
    Thanks

  • Problem with saving Parent - Child  View Objects in ADF 11g.

    Hi Every one,
    I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
    -> Preapre dynamically Parent View Object Rows based on some logic
    -> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
    When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
    Thanks

    I got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
    Thanks

  • View Object with User Defined Type input

    I am trying to use a View Object with a query that requires a user defined object as an input parameter.
    I have the query working with a PreparedStatement, but would like to use a View Object.
    When I use the PreparedStatement, I prepare the user defined type data like this:
    // get the data into an object array
    Object[] wSRecObjArr = wSRec.getObjectArray();
    // set up rec descriptor
    StructDescriptor WSRecDescriptor = StructDescriptor.createDescriptor("WS_REC",conn);
    // populate the record struct
    STRUCT wSRecStruct = new STRUCT(WSRecDescriptor,conn,wSRecObjArr);
    Then I can use this in the PreparedStatement like this:
    OraclePreparedStatement stat = null;
    ResultSet rs = null;
    stat = (OraclePreparedStatement)conn.prepareStatement("Select test_pkg.test_function(?) FROM DUAL");
    stat.setSTRUCT(1, wSRecStruct);
    rs = stat.executeQuery();
    I would like to do the same process with a View Object instead of the PreparedStatement.
    My question is "How do I create the input objects"?
    I obtain the View Object from the Application Module using findViewObject(). I don't actually have a connection object to pass into the StructDescriptor.createDescriptor method.
    I have tried just using Java Object Arrays (Object[]) to pass the data, but that gave an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    Any help or pointers are greatly appreciated.
    Thank you.
    Edited by: 942120 on May 1, 2013 8:45 AM
    Edited by: 942120 on May 1, 2013 8:46 AM
    Edited by: 942120 on May 1, 2013 9:05 AM
    Edited by: 942120 on May 1, 2013 9:06 AM

    Custom domains are the way to go.
    When I try to pass custom domains that represent my user defined types - it works.
    However, one of the functions requires a table of a user defined type be passed in.
    I tried creating a domain of the table type. It forces me to add a field during creation (in JDEV), so I tried adding a field of type Array of Element of the domain representing the user defined type.
    I populate the table by setting the field I created, but the table is empty in PL/SQL (TEST_TAB.COUNT = 0).
    I also tried passing the oracle.jbo.domain.Array object, but that produced an error:
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call
    I also tried passing Object[], but that produced an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    How do I properly create, and pass an domain that represents a table of a user defined type?
    When I use a OraclePreparedStatement, I can pass a oracle.sql.ARRAY using stat.setARRAY.
    Thank you for the help you have provided, and any future advice.
    JDEV 10.1.2.3
    JDBC 10.2.0.5
    Edited by: 942120 on May 13, 2013 7:13 AM
    Edited by: 942120 on May 13, 2013 7:16 AM

  • Use View Object with Alternative Data Sources in View Link

    In my case, I created a view object based on alternative data source (not with SQL query). I have setQuery(null) in the override create() function for this View Object. When I use this View Object at the destination end of the View Link, the setQuery(null) will raise Jbo-26016 exception (You cannot set customer query (calling setQuery()) on a view object if it is the detail view object in a master detail view link.) which does not allow me to do that. I looked Avrom's Framework for Database API-Based ADF BC, in which he override the DBTransaction and CallableStatement in order to intercept the default query clause set by the View Link. I'd like to see if there is any alternative ways to achieve my objective?

    Just following up what I found so far. I'm trying to use customized View Object based on alternative data source at the destination end of View Link with ADF 10.1.3.
    1. For the View Object at the destination end of View Link, I can not call setQuery() which will raise Jbo-26016 exception.
    2. I can omit the setQuery(null) call in my customized ViewObjectImpl, and as long as there is no SQL statement in the View Definition XML, it won't cause problem when calling the executeQueryForCollection() of the super class.
    3. The override executeQueryForCollection() must call the super.executeQueryForCollection() in order to get appropriate result (I tried to skip the call and it does not give back any results)
    4. The funny thing is, when I make getQuery() call in my customized ViewObjectImpl (I'm just trying to double check if the Query object is clean or not), the query object is set to "SELECT FROM" following the getQuery() call, and which causes the exceptions when I call super.exeuteQueryForCollection(). I found out later from the Javadoc API which is implemented in that way.
    So I guess my case is resolved by not making specific call to setQuery(null).

Maybe you are looking for