entity-one

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

entity-one

geogeo_cutcut
This post was updated on .
Can i use a view-entity in entity-one ??

I define a view-entity :
    <view-entity entity-name="ApplicationUser" package-name="org.ofbiz.appl" title="User application">
        <member-entity entity-alias="USER_APPL" entity-name="UserLogin"/>
        <member-entity entity-alias="PART" entity-name="Party"/>
        <member-entity entity-alias="ROLE" entity-name="PartyRole"/>
        <alias-all entity-alias="USER_APPL"/>
        <alias-all entity-alias="PART"/>
        <alias-all entity-alias="ROLE"/>
        <view-link entity-alias="USER_APPL" rel-entity-alias="PART">
            <key-map field-name="partyId"/>
        </view-link>
        <view-link entity-alias="USER_APPL" rel-entity-alias="ROLE">
            <key-map field-name="partyId"/>
        </view-link>
    </view-entity>

I am not able to use this view in a form

   <form name="UserDetailForm" type="single" default-map-name="user" target="updateUserAjax" focus- field-name="currentPassword" >
        <actions>
            <entity-one entity-name="ApplicationUser" use-cache="true"  value-field="user" >
                <field-map field-name="userLoginId" from-field="parameters.userLogin.userLoginId"/>
            </entity-one>
        </actions>
       
        <field name="userLoginId" title="${uiGeoLabelMap.Login}"><text disabled="true"></text></field>
       
       
        <field name="submit" title="${uiGeoLabelMap.ActionUp}" use-when="user!=null" >
            <submit/>
        </field>
        <on-event-update-area event-type="submit" area-id="ScreenletScreen" area-target="UserDetailScreen">
        </on-event-update-area>
    </form>

Can you help me ??
Reply | Threaded
Open this post in threaded view
|

Re: entity-one

geogeo_cutcut
up
Reply | Threaded
Open this post in threaded view
|

Re: entity-one

Malin Nicolas
Geoffrey,

Are you sure that you have on your context all pk present on the view ?

The view ApplicationUser contains userLoginId, partyId and roletTypeId.
It's necessary to exclude like this :

         <alias-all entity-alias="ROLE"><exclude field="roleTypeId"></...

Nicolas



Le 13/11/2012 18:26, geogeo_cutcut a écrit :
> up
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/entity-one-tp4637484p4637515.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/

Reply | Threaded
Open this post in threaded view
|

Re: entity-one

geogeo_cutcut
Hi Nicolas,

Can you just confirm that we can use a view-entity with "entity-one" ?
Reply | Threaded
Open this post in threaded view
|

Re: entity-one

Malin Nicolas
Yes I do that on many projects

Nicolas

Le 14/11/2012 13:17, geogeo_cutcut a écrit :
> Hi Nicolas,
>
> Can you just confirm that we can use a view-entity with "entity-one" ?
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/entity-one-tp4637484p4637586.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/