2 Replies Latest reply: Apr 22, 2014 7:55 AM by Cvele_new_account RSS

    findbyKey

    997766

      Hi,

       

      I am using JDev 11.1.2.4

       

      I am using a VO from a different schema and is read only.

      I want to use the description from this VO for updating the table attribute of a different EO using transient attribute.

       

      Is it possible to use only the VO without defining the EO in the model ? If so, how do i declare the primary key attribute in the VO for accessing the attribute value by findbyKey.

       

      Thanks in advance.

        • 1. Re: findbyKey
          Timo Hahn

          Sorry, why transient attribute?

          Use a model driven lov to set the attribute in the vo which is based on an eo.

           

          Timo

          • 2. Re: findbyKey
            Cvele_new_account

            997766 wrote:

             

            Hi,

             

             

            Is it possible to use only the VO without defining the EO in the model ?

            Yes, you can make and use read-only ViewObject, which is based on pure SQL statement (not based on entity)

             

            997766 wrote:

             

             

            If so, how do i declare the primary key attribute in the VO for accessing the attribute value by findbyKey.

             

             

            Simply double-click on the attribute you want to be primary key, and check Key attribute check box