X

How to call a method defined in ViewObjectImpl using groovy expression?

Usecase Description:

We can define a transient attribute that calls  ViewObjectImpl.java method using Groovy expression.

Consider a simple method in EmpViewImpl java class that returns the currentRowIndex:

 
  public Number returnCurrentRowIndex()
   {
    return this.getCurrentRowIndex();
   }


Create an Updatable Transient attribute in EmpView Object.Edit its value
& provide a groovy expression "adf.object.viewObject.returnCurrentRowIndex()
" to call the above method

Run the AppModule & note that the transient attribute returns the currentRowIndex of the selected row of Emp table.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.