getFetchedRowCount() in CO always returns 1. Help, please!

Hello

I'm trying to get the number of lines read in my CO. But he always returns 1. But form OPS that I get 4 rows.but in the controller, he is always clothed 1 for the first time I click on go button but when I click on the second time it gives me correct number of lines in the page. Please find the code below... Let me know how to solve this problem.

The code in my controller PFR:

If (pageContext.getParameter ("Go")! = null) {}
partyId = (String) pageContext.getParameter ("partyId");
acctNum = (String) pageContext.getParameter ("AccountNumber");

[Serializable] parameters = {partyId, acctNum};
am.invokeMethod ("initAccount", parameters);

OAViewObject vo = (OAViewObject) am.findViewObject ("AccountMappingVO1");
vo.executeQuery ();
System.out.println ("vo. GetQuery () "+ vo. GetQuery());
int fetchedRowCount = vo.getFetchedRowCount ();

System.out.println ("fetchedRowCount->" + fetchedRowCount);
}

AM code:

{} public void initAccount (String partyId)
AccountMappingVOImpl vo = getAccountMappingVO1();
vo.initActVal (partyId, acctNum);
}

code vo:
' public void initActVal (String partyId, String actNum) {}
Number of partyIdNo = null;
try {}
partyIdNo = new Number (partyId);
acctIdNo = new Number (actNum);
}
catch (Exception e) {}
Error string = try ();
throw new OAException (error, OAException.ERROR);
}
setWhereClauseParams (null); Always reset
setWhereClauseParam (0, partyIdNo);
setWhereClauseParam (1, acctIdNo);
executeQuery();
}

Thank you
Robet

Hello

VO is connected to the module of the application, he must not repeatedly run VO
Try with vo.getRowCount () will give you the exact number of County.
Also use vo.reset () in the view rowImpl.

Thank you
Kumar

Tags: Oracle Applications

Similar Questions

Maybe you are looking for

  • Cropping of the video Images

    I was wondering how to crop the video images as they run. Is there a module vi which can be used to do this? Examples I've seen online used a nonexistent moment IMAQ extracted.

  • Windows xp don't does not correctly read memory

    BIOS reads 8 gb, windows is reading 3 GB

  • Aero theme Vista theme aand are just the classic windows theme

    Original title: my vista Theme aand aero theme are just windows Classic theme may select and change them, but it looks like classic pls helpMy theme looks like clssic but he says: I have aero or vista theme it's like they were deleted but it was fine

  • my profile by default TEMP is called

    Hi, I am running Vista 32 bit on a HP TX1000 and my profile by default TEMP is called, I tried a lot of things, namely, activate the account administrator by using CMD, create a new user as administrator and by removing the previous one, but it will

  • How can I disable the touchpad on my laptop Pavilion dv4155cl?

    I have a Pavilion laptop dv4155cl and HATE the touchpad, mainly because when you type on the keyboard, the keypad is just under my Palm of the right hand, and it hinders so try to type as the guard cushion see my Palm by tapping the touchpad, and mes