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!

ADF 12c Groovy with View Link Accessor

Vladimir ZhilyaevJul 11 2017 — edited Jul 12 2017

Hi experts,

I'm using jdev 12.2.1.2 and my use case is to pass attribute value from VO1 (user select value from LOV and after click OK selected value will map to attribute from VO1) to bind variable from VO2 (on the page it table).

I have followed groovy approach Andrejus Baranovskis Blog: Groovy with View Link Accessor but getting error

What I did:

  1. Create view link between VO1 (DataEntryDummyView) and VO2 (LegalAdressView)

pastedImage_3.png

  1. Generate Accessor

pastedImage_6.png

  1. For bind var in VO2 (LegalAdressView) using Groovy Expression where call created accessor:

bind var xml defenition

<Variable

Name="p\_idPoluchSheta"

Kind="where"

Type="java.lang.String">

\<TransientExpression

trustMode="trusted"

  Name="VariableScript"

  CodeSourceName="LegalAdressView"/>

</Variable>

Groovy code:

@VariableExpression(path="p_idPoluchSheta")

def p_idPoluchSheta_VariableScript_Variable()

{

return EntryDataDummyView.IdPoluchScheta

}

But jdev throw error. What I did wrong?

Error(10,8): [Static type checking] - Unknown attribute name: EntryDataDummyView for type: LegalAdressView

@ line 10, column 8. P6_Sales_CommercialTermsUI.jws D:\SOA\12C\BPM\SRC\work\ui\P6_Sales_CommercialTermsUI

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2017
Added on Jul 11 2017
3 comments
510 views