[OFBiz] Users - Data Type not found in Generic Value from a Dynamic View Entity.

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

[OFBiz] Users - Data Type not found in Generic Value from a Dynamic View Entity.

Mike Baschky
Hello,
 I'm using a dynamic view entity to generate a list of generic values used to
 populate information on an FTl. Proir to the ftl step I modify one of the fields in
 each of the generic values in the dve list by adding in some additional info to an existing field.
 However when I try to modify said field I get the following exception:
 'java.lang.IllegalArgumentException: Type description not found'. This appears to
 be a pathing issue but if this was the case I should neve have been able to generate
 the list of entities in the first place. Now for the clincher - this code use to work
 in Ofbiz3.0.0 - I am actually in the processes of upgrading our app to work on the
 'newer' ofbiz layout. Has anyone run into something like this before and could you tell
 me how to fix this problem.
 
Mike Baschky
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Data Type not found in Generic Value from a Dynamic View Entity.

Peter Goron
Hi Mike,

I've reported this issue on JIRA (OFBIZ-458) but I don't know enough
entity engine to solve it.

Peter

Le lundi 24 octobre 2005 à 10:00 -0500, Mike Baschky a écrit :

> Hello,
>  I'm using a dynamic view entity to generate a list of generic values used to
>  populate information on an FTl. Proir to the ftl step I modify one of the fields in
>  each of the generic values in the dve list by adding in some additional info to an existing field.
>  However when I try to modify said field I get the following exception:
>  'java.lang.IllegalArgumentException: Type description not found'. This appears to
>  be a pathing issue but if this was the case I should neve have been able to generate
>  the list of entities in the first place. Now for the clincher - this code use to work
>  in Ofbiz3.0.0 - I am actually in the processes of upgrading our app to work on the
>  'newer' ofbiz layout. Has anyone run into something like this before and could you tell
>  me how to fix this problem.
>  
> Mike Baschky


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

Re: [OFBiz] Users - Data Type not found in Generic Value from a Dynamic View Entity.

David E. Jones

This is still an issue but not one I consider a high priority.  
DynamicViewEntity is mostly used for querying and not for updating,  
though in theory it should work fine for updating in certain  
circumstances, but I'm guessing that for real updates there would be  
more issues like this one because a DynamicViewEntity isn't real  
entity like a normal entity or a view-entity is because they aren't  
tied into certain other things.

For the display code I wouldn't recommend trying to modify any entity  
in-line, it can make the code confusing and you are restricted to the  
field names in the entity, so it often ends up becoming somewhat of a  
hack. It is better to create a more generic Map to put the data in,  
or just do getRelateds or whatever right inside the FTL template or  
form definition.

Of course another thing to keep in mind is that if you do prepare  
data in advance of the FTL/form/whatever then you need to make sure  
to do it on partial results to avoid running out of memory. If there  
is no chance of running out of memory it makes things easier, and you  
might even be able to simplify the query and such.

-David


On Oct 24, 2005, at 9:31 AM, Peter Goron wrote:

> Hi Mike,
>
> I've reported this issue on JIRA (OFBIZ-458) but I don't know enough
> entity engine to solve it.
>
> Peter
>
> Le lundi 24 octobre 2005 à 10:00 -0500, Mike Baschky a écrit :
>
>> Hello,
>>  I'm using a dynamic view entity to generate a list of generic  
>> values used to
>>  populate information on an FTl. Proir to the ftl step I modify  
>> one of the fields in
>>  each of the generic values in the dve list by adding in some  
>> additional info to an existing field.
>>  However when I try to modify said field I get the following  
>> exception:
>>  'java.lang.IllegalArgumentException: Type description not found'.  
>> This appears to
>>  be a pathing issue but if this was the case I should neve have  
>> been able to generate
>>  the list of entities in the first place. Now for the clincher -  
>> this code use to work
>>  in Ofbiz3.0.0 - I am actually in the processes of upgrading our  
>> app to work on the
>>  'newer' ofbiz layout. Has anyone run into something like this  
>> before and could you tell
>>  me how to fix this problem.
>>
>> Mike Baschky
>>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

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

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Data Type not found in Generic Value from a Dynamic View Entity.

Peter Goron
Thank you David for your explanations.

Peter


Le lundi 24 octobre 2005 à 11:39 -0600, David E. Jones a écrit :

> This is still an issue but not one I consider a high priority.  
> DynamicViewEntity is mostly used for querying and not for updating,  
> though in theory it should work fine for updating in certain  
> circumstances, but I'm guessing that for real updates there would be  
> more issues like this one because a DynamicViewEntity isn't real  
> entity like a normal entity or a view-entity is because they aren't  
> tied into certain other things.
>
> For the display code I wouldn't recommend trying to modify any entity  
> in-line, it can make the code confusing and you are restricted to the  
> field names in the entity, so it often ends up becoming somewhat of a  
> hack. It is better to create a more generic Map to put the data in,  
> or just do getRelateds or whatever right inside the FTL template or  
> form definition.
>
> Of course another thing to keep in mind is that if you do prepare  
> data in advance of the FTL/form/whatever then you need to make sure  
> to do it on partial results to avoid running out of memory. If there  
> is no chance of running out of memory it makes things easier, and you  
> might even be able to simplify the query and such.
>
> -David
>
>
> On Oct 24, 2005, at 9:31 AM, Peter Goron wrote:
>
> > Hi Mike,
> >
> > I've reported this issue on JIRA (OFBIZ-458) but I don't know enough
> > entity engine to solve it.
> >
> > Peter
> >
> > Le lundi 24 octobre 2005 à 10:00 -0500, Mike Baschky a écrit :
> >
> >> Hello,
> >>  I'm using a dynamic view entity to generate a list of generic  
> >> values used to
> >>  populate information on an FTl. Proir to the ftl step I modify  
> >> one of the fields in
> >>  each of the generic values in the dve list by adding in some  
> >> additional info to an existing field.
> >>  However when I try to modify said field I get the following  
> >> exception:
> >>  'java.lang.IllegalArgumentException: Type description not found'.  
> >> This appears to
> >>  be a pathing issue but if this was the case I should neve have  
> >> been able to generate
> >>  the list of entities in the first place. Now for the clincher -  
> >> this code use to work
> >>  in Ofbiz3.0.0 - I am actually in the processes of upgrading our  
> >> app to work on the
> >>  'newer' ofbiz layout. Has anyone run into something like this  
> >> before and could you tell
> >>  me how to fix this problem.
> >>
> >> Mike Baschky
> >>
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/users
> >
>
>  _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

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