Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue in getting current row value using getCurrent Value

user565203Nov 19 2008 — edited Nov 21 2008
Issue:When I call ththe method executeSearchVO from controller class

with Row row = personalActionSearchVO.first();

I am getting the corresponding value.

but my requirement is I have multiple record , If i press action on any of the record, I need to read SITName value for the particular record and need to pass it as parameter to other pager(i mean If i select any record, I need to get corresponding value in the attribute for the record.)

if i comment personalActionSearchVO.first(); i am getting null pointer exception.


Pl. helpme how to get current row instead of first row always.



AMIMPL Clause
public void executeSearchVO(String loginPersonId)
{
XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
personalActionSearchVO.initQuery(loginPersonId);

// Row row = personalActionSearchVO.first();

row = personalActionSearchVO.getFirstFilteredRow("action","1");
Row masterRow = row;
personalActionSearchVO.setCurrentRow(masterRow);


OARow Row1 = (OARow)personalActionSearchVO.getCurrentRow();

System.out.println("Org "+Row1.getAttribute("Organization"));

}


--
calling this method from controller clause

if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
{
System.out.println("Person Id "+ pageContext.getParameter("XXHRPersonId"));

Serializable methodParams[] = {pageContext.getEmployeeId()+""};
applicationModule.invokeMethod("executeSearchVO",methodParams);
}






need it urgently. pl. help

thanks
siva
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2008
Added on Nov 19 2008
8 comments
1,673 views