Problem with Current row of a VO???

I have a Advanced table region in which i add many rows..and i get the data in to it from the lov page (lov mappings).
for each row i add... i have to set a item in main page table region doing some validations the data i get from lov region.
with examples..more detailed..
i have paymentAmount and AllocAmount...i get the payment Amount from LOV...after doing some validation on paymnetAmount i have to set the same value to the AllocAmount.
ARTransactionLine is the VO which contains the above mentioned attributes....and advanced table i mentioned above is based on this VO.
for this purpose im using the following code..
ARTransactionLineVOImpl
vo=(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
payment_amount = TransDetailsVORow.getPaymentAmount();/*for this paymentAmount i made a lov mapping..so that currentrow contains the value of paymnetAmount from lov page*/
if(/* some validation*/){
TransDetailsVORow.setAllocAmount(payment_amount);
now when i do this ..for the first row it is working fine...but for the second row it is failing...getCurrentRow() is giving the values of previous row..not the current row...
first of all what does this getCurrentRow return???
help me ...n tell me where i was wrong...

I m sure you have not gone through the tutorials completely.
ARTransactionLineVOImpl vo =(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
with this row i am doing the below opeations..
Number x=TransDetailsVORow.getPaymentAmount();
/* some validations*/
TransDetailsVORow.setAllocAmount(x);
Change to
ARTransactionLineVOImpl vo =(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.first();
while (TransDetailsVORow!=null)
Number x=TransDetailsVORow.getPaymentAmount();
/* some validations*/
TransDetailsVORow.setAllocAmount(x);
TransDetailsVORow = (ARTransactionLineVORowImpl)vo.next();
Tapash

Similar Messages

  • Problem with current scope forum

     I have searched my computer for trojan downloader and it was found and removed however the search said having a problem with current scope.
    Skin222

    Hello Skin222,
    Your problem is beyond the scope of support. This forum is for feedback and questions related to the current versions of the ADO.NET Entity Framework and LINQ to Entities including object-relational mapping and entity data modeling.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problems with current version of AIR. Won't load and also can't uninstall

    I have recently purchased a new Mac and loaded the most recent version of AIR but now when I try to run it I keep getting the following message
    This application requires a version of Adobe AIR which cannot be found.
    Please download the latest version of the runtime from
    http://www.adobe.com/go/getair,
    or contact the application author for an updated version.
    I am also getting this message when I try and run the uninstaller so I can I can try and re-install.
    Does anyone have any suggestions?
    Thanks.

    I had AIR 3 on my MacBook Pro before I updated it to Lion. I use AIR 3 to run McMillan Study guides Master your CDCs. when I updated my mac to lion and tried to run the application the application couldn't find AIR 3 on my mac. So I uninstalled it and tried to install it again. when I tried to install it the installer program doesn't open. please help me this program is crucial for my upgrade training. 
    From: lisachao <[email protected]>
    To: A1C PD <[email protected]>
    Sent: Monday, October 24, 2011 12:35 PM
    Subject: Problems with current version of AIR. Won't load and also can't uninstall
    Re: Problems with current version of AIR. Won't load and also can't uninstall created by lisachao in Installation Issues - View the full discussion
    Is this the error you are getting when you are installing AIR 3.0?  Or is this the error you are getting after you've already installed AIR 3.0 and attempting to run AIR applications?  If it's the latter, which applications are you trying to run?  Can you please send us your logs so that we can investigate further?  Thanks!
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3987820#3987820
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3987820#3987820. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Installation Issues by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • Two problems with Front Row

    Hello.
    I have all my music on my iMac and I am streaming it to my Mac Mini connected to my TV and stereo. What I have noticed is that the cover art on my music tracks don't show when I play any of the shared tracks or playlists, just the default picture with the two notes. Is there something I can do that will display it? I have tried to start iTunes and connect the shared library there before starting Front Row but that didn't help.
    I also have a problem with listing my pictures in Front Row. I have an external drive connected to my Mini that has all my pictures and movies. I have no trouble playing the movies (I created an alias in the Movies catalog to the Movies catalog on the external drive), but if I create an alias in the Pictures catalog to the Pictures catalog on the external drive the catalog isn't shown in Front Row. Do I have to import all the pictures into iPhoto? I don't use iPhoto at all because I always use the program that came with my Nikon camera that shows all the picture information, such as focal length, what lens I used, white balance setting, etc. (or Adobe Photoshop Elements it I want to make some changes). Is there something I can do to fix this too?
    Thanks,
    Erik Aleksander Moe

    Bernd, since your comp is still under warranty you may wish to give the online tech support a try -->HERE<--</a>. Click on the "Chat with a support agent" link.
    If you don't want to go that route, then I suggest that you call them over the phone. Hopefully, you have the AppleCare Protection Plan if your 90 day warranty ran out.
    Good Luck.
    G5 20' iMac w/iSight/Remote, 2.5GB RAM, 250GB HD Mac OS X (10.4) OS 10.4.3

  • Master/detail and problem with selected row when errors on detail row

    I'm using JDeveloper 10.1.3.3
    I have a very simple master/detail screen (JSF JSP) where master is departments and detail is employees in the selected department. Some of the attributes in employees are required.
    To department A
    I take away the value of one of the required attributes of one of the detail employee rows.
    Select one of the other departments ie department B
    Get Error message Value required.
    So far so good, but the selected department is B and the detail rows shown is for department A.
    I expected that department A to still be selected or that department B with its row to be shown.
    Edited by: user628847 on 26.feb.2009 04:55

    Hi,
    if (row != null)
    Row masterRow = row;
    vo.setCurrentRow(masterRow);
    // not needed : getMesReponsesPourTiersVO1().executeQuery();
    You shouldnot execute the child VO after setting current row in master VO.
    When the current row is set in master VO, then the child rows will get refreshed automatically.
    Cheers,
    Prasanna

  • Problem with multi row delete

    Hi, I'm new in apex and I tried to build master detail report on some view. Everything is cool but "delete checked" doesn't work.
    "ORA-20001: Error in multi row delete operation: row= , ORA-06502: PL/SQL: numeric or value error: NULL index table key value,"
    the problem is that I don't know what is wrong :), I have a special trigger "instead of delete on MY_VIEW", but in this error problem is not explained.
    Anybody knows what can be wrong? It is probably a problem with trigger or multi row doesn't work with views? I couldn't find how MRD knows what kind of statement use to delete rows so I don't know if the statement that program used is correct. In debug it lokks that:
    0.32: ...Do not run process "ApplyMRU", process point=AFTER_SUBMIT, condition type=REQUEST_IN_CONDITION, when button pressed=
    0.32: ...Process "ApplyMRD": MULTI_ROW_DELETE (AFTER_SUBMIT) #OWNER#:MY_VIEW:ITEM1:ITEM2
    0.33: Show ERROR page...
    0.33: Performing rollback...
    thanks for any help
    //sorry for english mistakes
    edit: it doesn't matter if I use in trigger delete from ... where item1=:OLD.item1 ; or if I use item1=:P4_item1 (which actually saves correct values)
    Edited by: user5931224 on 2009-06-13 08:55

    I realised that this is not a problem with trigger, I changed trigger to "NULL;" and problem is the same. Maybe sb used master detail on view not only on tables and know what can be wrong in this situation?

  • Having problems with front row (and the opticle drive)

    I bought my macbook three days ago, and I'm already having problems. First off, I transfered music from my user profile on my old iMac G5 to the macbook via data DVD. My music collection had some purchaces from the itunes store, so I had to go through the authorization thing, and I can now play them just fine in the iTunes library, but the problem is, if I try to use the front row program to play my purchaced music, I get the message saying that I have to authorize it first. What the ****? Does anybody else have this problem? Also, like many other macbook users, I'm having problems with the opticle drive, such as getting cds to be recognized and other things of that nature.

    I noticed that this problem started after I tried to use a software to unlock my drive's region...
    I believe this is the problem. The VLC Media Player will usually play DVDs from other regions without changing the settings on your optical drive. You may need to reset your optical drive's firmware back to the original setting, make sure you have the region set for the one you'd prefer to use the most and then use VLC to play the other DVDs.
    -Doug
    P.S. After two years in the Front Row forum, I'm not sure I've ever heard of anyone playing HDDVD_TS folders with Front Row. I'm not saying it won't work, but I'm not sure it's really supported either. I do have DVD Studio Pro myself, but I'll have friends or family staying with me for nearly the next month, so my evenings and weekends will be a bit full to try making one up for testing...

  • Problems with current week

    I am having problems with a YTD style measure and I don't know how to deal with it.
    I need to sum from one date - the same day each year - 1st april - to the current week. The current week is defined as the last data build date. For previous years, the cumulative is from the 1st april to the parallel week to the current week.
    There is an indicator in the database table that shows what week is the current week.
    How should I store an attribute in a hierarchy that indicates it is the current week ? As a property ?
    How would I sum from the 01st april to a current week using an attribute stored in a property in the Date dimension ?
    My Date dimension is daily and based on calendar weeks and calendar months.

    Hi ,
    Does the week is part of the hierarchy ? if so, you want to have range between two days, the 01/04 and the last day for that relevant week . Something like ..
    {[Date].[Calendar].[Day].&[20130401]:ClosingPeriod([Date].[Calendar].[Day], MyRelevantWeek)}
    You can achieve the relevant week by filtering the weeks without the right property :  Filter([Date].[Week].[Week] , [Date].[Week].CurrentMember.properties("RelevantWeek") = 1) .
    If you want to have a dynamic 1st to April for the relevant year, you'll need to build this member with the current year : strtomember("[Date].[Calendar].[Day].&["+str([Date].[Year].Currentmember.properties("key"))+"0401]")
    Hope it helps :)
    Regards, David .

  • Still problem with single-row subquery returns more than one row

    //i did join each table but query runs forever and fail. looks Cartesian join so comes up the following SQL
    the following query has a problem. would you please help me, please
    Select pe.expense_id
    ,PE.CODE
    ,PE.PROJECT_ID
    ,PE.LDATE
    ,PE.INAMOUNT pe_amount
    ,(SELECT TRX.INV_AMOUNT FROM TRXEXPENSES TRX
    WHERE PE.EXPENSE_ID=TRX.EXPENSE_ID) AS invamount
    ,(SELECT RE.AMOUNT FROM REEXPENSES RE WHERE
    PE.EXPENSE_ID=RE.EXPENSE_ID) AS recogamount
    ,(SELECT MLE.M_AMOUNT FROM MATEXPENSES MLE
    WHERE PE.EXPENSE_ID=MLE.EXPENSE_ID) AS matamount
    from EXPENSES PE
    where pe.expense_id=5600
    group by expense_id,CODE,PROJECT_ID,LDATE,inamount
    //get error message
    ora-01427:single-row subquery returns more than one row
    //check database
    select expense_id,count(*) from TRXEXPENSES
    where expense_id in(select expense_id from
    expenses)
    group by expense_id
    having count(*)>1
    //here is duplicate record a lot
    EXPENSE_ID     COUNT(*)
    4176     2
    5600     3
    9572     2
    9573     2
    9574     2

    Yes, Expense_id has so many returning rows for trx.inv_amount from trxexpenses in subquery.
    I want to show Expense_id with retruning rows using the above query.
    ex)The result of the query is like that;
    Expense_ Id project_id Ldate InvAmount RecogAmount MatAmount
    5600 123 3/2/02 $100(InvAmount)
    5600 432 3/12/02 $200(recogAmount)
    5600 432 4/12/02 $250(MatAmount)
    Thank you so much
    Message was edited by:
    user524064
    Message was edited by:
    user524064

  • Problems with multiple row operations in a dataTable

    Dear fellows,
    I have a strange problem, i want to do multiple row deletion in a dataTable. Can any one tell me a better way to do it. Because the way i am doing it, it is causing me strange problems. In some places it start working and in some it dont.
    The way i am doing it, it has the following code:
    <h:form>
    <h:dataTable id="list" value="#{availableRoomsList}"  var="RoomTypes" >
    <h:column>
         <f:facet name="header">
                 <h:outputText value="Select"/>
           </f:facet>
                 <h:selectBooleanCheckbox value="#{roomSelection[RoomTypes]}" >
                   </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
         <f:facet name="header">
              <h:outputText value="Available Date"/>
         </f:facet>
         <h:outputText value="#{RoomTypes.availableDate}"/>
    </h:column>
    <h:column>
         <f:facet name="header">
              <h:outputText value="Available Rooms"/>
         </f:facet>
         <h:outputText value="#{RoomTypes.noOfRooms}"/>
    </h:column>
    </h:dataTable>
    <h:commandButton value="delete Selected Rooms" action="#{RoomResvAction.deleteRooms}" />
    </h:form>Now the back end code that i am using is as follows:
         private List<HotelRoomTypes> availableRoomsList;
          Map<HotelRoomTypes, Boolean> roomSelection = new HashMap<HotelRoomTypes, Boolean>();
             public String deleteRoom(){
                  System.out.println("In the delete selection method aad.");
                  try{
                       for (HotelRoomTypes item: availableRoomsList) {
                          Boolean selected = roomSelection.get(item);
                          if (selected!=null && selected) {
                               roomSelection.put(item, false);
                               //deleteRoom(item);
                  }catch(Exception e){
                       //e.printStackTrace();
                  return null;
             }The problem with the JSF code is when i click the command button it do not calls the associated action method with it. i dont know what is the problem with the code.
    And as far as the backend code is concern it should work fine.
    can anybody help me on this matter.

    thanks BalusC ,
    I will see this example and let you know, thanx for the help.
    but also please try and see my code and tell me what is wrong in it. because at some places it works and at some it simply dont . dont know why?
    well once again thanx for the help

  • New iMac install problem with Front Row

    Hi I just got my imac yesterday, the desktop intel core duo with mac os x tiger. It comes with front row but when I clicked on it to open, it said I needed to install, so I followed the instructions to the letter, and when it starts to install front row, it says: "there were errors installing the software. Please try installing again." Which I did repeatedly, plus restarting. No go. Can anyone give me a tip on what I should try next? Thanks. you can email me [email protected]

    Normally to activate Front Row you press the Menu button on the Apple Remote that came with your Mac or you can use the keyboard shortcut of Command(Apple) + Escape.

  • PROBLEM WITH NEW ROW  --- PLEASE HELP

    Hello,
    I've had it with the framework. It's been 20 hours and counting that I am trying to insert/validate a new record.
    Things just don't work as advertised.
    Here's the situation:
    I have an entity object with various validation rules in the validate() method.
    Then I have a simple JSP page to insert new records.
    At submit of button, I follow the framework's default
    create new row and fill it up, with the difference
    that i need to validate the row as soon as I fill it up
    with data from the http request:
    <jbo:OnEvent name="Create">
    <jbo:Row id="newrow" datasource="ds" action="CreateInRange" >
    <% try { %>
    <jbo:SetAttribute dataitem="*" />
    <%
    newrow.validate(); //******* NOTICE HERE THAT I VALIDATE
    } catch (JboException ex) {
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    </jbo:OnEvent>
    Unexpected behavior 1: If the validation fails,
    newrow DOES NOT GET REMOVED!!!! I know this
    since when I view data thru a data table component,
    the row is there WITH THE ERROR INFORMATION set!!.
    If I do a commit transaction, then the erroneous information ENDS UP IN THE DATABASE!!!!!
    Unexpected behavior 2: If I do a rollback, every
    call to subsequent pages results in a jsp error:
    java.lang.ClassCastException: oracle.jbo.html.jsp.datatags.OnEventTag
    PLEASE HELP.
    Chris Lambrou

    I have (hopefully) found a solution to my part of this problem. I was getting the ClassCastExceptions on any page with a <jbo:row> tag after doing a failed DML action. I have tested this with the delete event. (btw, I am using jdev9.0.3.3 w/ BC4J/JSP) Before what I was doing was this:
    <% try { %>
    <jbo:Row id="delrow" datasource="ds" rowkeyparam="jboRowKey" action="Delete" />
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    If I removed the try/catch block everything worked fine. Unfortunatlely, I need to try/catch block here. To work around the problem I changed the code to this:
    <% Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    <%
    rowDelete.remove();
    %>
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    The second bit of code does the same thing (but it doesn't use a bean like I think <jbo:Row> does) and it doesn't cause the ClassCastError on subsequent errors.
    I really hope this helps someone else because it took me forever to get a workaround!
    ~Rob Lundeen

  • HTTP to ABAP Proxy - Problem with "Current User" parameter

    Hi experts,
    We have a HTTP to ABAP proxy sceario, where I used an HTTP Destination to connect to the proxy.
    We're trying to use the option "Current User" in that destination in order to login to ECC with the same user that in PI adapter plain.
    The user exists i both systems, PI and ECC, with the same password.
    Checking that parameter we get the following error:
    <SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>INTERNAL.UNAUTHORIZED</SAP:Code><SAP:P1>401 </SAP:P1><SAP:P2>Unauthorized</SAP:P2><SAP:P3>(See attachment HTMLError for details)</SAP:P3></SAP:Error>
    We think that PI is not getting the password.
    Does aybody know how to do this?
    Thanks and regards,
    LUIS B.

    Hi Chirumamilla,
    If we put user and password in SM59 (unchecking "Current User") the commuication works without problems.
    We don't want to leave a user set there, beacuse we are looking to access to PI with different users and login to ECC with the same user.
    Thanks,

  • Problems with Front Row, listening to Music and view Photos

    My new imac is experiencing problems while in frontrow. If I am listening to music through itunes and then go to view photos at the same time the computer freezes for minutes on end before coming up with an error message about not being able to access the photos. When I finally manage to get out of front row, iphoto is opened up on my desktop. Is anyone else having problems like this?

    Yeah, I think, unfortunately thats the best solution to this. Disappointing though, this is the 2nd imac that I've had major issues with straight out of the box.

Maybe you are looking for

  • How do I load a movie from my iTunes library to my ipad?

    How do I load a video from my iTunes library on my desktop to my iPad

  • SWF Resources

    I'm embedding a swf into a PDF.  I'm at the stage where I need to add resources.  I'm not sure what I need to include.  Really, the only things in the flash file that I did not create myself were three jpegs.  Do I need to embed these resources into

  • Nokia N80 SMS settings not saved

    Hi Since I updated my firmware to the latest version, my phone looses the SMS settings on the phone! Anyone any ideas how to resolve this annoying bug which means I have to input the settings every time I send an SMS? I am with 3 if it makes any diff

  • Changing contact classifications

    I have Outlook 2007 on Windows 7, an iPhone 3GS and an iPad. Up until a couple of weeks ago, I had MobileMe which kept all of my devices synced, but now our company has moved to Exchange. I have changed over my calendar and contacts to sync with Exch

  • AirPort is no longer connected

    Just purchased an Apple AirPort to enhance our network.   It was working fine and now it is off line.  I can't seem to get it back online.  What do I need to do?