Dev - entity-one works on views

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

Dev - entity-one works on views

Alexandre Gomes-8
Hello all,

I would appreciate help on this question:
Does the entity-one function at the screen widget level works on views?

Thank you,

Alexandre Gomes

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - entity-one works on views

David E. Jones

Alexandre,

Yes, view entities can be used just like normal entities in pretty  
much all entity engine or entity engine based operations.

Why, are you running into a problem with this?

-David


On Jan 2, 2006, at 4:55 PM, Alexandre Gomes wrote:

> Hello all,
>
> I would appreciate help on this question:
> Does the entity-one function at the screen widget level works on  
> views?
>
> Thank you,
>
> Alexandre Gomes
>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - entity-one works on views

Alexandre Gomes-8
David,

Thanks for being such a kind soul.

I'm trying to use the entity-one method for the editScreenName
create/update screen pattern but somehow the query results empty. Do you
need to create keys in the view (if that is possible)?

Thanks,
Alexandre

On Mon, 2006-01-02 at 19:43 -0700, David E. Jones wrote:

> Alexandre,
>
> Yes, view entities can be used just like normal entities in pretty  
> much all entity engine or entity engine based operations.
>
> Why, are you running into a problem with this?
>
> -David
>
>
> On Jan 2, 2006, at 4:55 PM, Alexandre Gomes wrote:
>
> > Hello all,
> >
> > I would appreciate help on this question:
> > Does the entity-one function at the screen widget level works on  
> > views?
> >
> > Thank you,
> >
> > Alexandre Gomes
> >
> >
> > _______________________________________________
> > Dev mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - entity-one works on views

Alexandre Gomes-8
David,

Didn't mention the log file.:

14099232[   PrimaryKeyFinder.java:132:INFO ] Returning null because
found incomplete primary key in find:
[GenericEntity:PartyAndPersonAndContactMech][partyId,10010(java.lang.String)]

Can you see the problem from this line?

Alexandre

On Tue, 2006-01-03 at 03:45 +0000, Alexandre Gomes wrote:

> David,
>
> Thanks for being such a kind soul.
>
> I'm trying to use the entity-one method for the editScreenName
> create/update screen pattern but somehow the query results empty. Do you
> need to create keys in the view (if that is possible)?
>
> Thanks,
> Alexandre
>
> On Mon, 2006-01-02 at 19:43 -0700, David E. Jones wrote:
> > Alexandre,
> >
> > Yes, view entities can be used just like normal entities in pretty  
> > much all entity engine or entity engine based operations.
> >
> > Why, are you running into a problem with this?
> >
> > -David
> >
> >
> > On Jan 2, 2006, at 4:55 PM, Alexandre Gomes wrote:
> >
> > > Hello all,
> > >
> > > I would appreciate help on this question:
> > > Does the entity-one function at the screen widget level works on  
> > > views?
> > >
> > > Thank you,
> > >
> > > Alexandre Gomes
> > >
> > >
> > > _______________________________________________
> > > Dev mailing list
> > > [hidden email]
> > > http://lists.ofbiz.org/mailman/listinfo/dev
> >
> >  
> > _______________________________________________
> > Dev mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - entity-one works on views

David E. Jones

Yes, I do see a problem. The primary key is not complete. The view  
entity, according to its name, has the ContactMech entity in it (via  
the PartyContactMech entity) so you are missing the contactMechId and  
the fromDate from those entities, and possibly more. You can see the  
full list in the entity reference page in WebTools.

The primary key of a view-entity is the combination of all primary  
keys in the member entities of the view entity.

-David


On Jan 2, 2006, at 9:01 PM, Alexandre Gomes wrote:

> David,
>
> Didn't mention the log file.:
>
> 14099232[   PrimaryKeyFinder.java:132:INFO ] Returning null because
> found incomplete primary key in find:
> [GenericEntity:PartyAndPersonAndContactMech][partyId,10010
> (java.lang.String)]
>
> Can you see the problem from this line?
>
> Alexandre
>
> On Tue, 2006-01-03 at 03:45 +0000, Alexandre Gomes wrote:
>> David,
>>
>> Thanks for being such a kind soul.
>>
>> I'm trying to use the entity-one method for the editScreenName
>> create/update screen pattern but somehow the query results empty.  
>> Do you
>> need to create keys in the view (if that is possible)?
>>
>> Thanks,
>> Alexandre
>>
>> On Mon, 2006-01-02 at 19:43 -0700, David E. Jones wrote:
>>> Alexandre,
>>>
>>> Yes, view entities can be used just like normal entities in pretty
>>> much all entity engine or entity engine based operations.
>>>
>>> Why, are you running into a problem with this?
>>>
>>> -David
>>>
>>>
>>> On Jan 2, 2006, at 4:55 PM, Alexandre Gomes wrote:
>>>
>>>> Hello all,
>>>>
>>>> I would appreciate help on this question:
>>>> Does the entity-one function at the screen widget level works on
>>>> views?
>>>>
>>>> Thank you,
>>>>
>>>> Alexandre Gomes
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/dev
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev