Re: Proposal to remove some old code for DataVision and Velocity

2014-09-07 Thread Jacopo Cappellato
Ok, these integrations have been removed.
For details please refer to the OFBiz Attic page:

https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Attic

Jacopo

On Sep 3, 2014, at 11:18 AM, Jacopo Cappellato 
 wrote:

> Hi all,
> 
> there is some old code in OFBiz that is not currently maintained and, as far 
> as I know, is not used.
> In the dev list we are discussing about the opportunity to remove this code 
> and it was suggested to check in this user list to see how many people are 
> still using these components:
> 
> * DataVision: the code in OFBiz has not been updated for years, and the last 
> DataVision release dates back to 2008 but the version we have is even older.
> * Velocity: the version in OFBiz (1.6.1) was released in 2008 and the last 
> release of Velocity (1.7) is also rather old (2010).
> 
> Please let us know if and how you are using any of these.
> 
> Thanks,
> 
> Jacopo



Re: Multiple invoice templates

2014-09-07 Thread Pierre Smits
Nicolas,

It seems to me that this is essential to running OFBiz in a multi
organisation setup. Would you care to raise a JIRA issue of the type
'improvement' and include your code snippet there as a starting point?

Best regards,

Pierre Smits

*ORRTIZ.COM *
Services & Solutions for Cloud-
Based Manufacturing, Professional
Services and Retail & Trade
http://www.orrtiz.com


On Sat, Sep 6, 2014 at 8:44 AM, Nicolas Malin  wrote:

> Hi Ingo,
>
> When I have this case on a projet, I use the content system to load the
> template.
>
> Example :
>  Store a default template for each organization or a template specific by
> some customer.
>  * Create PartyContentType : INVOICE_TEMPLATE
>  * Load your templates en Content
>  * Associate your content to each organization in ofbiz
>  * if a customer have a specific template associate it
>
> On your InvoicePDF screen resolve the template by a groovy script :
> [code]
>//resolve if customer template is present
>partyContents = delegator.findByAndCache("PartyContent", [partyId :
> invoice.partyId])
>if (partyContents) partyContents = EntityUtil.filterByDate(partyContents,
> invoice.invoiceDate)
>if (partyContents) partyContent = partyContents[0]
>
>if (!partyContent) { //resolve if organization hasa template
>partyContents = delegator.findByAndCache("PartyContent", [partyId
> : invoice.partyIdFrom])
>if (partyContents) partyContents = 
> EntityUtil.filterByDate(partyContents,
> invoice.invoiceDate)
>if (partyContents) partyContent = partyContents[0]
>}
> [/code]
> Warn, I wrote the code on the fly, maybe it doesn't contains the absolute
> true ;)
>
> Now you have a content, you can resolve your flow has you want (ftl
> injection, content service to renderer string), etc 
>
>
> Le 05/09/2014 23:25, iwolf a écrit :
>
>  Hi All,
>>
>> I am looking for a way to add additional invoice templates without
>> changing
>> to much of the original ofbiz code if possible.
>>
>> The case:
>> - multiple unrelated companies
>> - multi tenant environment
>> - multiple invoice layouts
>>
>> Any hint/idea would be appreciated.
>>
>> Kind regards,
>> Ingo
>>
>>
>>
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.
>> com/Multiple-invoice-templates-tp4654897.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
>


Re: Tenant datasource helper missing

2014-09-07 Thread Pierre Smits
Ingo,

This might be related to an issue already registered in JIRA. Have a look
at: https://issues.apache.org/jira/browse/OFBIZ-5729

Best regards,

Pierre Smits

*ORRTIZ.COM *
Services & Solutions for Cloud-
Based Manufacturing, Professional
Services and Retail & Trade
http://www.orrtiz.com


On Sat, Sep 6, 2014 at 11:43 PM, iwolf  wrote:

> Hi,
>
> I am running a multi tenant environment with three tenants. When I go to
> "webtools/control/ConnectionPoolStatus" I can only see 3 lines
>
> Helper name: ofbizolap_demo1
> Helper name: ofbiz_demo1
> Helper name: demotenant (tenant data source)
>
> The helpers for the two other tenants are missing. The log shows lots of:
> "There is no datasource (Helper) configured for the entity-group
> [org.ofbiz.tenant];"
>
> All tenants seem to work fine. Data stored in the right database, no
> problems in the front end...
> On Start-Up: Delegator "default#demo2" NOT initializing helper for entity
> group "org.ofbiz.tenant" because the group is not associated to this
> delegator.
>
> Entity setup of all tenants is identical:
>
>  entity-group-reader="main" entity-eca-reader="main"
> distributed-cache-clear-enabled="false">
>  datasource-name="demotenant"/>
> 
>  datasource-name="ofbizolap_demo1"/>
> 
>  datasource-name="ofbizolap_demo2"/>
> 
>  datasource-name="ofbizolap_demo3"/>
> 
>
> Using 13.07., MySQL
>
> Thanks for any hint,
> Ingo
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Tenant-datasource-helper-missing-tp4654914.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: How are OFBiz containers started when OFBiz is deployed in an external servlet container?

2014-09-07 Thread Jacopo Cappellato
no one?

Jacopo

On Sep 3, 2014, at 9:00 AM, Jacopo Cappellato 
 wrote:

> This is a question for the ones that are deploying OFBiz in external 
> application servers/servlet containers, either using the scripts from 
> specialpurpose/appservers or manually.
> I don't see in the scripts in specialpurpose/appservers anything related to 
> the initialization of OFBiz containers (component etc...) . What am I missing?
> 
> Thanks,
> 
> Jacopo
> 



Re: Tenant datasource helper missing

2014-09-07 Thread iwolf
Hi Pierre,

thanks for the fast reply. I checked with the registred issue but I think my
problem will not be solved with the patch.

Maybe someone can help me understand the following lines when ofbiz is
started (picket all "helper initializing" infos in order of their
appearance):

Delegator "default" initializing helper "ofbizolap_demo" for entity group
"org.ofbiz.olap".
Delegator "default" initializing helper "demotenant" for entity group
"org.ofbiz.tenant".
Delegator "default" initializing helper "ofbiz_demo" for entity group
"org.ofbiz".
--> ok until here
Delegator "default#demo1" NOT initializing helper for entity group
"org.ofbiz.tenant" because the group is not associated to this delegator.
--> where do I associate the delegator

Delegator "default#demo1" initializing helper "ofbizolap_demo" for entity
group "org.ofbiz.olap".
--> why is a helper initialized  for tenant demo1 that should be used for
tenant demo.

Delegator "default#demo1" initializing helper "ofbiz_demo" for entity group
"org.ofbiz".
Delegator "default#demo1" initializing helper "ofbizolap_demo" for entity
group "org.ofbiz.olap".
Delegator "default#demo1" NOT initializing helper for entity group
"org.ofbiz.tenant" because the group is not associated to this delegator
Delegator "default#demo1" initializing helper "ofbiz_demo" for entity group
"org.ofbiz".
Delegator "default#demo" initializing helper "ofbizolap_demo" for entity
group "org.ofbiz.olap".
Delegator "default#demo" NOT initializing helper for entity group
"org.ofbiz.tenant" because the group is not associated to this delegator.
Delegator "default#demo" initializing helper "ofbiz_demo" for entity group
"org.ofbiz".
...

Kind regards,
Ingo



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Tenant-datasource-helper-missing-tp4654914p4654937.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: findList method in Groovy..

2014-09-07 Thread Jacques Le Roux

Do you know that you are sometimes cryptic :D ?

I can find the string findList(java.lang.String entityName, EntityCondition entityCondition, java.util.Set fieldsToSelect, 
java.util.List orderBy, EntityFindOptions findOptions, boolean useCache)
at 
http://ci.apache.org/projects/ofbiz/site/javadocs/org/ofbiz/entity/Delegator.html#findByAnd%28java.lang.String,java.util.Map,%20java.util.List,%20boolean%29


And found 359 occurences of "findList" in *.gro* files in OFBiz trunk HEAD

What is your question?

Jacques

Le 05/09/2014 21:16, jfrad...@styleline.com a écrit :

FYI that is a dead link now?

I did find
http://ci.apache.org/projects/ofbiz/site/javadocs/org/ofbiz/entity/Delegator.html#findByAnd(java.lang.String,
java.util.Map, java.util.List, boolean)

and do a find findlist for field defs.

findList(java.lang.String entityName, EntityCondition entityCondition,
java.util.Set fieldsToSelect,
java.util.List orderBy, EntityFindOptions findOptions,
boolean useCache)



-
Joel Fradkin
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/findList-method-in-Groovy-tp278232p4654892.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: How are OFBiz containers started when OFBiz is deployed in an external servlet container?

2014-09-07 Thread Jacques Le Roux

Hi Jacopo,

Are you still interested in an answer to this question?

Jacques

Le 03/09/2014 09:00, Jacopo Cappellato a écrit :

This is a question for the ones that are deploying OFBiz in external 
application servers/servlet containers, either using the scripts from 
specialpurpose/appservers or manually.
I don't see in the scripts in specialpurpose/appservers anything related to the 
initialization of OFBiz containers (component etc...) . What am I missing?

Thanks,

Jacopo





Re: How are OFBiz containers started when OFBiz is deployed in an external servlet container?

2014-09-07 Thread Jacopo Cappellato
yes!

On Sep 7, 2014, at 10:26 PM, Jacques Le Roux  
wrote:

> Hi Jacopo,
> 
> Are you still interested in an answer to this question?
> 
> Jacques
> 
> Le 03/09/2014 09:00, Jacopo Cappellato a écrit :
>> This is a question for the ones that are deploying OFBiz in external 
>> application servers/servlet containers, either using the scripts from 
>> specialpurpose/appservers or manually.
>> I don't see in the scripts in specialpurpose/appservers anything related to 
>> the initialization of OFBiz containers (component etc...) . What am I 
>> missing?
>> 
>> Thanks,
>> 
>> Jacopo
>> 
>> 
>> 



Re: Tenant datasource helper missing

2014-09-07 Thread Pierre Smits
Hi Ingo,

Can you recall the steps you took that lead to the mishap and list them
here, so that I and others can understand this issue?

Best regards,


Pierre Smits

*ORRTIZ.COM *
Services & Solutions for Cloud-
Based Manufacturing, Professional
Services and Retail & Trade
http://www.orrtiz.com

On Sun, Sep 7, 2014 at 9:01 PM, iwolf  wrote:

> Hi Pierre,
>
> thanks for the fast reply. I checked with the registred issue but I think
> my
> problem will not be solved with the patch.
>
> Maybe someone can help me understand the following lines when ofbiz is
> started (picket all "helper initializing" infos in order of their
> appearance):
>
> Delegator "default" initializing helper "ofbizolap_demo" for entity group
> "org.ofbiz.olap".
> Delegator "default" initializing helper "demotenant" for entity group
> "org.ofbiz.tenant".
> Delegator "default" initializing helper "ofbiz_demo" for entity group
> "org.ofbiz".
> --> ok until here
> Delegator "default#demo1" NOT initializing helper for entity group
> "org.ofbiz.tenant" because the group is not associated to this delegator.
> --> where do I associate the delegator
>
> Delegator "default#demo1" initializing helper "ofbizolap_demo" for entity
> group "org.ofbiz.olap".
> --> why is a helper initialized  for tenant demo1 that should be used for
> tenant demo.
>
> Delegator "default#demo1" initializing helper "ofbiz_demo" for entity group
> "org.ofbiz".
> Delegator "default#demo1" initializing helper "ofbizolap_demo" for entity
> group "org.ofbiz.olap".
> Delegator "default#demo1" NOT initializing helper for entity group
> "org.ofbiz.tenant" because the group is not associated to this delegator
> Delegator "default#demo1" initializing helper "ofbiz_demo" for entity group
> "org.ofbiz".
> Delegator "default#demo" initializing helper "ofbizolap_demo" for entity
> group "org.ofbiz.olap".
> Delegator "default#demo" NOT initializing helper for entity group
> "org.ofbiz.tenant" because the group is not associated to this delegator.
> Delegator "default#demo" initializing helper "ofbiz_demo" for entity group
> "org.ofbiz".
> ...
>
> Kind regards,
> Ingo
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Tenant-datasource-helper-missing-tp4654914p4654937.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>