Re: Party Relationship and Party Roles

2014-10-12 Thread Mansour Al Akeel
Jacopo,
Thank you a lot. I missed this one.
It explains it and removes the confusion.


On Sun, Oct 12, 2014 at 3:10 AM, Jacopo Cappellato
 wrote:
> Are you sure it is not already implemented like this?
>
> See the following constraints from the Partyrelationship entity definition:
>
>rel-entity-name="PartyRole">
> 
> 
>   
>rel-entity-name="PartyRole">
> 
> 
>   
>
> Jacopo
>
> On Oct 12, 2014, at 9:05 AM, Mansour Al Akeel  
> wrote:
>
>> Jacopo,
>>
>> The way to enforce the constraints is to define the PartyRelationship
>> between pair of PartyRoles, and NOT between partyIds and roleTypes.
>> This is what I meant.
>>
>>
>>
>> On Sun, Oct 12, 2014 at 2:54 AM, Mansour Al Akeel
>>  wrote:
>>>>> In this case, we don't need to define the party ids in the
>>>>> PartyRelationship, because the PartyRole entity has them. All we do is
>>>>> we reference PartyRole(s).
>>>>
>>>> If I understand, you are suggesting to extend/use PartyRole in place of 
>>>> PartyRelationship; why not using PartyRelationship instead?
>>>
>>> Not exactly ! I am suggesting to use BOTH for a PartyRelationship. A
>>> party that has a Role of Type MANAGER, can be involved in a MANAGE
>>> relationship.
>>> In the current setup, any party can get engaged in any relation. So
>>> the Party "John Black", does not need to have the PartyRole "Customer"
>>> in order to have a relationship with DEF inc.
>>> And similarly, ABC inc does not need to have EMPLOYER ROLE in order to
>>> have an EMPLOYMENT relationship with other Party.
>>>
>>> The relationship is defined by two roles. Each role is defined by
>>> Party and RoleType.
>>>
>>>
>>>>
>>>>>
>>>>>
>>>>>> Summary:
>>>>>> * "party role": the roles that a given party *can* play
>>>>>> * "party relationship": the actual roles played by a given party (with 
>>>>>> respect to other parties).
>>>>>>
>>>>>
>>>>> This clarifies it. But don't we find this confusing ? Why does someone
>>>>> get involved into a DEVELOPER relationship if she does not have the
>>>>> DEVELOPER PartyRole ?
>>>>
>>>> It can't. The process should look like:
>>>> 1) add developer information to a party and add the DEVELOPER role to it; 
>>>> this means that now the party can play the role of a developer in some 
>>>> party relationship
>>>> 2) create one or more party relationship where the party is a developer 
>>>> for some other party
>>>>
>>>
>>> Perfect. So we are on the same page here. This is how I would model
>>> it. But the current model doesn't enforce this constraints. It allows
>>> the party "Mary" to be involved in a relationship that with
>>> "DEVELOPER" RoleType.
>>> Please note that she does not have DEVELOPER Role, but the
>>> PartyRelationship entity has the fields "roleTypeIdFrom" and
>>> "roleTypeIdTo" which allows to break this constraints, and create
>>> confusion.
>


Re: Party Relationship and Party Roles

2014-10-12 Thread Mansour Al Akeel
Jacopo,

The way to enforce the constraints is to define the PartyRelationship
between pair of PartyRoles, and NOT between partyIds and roleTypes.
This is what I meant.



On Sun, Oct 12, 2014 at 2:54 AM, Mansour Al Akeel
 wrote:
>>> In this case, we don't need to define the party ids in the
>>> PartyRelationship, because the PartyRole entity has them. All we do is
>>> we reference PartyRole(s).
>>
>> If I understand, you are suggesting to extend/use PartyRole in place of 
>> PartyRelationship; why not using PartyRelationship instead?
>
> Not exactly ! I am suggesting to use BOTH for a PartyRelationship. A
> party that has a Role of Type MANAGER, can be involved in a MANAGE
> relationship.
> In the current setup, any party can get engaged in any relation. So
> the Party "John Black", does not need to have the PartyRole "Customer"
> in order to have a relationship with DEF inc.
> And similarly, ABC inc does not need to have EMPLOYER ROLE in order to
> have an EMPLOYMENT relationship with other Party.
>
> The relationship is defined by two roles. Each role is defined by
> Party and RoleType.
>
>
>>
>>>
>>>
>>>> Summary:
>>>> * "party role": the roles that a given party *can* play
>>>> * "party relationship": the actual roles played by a given party (with 
>>>> respect to other parties).
>>>>
>>>
>>> This clarifies it. But don't we find this confusing ? Why does someone
>>> get involved into a DEVELOPER relationship if she does not have the
>>> DEVELOPER PartyRole ?
>>
>> It can't. The process should look like:
>> 1) add developer information to a party and add the DEVELOPER role to it; 
>> this means that now the party can play the role of a developer in some party 
>> relationship
>> 2) create one or more party relationship where the party is a developer for 
>> some other party
>>
>
> Perfect. So we are on the same page here. This is how I would model
> it. But the current model doesn't enforce this constraints. It allows
> the party "Mary" to be involved in a relationship that with
> "DEVELOPER" RoleType.
> Please note that she does not have DEVELOPER Role, but the
> PartyRelationship entity has the fields "roleTypeIdFrom" and
> "roleTypeIdTo" which allows to break this constraints, and create
> confusion.


Re: Party Relationship and Party Roles

2014-10-11 Thread Mansour Al Akeel
>> In this case, we don't need to define the party ids in the
>> PartyRelationship, because the PartyRole entity has them. All we do is
>> we reference PartyRole(s).
>
> If I understand, you are suggesting to extend/use PartyRole in place of 
> PartyRelationship; why not using PartyRelationship instead?

Not exactly ! I am suggesting to use BOTH for a PartyRelationship. A
party that has a Role of Type MANAGER, can be involved in a MANAGE
relationship.
In the current setup, any party can get engaged in any relation. So
the Party "John Black", does not need to have the PartyRole "Customer"
in order to have a relationship with DEF inc.
And similarly, ABC inc does not need to have EMPLOYER ROLE in order to
have an EMPLOYMENT relationship with other Party.

The relationship is defined by two roles. Each role is defined by
Party and RoleType.


>
>>
>>
>>> Summary:
>>> * "party role": the roles that a given party *can* play
>>> * "party relationship": the actual roles played by a given party (with 
>>> respect to other parties).
>>>
>>
>> This clarifies it. But don't we find this confusing ? Why does someone
>> get involved into a DEVELOPER relationship if she does not have the
>> DEVELOPER PartyRole ?
>
> It can't. The process should look like:
> 1) add developer information to a party and add the DEVELOPER role to it; 
> this means that now the party can play the role of a developer in some party 
> relationship
> 2) create one or more party relationship where the party is a developer for 
> some other party
>

Perfect. So we are on the same page here. This is how I would model
it. But the current model doesn't enforce this constraints. It allows
the party "Mary" to be involved in a relationship that with
"DEVELOPER" RoleType.
Please note that she does not have DEVELOPER Role, but the
PartyRelationship entity has the fields "roleTypeIdFrom" and
"roleTypeIdTo" which allows to break this constraints, and create
confusion.


Re: Party Relationship and Party Roles

2014-10-11 Thread Mansour Al Akeel
Jacopo,

If we normalize the data and reference PartyRole from
PartyRelationship, and remove the fields:

 partyIdFrom
 partyIdTo
   roleTypeIdFrom
 roleTypeIdTo
  fromDate
  thruDate

And replace them with:

fromRole
toRole

Then we will eliminate this confusion. We would still of course use
PartyRelationship, and not depricate it. In the business login and
security, we will need to check both PartyRole and PartyRelationship
depending on what the service is doing.

For searching, and party lookups, I completely agree with you. We can
still sort them and search role type to obtain a PartyRelationship.

Thank you.



On Sun, Oct 12, 2014 at 1:19 AM, Jacopo Cappellato
 wrote:
> On Oct 12, 2014, at 7:09 AM, Jacopo Cappellato 
>  wrote:
>
>> a) deprecating the party role entity
>
> One clarification: I didn't mean to say that we should remove the party role 
> entity; in fact it would be still useful because, in order to play different 
> party relationship, we will need to store different information for the 
> party; the party role entity is useful to tell you what are the roles that 
> can be played by a given party; what I meant to say is that in mostly all 
> business logics/screens we should replace lookups to party roles with lookups 
> to party relationships.
>
> Jacopo


Re: Party Relationship and Party Roles

2014-10-11 Thread Mansour Al Akeel
Jacopo,
Thank you a lot for your help. I will ask my questions in-line.

On Sun, Oct 12, 2014 at 1:09 AM, Jacopo Cappellato
 wrote:
> Hi Mansour,
>
> I will start with one example.
> Let's say that in OFBiz we have two companies (i.e. two PartyGroup), "ABC 
> inc" and "CDE inc", that run two different stores selling goods to their 
> customers; the only way to represent that a given person "John Black" is 
> customer of "ABC inc", but not of "CDE inc", is using a party relationship: 
> "John Black is a customer of the seller ABC inc". Now suppose that John Black 
> is also an employee of "CDE inc"; we can represent it with another party 
> relationship: "John Black is an employee of the employer CDE inc".
> The "party role" entity should be used to specify what are the roles that a 
> party can play. In our example, for John Black we would have two roles: 
> "customer" and "employee".
>
I will build on the example you gave, and model this scenario using
PartyRole refrenced from PartyRelation.
So we have four Roles involved.
CUSTOMER
SELLER
EMPLOYEE
EMPLOYER

John Black is a "CUSTOMER" when BUYING from the "SELLER" ABC inc.
John Black is an EMPLOYEE when WORKING_FOR the "EMPLOYER" CDE inc.

In this case, we don't need to define the party ids in the
PartyRelationship, because the PartyRole entity has them. All we do is
we reference PartyRole(s).


> Summary:
> * "party role": the roles that a given party *can* play
> * "party relationship": the actual roles played by a given party (with 
> respect to other parties).
>

This clarifies it. But don't we find this confusing ? Why does someone
get involved into a DEVELOPER relationship if she does not have the
DEVELOPER PartyRole ? I mean the whole point is data integrity, by
allowing only certain parties to be engaged in a specific
relationship. This way we are allowing everyone to have any
relationship. I hope I made my point clear.


> Unfortunately in OFBiz, most of the screens and services are not implemented 
> considering "party relationships" but only "party roles". This simplification 
> is a weakness of the current implementation.
> For example, a screen that lists all the "customers" doesn't make much sense 
> if you don't specify the company that is selling goods. Currently, if in 
> OFBiz a party has the role of "customer" then the system considers the party 
> is a customer in all the relationships.
>
> In my opinion we should refactor this by:
> a) deprecating the party role entity
> b) modify the existing code that is using party roles to use party 
> relationships
> c) use an _NA_ party id to specify party relationship that apply to all 
> parties
> d) in order to do #b we will need to specify, in most of the applications, 
> the company in which the logged in user is connected: in this way if a user 
> is associated to "ABC inc", in the "find customer" screen she will only see 
> parties that are customers of "ABC inc"
> e) (optional) normalize the from/to positions in PartyRelationship by sorting 
> them by role type id (this would simplify lookups etc)
>
> I hope it is useful information and I didn't add more confusion.
>
> Jacopo
>
> On Oct 11, 2014, at 11:57 PM, Mansour Al Akeel  
> wrote:
>
>> I consulted the Data Model Resource Book to refresh my memory about
>> the modelling for the roles and relationship for Party.
>>
>> In ofbiz, we have PartyRelationship between two parties. So each party
>> ID is used as a key, combined with the relationship type. The book
>> mentions on page 42, that when customizing the model, it's recommended
>> to draw the relationship between party roles.
>>
>> The part that I find confusing is, if we have the two party IDs in the
>> party_role entity, why don't we create the relationship between two
>> party roles, instead of duplicating the information in the
>> party_relationship entity ? For example, currently we have,
>>
>> party_relationship:
>> - from party id
>> - to party id
>> - from role type id
>> - to role type id
>> - start date
>> - end date .
>>
>> Can't we just use,
>> party_relationship:
>> -from role
>> - to role
>> - party relationship type
>>
>> assuming John has the role of developer. IBM has the role of employer.
>> We can use the directly in the party relationship. Using the current
>> model, we need to add the role_type to the party_relationship. If John
>> is no longer a developer, then we need to update in two entities, the
>> party_relationship, and the roles.
>>
>> I am not sure I understand the description in the book, and the design in 
>> ofbiz.
>>
>> Can someone kindly clarify the picture for me ??
>>
>> Thank you.
>


Re: Party Relationship and Party Roles

2014-10-11 Thread Mansour Al Akeel
Taher,
Thank you for th detailed explainatin. I understand the purpose of
party_role, and asking why do we link party_relatinship to  party, rather
than party_role.

Party_role entity contains partyIDs and roles types, still we duplicate
this infomation in party_relationship.

I hope this clarifies the source of confusion. The explaination in the book
was not clear to me either.

Thank you for any help.
 On 2014-10-11 6:48 PM, "Taher Alkhateeb" 
wrote:

> Hi Mansour,
>
> Simply speaking the party_role entity assigns roles to parties which can be
> applied to many entities among which one of them is party_relationship. For
> example, WorkEffortPartyAssignment links a party to a workeffort through a
> role. Thus the partyrole is an entity to be (depending on some factors)
> used for validation of the existence of the role before assigning it to one
> of the relationship entities. At least that's my interpretation of it.
>
> Taher Alkhateeb
> On Oct 12, 2014 12:58 AM, "Mansour Al Akeel" 
> wrote:
>
> > I consulted the Data Model Resource Book to refresh my memory about
> > the modelling for the roles and relationship for Party.
> >
> > In ofbiz, we have PartyRelationship between two parties. So each party
> > ID is used as a key, combined with the relationship type. The book
> > mentions on page 42, that when customizing the model, it's recommended
> > to draw the relationship between party roles.
> >
> > The part that I find confusing is, if we have the two party IDs in the
> > party_role entity, why don't we create the relationship between two
> > party roles, instead of duplicating the information in the
> > party_relationship entity ? For example, currently we have,
> >
> > party_relationship:
> > - from party id
> > - to party id
> > - from role type id
> > - to role type id
> > - start date
> > - end date .
> >
> > Can't we just use,
> > party_relationship:
> > -from role
> > - to role
> > - party relationship type
> >
> > assuming John has the role of developer. IBM has the role of employer.
> > We can use the directly in the party relationship. Using the current
> > model, we need to add the role_type to the party_relationship. If John
> > is no longer a developer, then we need to update in two entities, the
> > party_relationship, and the roles.
> >
> > I am not sure I understand the description in the book, and the design in
> > ofbiz.
> >
> > Can someone kindly clarify the picture for me ??
> >
> > Thank you.
> >
>


Party Relationship and Party Roles

2014-10-11 Thread Mansour Al Akeel
I consulted the Data Model Resource Book to refresh my memory about
the modelling for the roles and relationship for Party.

In ofbiz, we have PartyRelationship between two parties. So each party
ID is used as a key, combined with the relationship type. The book
mentions on page 42, that when customizing the model, it's recommended
to draw the relationship between party roles.

The part that I find confusing is, if we have the two party IDs in the
party_role entity, why don't we create the relationship between two
party roles, instead of duplicating the information in the
party_relationship entity ? For example, currently we have,

party_relationship:
- from party id
- to party id
- from role type id
- to role type id
- start date
- end date .

Can't we just use,
party_relationship:
-from role
- to role
- party relationship type

assuming John has the role of developer. IBM has the role of employer.
We can use the directly in the party relationship. Using the current
model, we need to add the role_type to the party_relationship. If John
is no longer a developer, then we need to update in two entities, the
party_relationship, and the roles.

I am not sure I understand the description in the book, and the design in ofbiz.

Can someone kindly clarify the picture for me ??

Thank you.


Re: Build and Deploy Ofbiz on Production

2012-06-20 Thread Mansour Al Akeel
Jacques,
I tried it in different versions of tomcat and ofbiz revisions. I
tested it on ofbiz 10.04 and 11.04 with tomcat 6 and 7.
It failed in all cases. I am not sure if there's a way to modify ofbiz
to be depoyed just like moqui, where we drop a war file
in tomcat, and make it point to the location of the additional components.


On Wed, Jun 20, 2012 at 12:39 AM, Jacques Le Roux
 wrote:
> It depends on versions
> https://cwiki.apache.org/confluence/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers
> Seems that lastly some issues were crossed.
>
> Jacques
>
> From: "Mansour Al Akeel" 
>
>> deployment to external tomcat is not supported, and not working properly.
>>
>>
>> On Thu, Jun 7, 2012 at 4:49 PM, Deepak Agarwal 
>> wrote:
>>>
>>> Try this:
>>> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>>>
>>> On Fri, Jun 8, 2012 at 2:12 AM, Deepak Agarwal 
>>> wrote:
>>>
>>>> There is a separate well return guide to deploy ofbiz in tomcat (if not
>>>> using embedded tomcat) with or without Apache (httpd).
>>>>
>>>> On Thu, Jun 7, 2012 at 6:01 PM, guptahim  wrote:
>>>>
>>>>> Hi,
>>>>> I have to deploy and build Ofbiz on linux server. I have following
>>>>> questions-
>>>>> 1. Is there any production set up guide?
>>>>> 2. Should we use embedded app server(Jetty) or do we need to set up on
>>>>> tomcat.
>>>>> 3. Do we have any build and deploy inbuilt in Ofbiz.
>>>>> 4. The Production set up guide at
>>>>>
>>>>>
>>>>> https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html
>>>>> does not give information as how to create war of ofbiz.
>>>>>
>>>>> -
>>>>> Himanshu Gupta
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://ofbiz.135035.n4.nabble.com/Build-and-Deploy-Ofbiz-on-Production-tp461.html
>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>>>
>>>>> --
>>>>> Thanks,
>>>>> Deepak Agarwal,
>>>>>
>>>>> Paxcel Technologies Pvt Ltd.
>>>>> Hartron Complex, Sector 18, Gurgaon, India.
>>>>> E-Mail: deepak.agar...@paxcel.net
>>>>> Mobile: +91 9910322604
>>>>>
>>>>>
>>>
>>>
>>> --
>>> Thanks,
>>> Deepak Agarwal,
>>>
>>> Paxcel Technologies Pvt Ltd.
>>> Hartron Complex, Sector 18, Gurgaon, India.
>>> E-Mail: deepak.agar...@paxcel.net
>>> Mobile: +91 9910322604


Re: Build and Deploy Ofbiz on Production

2012-06-19 Thread Mansour Al Akeel
deployment to external tomcat is not supported, and not working properly.


On Thu, Jun 7, 2012 at 4:49 PM, Deepak Agarwal  wrote:
> Try this:
> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>
> On Fri, Jun 8, 2012 at 2:12 AM, Deepak Agarwal  wrote:
>
>> There is a separate well return guide to deploy ofbiz in tomcat (if not
>> using embedded tomcat) with or without Apache (httpd).
>>
>> On Thu, Jun 7, 2012 at 6:01 PM, guptahim  wrote:
>>
>>> Hi,
>>> I have to deploy and build Ofbiz on linux server. I have following
>>> questions-
>>> 1. Is there any production set up guide?
>>> 2. Should we use embedded app server(Jetty) or do we need to set up on
>>> tomcat.
>>> 3. Do we have any build and deploy inbuilt in Ofbiz.
>>> 4. The Production set up guide at
>>>
>>> https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html
>>> does not give information as how to create war of ofbiz.
>>>
>>> -
>>> Himanshu Gupta
>>> --
>>> View this message in context:
>>> http://ofbiz.135035.n4.nabble.com/Build-and-Deploy-Ofbiz-on-Production-tp461.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>> --
>>> Thanks,
>>> Deepak Agarwal,
>>>
>>> Paxcel Technologies Pvt Ltd.
>>> Hartron Complex, Sector 18, Gurgaon, India.
>>> E-Mail: deepak.agar...@paxcel.net
>>> Mobile: +91 9910322604
>>>
>>>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: deepak.agar...@paxcel.net
> Mobile: +91 9910322604


Re: JSON RPC

2012-06-13 Thread Mansour Al Akeel
Amit,
I gave it another thought, and I see what you mean. I need to modify
the code and tweak it a bit and use it as a component to call another
services. This will be fine for now, but I will lose control over some
service that should not be exported. It will be nice if I can get the
same as the xmlrpc. For now this should work. I am getting a
nullPointerException with this code as the header is not being
initialized properly or not injected.

 @Context
HttpHeaders headers;

I am still digging. Thank you a lot.



On Wed, Jun 13, 2012 at 1:23 AM, Amit  wrote:
> Hi Mansour,
>
> In the given example if you change Response object to String using JSON,
> that should work for you.
>
> Thanks and Regards
> Amit Sharma
>
>
> On Wednesday 13 June 2012 10:44 AM, Amit wrote:
>>
>> Use REST https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
>>
>> HTH!
>>
>> Thank and Regards,
>> Amit Sharma
>>
>> On Wednesday 13 June 2012 10:18 AM, Mansour Al Akeel wrote:
>>>
>>> Is there a way to get JSON for all the services. Like SOAPService or
>>> xmlrpc, I like to be able to call the service through http in the same
>>> pattern:
>>>
>>> http://demo-trunk.ofbiz.apache.org/webtools/control/SOAPService/
>>>
>>> I looked in ./service/config/serviceengine.xml but couldn't find any
>>> reference to JSON engine. The closest I found is xmlrpc but nothing
>>> related to json.
>>>
>>>  >> class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>>             >> value="http://localhost:8080/webtools/control/xmlrpc"/>
>>>             
>>>             
>>> 
>>>
>>> Is there a way to add json handler ?? for example
>>> http://demo-trunk.ofbiz.apache.org/webtools/control/jsonrpc
>>>
>>> thank you.
>>
>>
>


Re: JSON RPC

2012-06-12 Thread Mansour Al Akeel
Amit,
can not thank you enough for the fast response. I am still lost, and I
believe I am missing something.
The example is talking about creating a new component, but I need to
use existing ones.
It's not clear to me how to call the service and get json response. My
needs is to do something like what is in the article
and get json.
https://cwiki.apache.org/OFBIZ/using-xmlrpc-as-an-alternative-to-soap.html


Thank you a lot.



On Wed, Jun 13, 2012 at 1:23 AM, Amit  wrote:
> Hi Mansour,
>
> In the given example if you change Response object to String using JSON,
> that should work for you.
>
> Thanks and Regards
> Amit Sharma
>
>
> On Wednesday 13 June 2012 10:44 AM, Amit wrote:
>>
>> Use REST https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
>>
>> HTH!
>>
>> Thank and Regards,
>> Amit Sharma
>>
>> On Wednesday 13 June 2012 10:18 AM, Mansour Al Akeel wrote:
>>>
>>> Is there a way to get JSON for all the services. Like SOAPService or
>>> xmlrpc, I like to be able to call the service through http in the same
>>> pattern:
>>>
>>> http://demo-trunk.ofbiz.apache.org/webtools/control/SOAPService/
>>>
>>> I looked in ./service/config/serviceengine.xml but couldn't find any
>>> reference to JSON engine. The closest I found is xmlrpc but nothing
>>> related to json.
>>>
>>>  >> class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>>             >> value="http://localhost:8080/webtools/control/xmlrpc"/>
>>>             
>>>             
>>> 
>>>
>>> Is there a way to add json handler ?? for example
>>> http://demo-trunk.ofbiz.apache.org/webtools/control/jsonrpc
>>>
>>> thank you.
>>
>>
>


Re: Creating invoice fromPartyId

2012-03-31 Thread Mansour Al Akeel
Ok, I figured it out.
I had to complete the setup for the Internal organization at 
https://localhost:8443/accounting/control/ListCompanies

Thank you.



On Sat Mar 31,2012 08:53 pm, Mansour Al Akeel wrote:
> Under the screen:
> 
> accounting >> Invoices >> Create New Invoice 
> 
> We can create sales invoices. However, "Organization Party Id" is not 
> populated 
> with a newly created party. According to the Data Module Resource Book,
> fromParty has to be INTERNAL ORGINATION. May be I am missing something here. 
> 
> I have created a party and added the roles:
> 
> VENDOR  
> ADDRESSEE 
> BILL_FROM_VENDOR  
> BILL_TO_CUSTOMER 
> CARRIER   
> INTERNAL_ORGANIZATIO 
> SUPPLIER
> 
> I have created accounts for this party similar to the ones that come
> with the demo "Company" party. 
> 
> I still, can not see that party in the drop down menu (Organization Party Id) 
> in the mentioned screen. 
> 
> What conditions a party have to satisfy in order to be able to issue Bills ?
> 
> 
> Thank you.
> 
> 
> 
> 
> 


Creating invoice fromPartyId

2012-03-31 Thread Mansour Al Akeel
Under the screen:

accounting >> Invoices >> Create New Invoice 

We can create sales invoices. However, "Organization Party Id" is not populated 
with a newly created party. According to the Data Module Resource Book,
fromParty has to be INTERNAL ORGINATION. May be I am missing something here. 

I have created a party and added the roles:

VENDOR  
ADDRESSEE 
BILL_FROM_VENDOR  
BILL_TO_CUSTOMER 
CARRIER   
INTERNAL_ORGANIZATIO 
SUPPLIER

I have created accounts for this party similar to the ones that come
with the demo "Company" party. 

I still, can not see that party in the drop down menu (Organization Party Id) 
in the mentioned screen. 

What conditions a party have to satisfy in order to be able to issue Bills ?


Thank you.







Re: Problem connecting two separate Ofbiz instances to a common Oracle DB

2012-03-26 Thread Mansour Al Akeel
I don't know a lot about Oracle, but a quick search, gave me this:
http://www.dbforums.com/oracle/1631298-java-sql-sqlexception-ora-00955-name-already-used-existing-object.html

Not sure if this is the case.


On Mon, Mar 26, 2012 at 6:04 AM, micman.manoj  wrote:
> I have installed Ofbiz in two local pcs. So long I have been accessing the
> embedded Derby databases in the respective OfBiz bundles. Now, I tried to
> connect to a common Oracle production database.  I made the changes in/
> entityengine.xml /file, then ran "build".  First, I did these operations
> from pc1 and the changes were successful. All the application tables and
> user defined entity tables were created successfully. However, when I tried
> to do the same from pc2 I ended up with many errors during the "build"
> phase.
>
>    / [java] Error was: java.sql.SQLException: ORA-00955: name is already
> used by
>  an existing object/
>
> Probably, the access to the common database from pc2 tried to create all the
> application tables again and had bumped into this error.
> One solution to this problem could be to drop the existing tables and try
> the build from pc2, but this is not a recommended solution. then how do I
> connect to the common Oracle DB?
> or how do I populate seed data to existing oracle tables without
> encountering the above said error, which throws up for all the ofbiz tables
> in the bundle?
>
> --
> View this message in context: 
> http://ofbiz.135035.n4.nabble.com/Problem-connecting-two-separate-Ofbiz-instances-to-a-common-Oracle-DB-tp4505305p4505305.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Beanshell source code

2012-03-23 Thread Mansour Al Akeel
Daniel,
2 of the jars included with ofbiz are modified

bsh-2.0b4.jar  jdbm-1.0-SNAPSHOT.jar

Or at least I was not able to find them anywhere else.
The following IVY dependencies are required to compile base component.
I didn't not test it running.

  







































For owasp-esapi-full-java-1.4.jar it had to be downloaded manually.
As you can see bsf:bsf:2.4.0 is in the list, so it should be ok to get
the corresponding source code.



On Fri, Mar 23, 2012 at 1:52 PM, Jacques Le Roux
 wrote:
> Ha yes, I remember now, David made some changes there indeed. Mostly for the
> cache part IIRW.
>
> Mmm... no ideas about where the source could be now... Maybe David will read
> this...
>
>
> Jacques
>
> From: "Daniel McAllister" 
>>
>> It's not wrong. Can you please help me with getting the source code? I
>> need
>> the source for both bsf and bsh.
>> I have downloaded the bsf source code from here
>> http://commons.apache.org/bsf/download_bsf.cgi but it seems that it's not
>> the correct source.
>>
>> What I try to do is debug bsh files and write a debugger for it.
>>
>> On Fri, Mar 23, 2012 at 5:51 PM, Jacques Le Roux <
>> jacques.le.r...@les7arts.com> wrote:
>>
>>> So you mean
>>> https://svn.apache.org/repos/**asf/ofbiz/branches/release4.0/*
>>>
>>> *framework/base/lib/scripting/**bsf-2.4.0.jar
>>> is wrong?
>>>
>>> Jacques
>>>
>>> From: "Daniel McAllister" 
>>>
>>>  Hello!


 I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking
 for
 is the Beanshell source-code that is bundled with this version. More
 specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
 patched, but the jar file's name doesn't reflect the patches. I have
 found
 several patches at here
 https://issues.apache.org/**jira/browse/OFBIZbut
 it's very confusing what patches should i apply on the original
 Beanshell
 source.

 Someone please send me the source-code of the bsh jar.

 Thx, Daniel.


>>
>


Re: Is ofbiz going the sugarcrm, magento route? (essential extra's are commercial?)

2012-03-21 Thread Mansour Al Akeel
As of now, anyone can disable components, and enable them as an extra
commercial plugins. An if they are downloaded separately, it doesn't
add to their commercial value. I am not sure if I missing something
here.

For example, at this point, anyone can disable Birt component, and say
"Hey, I can add for you a reporting tools for $ extra".
The work involved will be just enabling it. IMHO there's no way to
control the honesty of any commercial organization except competition
and keeping it open source.

Jacopo's proposal is good for the health of the product. I believe
having a smaller code base will encourage users to contribute more,
and enforce a little bit more control over what goes into the SVN. If
there's unmaintained code, then it can be marked unmaintained by
moving it out, and eventually, someone party will pick it and maintain
it as an open source or commercial, depending on their business model.



On Wed, Mar 21, 2012 at 9:00 AM, Hans Bakker  wrote:
> (I also copied the user list because users are heavily impacted here. Users
> please read the development forum at http://www.ofbiz.info)
>
> Hi Everybody interested in the future of ofbiz,
> -
> *i am very concerned with the current route which is proposed by Jacopo in
> the development mailing list: "Lose Weight Program for OFBiz"*
>
> Why?
>
> Have only a minimal core ERP with minimal functionality, anything extra is
> moved to either:
> 1. *Apache extras* (http://www.apache-extras.com) which is just a url link
> menu into "Google projects" This will not be maintained by the Apache OFBiz
> committers  and only outside the Apache environment.
> 2. *attic* (abandoned=deleted)
>
> Pushing out complete components and functions like for example all
> components in the specialized directory such as e-commerce, project manager,
> asset manager and others and also Birt (Reporting) integration out of the
> OFBiz core system will actually mean: components will be abandoned even when
> stored in "apache extra's" and will be picked up by  commercial companies
> like mine (Antwebsystems) and others and will promote them as commercial
> add-ons for a fee.
>
> [my Antwebsystems CEO hat on]
> Actually we (AntWebsystems) already started the process a couple of months
> ago, we have internal chat/live chat(see our website), twitter, sitemap,
> saas/tenant extension, shindig/igoogle integration, task manager and more
> because a number of committers objected that we added more functions, so we
> stopped contributing major functions.
>
> [my Apache PMC member hat on]
> This can now happen with anything that will be removed from the core system.
> There are many articles about the commercialization of open source products
> on the internet, examples are Sugercrm and Magento and OFBiz will be the
> next one:
>
> *In the future, a reasonable OFBiz system cannot be be run without
> commercial extra's!
> *
> Please keep this in mind if you react on the proposal "Lose Weight Program
> for OFBiz": do not agree too easily.
>
> [my Antwebsystems CEO hat on]
>    From a commercialization point of view please remove as much as
> possible.
> [my Apache PMC member hat on]
>    Only remove the component/functions which are not maintained.
>
> Regards,
> Hans Bakker
> *Proud Apache OFBiz PMC member* and yes also CEO Antwebsystems Co.Ltd.
>


Re: Running under external tomcat

2012-02-02 Thread Mansour Al Akeel
Jacques
Thank you, but this has to do with using SVN for a custom ofbiz. I don't
understand how it would contribute to the solution of the problem of not
being able to deploy to existing tomcat.
Can you please kindly elaborate  ?


On Wed, Feb 1, 2012 at 12:47 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Consider also https://cwiki.apache.org/**confluence/display/OFBIZ/SVN+**
> Tips+-+svn_load_dirs+Vendor+**Branch<https://cwiki.apache.org/confluence/display/OFBIZ/SVN+Tips+-+svn_load_dirs+Vendor+Branch>
>
> Jacques
>
> From: "Mansour Al Akeel" 
>
>  BJ,
>> Can you please provide me more details about how to start with it ?
>> documentation ? source code ?
>>
>>
>> On Sat, Jan 28, 2012 at 6:24 AM, BJ Freeman  wrote:
>>
>>  Just a guess, Hans put in some code for vitural server. might want to
>>> check it out
>>>
>>> Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:
>>> > This is issue is still pending. The recent revision from trunk doesn't
>>> > work on external tomcat.
>>> > And I was not able to trouble shoot the issue.
>>> > I commented out all the app context in the generated
>>> > TOMCAT_HOME/conf/server.xml and left bi to see the results.
>>> > All I get is:
>>> >
>>> >
>>> > INFO: Starting service Catalina
>>> > Jan 27, 2012 2:34:36 PM org.apache.catalina.core.**StandardEngine
>>> start
>>> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.**StandardContext
>>> start
>>> > SEVERE: Error listenerStart
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.**StandardContext
>>> start
>>> > SEVERE: Context [/bi] startup failed due to previous errors
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.**HostConfig
>>> deployDescriptor
>>> > INFO: Deploying configuration descriptor manager.xml
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.**HostConfig
>>> deployDescriptor
>>> >
>>> > I managed to get it running in the past with 10.04, but not from
>>> > trunk. The svn doesn't show any significant changes. Any help ?
>>> >
>>> >
>>> > On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
>>> >  wrote:
>>> >> Can you please provide details about how to generating the templates
>>> for
>>> >> tomcat7 ?
>>> >> I can see only tomcat6 and tomcat55.
>>> >>
>>> >> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>>> >>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>>> >>>> It has been a month, and no answer yet. Is there some missing
>>> >>>> information, that may help solving this issue. I remember it worked
>>> with
>>> >>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>>> >>>> longer supported then please let me know.
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>>> >>>>> I am trying to running ofbiz under a stanalone tomcat as per
>>> >>>>> https://cwiki.apache.org/**confluence/display/OFBTECH/**Tomcat<https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat>
>>> >>>>>
>>> >>>>> I am unable to run it as described. I am using the same version of
>>> >>>>> tomcat in the document: 6.0.16
>>> >>>>>
>>> >>>
>>> >>> Hi Mansour,
>>> >>>
>>> >>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat
>>> 6,
>>> >>> you may take a revision before 1203470
>>> >>> http://svn.apache.org/viewvc?**rev=1203470&view=rev<http://svn.apache.org/viewvc?rev=1203470&view=rev>(november
>>> >>>  18th) from
>>> >>> the OFBiz svn.
>>> >>>
>>> >>> Cheers,
>>> >>>
>>> >>> --
>>> >>> Erwan de FERRIERES
>>> >>> www.nereide.biz
>>> >
>>>
>>>
>>


Re: Running under external tomcat

2012-01-31 Thread Mansour Al Akeel
BJ,
Can you please provide me more details about how to start with it ?
documentation ? source code ?


On Sat, Jan 28, 2012 at 6:24 AM, BJ Freeman  wrote:

> Just a guess, Hans put in some code for vitural server. might want to
> check it out
>
> Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:
> > This is issue is still pending. The recent revision from trunk doesn't
> > work on external tomcat.
> > And I was not able to trouble shoot the issue.
> > I commented out all the app context in the generated
> > TOMCAT_HOME/conf/server.xml and left bi to see the results.
> > All I get is:
> >
> >
> > INFO: Starting service Catalina
> > Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Error listenerStart
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/bi] startup failed due to previous errors
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> > INFO: Deploying configuration descriptor manager.xml
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> >
> > I managed to get it running in the past with 10.04, but not from
> > trunk. The svn doesn't show any significant changes. Any help ?
> >
> >
> > On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
> >  wrote:
> >> Can you please provide details about how to generating the templates for
> >> tomcat7 ?
> >> I can see only tomcat6 and tomcat55.
> >>
> >> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
> >>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
> >>>> It has been a month, and no answer yet. Is there some missing
> >>>> information, that may help solving this issue. I remember it worked
> with
> >>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> >>>> longer supported then please let me know.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> >>>>> I am trying to running ofbiz under a stanalone tomcat as per
> >>>>> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> >>>>>
> >>>>> I am unable to run it as described. I am using the same version of
> >>>>> tomcat in the document: 6.0.16
> >>>>>
> >>>
> >>> Hi Mansour,
> >>>
> >>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
> >>> you may take a revision before 1203470
> >>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
> >>> the OFBiz svn.
> >>>
> >>> Cheers,
> >>>
> >>> --
> >>> Erwan de FERRIERES
> >>> www.nereide.biz
> >
>


Re: Running under external tomcat

2012-01-27 Thread Mansour Al Akeel
tion for entity name EntityKeyStore. Rolling back transaction.
Exception: org.ofbiz.entity.GenericModelException
Message: Could not find definition for entity name EntityKeyStore
 stack trace ---
org.ofbiz.entity.GenericModelException: Could not find definition for
entity name EntityKeyStore
org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:452)
org.ofbiz.entity.GenericDelegator.findCountByCondition(GenericDelegator.java:1840)
org.ofbiz.entity.util.EntityCrypto.(EntityCrypto.java:58)


I still don't know the solution. Anyone ?


On Fri, Jan 27, 2012 at 2:46 PM, Mansour Al Akeel
 wrote:
> This is issue is still pending. The recent revision from trunk doesn't
> work on external tomcat.
> And I was not able to trouble shoot the issue.
> I commented out all the app context in the generated
> TOMCAT_HOME/conf/server.xml and left bi to see the results.
> All I get is:
>
>
> INFO: Starting service Catalina
> Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/bi] startup failed due to previous errors
> Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig 
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig 
> deployDescriptor
>
> I managed to get it running in the past with 10.04, but not from
> trunk. The svn doesn't show any significant changes. Any help ?
>
>
> On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
>  wrote:
>> Can you please provide details about how to generating the templates for
>> tomcat7 ?
>> I can see only tomcat6 and tomcat55.
>>
>> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>>> > It has been a month, and no answer yet. Is there some missing
>>> > information, that may help solving this issue. I remember it worked with
>>> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>>> > longer supported then please let me know.
>>> >
>>> >
>>> >
>>> >
>>> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>>> >> I am trying to running ofbiz under a stanalone tomcat as per
>>> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>>> >>
>>> >> I am unable to run it as described. I am using the same version of
>>> >> tomcat in the document: 6.0.16
>>> >>
>>>
>>> Hi Mansour,
>>>
>>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
>>> you may take a revision before 1203470
>>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
>>> the OFBiz svn.
>>>
>>> Cheers,
>>>
>>> --
>>> Erwan de FERRIERES
>>> www.nereide.biz


Re: Running under external tomcat

2012-01-27 Thread Mansour Al Akeel
This is issue is still pending. The recent revision from trunk doesn't
work on external tomcat.
And I was not able to trouble shoot the issue.
I commented out all the app context in the generated
TOMCAT_HOME/conf/server.xml and left bi to see the results.
All I get is:


INFO: Starting service Catalina
Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/bi] startup failed due to previous errors
Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor

I managed to get it running in the past with 10.04, but not from
trunk. The svn doesn't show any significant changes. Any help ?


On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
 wrote:
> Can you please provide details about how to generating the templates for
> tomcat7 ?
> I can see only tomcat6 and tomcat55.
>
> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>> > It has been a month, and no answer yet. Is there some missing
>> > information, that may help solving this issue. I remember it worked with
>> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>> > longer supported then please let me know.
>> >
>> >
>> >
>> >
>> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>> >> I am trying to running ofbiz under a stanalone tomcat as per
>> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>> >>
>> >> I am unable to run it as described. I am using the same version of
>> >> tomcat in the document: 6.0.16
>> >>
>>
>> Hi Mansour,
>>
>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
>> you may take a revision before 1203470
>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
>> the OFBiz svn.
>>
>> Cheers,
>>
>> --
>> Erwan de FERRIERES
>> www.nereide.biz


Re: Latest TRUNK rev 1231656 doesn't seem to work

2012-01-16 Thread Mansour Al Akeel
I am still getting error, with the given revision:

prepare:
[mkdir] Created dir:
/home/mansour/workspace/ofbiz.src/ofbiz.svn/framework/security/build/classes
[mkdir] Created dir:
/home/mansour/workspace/ofbiz.src/ofbiz.svn/framework/security/build/lib

classes:
  [javac16] Compiling 13 source files to
/home/mansour/workspace/ofbiz.src/ofbiz.svn/framework/security/build/classes
  [javac16] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
  [javac16]
/home/mansour/workspace/ofbiz.src/ofbiz.svn/framework/security/src/org/ofbiz/security/OFBizSecurity.java:52:
error: invalid inferred types for V; inferred type does not conform to
declared bound(s)
  [javac16] protected static final Map>
simpleRoleEntity = UtilMisc.toMap(

[javac16]
^
  [javac16] inferred: Map
  [javac16] bound(s): Map
  [javac16]   where V,V1,V2,V3 are type-variables:
  [javac16] V extends Object declared in method
toMap(String,V1,String,V2,String,V3)
  [javac16] V1 extends V declared in method
toMap(String,V1,String,V2,String,V3)
  [javac16] V2 extends V declared in method
toMap(String,V1,String,V2,String,V3)
  [javac16] V3 extends V declared in method
toMap(String,V1,String,V2,String,V3)
  [javac16] 1 error
  [javac16] 1 warning

BUILD FAILED
/home/mansour/workspace/ofbiz.src/ofbiz.svn/build.xml:214: The following
error occurred while executing this line:
/home/mansour/workspace/ofbiz.src/ofbiz.svn/framework/build.xml:148: The
following error occurred while executing this line:
/home/mansour/workspace/ofbiz.src/ofbiz.svn/macros.xml:39: The following
error occurred while executing this line:
/home/mansour/workspace/ofbiz.src/ofbiz.svn/common.xml:91: Compile failed;
see the compiler error output for details.




On Sun, Jan 15, 2012 at 6:29 PM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Seems that we have a problem with current trunk HEAD, please update to an
> older revision. I suggest
> 1. svn up -r 1231646
> 2. ant clean build run
>
> Until trunk is fixed...
>
> Jacques
>
> From: "Ofbiz 开发" 
>
>  Hi everyone,
>>
>> I just updated to TRUNK rev 1231656, after building and started the server
>> it always has the following error, and no pages can be visited. Did I do
>> anything wrong or has anyone else got similar problem? Thanks.
>>
>>
>> 2012-01-16 11:42:43,287 (main) [ContainerLoader.java:223:INFO ]
>> [Startup] Starting containers...
>> 2012-01-16 11:42:43,693 (main) [  GenericDispatcher.java:69 :INFO ]
>> Creating new dispatcher [RMIDispatcher] (main)
>> Exception in thread "main" java.lang.NoSuchFieldError:
>> omitTermFreqAndPositions
>>   at
>> org.apache.jackrabbit.core.**query.lucene.IDField.(**
>> IDField.java:40)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.NodeIndexer.**
>> createDoc(NodeIndexer.java:**215)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.SearchIndex.**
>> createDocument(SearchIndex.**java:1191)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.MultiIndex.**
>> createDocument(MultiIndex.**java:863)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.MultiIndex.**
>> createDocument(MultiIndex.**java:878)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.MultiIndex$**
>> AddNode.execute(MultiIndex.**java:1722)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.MultiIndex.**
>> executeAndLog(MultiIndex.java:**1128)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.MultiIndex.**
>> createIndex(MultiIndex.java:**1213)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.MultiIndex.**
>> createInitialIndex(MultiIndex.**java:388)
>>   at
>> org.apache.jackrabbit.core.**query.lucene.SearchIndex.**
>> doInit(SearchIndex.java:547)
>>   at
>> org.apache.jackrabbit.core.**query.AbstractQueryHandler.**
>> init(AbstractQueryHandler.**java:78)
>>   at
>> org.apache.jackrabbit.core.**config.**RepositoryConfigurationParser$**
>> 1.getQueryHandler(**RepositoryConfigurationPars
>> er.java:646)
>>   at
>> org.apache.jackrabbit.core.**config.RepositoryConfig.**getQueryHandler(**
>> RepositoryConfig.java:1037)
>>   at
>> org.apache.jackrabbit.core.**SearchManager.(**
>> SearchManager.java:170)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl.**getSystemSearchManager(**
>> RepositoryImpl.java:607)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl.access$100(**
>> RepositoryImpl.java:124)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl$WorkspaceInfo.**
>> getSearchManager(**RepositoryImpl.java:1855)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl$WorkspaceInfo.**
>> doPostInitialize(**RepositoryImpl.java:2091)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl$WorkspaceInfo.**
>> initialize(RepositoryImpl.**java:1996)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl.**initStartupWorkspaces(**
>> RepositoryImpl.java:510)
>>   at
>> org.apache.jackrabbit.core.**RepositoryImpl.(**
>> RepositoryImpl.java:318)
>>  

Re: Running under external tomcat

2012-01-15 Thread Mansour Al Akeel
Can you please provide details about how to generating the templates for
tomcat7 ? 
I can see only tomcat6 and tomcat55. 

On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
> > It has been a month, and no answer yet. Is there some missing
> > information, that may help solving this issue. I remember it worked with
> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> > longer supported then please let me know.
> >
> >
> >
> >
> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> >> I am trying to running ofbiz under a stanalone tomcat as per
> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> >>
> >> I am unable to run it as described. I am using the same version of
> >> tomcat in the document: 6.0.16
> >>
> 
> Hi Mansour,
> 
> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6, 
> you may take a revision before 1203470 
> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from 
> the OFBiz svn.
> 
> Cheers,
> 
> -- 
> Erwan de FERRIERES
> www.nereide.biz


Re: Running under external tomcat

2012-01-15 Thread Mansour Al Akeel
Perfect,
That's even better. I will try it with tomcat7.


On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
> > It has been a month, and no answer yet. Is there some missing
> > information, that may help solving this issue. I remember it worked with
> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> > longer supported then please let me know.
> >
> >
> >
> >
> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> >> I am trying to running ofbiz under a stanalone tomcat as per
> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> >>
> >> I am unable to run it as described. I am using the same version of
> >> tomcat in the document: 6.0.16
> >>
> 
> Hi Mansour,
> 
> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6, 
> you may take a revision before 1203470 
> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from 
> the OFBiz svn.
> 
> Cheers,
> 
> -- 
> Erwan de FERRIERES
> www.nereide.biz


Re: Running under external tomcat

2012-01-14 Thread Mansour Al Akeel
It has been a month, and no answer yet. Is there some missing
information, that may help solving this issue. I remember it worked with
ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
longer supported then please let me know.




On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> I am trying to running ofbiz under a stanalone tomcat as per
> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> 
> I am unable to run it as described. I am using the same version of
> tomcat in the document: 6.0.16
> 
> I am using the latest from SVN.
> 
> Errors I am getting, something like:
> 
> org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
> org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 
> 
> 2011-12-15 13:43:19,655 (main) [ComponentLocationResolver.java:67 :ERROR] 
>  exception report 
> --
> Could not get root location for component with name [content], error was: 
> org.ofbiz.base.component.ComponentException: No component found named : 
> content
> Exception: org.ofbiz.base.component.ComponentException
> Message: No component found named : content
>  stack trace 
> ---
> org.ofbiz.base.component.ComponentException: No component found named : 
> content
> org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:86)
> org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:61)
> org.ofbiz.base.component.ComponentConfig.getRootLocation(ComponentConfig.java:260)
> org.ofbiz.base.location.ComponentLocationResolver.getBaseLocation(ComponentLocationResolver.java:64)
> org.ofbiz.base.location.ComponentLocationResolver.resolveLocation(ComponentLocationResolver.java:39)
> org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:132)
> org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:73)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadIncludes(ConfigXMLReader.java:290)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.(ConfigXMLReader.java:111)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:74)
> org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:90)
> org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:74)
> org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
> org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.r

Running under external tomcat

2011-12-15 Thread Mansour Al Akeel
I am trying to running ofbiz under a stanalone tomcat as per
https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat

I am unable to run it as described. I am using the same version of
tomcat in the document: 6.0.16

I am using the latest from SVN.

Errors I am getting, something like:

org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
org.apache.catalina.core.StandardService.start(StandardService.java:516)
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


2011-12-15 13:43:19,655 (main) [ComponentLocationResolver.java:67 :ERROR] 
 exception report --
Could not get root location for component with name [content], error was: 
org.ofbiz.base.component.ComponentException: No component found named : content
Exception: org.ofbiz.base.component.ComponentException
Message: No component found named : content
 stack trace ---
org.ofbiz.base.component.ComponentException: No component found named : content
org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:86)
org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:61)
org.ofbiz.base.component.ComponentConfig.getRootLocation(ComponentConfig.java:260)
org.ofbiz.base.location.ComponentLocationResolver.getBaseLocation(ComponentLocationResolver.java:64)
org.ofbiz.base.location.ComponentLocationResolver.resolveLocation(ComponentLocationResolver.java:39)
org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:132)
org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:73)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadIncludes(ConfigXMLReader.java:290)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.(ConfigXMLReader.java:111)
org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:74)
org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:90)
org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:74)
org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
org.apache.catalina.core.StandardService.start(StandardService.java:516)
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


2011-12-15 13:43:19,656 (main) [ConfigXMLReader.java:293:ERROR] 
 exception report --
Error processing include at 
[component://content/webapp/content/WEB-INF/controller.xml]:java.

Re: Create invoice from timesheet.

2011-08-24 Thread Mansour Al Akeel
Hans,
thank you for the fast response. 


On Wed Aug 24,2011 05:21 pm, Hans Bakker wrote:
> setting the status of the timesheet to complete will approve the time of
> the tasks.
> 
> Regards,
> Hans
> 
> -- 
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Myself on twitter: http://twitter.com/hansbak
> Antwebsystems.com: Quality services for competitive rates.
> 
> 
> On Wed, 2011-08-24 at 06:15 -0400, Mansour Al Akeel wrote:
> > I have filled some tasks and reported hours spent on each of them. Not
> > all the tasks are completed. However I am trying to generate a timesheet
> > for the service company, and then generate an invoice from the available
> > information in the system. 
> > 
> > I saw this post, and it's exactely what I am trying to do. 
> > 
> > http://ofbiz.135035.n4.nabble.com/How-to-add-task-time-to-a-new-invoice-td1458273.html
> > 
> > Questions I am looking to answer are:
> > 1- how do I get the client to approve timesheet ?
> > 2- How do I get tasks approved in order to add them to an invoice ? 
> > 
> > 
> > Is there any documentaion that helps in answering this ? 
> > 
> > Thank you.
> > 
> > 
> 
> 
> 


Create invoice from timesheet.

2011-08-24 Thread Mansour Al Akeel

I have filled some tasks and reported hours spent on each of them. Not
all the tasks are completed. However I am trying to generate a timesheet
for the service company, and then generate an invoice from the available
information in the system. 

I saw this post, and it's exactely what I am trying to do. 

http://ofbiz.135035.n4.nabble.com/How-to-add-task-time-to-a-new-invoice-td1458273.html

Questions I am looking to answer are:
1- how do I get the client to approve timesheet ?
2- How do I get tasks approved in order to add them to an invoice ? 


Is there any documentaion that helps in answering this ? 

Thank you.




Broken documenation links

2011-08-15 Thread Mansour Al Akeel
I can not get to any of the nodes under the documentation:

https://cwiki.apache.org/OFBENDUSER/ofbiz-end-user-docs-home.html

This is broken, and all the rest go to no where:
https://cwiki.apache.org/OFBENDUSER/high-level-end-to-end-processes.html




Re: Accessing images from external application

2011-08-03 Thread Mansour Al Akeel
Raj,
Good advice. I think I will try this one, sometime this week.

Thank you a lot.


On Wed Aug 03,2011 07:31 pm, Raj Saini wrote:
> Mansour,
> 
> I would suggest you to create a separate virtual host e.g. 
> admin.mydomain.com or erp.mydomain.com for other OFbiz applications. 
> Within that virtual host, you can rewrite the URLs like:
> 
> RewriteRule ^/(.*)$ ajp://localhost:8009/$1 [P,L]
> 
> 
> 
> And you will be able to access your applications like 
> http://admin.mydomain.com/catalog/control/main
> 
> Thanks,
> 
> Raj
> 
> PS: My previous example was missing the [P,L]. This is needed to 
> indicate that this request is a proxy and once matched not to go to next 
> directive. You can find more about this in mod_rewrite guide.
> 
> 
> 
> On Wednesday 03 August 2011 05:05 PM, Mansour Al Akeel wrote:
> > Great work, Raj !
> > One last question, what would this do with requests to other ofbiz
> > components? For example http://www.yourdomain.com/myportal or
> > http://www.yourdomain.com/projectmgr ?
> >
> > What about other images under other components ?
> >
> > I will try your suggestion soon.
> >
> >
> >
> > On Wed Aug 03,2011 04:52 pm, Raj Saini wrote:
> >> What you can do is:
> >>
> >> 1. Mount your application in OFbiz as "YourApp" and not root.
> >> 2. Create a virtual host in the Apache Web server or use the default one
> >> if you have just one.
> >> 3. You can copy the static contents to the document root of the virtual
> >> host.
> >> 4. Use AJP proxy to map your root request to "YourApp". For example,
> >> Apache will forward all requests coming at
> >> http://www.yourdomain.com/ to ajp://localhost:8080/yourapp/ and you can
> >> copy your images to the document root of the your virtual host. In your
> >> virtual host proxy mapping you can exclude the static contents such as
> >> your images. I generally use mod_rewirte and below is a simple example:
> >>
> >> RewriteCond /srv/www/yourdomain/%{REQUEST_FILENAME} !-f
> >> RewriteCond /srv/www/yourdomain//%{REQUEST_FILENAME} !-d
> >> RewriteRule ^/(.*)$ ajp://localhost:8009/yourapp/control/$1
> >>
> >> This directive says, if the last part of URL  is not a physical file or
> >> directory on filesystem, forward it to OFBiz, else serve it from file
> >> system. If you copy your images to the document root and above
> >> conditions hold false, they will be served by Apache Web sever.
> >>
> >> You can still access other OFbiz application using 9443 port, or create
> >> their own virtual hosts or use a single virtual host to serve them.
> >>
> >> Thanks,
> >>
> >> Raj
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Wednesday 03 August 2011 04:36 PM, Mansour Al Akeel wrote:
> >>> Hello Raj,
> >>>
> >>> And thank you for the explaination. I totally understand this from
> >>> Bilgin reply. I didn't think of it, until he reminded me there's an
> >>> "image" component. But I am interested to see other solutions.
> >>> With regard to you suggestion, I have the web application already
> >>> deployed and it works with or without ofbiz. But how would configuring
> >>> apache server help in solving the issue of accessing static contents
> >>> under myApplication. Assuming the I will foward all the requests on port
> >>> 80 to port 8080, and 443 to 8443, how would this solve the issue ?
> >>>
> >>>
> >>>
> >>> On Wed Aug 03,2011 04:12 pm, Raj Saini wrote:
> >>>> Your problem is OFBiz image application is conflicting with the image
> >>>> folder of your root application. One way to solve this is to use Apache
> >>>> Web server to front your OFbiz instance. This way, you can serve the
> >>>> images statically and few people claim it is faster to serve static
> >>>> contents using Apache Web server than servlet engines like Tomcat. This
> >>>> way, you can also easily have multiple domain serving applications from
> >>>> single instance of OFbiz.
> >>>>
> >>>> If you want to go this way, you will need mod_proxy and mod_proxy_ajp
> >>>> and configure your Apache web server. There are instructions on wiki
> >>>> that you can search.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Raj
> &

Re: Accessing images from external application

2011-08-03 Thread Mansour Al Akeel
Great work, Raj !
One last question, what would this do with requests to other ofbiz
components? For example http://www.yourdomain.com/myportal or
http://www.yourdomain.com/projectmgr ? 

What about other images under other components ?

I will try your suggestion soon.



On Wed Aug 03,2011 04:52 pm, Raj Saini wrote:
> What you can do is:
> 
> 1. Mount your application in OFbiz as "YourApp" and not root.
> 2. Create a virtual host in the Apache Web server or use the default one 
> if you have just one.
> 3. You can copy the static contents to the document root of the virtual 
> host.
> 4. Use AJP proxy to map your root request to "YourApp". For example, 
> Apache will forward all requests coming at
> http://www.yourdomain.com/ to ajp://localhost:8080/yourapp/ and you can 
> copy your images to the document root of the your virtual host. In your 
> virtual host proxy mapping you can exclude the static contents such as 
> your images. I generally use mod_rewirte and below is a simple example:
> 
> RewriteCond /srv/www/yourdomain/%{REQUEST_FILENAME} !-f
> RewriteCond /srv/www/yourdomain//%{REQUEST_FILENAME} !-d
> RewriteRule ^/(.*)$ ajp://localhost:8009/yourapp/control/$1
> 
> This directive says, if the last part of URL  is not a physical file or 
> directory on filesystem, forward it to OFBiz, else serve it from file 
> system. If you copy your images to the document root and above 
> conditions hold false, they will be served by Apache Web sever.
> 
> You can still access other OFbiz application using 9443 port, or create 
> their own virtual hosts or use a single virtual host to serve them.
> 
> Thanks,
> 
> Raj
> 
> 
> 
> 
> 
> 
> On Wednesday 03 August 2011 04:36 PM, Mansour Al Akeel wrote:
> > Hello Raj,
> >
> > And thank you for the explaination. I totally understand this from
> > Bilgin reply. I didn't think of it, until he reminded me there's an
> > "image" component. But I am interested to see other solutions.
> > With regard to you suggestion, I have the web application already
> > deployed and it works with or without ofbiz. But how would configuring
> > apache server help in solving the issue of accessing static contents
> > under myApplication. Assuming the I will foward all the requests on port
> > 80 to port 8080, and 443 to 8443, how would this solve the issue ?
> >
> >
> >
> > On Wed Aug 03,2011 04:12 pm, Raj Saini wrote:
> >> Your problem is OFBiz image application is conflicting with the image
> >> folder of your root application. One way to solve this is to use Apache
> >> Web server to front your OFbiz instance. This way, you can serve the
> >> images statically and few people claim it is faster to serve static
> >> contents using Apache Web server than servlet engines like Tomcat. This
> >> way, you can also easily have multiple domain serving applications from
> >> single instance of OFbiz.
> >>
> >> If you want to go this way, you will need mod_proxy and mod_proxy_ajp
> >> and configure your Apache web server. There are instructions on wiki
> >> that you can search.
> >>
> >> Thanks,
> >>
> >> Raj
> >>
> >> On Wednesday 03 August 2011 03:22 PM, Mansour Al Akeel wrote:
> >>> Hardik,
> >>> can you please kindly elaborate ?
> >>> What are the parameters that I can pass through ofbiz startup scripts to
> >>> fix this issue?
> >>> I have the application in hot-deploy already.
> >>>
> >>>
> >>>
> >>> On Wed Aug 03,2011 02:27 pm, Hardik Handa wrote:
> >>>> What I would prefer is to keep the application in hot deploy folder and 
> >>>> pass the parameter to the startup file  for the external application 
> >>>> into the startupofbiz.bat , this would lead to the external application 
> >>>> to start whenever you start Ofbiz.
> >>>>
> >>>> Cheers,
> >>>> Hardik Handa
> >>>> hardik.ha...@hcl.com
> >>>>
> >>>> -Original Message-
> >>>> From: Bilgin Ibryam [mailto:bibr...@gmail.com]
> >>>> Sent: Wednesday, August 03, 2011 2:20 PM
> >>>> To: user@ofbiz.apache.org
> >>>> Subject: Re: Accessing images from external application
> >>>>
> >>>> I had a similar problem and if I remember right, the problem was that
> >>>> images folder inside my custom app was confused with images
> >>>> application existing in framework. The solution I found was

Re: Accessing images from external application

2011-08-03 Thread Mansour Al Akeel
Hello Raj,

And thank you for the explaination. I totally understand this from
Bilgin reply. I didn't think of it, until he reminded me there's an
"image" component. But I am interested to see other solutions.
With regard to you suggestion, I have the web application already
deployed and it works with or without ofbiz. But how would configuring
apache server help in solving the issue of accessing static contents
under myApplication. Assuming the I will foward all the requests on port
80 to port 8080, and 443 to 8443, how would this solve the issue ? 



On Wed Aug 03,2011 04:12 pm, Raj Saini wrote:
> Your problem is OFBiz image application is conflicting with the image 
> folder of your root application. One way to solve this is to use Apache 
> Web server to front your OFbiz instance. This way, you can serve the 
> images statically and few people claim it is faster to serve static 
> contents using Apache Web server than servlet engines like Tomcat. This 
> way, you can also easily have multiple domain serving applications from 
> single instance of OFbiz.
> 
> If you want to go this way, you will need mod_proxy and mod_proxy_ajp 
> and configure your Apache web server. There are instructions on wiki 
> that you can search.
> 
> Thanks,
> 
> Raj
> 
> On Wednesday 03 August 2011 03:22 PM, Mansour Al Akeel wrote:
> > Hardik,
> > can you please kindly elaborate ?
> > What are the parameters that I can pass through ofbiz startup scripts to
> > fix this issue?
> > I have the application in hot-deploy already.
> >
> >
> >
> > On Wed Aug 03,2011 02:27 pm, Hardik Handa wrote:
> >> What I would prefer is to keep the application in hot deploy folder and 
> >> pass the parameter to the startup file  for the external application into 
> >> the startupofbiz.bat , this would lead to the external application to 
> >> start whenever you start Ofbiz.
> >>
> >> Cheers,
> >> Hardik Handa
> >> hardik.ha...@hcl.com
> >>
> >> -Original Message-
> >> From: Bilgin Ibryam [mailto:bibr...@gmail.com]
> >> Sent: Wednesday, August 03, 2011 2:20 PM
> >> To: user@ofbiz.apache.org
> >> Subject: Re: Accessing images from external application
> >>
> >> I had a similar problem and if I remember right, the problem was that
> >> images folder inside my custom app was confused with images
> >> application existing in framework. The solution I found was to rename
> >> images folder inside my custom app.
> >>
> >> HTH
> >> Bilgin Ibryam
> >>
> >> On Wed, Aug 3, 2011 at 8:11 AM, Mansour Al Akeel
> >>   wrote:
> >>> I have a web application that I need to run on the same server as ofbiz.
> >>> The choices I have are either to deploy ofbiz to an external server
> >>> (tomcat or geronimo) and deploy my other webapp to the same server,
> >>> or deploy the application under ofbiz and get the built-in servlet
> >>> container to serve the requests.
> >>>
> >>> I found what I am trying to do is described in this document
> >>>
> >>> https://cwiki.apache.org/confluence/display/OFBIZ/Load+OpenI+%28Mondrian+Implementation%29+under+OFBiz
> >>>
> >>> I deployed my web application following this document. However, when I
> >>> mount the application on something like (mount-point="/myApplicaiton")
> >>> everything works fine. But when I make it the default application and
> >>> mount it on ( mount-point="/"), I don't see the images on the pages.
> >>> css files are served properly, but not images !
> >>>
> >>> The error I get when I try to browse to the image URL
> >>> is error 404. For example, http://localhost:8080/images/lines.png will
> >>> result in error 404 only when the application is mounted on "/".
> >>> If I mount the same application on "/myApplication" and access it with
> >>> http://localhost:8080/myApplication/images/lines.png it will work fine !
> >>>
> >>> Is there any additional configuration I need to do to get the images to
> >>> display properly ?
> >>>
> >>> Thank you in advance.
> >>>
> >>>
> >>>
> >> ::DISCLAIMER::
> >> ---
> >>
> >> The contents of this e-mail and any attachment(s) are confidential and 
> >> intended for the named recipient(s) only.
> >> It shall not attach any liability on the originator or HCL or its 
> >> affiliates. Any views or opinions presented in
> >> this email are solely those of the author and may not necessarily reflect 
> >> the opinions of HCL or its affiliates.
> >> Any form of reproduction, dissemination, copying, disclosure, 
> >> modification, distribution and / or publication of
> >> this message without the prior written consent of the author of this 
> >> e-mail is strictly prohibited. If you have
> >> received this email in error please delete it and notify the sender 
> >> immediately. Before opening any mail and
> >> attachments please check them for viruses and defect.
> >>
> >> ---
> 


Re: Accessing images from external application

2011-08-03 Thread Mansour Al Akeel
Hardik,
can you please kindly elaborate ?
What are the parameters that I can pass through ofbiz startup scripts to
fix this issue? 
I have the application in hot-deploy already.



On Wed Aug 03,2011 02:27 pm, Hardik Handa wrote:
> What I would prefer is to keep the application in hot deploy folder and pass 
> the parameter to the startup file  for the external application into the 
> startupofbiz.bat , this would lead to the external application to start 
> whenever you start Ofbiz.
> 
> Cheers,
> Hardik Handa
> hardik.ha...@hcl.com
> 
> -Original Message-
> From: Bilgin Ibryam [mailto:bibr...@gmail.com]
> Sent: Wednesday, August 03, 2011 2:20 PM
> To: user@ofbiz.apache.org
> Subject: Re: Accessing images from external application
> 
> I had a similar problem and if I remember right, the problem was that
> images folder inside my custom app was confused with images
> application existing in framework. The solution I found was to rename
> images folder inside my custom app.
> 
> HTH
> Bilgin Ibryam
> 
> On Wed, Aug 3, 2011 at 8:11 AM, Mansour Al Akeel
>  wrote:
> > I have a web application that I need to run on the same server as ofbiz.
> > The choices I have are either to deploy ofbiz to an external server
> > (tomcat or geronimo) and deploy my other webapp to the same server,
> > or deploy the application under ofbiz and get the built-in servlet
> > container to serve the requests.
> >
> > I found what I am trying to do is described in this document
> >
> > https://cwiki.apache.org/confluence/display/OFBIZ/Load+OpenI+%28Mondrian+Implementation%29+under+OFBiz
> >
> > I deployed my web application following this document. However, when I
> > mount the application on something like (mount-point="/myApplicaiton")
> > everything works fine. But when I make it the default application and
> > mount it on ( mount-point="/"), I don't see the images on the pages.
> > css files are served properly, but not images !
> >
> > The error I get when I try to browse to the image URL
> > is error 404. For example, http://localhost:8080/images/lines.png will
> > result in error 404 only when the application is mounted on "/".
> > If I mount the same application on "/myApplication" and access it with
> > http://localhost:8080/myApplication/images/lines.png it will work fine !
> >
> > Is there any additional configuration I need to do to get the images to
> > display properly ?
> >
> > Thank you in advance.
> >
> >
> >
> 
> ::DISCLAIMER::
> ---
> 
> The contents of this e-mail and any attachment(s) are confidential and 
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. 
> Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the 
> opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, 
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail 
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender 
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
> 
> ---


Accessing images from external application

2011-08-03 Thread Mansour Al Akeel
I have a web application that I need to run on the same server as ofbiz.
The choices I have are either to deploy ofbiz to an external server
(tomcat or geronimo) and deploy my other webapp to the same server, 
or deploy the application under ofbiz and get the built-in servlet 
container to serve the requests. 

I found what I am trying to do is described in this document 

https://cwiki.apache.org/confluence/display/OFBIZ/Load+OpenI+%28Mondrian+Implementation%29+under+OFBiz

I deployed my web application following this document. However, when I
mount the application on something like (mount-point="/myApplicaiton")
everything works fine. But when I make it the default application and
mount it on ( mount-point="/"), I don't see the images on the pages.
css files are served properly, but not images !

The error I get when I try to browse to the image URL
is error 404. For example, http://localhost:8080/images/lines.png will
result in error 404 only when the application is mounted on "/".
If I mount the same application on "/myApplication" and access it with
http://localhost:8080/myApplication/images/lines.png it will work fine !

Is there any additional configuration I need to do to get the images to
display properly ? 

Thank you in advance.




Re: Need assistance on OFBIZ !

2011-08-02 Thread Mansour Al Akeel

On Mon Aug 01,2011 03:59 am, Abhishek wrote:
> Hi,
>   I would like to know about the following points:
> 
> *Survey:*
> Can we upload excel file to upload questions in bulk?
> Can we recv the images from the users who are attempting the survey?

What do you mean by this two questions? Can you please give more details ?

> 
> *Organization setup: *
> How to map multiple vendors of same category with 1 organization. 
> 
> *Vendor:*
> When some vendors are quoting rates on some products, then how can I analyze
> those rates on the basis of different parameters like price, skills sets,
> experience etc.
>  
> 
> 
> -
> Thanks & Regards
> Abhishek Shukla
> New Delhi, India
> 9810461854
> 
> --
> View this message in context: 
> http://ofbiz.135035.n4.nabble.com/Need-assistance-on-OFBIZ-tp3709365p3709365.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Protecting Project Screen from parties not listed as a resource

2011-07-29 Thread Mansour Al Akeel
Adrian,
first of all, thank you for the fast response.

The issue is even admin can not login. I feel there's something wrong
with the parameters. Here's the declaration of the service in: 
specialpurpose/projectmgr/servicedef/services.xml












None of these attributes I see them being set anywhere. Am I missing
something ? 


On Fri Jul 29,2011 08:53 pm, Adrian Crum wrote:
> You have your code set up correctly. You just need to examine the 
> permission service to see what conditions it is looking for to grant 
> permission, then set up your user with those conditions.
> 
> -Adrian
> 
> 
> 
> On 7/29/2011 7:35 PM, Mansour Al Akeel wrote:
> > Adrian,
> > I think there's a service already that does that. However, I am not sure
> > I am using it or understand it properly.
> >
> > The service is in 
> > "specialpurpose/projectmgr/script/org/ofbiz/project/ProjectPermissionServices.xml"
> >
> >  > short-description="general service to check access to the project 
> > component">
> >  
> >  
> >  
> >  
> >
> >  
> >   > operator="contains">
> >  
> >  
> >   > value="TimeEntry" operator="contains">
> >  
> >  
> >   > value="Task" operator="contains">
> >  
> >
> > I am calling it from projectmgr/widget/ProjectScreens.xml. I just added 
> > the  part
> >
> > 
> >  
> >  
> >   > main-action="VIEW"/>
> >  
> >  
> >  
> >  
> >   > default-value="${parameters.workEffortId}"/>
> >  
> >  
> >  
> >
> > The issue now is not user have access to any project.
> > What am I missing ?
> >
> > Thank you in advance.
> >
> > On Thu Jul 28,2011 11:34 pm, Adrian Crum wrote:
> >> Look in Party Manager. There are permission services that check to see
> >> if the logged-in user is connected to another party in some way before
> >> granting permission to do something.
> >>
> >> -Adrian
> >>
> >> On 7/28/2011 11:18 PM, Mansour Al Akeel wrote:
> >>> Adrian,
> >>> What would be the correct permission to use to protect projects the user
> >>> is not part of ?
> >>> I am using "PROJECTMGR_ROLE_VIEW", based on my understanding but not
> >>> sure if this is correct.
> >>>
> >>> Can you please kindly, explain (give a link) about the difference in
> >>> creating a separate service to check the permission, and specific
> >>> permission check in the screen the way I am doing it ? I understand
> >>> examples exist in another components, but examples for checking the
> >>> permission in a screen are used widely in the same file I am editing.
> >>>
> >>>
> >>> Thank you.
> >>>
> >>>
> >>> On Thu Jul 28,2011 06:51 pm, Adrian Crum wrote:
> >>>> Create a permission service, then use that in your screens instead of
> >>>> specific permission checks. You can find examples of this in the Party
> >>>> Manager.
> >>>>
> >>>> -Adrian
> >>>>
> >>>>
> >>>> On 7/28/2011 6:49 PM, Mansour Al Akeel wrote:
> >>>>> On my local system, any user with PROJECTMGR_VIEW can access projects
> >>>>> even if they are not listed as a resource. I wanted to limit this
> >>>>> permission so, I edited the ProjectScreens.xml to check for permissions.
> >>>>>
> >>>>> 
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> >>>>> permission="PROJECTMGR_ROLE_VIEW"/>
> >>>>>
> >>>>>
> >>>>>
> >>>>> >>>>> value="ProjectMgrProjectSummary"/>
> >>>>>
> >>>>> >>>>> default-value="${parameters.workEffortId}"/>
> >>>>>
> >>>

Re: Protecting Project Screen from parties not listed as a resource

2011-07-29 Thread Mansour Al Akeel
Adrian,
I think there's a service already that does that. However, I am not sure
I am using it or understand it properly.

The service is in 
"specialpurpose/projectmgr/script/org/ofbiz/project/ProjectPermissionServices.xml"

















I am calling it from projectmgr/widget/ProjectScreens.xml. I just added the 
 part














The issue now is not user have access to any project. 
What am I missing ? 

Thank you in advance.

On Thu Jul 28,2011 11:34 pm, Adrian Crum wrote:
> Look in Party Manager. There are permission services that check to see 
> if the logged-in user is connected to another party in some way before 
> granting permission to do something.
> 
> -Adrian
> 
> On 7/28/2011 11:18 PM, Mansour Al Akeel wrote:
> > Adrian,
> > What would be the correct permission to use to protect projects the user
> > is not part of ?
> > I am using "PROJECTMGR_ROLE_VIEW", based on my understanding but not
> > sure if this is correct.
> >
> > Can you please kindly, explain (give a link) about the difference in
> > creating a separate service to check the permission, and specific
> > permission check in the screen the way I am doing it ? I understand
> > examples exist in another components, but examples for checking the
> > permission in a screen are used widely in the same file I am editing.
> >
> >
> > Thank you.
> >
> >
> > On Thu Jul 28,2011 06:51 pm, Adrian Crum wrote:
> >> Create a permission service, then use that in your screens instead of
> >> specific permission checks. You can find examples of this in the Party
> >> Manager.
> >>
> >> -Adrian
> >>
> >>
> >> On 7/28/2011 6:49 PM, Mansour Al Akeel wrote:
> >>> On my local system, any user with PROJECTMGR_VIEW can access projects
> >>> even if they are not listed as a resource. I wanted to limit this
> >>> permission so, I edited the ProjectScreens.xml to check for permissions.
> >>>
> >>> 
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>>>> value="ProjectMgrProjectSummary"/>
> >>>   
> >>>>>> default-value="${parameters.workEffortId}"/>
> >>>   
> >>>>>> from-field="projectId"/>
> >>>   
> >>>   
> >>>   
> >>>   
> >>>>>> location="${parameters.mainDecoratorLocation}">
> >>>   
> >>>   
> >>>>>> title="${uiLabelMap.PageTitleProjectInformation}">
> >>>>>> location="component://projectmgr/widget/forms/ProjectForms.xml"/>
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>> 
> >>>
> >>> However, a user with PROJECTMGR_ROLE_VIEW can still view any project
> >>> regardless if she is a member of that project or not, by navigating to:
> >>>
> >>> https://localhost:8443/projectmgr/control/projectView?projectId=9100
> >>>
> >>> If I understand thing correctely, PROJECTMGR_ROLE_VIEW allows access to
> >>> entities owned by party, or if she is listed as a resource.
> >>>
> >>> Any advice ?
> >>>
> >>>


Re: Protecting Project Screen from parties not listed as a resource

2011-07-28 Thread Mansour Al Akeel
Adrian,
What would be the correct permission to use to protect projects the user
is not part of ? 
I am using "PROJECTMGR_ROLE_VIEW", based on my understanding but not
sure if this is correct.

Can you please kindly, explain (give a link) about the difference in
creating a separate service to check the permission, and specific
permission check in the screen the way I am doing it ? I understand
examples exist in another components, but examples for checking the
permission in a screen are used widely in the same file I am editing.


Thank you.


On Thu Jul 28,2011 06:51 pm, Adrian Crum wrote:
> Create a permission service, then use that in your screens instead of 
> specific permission checks. You can find examples of this in the Party 
> Manager.
> 
> -Adrian
> 
> 
> On 7/28/2011 6:49 PM, Mansour Al Akeel wrote:
> > On my local system, any user with PROJECTMGR_VIEW can access projects
> > even if they are not listed as a resource. I wanted to limit this
> > permission so, I edited the ProjectScreens.xml to check for permissions.
> >
> > 
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >   > default-value="${parameters.workEffortId}"/>
> >  
> >  
> >  
> >  
> >  
> >  
> >   > location="${parameters.mainDecoratorLocation}">
> >  
> >  
> >   > title="${uiLabelMap.PageTitleProjectInformation}">
> >   > location="component://projectmgr/widget/forms/ProjectForms.xml"/>
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> > 
> >
> > However, a user with PROJECTMGR_ROLE_VIEW can still view any project
> > regardless if she is a member of that project or not, by navigating to:
> >
> > https://localhost:8443/projectmgr/control/projectView?projectId=9100
> >
> > If I understand thing correctely, PROJECTMGR_ROLE_VIEW allows access to
> > entities owned by party, or if she is listed as a resource.
> >
> > Any advice ?
> >
> >


Protecting Project Screen from parties not listed as a resource

2011-07-28 Thread Mansour Al Akeel
On my local system, any user with PROJECTMGR_VIEW can access projects
even if they are not listed as a resource. I wanted to limit this
permission so, I edited the ProjectScreens.xml to check for permissions.










































However, a user with PROJECTMGR_ROLE_VIEW can still view any project
regardless if she is a member of that project or not, by navigating to:

https://localhost:8443/projectmgr/control/projectView?projectId=9100

If I understand thing correctely, PROJECTMGR_ROLE_VIEW allows access to
entities owned by party, or if she is listed as a resource. 

Any advice ? 




Re: Creating parties

2011-07-25 Thread Mansour Al Akeel
David,
Thank you a lot. I misunderstood some parts, and now it all make sense
to me.
I believe hiding task from parties that are not members of the project,
should be the default behavior. If you agree with me, I will create a
JIRA issue, and submitt a patch when available.

Appreciate your help.


On Mon Jul 25,2011 11:57 am, David E Jones wrote:
> 
> In OFBiz there is no external security configuration so each screen and 
> service is responsible for checking its own security constraints.
> 
> You'll see examples all over in service defs, and in screen defs (especially 
> in decorators to have the same permission for a set of screens, ie look in 
> the CommonScreens.xml files).
> 
> -David
> 
> 
> On Jul 25, 2011, at 11:19 AM, Mansour Al Akeel wrote:
> 
> > David,
> > thank you for your help. I will try it later on tonight. I still don't
> > understand how would modifying a "View" screen, prevent accessing the
> > task using the URL, but I will try your advice first, and will let you know
> > how it went.
> > 
> > Thank you.
> > 
> > 
> > On Mon Jul 25,2011 09:53 am, David E Jones wrote:
> >> 
> >> On Jul 25, 2011, at 9:50 AM, Mansour Al Akeel wrote:
> >> 
> >>> Thank you David.
> >>> This is what I wanted to know. If it's a configuration issue or
> >>> something has to change in the code. It looks that I need to do both.
> >>> Please see my comments.
> >>> 
> >>> On Mon Jul 25,2011 07:40 am, David E Jones wrote:
> >>>> 
> >>>> Mansour,
> >>>> 
> >>>> You could look at the data preparation code for that screen (typically 
> >>>> in the screen.actions element of the screen definition) to see if it 
> >>>> does any sort of "permission-esque" filtering. Chances are it does not 
> >>>> and the search criteria used are the only criteria passed included in 
> >>>> the database query.
> >>>> 
> >>>> In other words, it sounds like you're looking for a feature that does 
> >>>> not exist. It could certainly be implemented by:
> >>>> 
> >>>> 1. adding the permission-related constraints to the FindTask query
> >>>> 2. changing the view task screen to check the same constraint(s) for the 
> >>>> individual task
> >>>> 
> >>> 
> >>> Would this still prevent access to individual tasks through the URL ? 
> >>> I think this would only hide the tasks in the search results. 
> >> 
> >> Item #2 that I mentioned above is meant to take care of that.
> >> 
> >> -David
> >> 
> 


Re: Creating parties

2011-07-25 Thread Mansour Al Akeel
David,
thank you for your help. I will try it later on tonight. I still don't
understand how would modifying a "View" screen, prevent accessing the
task using the URL, but I will try your advice first, and will let you know
how it went.

Thank you.


On Mon Jul 25,2011 09:53 am, David E Jones wrote:
> 
> On Jul 25, 2011, at 9:50 AM, Mansour Al Akeel wrote:
> 
> > Thank you David.
> > This is what I wanted to know. If it's a configuration issue or
> > something has to change in the code. It looks that I need to do both.
> > Please see my comments.
> > 
> > On Mon Jul 25,2011 07:40 am, David E Jones wrote:
> >> 
> >> Mansour,
> >> 
> >> You could look at the data preparation code for that screen (typically in 
> >> the screen.actions element of the screen definition) to see if it does any 
> >> sort of "permission-esque" filtering. Chances are it does not and the 
> >> search criteria used are the only criteria passed included in the database 
> >> query.
> >> 
> >> In other words, it sounds like you're looking for a feature that does not 
> >> exist. It could certainly be implemented by:
> >> 
> >> 1. adding the permission-related constraints to the FindTask query
> >> 2. changing the view task screen to check the same constraint(s) for the 
> >> individual task
> >> 
> > 
> > Would this still prevent access to individual tasks through the URL ? 
> > I think this would only hide the tasks in the search results. 
> 
> Item #2 that I mentioned above is meant to take care of that.
> 
> -David
> 


Re: Creating parties

2011-07-25 Thread Mansour Al Akeel
Thank you David.
This is what I wanted to know. If it's a configuration issue or
something has to change in the code. It looks that I need to do both.
Please see my comments.

On Mon Jul 25,2011 07:40 am, David E Jones wrote:
> 
> Mansour,
> 
> You could look at the data preparation code for that screen (typically in the 
> screen.actions element of the screen definition) to see if it does any sort 
> of "permission-esque" filtering. Chances are it does not and the search 
> criteria used are the only criteria passed included in the database query.
> 
> In other words, it sounds like you're looking for a feature that does not 
> exist. It could certainly be implemented by:
> 
> 1. adding the permission-related constraints to the FindTask query
> 2. changing the view task screen to check the same constraint(s) for the 
> individual task
> 

Would this still prevent access to individual tasks through the URL ? 
I think this would only hide the tasks in the search results. 



> -David
> 
> 
> On Jul 25, 2011, at 3:20 AM, Mansour Al Akeel wrote:
> 
> > BJ,
> > go to this page:
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask
> > login as whatever user you like, provided he has access to projectmgr
> > Hit [Find]
> > you will get a list of all the tasks in the system, even if you are not
> > a member of any project.
> > Click on any task, and you will be able to see the full info about it!
> > 
> > This is the problem!
> > 
> > 
> > 
> > On Sun Jul 24,2011 05:12 pm, BJ Freeman wrote:
> >> OOTB look at the party group Dev and relationships and work your way
> >> down to developer1
> >> you need this to show up in project resources to be added as a resource.
> >> in projects pick Demo project3 and go to resources.
> >> you will see DemoEmployee3
> >> 
> >> log in as DemoEmployee3
> >> you will notice that only projects and my portals show
> >> click on proects
> >> ingore the error for now
> >> then click on using the project mgr menu select projects you will only
> >> see the one in which DemoEmployee3 is a resource.
> >> 
> >> once you figure out what you need to make this happen you will have
> >> solved you problem
> >> 
> >> 
> >> Mansour Al Akeel sent the following on 7/24/2011 2:04 PM:
> >>> BJ,
> >>> The party "Mansour" has only one role "Employee" related to
> >>> "Mansour INC" organization !
> >>> 
> >>> And I don't have any service added. It's just the same services
> >>> out-of-box.
> >>> 
> >>> Anyone knows how to deal with it ? 
> >>> 
> >>> 
> >>> On Sun Jul 24,2011 01:20 pm, BJ Freeman wrote:
> >>>> since access for user is through the UI there is no need to go to record
> >>>> level.
> >>>> Now if you have a service that accesses the records then the it is the
> >>>> service that should check.
> >>>> 
> >>>> 
> >>>> Mansour Al Akeel sent the following on 7/24/2011 1:12 PM:
> >>>>> BJ,
> >>>>> I am not sure if my question is clear. Yes, I have to have PROJECTMGR
> >>>>> permission to access this component. But the tasks are viewable to
> >>>>> anyone.
> >>>>> 
> >>>>> https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> >>>>> This part explains what I need:
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> At record level
> >>>>> 
> >>>>> Defining a path from the Party in question to the target/desired entity 
> >>>>> through relationships. This is usually do-able and easy to do with a 
> >>>>> single view entity, and if a query on that entity with the proper 
> >>>>> constraints returns any results then you know the user/party has the 
> >>>>> permission.
> >>>>> See the catalog role limited permissions and how they are defined and 
> >>>>> used in the ProductServices.xml file for an example.
> >>>>> Role limited (or based) permissions (aka Party Roles)
> >>>>> 
> >>>>> The purpose of role-limited permissions is to tie a SecurityPermission 
> >>>>> to record level security using the RoleType/PartyRole and related 
> >>>>

Re: Creating parties

2011-07-25 Thread Mansour Al Akeel
Pierre, thank you for contributing this patch.
It solves the first part of the issue.

On Mon Jul 25,2011 08:31 am, Pierre Smits wrote:
> Hi Mansour,
> 
> See my inline comment regarding the issue with
> https://demo-trunk-ofbiz-apache.org/projectmgr/control/main
> 
> With regards,
> 
> Pierre Smits
> 
> 2011/7/24 Mansour Al Akeel 
> 
> > BJ,
> > thank you for all your help. I looked at the links you sent me, and they
> > were usefull. I still don't understand why permissions are checked in
> > the ftl and not the service layer. However this is not the issue I am
> > stuck at now.
> > I think I am still confused about permissions.
> > I created an account on trunk demo to show what I am talking about.
> >
> > If you go to:
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/main
> >
> 
> I have created a patch that alleviates this problem, but it is not yet
> incorporated in the trunk.
> See jira for the patch.
> 
> https://issues.apache.org/jira/browse/OFBIZ-4206
> 
> 
> 
> 
> 
> > and try to login with mansour:ofbiz you will be greated with a screen
> > saying:
> >
> > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> > [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> > java.lang.IllegalArgumentException: Error running Groovy script at location
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> > org.ofbiz.service.ServiceAuthException: You have no access to the project#:
> > 9000 (Error running Groovy script at location
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> > org.ofbiz.service.ServiceAuthException: You have no access to the project#:
> > 9000)
> >
> > This is fine, as the user "mansour" doesn't have persmission to view
> > this project, but shouldn't this screen display the projects he is
> > member of (if any).
> >
> > The second part is if you go to:
> >
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask
> >
> > and hit find, the user can see all the tasks that he is not member of,
> > and clicking on any of them, will open the details about that task.
> >
> > This user is in "PROJECTUSER"  security group, which has:
> >
> > ROJECTMGR_ROLE_TASK_CREATE Be able to create a task (should be member of
> > project)
> > PROJECTMGR_ROLE_TIMESHEET_CREATE Be able to create a weekly timesheet for
> > the loginid.
> > PROJECTMGR_ROLE_TIMESHEET_UPDATE Be able to update(report) on an existing
> > own timesheet
> > PROJECTMGR_ROLE_VIEW All view operations in the Project Manager for a
> > project/phase/task the user is member of..
> > PROJECTMGR_VIEW ALL View operations in the Project Manager(but can be
> > limited by ROLE_VIEW)
> >
> > On my local machine, I removed that last one "PROJECTMGR_VIEW", but
> > still this user can see others tasks.
> >
> > Am I doing something wrong here?
> >
> > I appreciate your help.
> >
> > On Sun Jul 17,2011 10:09 am, BJ Freeman wrote:
> > > New Role Type (see chapter two of the Book)
> > > lets you define a new role type to use.
> > > it is best to link with the book to use the webtools
> > >
> > https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=RoleType
> > > you can also get the xml structure from the data and created a bunch of
> > > them then load them via the web tools import. note: that service engine
> > > and UI (widgets and ftls) need to changed if you want that role type to
> > > have access.
> > >
> > > doing a google search for
> > > ofbiz main role
> > > http://ofbiz.135035.n4.nabble.com/Party-Main-Role-td1680393.html
> > >
> > > I hope these tips help you research you answer more. and As I said
> > > before parts of you question are already been answered.
> > >
> > >
> > > This may clear up more on security and Role View all.
> > > https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> > >
> > >
> > > Mansour Al Akeel sent the following on 7/17/2011 8:45 AM:
> > > > Hello BJ,
> > > > and thank you for your reply.
> > > >
> > > > You can check the link here:
> > > >
> > https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoEmployee
> > > >
> > > > It has
> > > > "Add To Main Role" and "Add To Role

Re: Creating parties

2011-07-25 Thread Mansour Al Akeel
BJ,
go to this page:
https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask
login as whatever user you like, provided he has access to projectmgr
Hit [Find]
you will get a list of all the tasks in the system, even if you are not
a member of any project.
Click on any task, and you will be able to see the full info about it!

This is the problem!



On Sun Jul 24,2011 05:12 pm, BJ Freeman wrote:
> OOTB look at the party group Dev and relationships and work your way
> down to developer1
> you need this to show up in project resources to be added as a resource.
> in projects pick Demo project3 and go to resources.
> you will see DemoEmployee3
> 
> log in as DemoEmployee3
> you will notice that only projects and my portals show
> click on proects
> ingore the error for now
> then click on using the project mgr menu select projects you will only
> see the one in which DemoEmployee3 is a resource.
> 
> once you figure out what you need to make this happen you will have
> solved you problem
> 
> 
> Mansour Al Akeel sent the following on 7/24/2011 2:04 PM:
> > BJ,
> > The party "Mansour" has only one role "Employee" related to
> > "Mansour INC" organization !
> > 
> > And I don't have any service added. It's just the same services
> > out-of-box.
> > 
> > Anyone knows how to deal with it ? 
> > 
> > 
> > On Sun Jul 24,2011 01:20 pm, BJ Freeman wrote:
> >> since access for user is through the UI there is no need to go to record
> >> level.
> >> Now if you have a service that accesses the records then the it is the
> >> service that should check.
> >>
> >>
> >> Mansour Al Akeel sent the following on 7/24/2011 1:12 PM:
> >>> BJ,
> >>> I am not sure if my question is clear. Yes, I have to have PROJECTMGR
> >>> permission to access this component. But the tasks are viewable to
> >>> anyone.
> >>>
> >>> https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> >>> This part explains what I need:
> >>>
> >>>
> >>> 
> >>> At record level
> >>>
> >>> Defining a path from the Party in question to the target/desired entity 
> >>> through relationships. This is usually do-able and easy to do with a 
> >>> single view entity, and if a query on that entity with the proper 
> >>> constraints returns any results then you know the user/party has the 
> >>> permission.
> >>> See the catalog role limited permissions and how they are defined and 
> >>> used in the ProductServices.xml file for an example.
> >>> Role limited (or based) permissions (aka Party Roles)
> >>>
> >>> The purpose of role-limited permissions is to tie a SecurityPermission to 
> >>> record level security using the RoleType/PartyRole and related entities. 
> >>> In OFBiz this is how record level permissions are done, i.e. somehow the 
> >>> user (through their Party record) is associated with another record in 
> >>> the database and that specific relationship must exist in order for the 
> >>> role-limited permission to take effect.
> >>> Good examples are in hasPermission methods in OrderServices class or how 
> >>> ProductStoreRole, ContentAndRole, PartyRole, entities are used in Java 
> >>> code (and at large ENTITY-NAME Role entities). See also 
> >>> checkStoreCustomerRole in ProductEvents class.
> >>>   By the way, do not confuse Security Roles (below) with Party Roles - 
> >>> they are entirely different.
> >>>
> >>>
> >>> Security Roles
> >>>
> >>> Security Roles provide a means to associate a user ID (userLoginId) with 
> >>> a particular OFBiz element. This may seem the same as Security 
> >>> Permission, but it is slightly different. For example: a user is assigned 
> >>> the ORDERMGR_VIEW permission, and is associated to a particular facility 
> >>> (let's say XYZ Company) with the ORDERMGR_ROLE_UPDATE security role. This 
> >>> combination would allow the user to view orders for all facilities, and 
> >>> update orders for the XYZ Company facility only. They may be seen as 
> >>> limiting permissions.
> >>>
> >>> ===
> >>>
> >>> Back again to my original question, to protect the tasks from being
> >>> seen by Parties (logins), tha

Re: Creating parties

2011-07-24 Thread Mansour Al Akeel
BJ,
The party "Mansour" has only one role "Employee" related to
"Mansour INC" organization !

And I don't have any service added. It's just the same services
out-of-box.

Anyone knows how to deal with it ? 


On Sun Jul 24,2011 01:20 pm, BJ Freeman wrote:
> since access for user is through the UI there is no need to go to record
> level.
> Now if you have a service that accesses the records then the it is the
> service that should check.
> 
> 
> Mansour Al Akeel sent the following on 7/24/2011 1:12 PM:
> > BJ,
> > I am not sure if my question is clear. Yes, I have to have PROJECTMGR
> > permission to access this component. But the tasks are viewable to
> > anyone.
> > 
> > https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> > This part explains what I need:
> > 
> > 
> > 
> > At record level
> > 
> > Defining a path from the Party in question to the target/desired entity 
> > through relationships. This is usually do-able and easy to do with a single 
> > view entity, and if a query on that entity with the proper constraints 
> > returns any results then you know the user/party has the permission.
> > See the catalog role limited permissions and how they are defined and used 
> > in the ProductServices.xml file for an example.
> > Role limited (or based) permissions (aka Party Roles)
> > 
> > The purpose of role-limited permissions is to tie a SecurityPermission to 
> > record level security using the RoleType/PartyRole and related entities. In 
> > OFBiz this is how record level permissions are done, i.e. somehow the user 
> > (through their Party record) is associated with another record in the 
> > database and that specific relationship must exist in order for the 
> > role-limited permission to take effect.
> > Good examples are in hasPermission methods in OrderServices class or how 
> > ProductStoreRole, ContentAndRole, PartyRole, entities are used in Java code 
> > (and at large ENTITY-NAME Role entities). See also checkStoreCustomerRole 
> > in ProductEvents class.
> > By the way, do not confuse Security Roles (below) with Party Roles - 
> > they are entirely different.
> > 
> > 
> > Security Roles
> > 
> > Security Roles provide a means to associate a user ID (userLoginId) with a 
> > particular OFBiz element. This may seem the same as Security Permission, 
> > but it is slightly different. For example: a user is assigned the 
> > ORDERMGR_VIEW permission, and is associated to a particular facility (let's 
> > say XYZ Company) with the ORDERMGR_ROLE_UPDATE security role. This 
> > combination would allow the user to view orders for all facilities, and 
> > update orders for the XYZ Company facility only. They may be seen as 
> > limiting permissions.
> > 
> > ===
> > 
> > Back again to my original question, to protect the tasks from being
> > seen by Parties (logins), that are NOT a resource of that paroject, do I
> > have to dig in the code and add the permissions check, or it's a matter of 
> > configuration. To me it
> > makes more sense that a "party login" who is not a member of a project 
> > should
> > not be able to see work effort or task in that project.
> > 
> > 
> > On Sun Jul 24,2011 11:35 am, BJ Freeman wrote:
> >> permission usually refer to the Login of a party.
> >> if you look in the ofbiz-component.xml, base-permission="PROJECTMGR",
> >> your login must have this security level.
> >>
> >> Mansour Al Akeel sent the following on 7/24/2011 10:29 AM:
> >>> BJ,
> >>> thank you for all your help. I looked at the links you sent me, and they
> >>> were usefull. I still don't understand why permissions are checked in
> >>> the ftl and not the service layer. However this is not the issue I am
> >>> stuck at now.
> >>> I think I am still confused about permissions.
> >>> I created an account on trunk demo to show what I am talking about.
> >>>
> >>> If you go to:
> >>> https://demo-trunk.ofbiz.apache.org/projectmgr/control/main
> >>> and try to login with mansour:ofbiz you will be greated with a screen
> >>> saying:
> >>>
> >>> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> >>> [component://common/widget/CommonScreens.xml#GlobalDecorator]: 
> >>> java.lang.IllegalArgumentException: Error runnin

Re: Creating parties

2011-07-24 Thread Mansour Al Akeel
BJ,
I am not sure if my question is clear. Yes, I have to have PROJECTMGR
permission to access this component. But the tasks are viewable to
anyone.

https://cwiki.apache.org/OFBTECH/ofbiz-security.html
This part explains what I need:



At record level

Defining a path from the Party in question to the target/desired entity through 
relationships. This is usually do-able and easy to do with a single view 
entity, and if a query on that entity with the proper constraints returns any 
results then you know the user/party has the permission.
See the catalog role limited permissions and how they are defined and used in 
the ProductServices.xml file for an example.
Role limited (or based) permissions (aka Party Roles)

The purpose of role-limited permissions is to tie a SecurityPermission to 
record level security using the RoleType/PartyRole and related entities. In 
OFBiz this is how record level permissions are done, i.e. somehow the user 
(through their Party record) is associated with another record in the database 
and that specific relationship must exist in order for the role-limited 
permission to take effect.
Good examples are in hasPermission methods in OrderServices class or how 
ProductStoreRole, ContentAndRole, PartyRole, entities are used in Java code 
(and at large ENTITY-NAME Role entities). See also checkStoreCustomerRole in 
ProductEvents class.
By the way, do not confuse Security Roles (below) with Party Roles - 
they are entirely different.


Security Roles

Security Roles provide a means to associate a user ID (userLoginId) with a 
particular OFBiz element. This may seem the same as Security Permission, but it 
is slightly different. For example: a user is assigned the ORDERMGR_VIEW 
permission, and is associated to a particular facility (let's say XYZ Company) 
with the ORDERMGR_ROLE_UPDATE security role. This combination would allow the 
user to view orders for all facilities, and update orders for the XYZ Company 
facility only. They may be seen as limiting permissions.

===

Back again to my original question, to protect the tasks from being
seen by Parties (logins), that are NOT a resource of that paroject, do I
have to dig in the code and add the permissions check, or it's a matter of 
configuration. To me it
makes more sense that a "party login" who is not a member of a project should
not be able to see work effort or task in that project.


On Sun Jul 24,2011 11:35 am, BJ Freeman wrote:
> permission usually refer to the Login of a party.
> if you look in the ofbiz-component.xml, base-permission="PROJECTMGR",
> your login must have this security level.
> 
> Mansour Al Akeel sent the following on 7/24/2011 10:29 AM:
> > BJ,
> > thank you for all your help. I looked at the links you sent me, and they
> > were usefull. I still don't understand why permissions are checked in
> > the ftl and not the service layer. However this is not the issue I am
> > stuck at now.
> > I think I am still confused about permissions.
> > I created an account on trunk demo to show what I am talking about.
> > 
> > If you go to:
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/main
> > and try to login with mansour:ofbiz you will be greated with a screen
> > saying:
> > 
> > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> > [component://common/widget/CommonScreens.xml#GlobalDecorator]: 
> > java.lang.IllegalArgumentException: Error running Groovy script at location 
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> >  org.ofbiz.service.ServiceAuthException: You have no access to the 
> > project#: 9000 (Error running Groovy script at location 
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> >  org.ofbiz.service.ServiceAuthException: You have no access to the 
> > project#: 9000)
> > 
> > This is fine, as the user "mansour" doesn't have persmission to view
> > this project, but shouldn't this screen display the projects he is
> > member of (if any).
> > 
> > The second part is if you go to:
> > 
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask
> > 
> > and hit find, the user can see all the tasks that he is not member of,
> > and clicking on any of them, will open the details about that task.
> > 
> > This user is in "PROJECTUSER"  security group, which has:
> > 
> > ROJECTMGR_ROLE_TASK_CREATE Be able to create a task (should be member of 
> > project)   
> > PROJECTMGR_ROLE_TIMESHEET_CREATE Be able to create a weekly timesheet for 
> > the log

Re: Creating parties

2011-07-24 Thread Mansour Al Akeel
Are you saying this is missing, and should be added ? 

On Sun Jul 24,2011 11:48 am, BJ Freeman wrote:
> on the second part that was covered in the security link I gave you
> ' 
> Mansour Al Akeel sent the following on 7/24/2011 10:29 AM:
> > BJ,
> > thank you for all your help. I looked at the links you sent me, and they
> > were usefull. I still don't understand why permissions are checked in
> > the ftl and not the service layer. However this is not the issue I am
> > stuck at now.
> > I think I am still confused about permissions.
> > I created an account on trunk demo to show what I am talking about.
> > 
> > If you go to:
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/main
> > and try to login with mansour:ofbiz you will be greated with a screen
> > saying:
> > 
> > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> > [component://common/widget/CommonScreens.xml#GlobalDecorator]: 
> > java.lang.IllegalArgumentException: Error running Groovy script at location 
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> >  org.ofbiz.service.ServiceAuthException: You have no access to the 
> > project#: 9000 (Error running Groovy script at location 
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> >  org.ofbiz.service.ServiceAuthException: You have no access to the 
> > project#: 9000)
> > 
> > This is fine, as the user "mansour" doesn't have persmission to view
> > this project, but shouldn't this screen display the projects he is
> > member of (if any).
> > 
> > The second part is if you go to:
> > 
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask
> > 
> > and hit find, the user can see all the tasks that he is not member of,
> > and clicking on any of them, will open the details about that task.
> > 
> > This user is in "PROJECTUSER"  security group, which has:
> > 
> > ROJECTMGR_ROLE_TASK_CREATE Be able to create a task (should be member of 
> > project)   
> > PROJECTMGR_ROLE_TIMESHEET_CREATE Be able to create a weekly timesheet for 
> > the loginid. 
> > PROJECTMGR_ROLE_TIMESHEET_UPDATE Be able to update(report) on an existing 
> > own timesheet 
> > PROJECTMGR_ROLE_VIEW All view operations in the Project Manager for a 
> > project/phase/task the user is member of..
> > PROJECTMGR_VIEW ALL View operations in the Project Manager(but can be 
> > limited by ROLE_VIEW) 
> > 
> > On my local machine, I removed that last one "PROJECTMGR_VIEW", but
> > still this user can see others tasks.
> > 
> > Am I doing something wrong here?
> > 
> > I appreciate your help.
> > 
> > On Sun Jul 17,2011 10:09 am, BJ Freeman wrote:
> >> New Role Type (see chapter two of the Book)
> >> lets you define a new role type to use.
> >> it is best to link with the book to use the webtools
> >> https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=RoleType
> >> you can also get the xml structure from the data and created a bunch of
> >> them then load them via the web tools import. note: that service engine
> >> and UI (widgets and ftls) need to changed if you want that role type to
> >> have access.
> >>
> >> doing a google search for
> >> ofbiz main role
> >> http://ofbiz.135035.n4.nabble.com/Party-Main-Role-td1680393.html
> >>
> >> I hope these tips help you research you answer more. and As I said
> >> before parts of you question are already been answered.
> >>
> >>
> >> This may clear up more on security and Role View all.
> >> https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> >>
> >>
> >> Mansour Al Akeel sent the following on 7/17/2011 8:45 AM:
> >>> Hello BJ,
> >>> and thank you for your reply.
> >>>
> >>> You can check the link here:
> >>> https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoEmployee
> >>>
> >>> It has 
> >>> "Add To Main Role" and "Add To Role : view all" Fields. and if you
> >>> select soemthing like "Calendare" for the first one, you will get a
> >>> third field "Add To Second Role". What is the difference between them ?
> >>>
> >>> I was confused with the security part, because was adding a user to a
> >>> group, but still the user was not allow

Re: Creating parties

2011-07-24 Thread Mansour Al Akeel
What about the ability to view tasks that "mansour" is not part of their
projects?

On Sun Jul 24,2011 11:35 am, BJ Freeman wrote:
> permission usually refer to the Login of a party.
> if you look in the ofbiz-component.xml, base-permission="PROJECTMGR",
> your login must have this security level.
> 
> Mansour Al Akeel sent the following on 7/24/2011 10:29 AM:
> > BJ,
> > thank you for all your help. I looked at the links you sent me, and they
> > were usefull. I still don't understand why permissions are checked in
> > the ftl and not the service layer. However this is not the issue I am
> > stuck at now.
> > I think I am still confused about permissions.
> > I created an account on trunk demo to show what I am talking about.
> > 
> > If you go to:
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/main
> > and try to login with mansour:ofbiz you will be greated with a screen
> > saying:
> > 
> > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> > [component://common/widget/CommonScreens.xml#GlobalDecorator]: 
> > java.lang.IllegalArgumentException: Error running Groovy script at location 
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> >  org.ofbiz.service.ServiceAuthException: You have no access to the 
> > project#: 9000 (Error running Groovy script at location 
> > [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
> >  org.ofbiz.service.ServiceAuthException: You have no access to the 
> > project#: 9000)
> > 
> > This is fine, as the user "mansour" doesn't have persmission to view
> > this project, but shouldn't this screen display the projects he is
> > member of (if any).
> > 
> > The second part is if you go to:
> > 
> > https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask
> > 
> > and hit find, the user can see all the tasks that he is not member of,
> > and clicking on any of them, will open the details about that task.
> > 
> > This user is in "PROJECTUSER"  security group, which has:
> > 
> > ROJECTMGR_ROLE_TASK_CREATE Be able to create a task (should be member of 
> > project)   
> > PROJECTMGR_ROLE_TIMESHEET_CREATE Be able to create a weekly timesheet for 
> > the loginid. 
> > PROJECTMGR_ROLE_TIMESHEET_UPDATE Be able to update(report) on an existing 
> > own timesheet 
> > PROJECTMGR_ROLE_VIEW All view operations in the Project Manager for a 
> > project/phase/task the user is member of..
> > PROJECTMGR_VIEW ALL View operations in the Project Manager(but can be 
> > limited by ROLE_VIEW) 
> > 
> > On my local machine, I removed that last one "PROJECTMGR_VIEW", but
> > still this user can see others tasks.
> > 
> > Am I doing something wrong here?
> > 
> > I appreciate your help.
> > 
> > On Sun Jul 17,2011 10:09 am, BJ Freeman wrote:
> >> New Role Type (see chapter two of the Book)
> >> lets you define a new role type to use.
> >> it is best to link with the book to use the webtools
> >> https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=RoleType
> >> you can also get the xml structure from the data and created a bunch of
> >> them then load them via the web tools import. note: that service engine
> >> and UI (widgets and ftls) need to changed if you want that role type to
> >> have access.
> >>
> >> doing a google search for
> >> ofbiz main role
> >> http://ofbiz.135035.n4.nabble.com/Party-Main-Role-td1680393.html
> >>
> >> I hope these tips help you research you answer more. and As I said
> >> before parts of you question are already been answered.
> >>
> >>
> >> This may clear up more on security and Role View all.
> >> https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> >>
> >>
> >> Mansour Al Akeel sent the following on 7/17/2011 8:45 AM:
> >>> Hello BJ,
> >>> and thank you for your reply.
> >>>
> >>> You can check the link here:
> >>> https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoEmployee
> >>>
> >>> It has 
> >>> "Add To Main Role" and "Add To Role : view all" Fields. and if you
> >>> select soemthing like "Calendare" for the first one, you will get a
> >>> third field "Add To Second Role". What is the difference between them ?
> >>>
&

Re: Creating parties

2011-07-24 Thread Mansour Al Akeel
BJ,
thank you for all your help. I looked at the links you sent me, and they
were usefull. I still don't understand why permissions are checked in
the ftl and not the service layer. However this is not the issue I am
stuck at now.
I think I am still confused about permissions.
I created an account on trunk demo to show what I am talking about.

If you go to:
https://demo-trunk.ofbiz.apache.org/projectmgr/control/main
and try to login with mansour:ofbiz you will be greated with a screen
saying:

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://common/widget/CommonScreens.xml#GlobalDecorator]: 
java.lang.IllegalArgumentException: Error running Groovy script at location 
[component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
 org.ofbiz.service.ServiceAuthException: You have no access to the project#: 
9000 (Error running Groovy script at location 
[component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
 org.ofbiz.service.ServiceAuthException: You have no access to the project#: 
9000)

This is fine, as the user "mansour" doesn't have persmission to view
this project, but shouldn't this screen display the projects he is
member of (if any).

The second part is if you go to:

https://demo-trunk.ofbiz.apache.org/projectmgr/control/FindTask

and hit find, the user can see all the tasks that he is not member of,
and clicking on any of them, will open the details about that task.

This user is in "PROJECTUSER"  security group, which has:

ROJECTMGR_ROLE_TASK_CREATE Be able to create a task (should be member of 
project)   
PROJECTMGR_ROLE_TIMESHEET_CREATE Be able to create a weekly timesheet for the 
loginid. 
PROJECTMGR_ROLE_TIMESHEET_UPDATE Be able to update(report) on an existing own 
timesheet 
PROJECTMGR_ROLE_VIEW All view operations in the Project Manager for a 
project/phase/task the user is member of..
PROJECTMGR_VIEW ALL View operations in the Project Manager(but can be limited 
by ROLE_VIEW) 

On my local machine, I removed that last one "PROJECTMGR_VIEW", but
still this user can see others tasks.

Am I doing something wrong here?

I appreciate your help.

On Sun Jul 17,2011 10:09 am, BJ Freeman wrote:
> New Role Type (see chapter two of the Book)
> lets you define a new role type to use.
> it is best to link with the book to use the webtools
> https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=RoleType
> you can also get the xml structure from the data and created a bunch of
> them then load them via the web tools import. note: that service engine
> and UI (widgets and ftls) need to changed if you want that role type to
> have access.
> 
> doing a google search for
> ofbiz main role
> http://ofbiz.135035.n4.nabble.com/Party-Main-Role-td1680393.html
> 
> I hope these tips help you research you answer more. and As I said
> before parts of you question are already been answered.
> 
> 
> This may clear up more on security and Role View all.
> https://cwiki.apache.org/OFBTECH/ofbiz-security.html
> 
> 
> Mansour Al Akeel sent the following on 7/17/2011 8:45 AM:
> > Hello BJ,
> > and thank you for your reply.
> > 
> > You can check the link here:
> > https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoEmployee
> > 
> > It has 
> > "Add To Main Role" and "Add To Role : view all" Fields. and if you
> > select soemthing like "Calendare" for the first one, you will get a
> > third field "Add To Second Role". What is the difference between them ?
> > 
> > I was confused with the security part, because was adding a user to a
> > group, but still the user was not allowed to edit a project. I have to
> > add the user as a resource for that project. 
> > 
> > What I understand now is, Party Roles has nothing to do with
> > permissions, and the later has to be handled separately through the
> > security group.
> > 
> > 
> > Thank you.
> > 
> > 
> > On Sat Jul 16,2011 11:01 pm, BJ Freeman wrote:
> >> Yes I still have to go back and review. The book Deals only with Roles
> >> related to Party. Security based on login is not in the Book.
> >> The is covered in the Service Engine and Webapps, widgets
> >>
> >> It helps if you give complete URL to the places you talking about. It
> >> saves time of the answerer and verify we are talking the same component.
> >> The labels are in seperate files from actual code, so depending on who
> >> put in the text for that label, it may not be clear as to its meaning.
> >>
> >> you can limit based on Roles, security groups and/or security roles
&g

Re: Creating parties

2011-07-17 Thread Mansour Al Akeel
Hello BJ,
and thank you for your reply.

You can check the link here:
https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoEmployee

It has 
"Add To Main Role" and "Add To Role : view all" Fields. and if you
select soemthing like "Calendare" for the first one, you will get a
third field "Add To Second Role". What is the difference between them ?

I was confused with the security part, because was adding a user to a
group, but still the user was not allowed to edit a project. I have to
add the user as a resource for that project. 

What I understand now is, Party Roles has nothing to do with
permissions, and the later has to be handled separately through the
security group.


Thank you.


On Sat Jul 16,2011 11:01 pm, BJ Freeman wrote:
> Yes I still have to go back and review. The book Deals only with Roles
> related to Party. Security based on login is not in the Book.
> The is covered in the Service Engine and Webapps, widgets
> 
> It helps if you give complete URL to the places you talking about. It
> saves time of the answerer and verify we are talking the same component.
> The labels are in seperate files from actual code, so depending on who
> put in the text for that label, it may not be clear as to its meaning.
> 
> you can limit based on Roles, security groups and/or security roles
> which is different from roles.
> going through the widgets and Ftls will give you code examples of how
> this is accomplished.
> 
> The example component is good to review.
> 
> 
> Mansour Al Akeel sent the following on 7/16/2011 8:29 PM:
> > Ok, the "BOOK" explained things, and I know I have to read many parts
> > again, especially while trying to match the readings with  the
> > functionality offered by OFBiz.
> > 
> > Now I have a question related to adding roles. In the "Add To Role"
> > screen:
> > 
> > 
> > Add To Main Role
> > --> Role Type Id
> > 
> > Add To Second Role
> > --> Role Type Id
> > 
> > Add To Role : view all
> > --> Role Type Id
> > 
> > What is the difference between "Main Role" and "Second Role" and how do
> > I use them ? 
> > What is the "Add To Role" mean ? 
> > 
> > Back again to the senario in the first email, and after I modeled the
> > Parties, how do I let each access only to the functionality they need to
> > access ? For example, "Approver" to aprove timesheet and work effort.
> > Project manager to Assing tasks, "Developer" to update tasks. Would this
> > have to be separately using "Security Groups" ? 
> > 
> > Thank you.
> > 
> > 
> > On Mon Jun 27,2011 09:29 am, BJ Freeman wrote:
> >> as both Adrian and I mentioned most of that would be described well in
> >> the Data model book that ofbiz was modeled after, which is why not much
> >> documentation is written specifically in ofbiz.
> >>
> >> There are emails in the archive that have covered different parts of
> >> your question.
> >>
> >> Actually it has been a good time for the Documentation for over 6 years,
> >> problem is getting someone to volunteer to do it. We have added internal
> >> Help in ofbiz that needs to be filled out. ANY VOLUNTEERS.
> >>
> >> Normally such Contributions have been from someone hiring someone to do
> >> the documentation, because it takes a lot of time to volunteer and those
> >> that have to make a living do not have such time free. Then that
> >> documentation was volunteered to ofbiz community.
> >>
> >> I limit my volunteer time per subject on the mailing list to 15 min,
> >> unless i have a vested interest in it. I have even stopped answering on
> >> here because my time has become very limited. as an example this email
> >> took over two hours to finish because of interruptions to do business.
> >>
> >> so maybe others that have the time will volunteer the information you
> >> desire.
> >>
> >> Most find the charge for the "BOOK" a lot less than hiring someone, or
> >> volunteering the time to document.
> >>
> >> That said, feel free once you understand to volunteer you time to
> >> documented this the way you think it should be done.
> >> BTW I have made this offer to others that presented the same proposal in
> >> the past and they have not volunteer such documentation yet.
> >>
> >> I would suggest you draw an organizational chart then use the fields in
> >> ofbiz to associated the chart to 

Re: Creating parties

2011-07-16 Thread Mansour Al Akeel
Ok, the "BOOK" explained things, and I know I have to read many parts
again, especially while trying to match the readings with  the
functionality offered by OFBiz.

Now I have a question related to adding roles. In the "Add To Role"
screen:


Add To Main Role
--> Role Type Id

Add To Second Role
--> Role Type Id

Add To Role : view all
--> Role Type Id

What is the difference between "Main Role" and "Second Role" and how do
I use them ? 
What is the "Add To Role" mean ? 

Back again to the senario in the first email, and after I modeled the
Parties, how do I let each access only to the functionality they need to
access ? For example, "Approver" to aprove timesheet and work effort.
Project manager to Assing tasks, "Developer" to update tasks. Would this
have to be separately using "Security Groups" ? 

Thank you.


On Mon Jun 27,2011 09:29 am, BJ Freeman wrote:
> as both Adrian and I mentioned most of that would be described well in
> the Data model book that ofbiz was modeled after, which is why not much
> documentation is written specifically in ofbiz.
> 
> There are emails in the archive that have covered different parts of
> your question.
> 
> Actually it has been a good time for the Documentation for over 6 years,
> problem is getting someone to volunteer to do it. We have added internal
> Help in ofbiz that needs to be filled out. ANY VOLUNTEERS.
> 
> Normally such Contributions have been from someone hiring someone to do
> the documentation, because it takes a lot of time to volunteer and those
> that have to make a living do not have such time free. Then that
> documentation was volunteered to ofbiz community.
> 
> I limit my volunteer time per subject on the mailing list to 15 min,
> unless i have a vested interest in it. I have even stopped answering on
> here because my time has become very limited. as an example this email
> took over two hours to finish because of interruptions to do business.
> 
> so maybe others that have the time will volunteer the information you
> desire.
> 
> Most find the charge for the "BOOK" a lot less than hiring someone, or
> volunteering the time to document.
> 
> That said, feel free once you understand to volunteer you time to
> documented this the way you think it should be done.
> BTW I have made this offer to others that presented the same proposal in
> the past and they have not volunteer such documentation yet.
> 
> I would suggest you draw an organizational chart then use the fields in
> ofbiz to associated the chart to relationships. There is no "ONE"
> organization chart.
> 
> Demo employee shows two relationships as examples, in a normal Company
> there may be many relationships. like the one that says the demo
> employee is a employee.
> 
> you would use roles and relationship
> 
> Mansour Al Akeel sent the following on 6/27/2011 4:28 AM:
> > BJ thank you.
> > 
> > My question is related more to ofbiz usage. In the relationship page:
> > https://demo-trunk.ofbiz.apache.org/partymgr/control/EditPartyRelationships?partyId=DemoEmployee
> > you can see some fields that are not clear to me. To be more specific, We 
> > have:
> > in the role of  |   is Aof Party| in the role of
> > 
> > There two relations for DemoEmployee. And each relation has two fields
> > "in the Role Of".
> > Further more, there is some confusion about where to relate employee
> > to organization. I mean if you go to:
> > 
> > https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=DemoEmployee
> > 
> > You will see four tabs with labels indicates similar functionality:
> > -Roles
> > -Link Party
> > -Relationships
> > -Segments
> > 
> > 
> > What is the difference between these ? To add employee to Organization
> > I need to use . ?
> > May be it's a good opportunity to discuss and document each of them,
> > instead of referring me to the "BOOK" ;)
> > 
> > 
> > 
> > On Sun, Jun 26, 2011 at 9:10 PM, BJ Freeman  wrote:
> >> there is not much documented in ofbiz about party.
> >> however if you read the Data model book Vol I you will see a lot about
> >> partyrelationsips. Good diagram on pg 41
> >> In this case you would have party relationship with the company that
> >> supplies contractors
> >> so you need to setup the roles of each party then setup the relationship
> >> between them
> >> start with organizational party relationship then individual (person)
> >> realtionships with organizations.
> >>
> &

Re: ofbiz "mavenizer"

2011-07-14 Thread Mansour Al Akeel
There's an ivy.xml file in the root of ofbiz trunk. Ant+Ivy seems to
be better alternative.
Since we have all the build.xml ready, the only thing we need is to
declare the dependencies using ivy. For this to work, components
build.xml files need to be modified to install the resulting jar files
in ivy (or maven repo).
This is based on my understanding of ivy (which is very limited).


On Wed, Jul 13, 2011 at 11:50 PM, Ray Shi  wrote:
> I used Maven Ant Tasks in the development of new OFBiz applications.
> The Maven Ant Tasks allow some of the Maven's artifact handling
> features including the dependency management to be used from within
> the Ant build.
>
> So this could be an option for those who wants to use POM to manage
> the dependencies, and stick to the standard OFBiz project structure at
> the same time.
>
>
> On 14/07/2011, hyysguy...@gmail.com  wrote:
>> Yes, that's the point, I strong recommend migrate the build system to
>> maven, it's very handy to build/development/deploy/release with maven
>> since there is lots of plugins can be use, and you also can write your
>> plugin if possible. Just as Sascha mentioned, IMHO,
>>
>> 1. Maven follow the convention over configuration, you can avoid lots of
>> unnecessary work, more important, ofbiz is also follow this principle,
>> ofbiz follow the standard ofbiz-module-directory.
>>
>> 2. One of the goal of Maven is to support multiple module development,
>> it's really easy and powerful, there is lots of project(open source or
>> commercial ) are base upon maven build system, such as glassfish,
>> hibernate, james, seam, xwiki... Ofbiz is really a large multiple
>> module project, it's easy to mapping to maven's module. You can focus on
>> the module with maven module support, no need build other moduleit's
>> very important for larger project since you can build quickly and work
>> more effective.
>>
>> 3. Beyond dependency management, maven standardize the release
>> lifecycle, project management, document management and more development
>> activity.
>>
>> 4. Most of the IDE provide powerful support maven, you can open an maven
>> project just as open normal IDE's project, such as idea, eclipse,
>> netbean.
>>
>> 5. Maven provide dependency management which ensure all dependent
>> artifact have accurate version. This is very important to ensure the
>> system stable. Seems some dependent jar of ofbiz miss the version
>> information from my memory.
>>
>> So, I would vote for provide maven build support.。。
>>
>>
>> Please be free to contact with me for any question or suggestion.
>> Thanks & Best Regards .
>> 
>>
>> Young Gu | Software Engineer | http://www.infor.com
>>
>> On 7/14/2011 12:12 AM, Sascha Rodekamp wrote:
>>> Hi David, hi Eric,
>>>
>>> first: cool tool Eric would love to see it!
>>>
>>> I worked a lot with maven in the last year and must say it is pretty
>>> amazing
>>> how easy thinks can be when you follow the convention over configuration
>>> pattern. There are plenty of plugins which support you by
>>> building/deploying/organization your application.
>>> So when maven is working it's is a really powerful tool.
>>> But during my projects i had to migrate some ANT based builds to Maven
>>> based
>>> build, that was a lot of work (and some times pretty frustrating).
>>>
>>> To your points David:
>>> 1. better modularizing OFBiz
>>> That would be a really great benefit and maven have a good modularization
>>> support
>>>
>>> 2. using Maven for build and/or module dependency management?
>>> That effects point one. The maven structure made it easy to create
>>> separate
>>> POMs (ProjectObjectModel) for each module (which can inherit other POMs)
>>> and
>>> combine them in one super pom which defines global (build/ deployment
>>> etc.)
>>> options
>>>
>>> ... Just a few thoughts this evening :)
>>>
>>> regards,
>>> Sascha
>>>
>>>
>>> 2011/7/13 David E Jones
>>>
 This is an interesting idea, and there seem to be a number of plugins for
 Maven that deal with release/build/deploy automation.

 Looking around to learn more about this I found this interesting intro
 presentation that talks about the Maven release plugin, plus plugins for
 other tools like Codehaus Cargo and LiquiBase (with a nice little intro
 to
 LiquiBase, which is very cool BTW):


 http://www.slideshare.net/wakaleo/automated-deployment-with-maven-going-the-whole-nine-yards

 -David


 On Jul 13, 2011, at 3:39 PM, Eric Bowman wrote:

> Yes.  We version our changes of ofbiz in a mavenesque way, and intend to
 use the maven release plugin to generate releases which get "deployed"
 (in
 maven terminology) to a repository, from which they get deployed to real
 servers.
> On 13 Jul 2011, at 15:18, David E Jones wrote:
>
>> Is part of the intent to use the Maven release plugin for deployment
>>

Re: upload pdf content for a task

2011-07-11 Thread Mansour Al Akeel
BJ,

I tried the snapshot ofbiz-trunk-2011-07-05-v1142908.zip
and tried it. It worked fine.
Yes, what you stated is right for 1) and 2).

1) zip 10.04 is ok.
2) trunk-demo is ok.
3) snap shot zip is ok.
4) 11.04 from repo is NOT.
5) 10.04 from repo is NOT.
6) trunk from repo is NOT.

I tested those with,

./ant clean-all
./ant run-install
./ant run

The issue is to test uploading different content, and in my case is PDF
files.

I think this narrows it down to the repo, which I am accessing through
git. I will checout the code using SVN sometime, and let you know.

Thank you for your help BJ.



On Mon Jul 11,2011 03:22 pm, BJ Freeman wrote:
> did you do it the
> ok seems I get a different situation each time we talk.
> here is what I think you have stated:
> 1) no problem with 10.04 zip file.
> 2)_no problems with demo-trunk.
> 3) problems with svn
> This tells me it is not the svn code but something in your process,
> maybe even the git since most use svn clients.
> 
> suggest you download the zip for from the latest snapshot, and do
> ./ant run
> if works then repeat the clean and rebuild.
> 


Re: upload pdf content for a task

2011-07-11 Thread Mansour Al Akeel
BJ,
I tried cleaning and rebuilding:
./ant clean-all
./ant run-install
./ant run

With:
ofbiz 10.04  from zip, it worked fine.
ofbiz trunk, can not upload pdf. Failed
ofbiz 11.04 branch from git, it didn't work. Failed

So it has nothing to do with the data seeds.


On Sat Jul 09,2011 05:43 pm, Mansour Al Akeel wrote:
> Ok, I created an issue before I foreget something:
> https://issues.apache.org/jira/browse/OFBIZ-4336
> 
> Will attach additional info when I have them.
> 
> 
> On Sat Jul 09,2011 02:31 pm, BJ Freeman wrote:
> > can do the same thing in eclipse but you have to know the pattern you
> > looking for.
> > If I had time would go through history available through svn.
> > 
> > Mansour Al Akeel sent the following on 7/9/2011 2:25 PM:
> > > BJ,
> > > I appreciate your help. I am looking to report it, but may be it will
> > > help a bit more if I can locate the date/revision where the bug was
> > > introduced. I use git which allows me to perform binary search in the
> > > history to locate the bug.
> > > I will see what I can come up with.
> > > 
> > > 
> > > 
> > > On Sat, Jul 9, 2011 at 5:05 PM, BJ Freeman  wrote:
> > >> open a Jira and put all that you have found so far.
> > >>
> > >> Mansour Al Akeel sent the following on 7/9/2011 1:24 PM:
> > >>> Release 10.04 is working fine. I can upload PDF files, jar files, zip
> > >>> files, JPG images ... etc.
> > >>> It looks like a bug was introduced somewhere.
> > >>>
> > >>>
> > >>>
> > >>> On Sat, Jul 9, 2011 at 2:00 PM, BJ Freeman  wrote:
> > >>>> The demo I have is not the current trunk so I can not confirm.
> > >>>> when have some free time will download the trunk and run a test.
> > >>>> can not guaranteeing that will be soon.
> > >>>>
> > >>>>
> > >>>> Mansour Al Akeel sent the following on 7/9/2011 10:10 AM:
> > >>>>> I am not using selinux. It's disabled. I just tried to start ofbiz as 
> > >>>>> a
> > >>>>> root, and the same issue. Changed the database engine from derby to
> > >>>>> postgresql, and the same problem exists.
> > >>>>>
> > >>>>> I am using gentoo.
> > >>>>>
> > >>>>> java version "1.6.0_26"
> > >>>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> > >>>>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> > >>>>>
> > >>>>> Can you please confirm it's working on your local machine with the
> > >>>>> default config. If it's not working either, this means I am missing
> > >>>>> some config.
> > >>>>>
> > >>>>> I think this is the only way to narrow down the issue. Thank you.
> > >>>>>
> > >>>>>
> > >>>>> On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
> > >>>>>> I have not addressed this particular upload.
> > >>>>>> I doubt my solution of not using the bulk upload would work for you.
> > >>>>>> I don't use the trunk or any ofbiz pure code so I can't be of any 
> > >>>>>> help
> > >>>>>> further than i have been.
> > >>>>>> it is something particular to the files you are having trouble with 
> > >>>>>> and
> > >>>>>> is not the code, since it works on the demo.
> > >>>>>> how about the JDK I run Centos 5.6 with open JDK but the recommended 
> > >>>>>> is
> > >>>>>> the Sun JDK.
> > >>>>>> Just a way out thought, possibly a selinux setting.
> > >>>>>>
> > >>>>>> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
> > >>>>>>> BJ,
> > >>>>>>> how did you fix it?
> > >>>>>>>
> > >>>>>>> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
> > >>>>>>> Is there any settings for the uploaded files. I tried uploading a 
> > >>>>>>> 31 MB
> > >>>>>>> text file and it went through and worked fine. Still can not upload 
> > >>>>>&g

Re: upload pdf content for a task

2011-07-11 Thread Mansour Al Akeel
BJ,
I tried cleaning and reinstalling the data many times, with no luck.
It doesn't hurt to try once more, but I am certain it won't help.



On Sat Jul 09,2011 05:43 pm, Mansour Al Akeel wrote:
> Ok, I created an issue before I foreget something:
> https://issues.apache.org/jira/browse/OFBIZ-4336
> 
> Will attach additional info when I have them.
> 
> 
> On Sat Jul 09,2011 02:31 pm, BJ Freeman wrote:
> > can do the same thing in eclipse but you have to know the pattern you
> > looking for.
> > If I had time would go through history available through svn.
> > 
> > Mansour Al Akeel sent the following on 7/9/2011 2:25 PM:
> > > BJ,
> > > I appreciate your help. I am looking to report it, but may be it will
> > > help a bit more if I can locate the date/revision where the bug was
> > > introduced. I use git which allows me to perform binary search in the
> > > history to locate the bug.
> > > I will see what I can come up with.
> > > 
> > > 
> > > 
> > > On Sat, Jul 9, 2011 at 5:05 PM, BJ Freeman  wrote:
> > >> open a Jira and put all that you have found so far.
> > >>
> > >> Mansour Al Akeel sent the following on 7/9/2011 1:24 PM:
> > >>> Release 10.04 is working fine. I can upload PDF files, jar files, zip
> > >>> files, JPG images ... etc.
> > >>> It looks like a bug was introduced somewhere.
> > >>>
> > >>>
> > >>>
> > >>> On Sat, Jul 9, 2011 at 2:00 PM, BJ Freeman  wrote:
> > >>>> The demo I have is not the current trunk so I can not confirm.
> > >>>> when have some free time will download the trunk and run a test.
> > >>>> can not guaranteeing that will be soon.
> > >>>>
> > >>>>
> > >>>> Mansour Al Akeel sent the following on 7/9/2011 10:10 AM:
> > >>>>> I am not using selinux. It's disabled. I just tried to start ofbiz as 
> > >>>>> a
> > >>>>> root, and the same issue. Changed the database engine from derby to
> > >>>>> postgresql, and the same problem exists.
> > >>>>>
> > >>>>> I am using gentoo.
> > >>>>>
> > >>>>> java version "1.6.0_26"
> > >>>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> > >>>>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> > >>>>>
> > >>>>> Can you please confirm it's working on your local machine with the
> > >>>>> default config. If it's not working either, this means I am missing
> > >>>>> some config.
> > >>>>>
> > >>>>> I think this is the only way to narrow down the issue. Thank you.
> > >>>>>
> > >>>>>
> > >>>>> On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
> > >>>>>> I have not addressed this particular upload.
> > >>>>>> I doubt my solution of not using the bulk upload would work for you.
> > >>>>>> I don't use the trunk or any ofbiz pure code so I can't be of any 
> > >>>>>> help
> > >>>>>> further than i have been.
> > >>>>>> it is something particular to the files you are having trouble with 
> > >>>>>> and
> > >>>>>> is not the code, since it works on the demo.
> > >>>>>> how about the JDK I run Centos 5.6 with open JDK but the recommended 
> > >>>>>> is
> > >>>>>> the Sun JDK.
> > >>>>>> Just a way out thought, possibly a selinux setting.
> > >>>>>>
> > >>>>>> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
> > >>>>>>> BJ,
> > >>>>>>> how did you fix it?
> > >>>>>>>
> > >>>>>>> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
> > >>>>>>> Is there any settings for the uploaded files. I tried uploading a 
> > >>>>>>> 31 MB
> > >>>>>>> text file and it went through and worked fine. Still can not upload 
> > >>>>>>> a
> > >>>>>>> 260 KB PDF file !
> > >>>>>>>
> > >>>>>>>

Re: Creating parties

2011-07-11 Thread Mansour Al Akeel
Ok, I ordered the book, and just recieved it. I will check this part as
soon as I can.
I didn't recieve the CD with the book. Is this important ? 




On Mon Jun 27,2011 09:29 am, BJ Freeman wrote:
> as both Adrian and I mentioned most of that would be described well in
> the Data model book that ofbiz was modeled after, which is why not much
> documentation is written specifically in ofbiz.
> 
> There are emails in the archive that have covered different parts of
> your question.
> 
> Actually it has been a good time for the Documentation for over 6 years,
> problem is getting someone to volunteer to do it. We have added internal
> Help in ofbiz that needs to be filled out. ANY VOLUNTEERS.
> 
> Normally such Contributions have been from someone hiring someone to do
> the documentation, because it takes a lot of time to volunteer and those
> that have to make a living do not have such time free. Then that
> documentation was volunteered to ofbiz community.
> 
> I limit my volunteer time per subject on the mailing list to 15 min,
> unless i have a vested interest in it. I have even stopped answering on
> here because my time has become very limited. as an example this email
> took over two hours to finish because of interruptions to do business.
> 
> so maybe others that have the time will volunteer the information you
> desire.
> 
> Most find the charge for the "BOOK" a lot less than hiring someone, or
> volunteering the time to document.
> 
> That said, feel free once you understand to volunteer you time to
> documented this the way you think it should be done.
> BTW I have made this offer to others that presented the same proposal in
> the past and they have not volunteer such documentation yet.
> 
> I would suggest you draw an organizational chart then use the fields in
> ofbiz to associated the chart to relationships. There is no "ONE"
> organization chart.
> 
> Demo employee shows two relationships as examples, in a normal Company
> there may be many relationships. like the one that says the demo
> employee is a employee.
> 
> you would use roles and relationship
> 
> Mansour Al Akeel sent the following on 6/27/2011 4:28 AM:
> > BJ thank you.
> > 
> > My question is related more to ofbiz usage. In the relationship page:
> > https://demo-trunk.ofbiz.apache.org/partymgr/control/EditPartyRelationships?partyId=DemoEmployee
> > you can see some fields that are not clear to me. To be more specific, We 
> > have:
> > in the role of  |   is Aof Party| in the role of
> > 
> > There two relations for DemoEmployee. And each relation has two fields
> > "in the Role Of".
> > Further more, there is some confusion about where to relate employee
> > to organization. I mean if you go to:
> > 
> > https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=DemoEmployee
> > 
> > You will see four tabs with labels indicates similar functionality:
> > -Roles
> > -Link Party
> > -Relationships
> > -Segments
> > 
> > 
> > What is the difference between these ? To add employee to Organization
> > I need to use . ?
> > May be it's a good opportunity to discuss and document each of them,
> > instead of referring me to the "BOOK" ;)
> > 
> > 
> > 
> > On Sun, Jun 26, 2011 at 9:10 PM, BJ Freeman  wrote:
> >> there is not much documented in ofbiz about party.
> >> however if you read the Data model book Vol I you will see a lot about
> >> partyrelationsips. Good diagram on pg 41
> >> In this case you would have party relationship with the company that
> >> supplies contractors
> >> so you need to setup the roles of each party then setup the relationship
> >> between them
> >> start with organizational party relationship then individual (person)
> >> realtionships with organizations.
> >>
> >> example
> >> the programmer would be a employee role with the recruitment company if
> >> they contract, then the programmer would have a contractor relationship
> >> with the Company.
> >>
> >> the rest you can get from the demo data or you can look at the demo site
> >> at the different parties to see the relationships.
> >>
> >> Mansour Al Akeel sent the following on 6/26/2011 4:43 PM:
> >>> Hello all,
> >>> I didn't use the parties component extensively, and don't know a lot 
> >>> about it.
> >>> Here's the scenario we have. Three Group parties:
> >>> Programmers
> >>> Recruiter
> >>

Re: how to create themes with JSP

2011-07-11 Thread Mansour Al Akeel
BJ, 
sorry! foregot to include the version number. I am using realse 10.04
from the zip file.

Thank you

On Mon Jul 11,2011 03:05 am, Mansour Al Akeel wrote:
> Thank you BJ,
> 
> I created a header.jsp:
> 
>  resourceTypeEnumId="VT_HDR_TMPLT_LOC" 
> resourceValue="component://flatgrey/includes/header.jsp" sequenceId="01"/>
> 
> tried it but I got this:
> 
> [java] 2011-07-11 02:58:18,630 (http-0.0.0.0-8443-1) [ 
> ControlServlet.java:230:ERROR]
> [java]  exception report 
> --
> [java] Error in request handler:
> [java] Exception: org.ofbiz.widget.screen.ScreenRenderException
> [java] Message: Error rendering screen 
> [component://common/widget/CommonScreens.xml#GlobalDecorator]: 
> java.lang.IllegalArgumentException: Rendering not yet supported for the 
> template at location: component://flatgrey/includes/header.jsp (Rendering not 
> yet supported for the template at location: 
> component://flatgrey/includes/header.jsp)
> [java]  cause 
> -
> [java] Exception: java.lang.IllegalArgumentException
> [java] Message: Rendering not yet supported for the template at location: 
> component://flatgrey/includes/header.jsp
> [java]  stack trace 
> ---
> [java] java.lang.IllegalArgumentException: Rendering not yet supported for 
> the template at location: component://flatgrey/includes/header.jsp
> 
> Am I missing something ? 
> 
> 
> 
> On Sun Jul 10,2011 09:39 pm, BJ Freeman wrote:
> > JSP is being depreciated, but is usable.
> > take a look at the seed data for Themes and see if you can duplicate the
> > ftl's
> > 
> > 
> > Mansour Al Akeel sent the following on 7/10/2011 5:56 PM:
> > > Is't possible to create themes with JSP ?
> > > 


Re: how to create themes with JSP

2011-07-11 Thread Mansour Al Akeel
Thank you BJ,

I created a header.jsp:



tried it but I got this:

[java] 2011-07-11 02:58:18,630 (http-0.0.0.0-8443-1) [ 
ControlServlet.java:230:ERROR]
[java]  exception report 
--
[java] Error in request handler:
[java] Exception: org.ofbiz.widget.screen.ScreenRenderException
[java] Message: Error rendering screen 
[component://common/widget/CommonScreens.xml#GlobalDecorator]: 
java.lang.IllegalArgumentException: Rendering not yet supported for the 
template at location: component://flatgrey/includes/header.jsp (Rendering not 
yet supported for the template at location: 
component://flatgrey/includes/header.jsp)
[java]  cause 
-
[java] Exception: java.lang.IllegalArgumentException
[java] Message: Rendering not yet supported for the template at location: 
component://flatgrey/includes/header.jsp
[java]  stack trace 
---
[java] java.lang.IllegalArgumentException: Rendering not yet supported for the 
template at location: component://flatgrey/includes/header.jsp

Am I missing something ? 



On Sun Jul 10,2011 09:39 pm, BJ Freeman wrote:
> JSP is being depreciated, but is usable.
> take a look at the seed data for Themes and see if you can duplicate the
> ftl's
> 
> 
> Mansour Al Akeel sent the following on 7/10/2011 5:56 PM:
> > Is't possible to create themes with JSP ?
> > 


how to create themes with JSP

2011-07-10 Thread Mansour Al Akeel
Is't possible to create themes with JSP ?


Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
Ok, I created an issue before I foreget something:
https://issues.apache.org/jira/browse/OFBIZ-4336

Will attach additional info when I have them.


On Sat Jul 09,2011 02:31 pm, BJ Freeman wrote:
> can do the same thing in eclipse but you have to know the pattern you
> looking for.
> If I had time would go through history available through svn.
> 
> Mansour Al Akeel sent the following on 7/9/2011 2:25 PM:
> > BJ,
> > I appreciate your help. I am looking to report it, but may be it will
> > help a bit more if I can locate the date/revision where the bug was
> > introduced. I use git which allows me to perform binary search in the
> > history to locate the bug.
> > I will see what I can come up with.
> > 
> > 
> > 
> > On Sat, Jul 9, 2011 at 5:05 PM, BJ Freeman  wrote:
> >> open a Jira and put all that you have found so far.
> >>
> >> Mansour Al Akeel sent the following on 7/9/2011 1:24 PM:
> >>> Release 10.04 is working fine. I can upload PDF files, jar files, zip
> >>> files, JPG images ... etc.
> >>> It looks like a bug was introduced somewhere.
> >>>
> >>>
> >>>
> >>> On Sat, Jul 9, 2011 at 2:00 PM, BJ Freeman  wrote:
> >>>> The demo I have is not the current trunk so I can not confirm.
> >>>> when have some free time will download the trunk and run a test.
> >>>> can not guaranteeing that will be soon.
> >>>>
> >>>>
> >>>> Mansour Al Akeel sent the following on 7/9/2011 10:10 AM:
> >>>>> I am not using selinux. It's disabled. I just tried to start ofbiz as a
> >>>>> root, and the same issue. Changed the database engine from derby to
> >>>>> postgresql, and the same problem exists.
> >>>>>
> >>>>> I am using gentoo.
> >>>>>
> >>>>> java version "1.6.0_26"
> >>>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> >>>>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> >>>>>
> >>>>> Can you please confirm it's working on your local machine with the
> >>>>> default config. If it's not working either, this means I am missing
> >>>>> some config.
> >>>>>
> >>>>> I think this is the only way to narrow down the issue. Thank you.
> >>>>>
> >>>>>
> >>>>> On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
> >>>>>> I have not addressed this particular upload.
> >>>>>> I doubt my solution of not using the bulk upload would work for you.
> >>>>>> I don't use the trunk or any ofbiz pure code so I can't be of any help
> >>>>>> further than i have been.
> >>>>>> it is something particular to the files you are having trouble with and
> >>>>>> is not the code, since it works on the demo.
> >>>>>> how about the JDK I run Centos 5.6 with open JDK but the recommended is
> >>>>>> the Sun JDK.
> >>>>>> Just a way out thought, possibly a selinux setting.
> >>>>>>
> >>>>>> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
> >>>>>>> BJ,
> >>>>>>> how did you fix it?
> >>>>>>>
> >>>>>>> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
> >>>>>>> Is there any settings for the uploaded files. I tried uploading a 31 
> >>>>>>> MB
> >>>>>>> text file and it went through and worked fine. Still can not upload a
> >>>>>>> 260 KB PDF file !
> >>>>>>>
> >>>>>>> I just started again from scratch, and got the source from git, 
> >>>>>>> rebuilt
> >>>>>>> and ran the new instance with no luck, and the same results. Something
> >>>>>>> wierd going on. I am working on linux wich is what the demo is 
> >>>>>>> running.
> >>>>>>>
> >>>>>>>
> >>>>>>> Any idea ?
> >>>>>>>
> >>>>>>>
> >>>>>>> On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
> >>>>>>>> it would be memory size.
> >>>>>>>> uploads require use of global me

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
BJ,
I appreciate your help. I am looking to report it, but may be it will
help a bit more if I can locate the date/revision where the bug was
introduced. I use git which allows me to perform binary search in the
history to locate the bug.
I will see what I can come up with.



On Sat, Jul 9, 2011 at 5:05 PM, BJ Freeman  wrote:
> open a Jira and put all that you have found so far.
>
> Mansour Al Akeel sent the following on 7/9/2011 1:24 PM:
>> Release 10.04 is working fine. I can upload PDF files, jar files, zip
>> files, JPG images ... etc.
>> It looks like a bug was introduced somewhere.
>>
>>
>>
>> On Sat, Jul 9, 2011 at 2:00 PM, BJ Freeman  wrote:
>>> The demo I have is not the current trunk so I can not confirm.
>>> when have some free time will download the trunk and run a test.
>>> can not guaranteeing that will be soon.
>>>
>>>
>>> Mansour Al Akeel sent the following on 7/9/2011 10:10 AM:
>>>> I am not using selinux. It's disabled. I just tried to start ofbiz as a
>>>> root, and the same issue. Changed the database engine from derby to
>>>> postgresql, and the same problem exists.
>>>>
>>>> I am using gentoo.
>>>>
>>>> java version "1.6.0_26"
>>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
>>>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
>>>>
>>>> Can you please confirm it's working on your local machine with the
>>>> default config. If it's not working either, this means I am missing
>>>> some config.
>>>>
>>>> I think this is the only way to narrow down the issue. Thank you.
>>>>
>>>>
>>>> On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
>>>>> I have not addressed this particular upload.
>>>>> I doubt my solution of not using the bulk upload would work for you.
>>>>> I don't use the trunk or any ofbiz pure code so I can't be of any help
>>>>> further than i have been.
>>>>> it is something particular to the files you are having trouble with and
>>>>> is not the code, since it works on the demo.
>>>>> how about the JDK I run Centos 5.6 with open JDK but the recommended is
>>>>> the Sun JDK.
>>>>> Just a way out thought, possibly a selinux setting.
>>>>>
>>>>> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
>>>>>> BJ,
>>>>>> how did you fix it?
>>>>>>
>>>>>> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
>>>>>> Is there any settings for the uploaded files. I tried uploading a 31 MB
>>>>>> text file and it went through and worked fine. Still can not upload a
>>>>>> 260 KB PDF file !
>>>>>>
>>>>>> I just started again from scratch, and got the source from git, rebuilt
>>>>>> and ran the new instance with no luck, and the same results. Something
>>>>>> wierd going on. I am working on linux wich is what the demo is running.
>>>>>>
>>>>>>
>>>>>> Any idea ?
>>>>>>
>>>>>>
>>>>>> On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
>>>>>>> it would be memory size.
>>>>>>> uploads require use of global memory. if you don't have enough then the
>>>>>>> upload is aborted.
>>>>>>> Atleast that was my experience on uploading large files.
>>>>>>>
>>>>>>> Mansour Al Akeel sent the following on 7/9/2011 7:00 AM:
>>>>>>>> BJ, I really appreciate your help.
>>>>>>>> I am a bit lost here. The issue exists only on my local instance. The
>>>>>>>> demo https://demo-trunk.ofbiz.apache.org/ is working properly.
>>>>>>>> My local instance is pulled from trunk. Not sure if there's some
>>>>>>>> configuration I missed.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
>>>>>>>>  wrote:
>>>>>>>>> thank you BJ.
>>>>>>>>> It is working on the demo.
>>>>>>>>>
>>>>>>>>> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  
>>>>>>>>> wro

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
Release 10.04 is working fine. I can upload PDF files, jar files, zip
files, JPG images ... etc.
It looks like a bug was introduced somewhere.



On Sat, Jul 9, 2011 at 2:00 PM, BJ Freeman  wrote:
> The demo I have is not the current trunk so I can not confirm.
> when have some free time will download the trunk and run a test.
> can not guaranteeing that will be soon.
>
>
> Mansour Al Akeel sent the following on 7/9/2011 10:10 AM:
>> I am not using selinux. It's disabled. I just tried to start ofbiz as a
>> root, and the same issue. Changed the database engine from derby to
>> postgresql, and the same problem exists.
>>
>> I am using gentoo.
>>
>> java version "1.6.0_26"
>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
>>
>> Can you please confirm it's working on your local machine with the
>> default config. If it's not working either, this means I am missing
>> some config.
>>
>> I think this is the only way to narrow down the issue. Thank you.
>>
>>
>> On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
>>> I have not addressed this particular upload.
>>> I doubt my solution of not using the bulk upload would work for you.
>>> I don't use the trunk or any ofbiz pure code so I can't be of any help
>>> further than i have been.
>>> it is something particular to the files you are having trouble with and
>>> is not the code, since it works on the demo.
>>> how about the JDK I run Centos 5.6 with open JDK but the recommended is
>>> the Sun JDK.
>>> Just a way out thought, possibly a selinux setting.
>>>
>>> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
>>>> BJ,
>>>> how did you fix it?
>>>>
>>>> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
>>>> Is there any settings for the uploaded files. I tried uploading a 31 MB
>>>> text file and it went through and worked fine. Still can not upload a
>>>> 260 KB PDF file !
>>>>
>>>> I just started again from scratch, and got the source from git, rebuilt
>>>> and ran the new instance with no luck, and the same results. Something
>>>> wierd going on. I am working on linux wich is what the demo is running.
>>>>
>>>>
>>>> Any idea ?
>>>>
>>>>
>>>> On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
>>>>> it would be memory size.
>>>>> uploads require use of global memory. if you don't have enough then the
>>>>> upload is aborted.
>>>>> Atleast that was my experience on uploading large files.
>>>>>
>>>>> Mansour Al Akeel sent the following on 7/9/2011 7:00 AM:
>>>>>> BJ, I really appreciate your help.
>>>>>> I am a bit lost here. The issue exists only on my local instance. The
>>>>>> demo https://demo-trunk.ofbiz.apache.org/ is working properly.
>>>>>> My local instance is pulled from trunk. Not sure if there's some
>>>>>> configuration I missed.
>>>>>>
>>>>>>
>>>>>> On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
>>>>>>  wrote:
>>>>>>> thank you BJ.
>>>>>>> It is working on the demo.
>>>>>>>
>>>>>>> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  wrote:
>>>>>>>> somewhere between the PorjectScreens.xml#EditProjectContents and
>>>>>>>> saveLocalFileDataResource the information is not put in context, is my
>>>>>>>> guess.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
>>>>>>>>> I am unable to upload jpg images either. Some formats are ok like xml,
>>>>>>>>> text, png.
>>>>>>>>>
>>>>>>>>> The log says there's no content found, but the file is a valid pdf
>>>>>>>>> file, and it exists!
>>>>>>>>>
>>>>>>>>> I am stuck, and need some help. Thank you a lot.
>>>>>>>>>
>>>>>>>>> Here's the log:
>>>>>>>>>
>>>>>>>>>      [java] 
>>>>>>>>> org.apache.catalina.val

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
Ruth,
Thank you. It sounds like the cause of the issue, but again the same
question pops up. If it's working properly on the demo, why would there
be any code changes required to get it to work locally. I understand
there could be some differences in the configuration between the trunk
and the trunk-demo, but didn't expect the code to be different.

I am downloading ofbiz 10.04 and will see if this weird issue exist.


On Sat Jul 09,2011 01:09 pm, Ruth Hoffman wrote:
> Hello Mansour:
> 
> Not sure if this will be of any help but sometime ago I was working with 
> file uploading and I seem to remember something about only certain types 
> of binary file uploads being supported. This was in relation to adding 
> binary attachments to emails. Some of the same (basic) file Services - 
> from the Content Component if I remember correctly - are used regardless 
> of the source of the uploaded file.
> 
> Anyhow, you may need to look at the code for more help in figuring this 
> out. In my case, I think I had to add support (code) for mime types like 
> PDF.
> 
> Best Regards,
> Ruth Hoffman
> http://www.myofbiz.com
> 
> 
> On 7/9/11 12:38 PM, BJ Freeman wrote:
> > I have not addressed this particular upload.
> > I doubt my solution of not using the bulk upload would work for you.
> > I don't use the trunk or any ofbiz pure code so I can't be of any help
> > further than i have been.
> > it is something particular to the files you are having trouble with and
> > is not the code, since it works on the demo.
> > how about the JDK I run Centos 5.6 with open JDK but the recommended is
> > the Sun JDK.
> > Just a way out thought, possibly a selinux setting.
> >
> > Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
> >> BJ,
> >> how did you fix it?
> >>
> >> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
> >> Is there any settings for the uploaded files. I tried uploading a 31 MB
> >> text file and it went through and worked fine. Still can not upload a
> >> 260 KB PDF file !
> >>
> >> I just started again from scratch, and got the source from git, rebuilt
> >> and ran the new instance with no luck, and the same results. Something
> >> wierd going on. I am working on linux wich is what the demo is running.
> >>
> >>
> >> Any idea ?
> >>
> >>
> >> On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
> >>> it would be memory size.
> >>> uploads require use of global memory. if you don't have enough then the
> >>> upload is aborted.
> >>> Atleast that was my experience on uploading large files.
> >>>
> >>> Mansour Al Akeel sent the following on 7/9/2011 7:00 AM:
> >>>> BJ, I really appreciate your help.
> >>>> I am a bit lost here. The issue exists only on my local instance. The
> >>>> demo https://demo-trunk.ofbiz.apache.org/ is working properly.
> >>>> My local instance is pulled from trunk. Not sure if there's some
> >>>> configuration I missed.
> >>>>
> >>>>
> >>>> On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
> >>>>   wrote:
> >>>>> thank you BJ.
> >>>>> It is working on the demo.
> >>>>>
> >>>>> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  wrote:
> >>>>>> somewhere between the PorjectScreens.xml#EditProjectContents and
> >>>>>> saveLocalFileDataResource the information is not put in context, is my
> >>>>>> guess.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
> >>>>>>> I am unable to upload jpg images either. Some formats are ok like xml,
> >>>>>>> text, png.
> >>>>>>>
> >>>>>>> The log says there's no content found, but the file is a valid pdf
> >>>>>>> file, and it exists!
> >>>>>>>
> >>>>>>> I am stuck, and need some help. Thank you a lot.
> >>>>>>>
> >>>>>>> Here's the log:
> >>>>>>>
> >>>>>>>   [java] 
> >>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
> >>>>>>>   [java] 
> >>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
I am not using selinux. It's disabled. I just tried to start ofbiz as a
root, and the same issue. Changed the database engine from derby to
postgresql, and the same problem exists.

I am using gentoo.

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Can you please confirm it's working on your local machine with the
default config. If it's not working either, this means I am missing 
some config.

I think this is the only way to narrow down the issue. Thank you.


On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
> I have not addressed this particular upload.
> I doubt my solution of not using the bulk upload would work for you.
> I don't use the trunk or any ofbiz pure code so I can't be of any help
> further than i have been.
> it is something particular to the files you are having trouble with and
> is not the code, since it works on the demo.
> how about the JDK I run Centos 5.6 with open JDK but the recommended is
> the Sun JDK.
> Just a way out thought, possibly a selinux setting.
> 
> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
> > BJ,
> > how did you fix it? 
> > 
> > My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
> > Is there any settings for the uploaded files. I tried uploading a 31 MB
> > text file and it went through and worked fine. Still can not upload a
> > 260 KB PDF file !
> > 
> > I just started again from scratch, and got the source from git, rebuilt
> > and ran the new instance with no luck, and the same results. Something
> > wierd going on. I am working on linux wich is what the demo is running.
> > 
> > 
> > Any idea ? 
> > 
> > 
> > On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
> >> it would be memory size.
> >> uploads require use of global memory. if you don't have enough then the
> >> upload is aborted.
> >> Atleast that was my experience on uploading large files.
> >>
> >> Mansour Al Akeel sent the following on 7/9/2011 7:00 AM:
> >>> BJ, I really appreciate your help.
> >>> I am a bit lost here. The issue exists only on my local instance. The
> >>> demo https://demo-trunk.ofbiz.apache.org/ is working properly.
> >>> My local instance is pulled from trunk. Not sure if there's some
> >>> configuration I missed.
> >>>
> >>>
> >>> On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
> >>>  wrote:
> >>>> thank you BJ.
> >>>> It is working on the demo.
> >>>>
> >>>> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  wrote:
> >>>>> somewhere between the PorjectScreens.xml#EditProjectContents and
> >>>>> saveLocalFileDataResource the information is not put in context, is my
> >>>>> guess.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
> >>>>>> I am unable to upload jpg images either. Some formats are ok like xml,
> >>>>>> text, png.
> >>>>>>
> >>>>>> The log says there's no content found, but the file is a valid pdf
> >>>>>> file, and it exists!
> >>>>>>
> >>>>>> I am stuck, and need some help. Thank you a lot.
> >>>>>>
> >>>>>> Here's the log:
> >>>>>>
> >>>>>>  [java] 
> >>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
> >>>>>>  [java] 
> >>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> >>>>>>  [java] 
> >>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> >>>>>>  [java] 
> >>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> >>>>>>  [java] 
> >>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> >>>>>>  [java] java.lang.Thread.run(Thread.java:662)
> >>>>>>  [java] 
> >>>>>> 
> >>>>>>  [java]
> >>>>>>  [java] 2011-07-09 00:01:53,847 (http-0.0.0.0-8443-2) [   
> >>>>>> CallSimpl

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
BJ,
how did you fix it? 

My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
Is there any settings for the uploaded files. I tried uploading a 31 MB
text file and it went through and worked fine. Still can not upload a
260 KB PDF file !

I just started again from scratch, and got the source from git, rebuilt
and ran the new instance with no luck, and the same results. Something
wierd going on. I am working on linux wich is what the demo is running.


Any idea ? 


On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
> it would be memory size.
> uploads require use of global memory. if you don't have enough then the
> upload is aborted.
> Atleast that was my experience on uploading large files.
> 
> Mansour Al Akeel sent the following on 7/9/2011 7:00 AM:
> > BJ, I really appreciate your help.
> > I am a bit lost here. The issue exists only on my local instance. The
> > demo https://demo-trunk.ofbiz.apache.org/ is working properly.
> > My local instance is pulled from trunk. Not sure if there's some
> > configuration I missed.
> > 
> > 
> > On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
> >  wrote:
> >> thank you BJ.
> >> It is working on the demo.
> >>
> >> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  wrote:
> >>> somewhere between the PorjectScreens.xml#EditProjectContents and
> >>> saveLocalFileDataResource the information is not put in context, is my
> >>> guess.
> >>>
> >>>
> >>>
> >>> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
> >>>> I am unable to upload jpg images either. Some formats are ok like xml,
> >>>> text, png.
> >>>>
> >>>> The log says there's no content found, but the file is a valid pdf
> >>>> file, and it exists!
> >>>>
> >>>> I am stuck, and need some help. Thank you a lot.
> >>>>
> >>>> Here's the log:
> >>>>
> >>>>  [java] 
> >>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
> >>>>  [java] 
> >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> >>>>  [java] 
> >>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> >>>>  [java] 
> >>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> >>>>  [java] 
> >>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> >>>>  [java] java.lang.Thread.run(Thread.java:662)
> >>>>  [java] 
> >>>> 
> >>>>  [java]
> >>>>  [java] 2011-07-09 00:01:53,847 (http-0.0.0.0-8443-2) [   
> >>>> CallSimpleMethod.java:109:WARN ] Got error [error] calling inline 
> >>>> simple-method named [saveLocalFileDataResource] in resource [], message 
> >>>> is null, and the error message list is: {No uploaded content found in 
> >>>> context}
> >>>>  [java] 2011-07-09 00:01:53,848 (http-0.0.0.0-8443-2) [
> >>>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
> >>>> transaction rollback only not set, rollback only is already set.
> >>>>  [java] 2011-07-09 00:01:53,849 (http-0.0.0.0-8443-2) [  
> >>>> ServiceDispatcher.java:543:ERROR] Error in Service 
> >>>> [attachUploadToDataResource]: No uploaded content found in context
> >>>>  [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [
> >>>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
> >>>> transaction rollback only not set, rollback only is already set.
> >>>>  [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [ 
> >>>> GroupModel.java:165:ERROR] Grouped service [attachUploadToDataResource] 
> >>>> failed.
> >>>>  [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [  
> >>>> ServiceDispatcher.java:543:ERROR] Error in Service 
> >>>> [createContentFromUploadedFile]: No uploaded content found in context
> >>>>  [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [
> >>>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
> >>>> transaction rollback only not set, rollback only is already set.
> >>&g

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
BJ, I really appreciate your help.
I am a bit lost here. The issue exists only on my local instance. The
demo https://demo-trunk.ofbiz.apache.org/ is working properly.
My local instance is pulled from trunk. Not sure if there's some
configuration I missed.


On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
 wrote:
> thank you BJ.
> It is working on the demo.
>
> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  wrote:
>> somewhere between the PorjectScreens.xml#EditProjectContents and
>> saveLocalFileDataResource the information is not put in context, is my
>> guess.
>>
>>
>>
>> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
>>> I am unable to upload jpg images either. Some formats are ok like xml,
>>> text, png.
>>>
>>> The log says there's no content found, but the file is a valid pdf
>>> file, and it exists!
>>>
>>> I am stuck, and need some help. Thank you a lot.
>>>
>>> Here's the log:
>>>
>>>      [java] 
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
>>>      [java] 
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>>      [java] 
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
>>>      [java] 
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>>      [java] 
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>>      [java] java.lang.Thread.run(Thread.java:662)
>>>      [java] 
>>> 
>>>      [java]
>>>      [java] 2011-07-09 00:01:53,847 (http-0.0.0.0-8443-2) [   
>>> CallSimpleMethod.java:109:WARN ] Got error [error] calling inline 
>>> simple-method named [saveLocalFileDataResource] in resource [], message is 
>>> null, and the error message list is: {No uploaded content found in context}
>>>      [java] 2011-07-09 00:01:53,848 (http-0.0.0.0-8443-2) [    
>>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
>>> transaction rollback only not set, rollback only is already set.
>>>      [java] 2011-07-09 00:01:53,849 (http-0.0.0.0-8443-2) [  
>>> ServiceDispatcher.java:543:ERROR] Error in Service 
>>> [attachUploadToDataResource]: No uploaded content found in context
>>>      [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [    
>>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
>>> transaction rollback only not set, rollback only is already set.
>>>      [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [         
>>> GroupModel.java:165:ERROR] Grouped service [attachUploadToDataResource] 
>>> failed.
>>>      [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [  
>>> ServiceDispatcher.java:543:ERROR] Error in Service 
>>> [createContentFromUploadedFile]: No uploaded content found in context
>>>      [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [    
>>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
>>> transaction rollback only not set, rollback only is already set.
>>>      [java] 2011-07-09 00:01:53,852 (http-0.0.0.0-8443-2) [  
>>> ServiceDispatcher.java:604:INFO ] Sync service 
>>> [projectmgr/createContentFromUploadedFile] finished in [1067] milliseconds 
>>> with response [{errorMessageList={No uploaded content found in context}, 
>>> responseMessage=error}]
>>>      [java] 2011-07-09 00:01:53,864 (http-0.0.0.0-8443-2) [     
>>> UtilProperties.java:1056:INFO ] ResourceBundle DefaultMessages (en) created 
>>> in 0.01s with 11 properties
>>>      [java] 2011-07-09 00:01:53,879 (http-0.0.0.0-8443-2) [     
>>> UtilProperties.java:1056:INFO ] ResourceBundle MiniLangErrorUiLabels (en) 
>>> created in 0.014s with 4 properties
>>>      [java] 2011-07-09 00:01:53,881 (http-0.0.0.0-8443-2) [    
>>> TransactionUtil.java:341:ERROR]
>>>      [java]  exception report 
>>> --
>>>      [java] [TransactionUtil.rollback]
>>>      [java] Exception: java.lang.Exception
>>>      [java] Message: Stack Trace
>>>      [java]  stack trace 
>>> ---
>>>      [java] java.lang.Exception: Stack Trace
>>>      [java] 
>>> org.ofbiz.entity.transaction.TransactionUtil.rollback

Re: upload pdf content for a task

2011-07-09 Thread Mansour Al Akeel
thank you BJ.
It is working on the demo.

On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman  wrote:
> somewhere between the PorjectScreens.xml#EditProjectContents and
> saveLocalFileDataResource the information is not put in context, is my
> guess.
>
>
>
> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
>> I am unable to upload jpg images either. Some formats are ok like xml,
>> text, png.
>>
>> The log says there's no content found, but the file is a valid pdf
>> file, and it exists!
>>
>> I am stuck, and need some help. Thank you a lot.
>>
>> Here's the log:
>>
>>      [java] 
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
>>      [java] 
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>      [java] 
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
>>      [java] 
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>      [java] 
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>      [java] java.lang.Thread.run(Thread.java:662)
>>      [java] 
>> 
>>      [java]
>>      [java] 2011-07-09 00:01:53,847 (http-0.0.0.0-8443-2) [   
>> CallSimpleMethod.java:109:WARN ] Got error [error] calling inline 
>> simple-method named [saveLocalFileDataResource] in resource [], message is 
>> null, and the error message list is: {No uploaded content found in context}
>>      [java] 2011-07-09 00:01:53,848 (http-0.0.0.0-8443-2) [    
>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
>> transaction rollback only not set, rollback only is already set.
>>      [java] 2011-07-09 00:01:53,849 (http-0.0.0.0-8443-2) [  
>> ServiceDispatcher.java:543:ERROR] Error in Service 
>> [attachUploadToDataResource]: No uploaded content found in context
>>      [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [    
>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
>> transaction rollback only not set, rollback only is already set.
>>      [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [         
>> GroupModel.java:165:ERROR] Grouped service [attachUploadToDataResource] 
>> failed.
>>      [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [  
>> ServiceDispatcher.java:543:ERROR] Error in Service 
>> [createContentFromUploadedFile]: No uploaded content found in context
>>      [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [    
>> TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] 
>> transaction rollback only not set, rollback only is already set.
>>      [java] 2011-07-09 00:01:53,852 (http-0.0.0.0-8443-2) [  
>> ServiceDispatcher.java:604:INFO ] Sync service 
>> [projectmgr/createContentFromUploadedFile] finished in [1067] milliseconds 
>> with response [{errorMessageList={No uploaded content found in context}, 
>> responseMessage=error}]
>>      [java] 2011-07-09 00:01:53,864 (http-0.0.0.0-8443-2) [     
>> UtilProperties.java:1056:INFO ] ResourceBundle DefaultMessages (en) created 
>> in 0.01s with 11 properties
>>      [java] 2011-07-09 00:01:53,879 (http-0.0.0.0-8443-2) [     
>> UtilProperties.java:1056:INFO ] ResourceBundle MiniLangErrorUiLabels (en) 
>> created in 0.014s with 4 properties
>>      [java] 2011-07-09 00:01:53,881 (http-0.0.0.0-8443-2) [    
>> TransactionUtil.java:341:ERROR]
>>      [java]  exception report 
>> --
>>      [java] [TransactionUtil.rollback]
>>      [java] Exception: java.lang.Exception
>>      [java] Message: Stack Trace
>>      [java]  stack trace 
>> ---
>>      [java] java.lang.Exception: Stack Trace
>>      [java] 
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:340)
>>      [java] 
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317)
>>      [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:870)
>>      [java] 
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
>>      [java] 
>> org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:121)
>>      [java] 
>> org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:70)
>>      [java] 
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
>>      [java] 
>

Re: upload pdf content for a task

2011-07-08 Thread Mansour Al Akeel
lve.invoke(StandardContextValve.java:191)
 [java] 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 [java] 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 [java] 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 [java] 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
 [java] 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 [java] 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 [java] 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 [java] 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 [java] java.lang.Thread.run(Thread.java:662)
 [java] 

 [java] 
 [java] 2011-07-09 00:01:53,904 (http-0.0.0.0-8443-2) [
TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled 
back
 [java] 2011-07-09 00:01:53,904 (http-0.0.0.0-8443-2) [ 
RequestHandler.java:648:INFO ] Ran Event 
[simple:component://projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml#createWorkEffortContent]
 from [request], result is [error]
 [java] 2011-07-09 00:01:53,906 (http-0.0.0.0-8443-2) [ 
RequestHandler.java:440:WARN ] Could not find response in request 
[createTaskContent] for event return [error]
 [java] 2011-07-09 00:01:53,907 (http-0.0.0.0-8443-2) [ 
RequestHandler.java:707:INFO ] Sending redirect to: 
[/projectmgr/control/EditTaskContents], 
sessionId=9E4A2889D7C539492C6108E0AA5BC887.jvm1
 [java] 2011-07-09 00:01:53,914 (http-0.0.0.0-8443-2) [   
ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin 
delegatorName=default
 [java] 2011-07-09 00:01:53,926 (http-0.0.0.0-8443-2) [ 
ControlServlet.java:324:INFO ] [[[createTaskContent(Domain:localhost)] Request 
Done- total:1.684,since last([createTaskConten...):1.684]]
 [java] 2011-07-09 00:01:54,064 (http-0.0.0.0-8443-1) [ 
ControlServlet.java:141:INFO ] [[[EditTaskContents(Domain:localhost)] Request 
Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]

On Fri Jul 08,2011 05:40 am, Mansour Al Akeel wrote:
> I am trying to add contents to a task. The content is a pdf document.
> It's failing with:
> 
> Error: No uploaded content found in context  calling service
> createContentFromUploadedFile in createWorkEffortContent
> 
> I can upload png files but not PDF. I started from a fresh install
> from trunk. On the demo site, it's possible to upload PDF files.
> Is there any special configuration or setup I need to do to allow PDFs ?
> 
> Here's the page I am talking about
> https://demo-trunk.ofbiz.apache.org/projectmgr/control/EditTaskContents?workEffortId=9002
> 
> Thank you.


upload pdf content for a task

2011-07-08 Thread Mansour Al Akeel
I am trying to add contents to a task. The content is a pdf document.
It's failing with:

Error: No uploaded content found in context  calling service
createContentFromUploadedFile in createWorkEffortContent

I can upload png files but not PDF. I started from a fresh install
from trunk. On the demo site, it's possible to upload PDF files.
Is there any special configuration or setup I need to do to allow PDFs ?

Here's the page I am talking about
https://demo-trunk.ofbiz.apache.org/projectmgr/control/EditTaskContents?workEffortId=9002

Thank you.


Re: Creating parties

2011-06-27 Thread Mansour Al Akeel
Adrian,
thank you. The examples you gave, explains a bit.
Let's try to add a relationship here:
https://demo-trunk.ofbiz.apache.org/partymgr/control/EditPartyRelationships?partyId=Developer1

Under : Add other party relationship
To Party ID Developer1

in the role of  [select Conetent Administrator]
is A: [Select assistant]

>From Party ID : Company
is A: [Select internal Organization]

You will get:

The Following Errors Occurred:

ERROR: Could not complete the createPartyRelationship
[file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml#createPartyRelationship]
process [problem creating the newEntity value: Error while inserting:
[GenericEntity:PartyRelationship][comments,null()][createdStamp,2011-06-27
15:24:17.76(java.sql.Timestamp)][createdTxStamp,2011-06-27
15:24:17.687(java.sql.Timestamp)][fromDate,2011-06-27
15:24:17.751(java.sql.Timestamp)][lastUpdatedStamp,2011-06-27
15:24:17.76(java.sql.Timestamp)][lastUpdatedTxStamp,2011-06-27
15:24:17.687(java.sql.Timestamp)][partyIdFrom,company(java.lang.String)][partyIdTo,Developer1(java.lang.String)][partyRelationshipTypeId,ASSISTANT(java.lang.String)][roleTypeIdFrom,INTERNAL_ORGANIZATIO(java.lang.String)][roleTypeIdTo,CONTENT_ADMIN(java.lang.String)][statusId,null()][thruDate,null()]
(SQL Exception while executing the following:INSERT INTO
OFBIZ.PARTY_RELATIONSHIP (PARTY_ID_FROM, PARTY_ID_TO,
ROLE_TYPE_ID_FROM, ROLE_TYPE_ID_TO, FROM_DATE, THRU_DATE, STATUS_ID,
RELATIONSHIP_NAME, SECURITY_GROUP_ID, PRIORITY_TYPE_ID,
PARTY_RELATIONSHIP_TYPE_ID, PERMISSIONS_ENUM_ID, POSITION_TITLE,
COMMENTS, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?) (INSERT on table 'PARTY_RELATIONSHIP' caused a violation of
foreign key constraint 'PARTY_REL_FPROLE' for key
(company,INTERNAL_ORGANIZATIO). The statement has been rolled back.))]


Thank you.




On Mon, Jun 27, 2011 at 8:02 AM, Adrian Crum
 wrote:
> Each organization will model different relationships - depending on the
> organization's needs.
>
> The Data Model Resource Book explains party relationships very well. If you
> have two parties that are related, each party plays a role in that
> relationship, and the relationship requires a description.
>
> Party Adrian in the role of private individual is a citizen of party United
> States in the role of government organization.
> Party Adrian in the role of computer programmer is a community member of
> party OFBiz Project in the role of open source community.
> Party Adrian in the role of...
>
> -Adrian
>
>
> On 6/27/2011 12:28 PM, Mansour Al Akeel wrote:
>>
>> BJ thank you.
>>
>> My question is related more to ofbiz usage. In the relationship page:
>>
>> https://demo-trunk.ofbiz.apache.org/partymgr/control/EditPartyRelationships?partyId=DemoEmployee
>> you can see some fields that are not clear to me. To be more specific, We
>> have:
>> in the role of  |       is A    of Party        | in the role of
>>
>> There two relations for DemoEmployee. And each relation has two fields
>> "in the Role Of".
>> Further more, there is some confusion about where to relate employee
>> to organization. I mean if you go to:
>>
>>
>> https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=DemoEmployee
>>
>> You will see four tabs with labels indicates similar functionality:
>> -Roles
>> -Link Party
>> -Relationships
>> -Segments
>>
>>
>> What is the difference between these ? To add employee to Organization
>> I need to use . ?
>> May be it's a good opportunity to discuss and document each of them,
>> instead of referring me to the "BOOK" ;)
>>
>>
>>
>> On Sun, Jun 26, 2011 at 9:10 PM, BJ Freeman  wrote:
>>>
>>> there is not much documented in ofbiz about party.
>>> however if you read the Data model book Vol I you will see a lot about
>>> partyrelationsips. Good diagram on pg 41
>>> In this case you would have party relationship with the company that
>>> supplies contractors
>>> so you need to setup the roles of each party then setup the relationship
>>> between them
>>> start with organizational party relationship then individual (person)
>>> realtionships with organizations.
>>>
>>> example
>>> the programmer would be a employee role with the recruitment company if
>>> they contract, then the programmer would have a contractor relationship
>>> with the Company.
>>>
>>> the rest you can get from the demo data or you can look at the demo site
>>> at the different parties to s

Re: Creating parties

2011-06-27 Thread Mansour Al Akeel
BJ thank you.

My question is related more to ofbiz usage. In the relationship page:
https://demo-trunk.ofbiz.apache.org/partymgr/control/EditPartyRelationships?partyId=DemoEmployee
you can see some fields that are not clear to me. To be more specific, We have:
in the role of  |   is Aof Party| in the role of

There two relations for DemoEmployee. And each relation has two fields
"in the Role Of".
Further more, there is some confusion about where to relate employee
to organization. I mean if you go to:

https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=DemoEmployee

You will see four tabs with labels indicates similar functionality:
-Roles
-Link Party
-Relationships
-Segments


What is the difference between these ? To add employee to Organization
I need to use . ?
May be it's a good opportunity to discuss and document each of them,
instead of referring me to the "BOOK" ;)



On Sun, Jun 26, 2011 at 9:10 PM, BJ Freeman  wrote:
> there is not much documented in ofbiz about party.
> however if you read the Data model book Vol I you will see a lot about
> partyrelationsips. Good diagram on pg 41
> In this case you would have party relationship with the company that
> supplies contractors
> so you need to setup the roles of each party then setup the relationship
> between them
> start with organizational party relationship then individual (person)
> realtionships with organizations.
>
> example
> the programmer would be a employee role with the recruitment company if
> they contract, then the programmer would have a contractor relationship
> with the Company.
>
> the rest you can get from the demo data or you can look at the demo site
> at the different parties to see the relationships.
>
> Mansour Al Akeel sent the following on 6/26/2011 4:43 PM:
>> Hello all,
>> I didn't use the parties component extensively, and don't know a lot about 
>> it.
>> Here's the scenario we have. Three Group parties:
>> Programmers
>> Recruiter
>> Sales /marketing/Distributing
>> The distributor obtains the requirements and hires the Programmers
>> through the "Recruitment" company. Billing is done by hour.
>> In each company there's two employees that interact with the system.
>> programmer1 , programmer2
>> hr manager 1, hr manager2
>> project manager1, project manager2
>>
>> We need to setup the system, to handle the requirements communication,
>> timesheet, project management ... etc.
>> I have created the three group parties, and 6 employees parties, and
>> stopped there not knowing how to connect them.
>>
>> How to associate users (employee) with companies (Group Party) ?
>> I tried to go to Relationships page and use  "Add other party
>> relationship", but those fields are not clear to me. For example  "in
>> the Role of"  etc.
>> Let's say I need to put hr_manager1 as an employee of "Recruiter" ??
>> How many accounts I need, knowing that the recruiter get a percentage ?
>>
>> What do I need to do after that ?
>>
>> Guessing is not very help full here as it relies on trial and error,
>> and an error may not be initially visible. So I like to get an advice
>> from someone with more experience in this area.
>>
>> Thank you.
>>
>


Creating parties

2011-06-26 Thread Mansour Al Akeel
Hello all,
I didn't use the parties component extensively, and don't know a lot about it.
Here's the scenario we have. Three Group parties:
Programmers
Recruiter
Sales /marketing/Distributing
The distributor obtains the requirements and hires the Programmers
through the "Recruitment" company. Billing is done by hour.
In each company there's two employees that interact with the system.
programmer1 , programmer2
hr manager 1, hr manager2
project manager1, project manager2

We need to setup the system, to handle the requirements communication,
timesheet, project management ... etc.
I have created the three group parties, and 6 employees parties, and
stopped there not knowing how to connect them.

How to associate users (employee) with companies (Group Party) ?
I tried to go to Relationships page and use  "Add other party
relationship", but those fields are not clear to me. For example  "in
the Role of"  etc.
Let's say I need to put hr_manager1 as an employee of "Recruiter" ??
How many accounts I need, knowing that the recruiter get a percentage ?

What do I need to do after that ?

Guessing is not very help full here as it relies on trial and error,
and an error may not be initially visible. So I like to get an advice
from someone with more experience in this area.

Thank you.


Re: Entities Id as VARCHAR

2011-04-05 Thread Mansour Al Akeel
Adrian,

Evalutating other technologies and how I can utilize them and combine
them with ofbiz database is not a waste of time, like you claim. 

There are technologies available that allow us to generate data model,
and services from the database, and leave us with only UI to create. Some 
frameworks
like isis may even create the UI using naked objects, from the database.

I wanted to see how far I can go, generating JPA entities using ofbiz database. 
That's why I wanted to name an id "id", and make it an integer.

This is not useless effort. Opentaps, have gone with hibernate already !

I trully value your advice about how to use my time productively.


On Tue Apr 05,2011 09:24 pm, Adrian Crum wrote:
> Huh? What does Isis have to do with OFBiz?
> 
> -Adrian
> 
> On 4/5/2011 5:19 PM, Mansour Al Akeel wrote:
> > http://incubator.apache.org/isis/
> >
> >
> > On Tue Apr 05,2011 08:18 pm, Adrian Crum wrote:
> >> Why would you want to do that? It would result in rewriting the entire
> >> project to change the field names.
> >>
> >> It seems to me you will be wasting a lot of time trying to make OFBiz
> >> code look the way you want it to look - without adding anything new or
> >> fixing anything. Instead, why not use the project in the way it was
> >> intended, and spend your time getting something useful accomplished?
> >>
> >> -Adrian
> >>
> >> On 4/5/2011 4:13 PM, Mansour Al Akeel wrote:
> >>> Thank you all. I understand now the reasons behind using VARCHAR.
> >>>
> >>> I found my way around this. I can just change the data type in the
> >>> fieldtypepostnew.xml. This way I can declare all the ids as integers,
> >>> and indicators as boolean instead of CHAR(1).
> >>>
> >>> However still wondering if there is a way to change the name of the ids
> >>> to only id without having to go through each foriegn key.
> >>>
> >>>
> >>>
> >>> On Mon Apr 04,2011 05:08 am, David E Jones wrote:
> >>>> As for naming all "id" fields just plain "id", it makes it far more 
> >>>> difficult to keep track of foreign keys. The nice thing about giving 
> >>>> even sequenced ID fields a somewhat unique name is that you can use that 
> >>>> same name on other entities/tables and have them match up automatically.
> >>>>
> >>>> The Entity Engine does a lot with field name mapping for relationships 
> >>>> between entities, and there are thousands of these in the OFBiz data 
> >>>> model, so the few extra characters goes a long way toward making things 
> >>>> easier to understand and maintain.
> >>>>
> >>>> -David
> >>>>
> >>>>
> >>>> On Apr 4, 2011, at 12:19 AM, Erwan de FERRIERES wrote:
> >>>>
> >>>>> Le 03/04/2011 06:15, Mansour Al Akeel a ?crit :
> >>>>>> Hello all,
> >>>>>>
> >>>>>> I am wondering about the reasons behind using VARCHAR for entities Id,
> >>>>>> instead of a numeric value with autoincrement. Another thing is the
> >>>>>> naming of the primary key. For example, accommodation_class has it's
> >>>>>> primary key as "accommodation_class_id". Wouldn't it be easier just to
> >>>>>> name it "id"?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> Hi Mansour,
> >>>>>
> >>>>> just go to this page : 
> >>>>> http://ofbiz.135035.n4.nabble.com/Why-primary-keys-are-VAR-CHAR-type-in-OFBiz-td146555.html#a146562
> >>>>>
> >>>>> Cheers,
> >>>>>
> >>>>> -- 
> >>>>> Erwan de FERRIERES
> >>>>> www.nereide.biz


Re: Entities Id as VARCHAR

2011-04-05 Thread Mansour Al Akeel

http://incubator.apache.org/isis/


On Tue Apr 05,2011 08:18 pm, Adrian Crum wrote:
> Why would you want to do that? It would result in rewriting the entire 
> project to change the field names.
> 
> It seems to me you will be wasting a lot of time trying to make OFBiz 
> code look the way you want it to look - without adding anything new or 
> fixing anything. Instead, why not use the project in the way it was 
> intended, and spend your time getting something useful accomplished?
> 
> -Adrian
> 
> On 4/5/2011 4:13 PM, Mansour Al Akeel wrote:
> > Thank you all. I understand now the reasons behind using VARCHAR.
> >
> > I found my way around this. I can just change the data type in the
> > fieldtypepostnew.xml. This way I can declare all the ids as integers,
> > and indicators as boolean instead of CHAR(1).
> >
> > However still wondering if there is a way to change the name of the ids
> > to only id without having to go through each foriegn key.
> >
> >
> >
> > On Mon Apr 04,2011 05:08 am, David E Jones wrote:
> >> As for naming all "id" fields just plain "id", it makes it far more 
> >> difficult to keep track of foreign keys. The nice thing about giving even 
> >> sequenced ID fields a somewhat unique name is that you can use that same 
> >> name on other entities/tables and have them match up automatically.
> >>
> >> The Entity Engine does a lot with field name mapping for relationships 
> >> between entities, and there are thousands of these in the OFBiz data 
> >> model, so the few extra characters goes a long way toward making things 
> >> easier to understand and maintain.
> >>
> >> -David
> >>
> >>
> >> On Apr 4, 2011, at 12:19 AM, Erwan de FERRIERES wrote:
> >>
> >>> Le 03/04/2011 06:15, Mansour Al Akeel a ?crit :
> >>>> Hello all,
> >>>>
> >>>> I am wondering about the reasons behind using VARCHAR for entities Id,
> >>>> instead of a numeric value with autoincrement. Another thing is the
> >>>> naming of the primary key. For example, accommodation_class has it's
> >>>> primary key as "accommodation_class_id". Wouldn't it be easier just to
> >>>> name it "id"?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>> Hi Mansour,
> >>>
> >>> just go to this page : 
> >>> http://ofbiz.135035.n4.nabble.com/Why-primary-keys-are-VAR-CHAR-type-in-OFBiz-td146555.html#a146562
> >>>
> >>> Cheers,
> >>>
> >>> -- 
> >>> Erwan de FERRIERES
> >>> www.nereide.biz


Re: Entities Id as VARCHAR

2011-04-05 Thread Mansour Al Akeel
Thank you all. I understand now the reasons behind using VARCHAR.

I found my way around this. I can just change the data type in the
fieldtypepostnew.xml. This way I can declare all the ids as integers,
and indicators as boolean instead of CHAR(1).

However still wondering if there is a way to change the name of the ids
to only id without having to go through each foriegn key.



On Mon Apr 04,2011 05:08 am, David E Jones wrote:
> 
> As for naming all "id" fields just plain "id", it makes it far more difficult 
> to keep track of foreign keys. The nice thing about giving even sequenced ID 
> fields a somewhat unique name is that you can use that same name on other 
> entities/tables and have them match up automatically.
> 
> The Entity Engine does a lot with field name mapping for relationships 
> between entities, and there are thousands of these in the OFBiz data model, 
> so the few extra characters goes a long way toward making things easier to 
> understand and maintain.
> 
> -David
> 
> 
> On Apr 4, 2011, at 12:19 AM, Erwan de FERRIERES wrote:
> 
> > Le 03/04/2011 06:15, Mansour Al Akeel a ?crit :
> >> Hello all,
> >> 
> >> I am wondering about the reasons behind using VARCHAR for entities Id,
> >> instead of a numeric value with autoincrement. Another thing is the
> >> naming of the primary key. For example, accommodation_class has it's
> >> primary key as "accommodation_class_id". Wouldn't it be easier just to
> >> name it "id"?
> >> 
> >> 
> >> 
> >> 
> >> 
> > Hi Mansour,
> > 
> > just go to this page : 
> > http://ofbiz.135035.n4.nabble.com/Why-primary-keys-are-VAR-CHAR-type-in-OFBiz-td146555.html#a146562
> > 
> > Cheers,
> > 
> > -- 
> > Erwan de FERRIERES
> > www.nereide.biz
> 


Entities Id as VARCHAR

2011-04-02 Thread Mansour Al Akeel
Hello all,

I am wondering about the reasons behind using VARCHAR for entities Id,
instead of a numeric value with autoincrement. Another thing is the
naming of the primary key. For example, accommodation_class has it's
primary key as "accommodation_class_id". Wouldn't it be easier just to
name it "id"? 






Re: Enable webservice for the demo.

2011-03-13 Thread Mansour Al Akeel
Jacques,
thank you. Makes things easier. 

I trully appreciate your help.

On Sat Mar 12,2011 07:22 pm, Jacques Le Roux wrote:
> Hi Mansour it's fixed at r1080959 in trunk ant I have added export=true at 
> 1080960
> 
> Thanks for your help!
> 
> HTH
> 
> Jacques
> 
> From: "Mansour Al Akeel" 
> > Jacques,
> > The patch is there. Let me know what happens. 
> > 
> > Thank you.
> > 
> > On Tue Mar 08,2011 01:42 pm, Jacques Le Roux wrote:
> >> OK, but what about https://issues.apache.org/jira/browse/OFBIZ-4210 ?
> >> Note: I did not look into anything at all yet
> >> 
> >> Jacques
> >> 
> >> From: "Mansour Al Akeel" 
> >> > Jacques,
> >> > 
> >> > I am having some issues with findProductById webservice. I didn't try
> >> > another services yet. The problem is with JAXB used through axis2. I saw 
> >> > a
> >> > similar issue on https://issues.apache.org/jira/browse/OFBIZ-3385 but
> >> > not sure if it's related to binding as well.
> >> > 
> >> > The reason I want to export these services on the demo, is to make it 
> >> > easier
> >> > to test the
> >> > service and to get support from apache axis2 community.
> >> > 
> >> > I need the service and the wsdl. It will be enough to set export="true".
> >> > 
> >> > Thank you for looking into this.
> >> > 
> >> > 
> >> > On Mon, Mar 7, 2011 at 1:00 PM, Jacques Le Roux <
> >> > jacques.le.r...@les7arts.com> wrote:
> >> > 
> >> >> What do you want exactly? in, out, WSDL, external, etc. ?
> >> >>
> >> >> Jacques
> >> >>
> >> >> From: "Mansour Al Akeel" 
> >> >>
> >> >>> Is there any not to enable webservices for the demo ?
> >> >>> Would it be possible ?
> >> >>>
> >> >>> Thank you.
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >>
> >> >
> >> 
> >
> 


Web services - jaxb binding

2011-03-11 Thread Mansour Al Akeel
Hello all,
I am not advanced in web services, so bear with me.

I am trying to create a client to call some functions through
webservices. The web services in ofbiz use maps. For example, I am
trying to obtain a product by id. The web service response includes the
product as "eeval-Product". In the wsdl for this service,  I can see:




The name of element need to be appended with name of entity such as 
eeval-Product for Product entity.




So here's what I did. I downloaded the wsdl and added appended the 
entity name to this element. Then re-generated the client stub.

Now when a response is retireved it's obtained correctely, but the
binding doesn't work. For example, eeval-Product is a Map, but it's
null. Attributtes from this element are not bound, they are skipped by
the binding generated with wsdl2java with jaxb binding.

What would be the best way/tool to include the attributes from
"eeval-Product" into the map ?

Here's an exmaple response.


http://ofbiz.apache.org/service/";>



















Any advice ?






Re: Enable webservice for the demo.

2011-03-08 Thread Mansour Al Akeel
Jacques,
The patch is there. Let me know what happens. 

Thank you.

On Tue Mar 08,2011 01:42 pm, Jacques Le Roux wrote:
> OK, but what about https://issues.apache.org/jira/browse/OFBIZ-4210 ?
> Note: I did not look into anything at all yet
> 
> Jacques
> 
> From: "Mansour Al Akeel" 
> > Jacques,
> > 
> > I am having some issues with findProductById webservice. I didn't try
> > another services yet. The problem is with JAXB used through axis2. I saw a
> > similar issue on https://issues.apache.org/jira/browse/OFBIZ-3385 but
> > not sure if it's related to binding as well.
> > 
> > The reason I want to export these services on the demo, is to make it easier
> > to test the
> > service and to get support from apache axis2 community.
> > 
> > I need the service and the wsdl. It will be enough to set export="true".
> > 
> > Thank you for looking into this.
> > 
> > 
> > On Mon, Mar 7, 2011 at 1:00 PM, Jacques Le Roux <
> > jacques.le.r...@les7arts.com> wrote:
> > 
> >> What do you want exactly? in, out, WSDL, external, etc. ?
> >>
> >> Jacques
> >>
> >> From: "Mansour Al Akeel" 
> >>
> >>> Is there any not to enable webservices for the demo ?
> >>> Would it be possible ?
> >>>
> >>> Thank you.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
> 


Re: Enable webservice for the demo.

2011-03-07 Thread Mansour Al Akeel
Jacques,

I am having some issues with findProductById webservice. I didn't try
another services yet. The problem is with JAXB used through axis2. I saw a
similar issue on https://issues.apache.org/jira/browse/OFBIZ-3385 but
not sure if it's related to binding as well.

The reason I want to export these services on the demo, is to make it easier
to test the
service and to get support from apache axis2 community.

I need the service and the wsdl. It will be enough to set export="true".

Thank you for looking into this.


On Mon, Mar 7, 2011 at 1:00 PM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> What do you want exactly? in, out, WSDL, external, etc. ?
>
> Jacques
>
> From: "Mansour Al Akeel" 
>
>> Is there any not to enable webservices for the demo ?
>> Would it be possible ?
>>
>> Thank you.
>>
>>
>>
>>
>>
>>
>


Enable webservice for the demo.

2011-03-06 Thread Mansour Al Akeel
Is there any not to enable webservices for the demo ?
Would it be possible ?

Thank you.







Re: Search product via web services?

2011-03-06 Thread Mansour Al Akeel
You can read the paramaters refrence through webtools -> Service Engine
or from services.xml that defines that service.


On Wed Feb 23,2011 04:36 am, plm_uwe wrote:
> 
> Hello,
> 
> maybe I'm looking at the wrong documentations, but I cannot find a clue on
> how to search for ofBIZ products via web services. I've tried to call
> webtools/control/SOAPService/FindProductsByIdentification and
> webtools/control/SOAPService/FindProducts via SOAPUI, but cannot figure out
> how to specify search parameters to get sensible results (result is either
> empty (no product) or contains products totally unrelated to the search
> parameters). 
> I want to implement a search similar to the keyword search in the catalog
> manager of the Web interface.
> Could someone please help me or point me to some documentation on this?
> 
> Thanks,
> Uwe.
> -- 
> View this message in context: 
> http://ofbiz.135035.n4.nabble.com/Search-product-via-web-services-tp3320927p3320927.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Changing the context root

2010-11-12 Thread Mansour Al Akeel
Sorry, the method I found wont work. I just didn't test it properly. Links 
still point to 
"/webtools" or "/accounting" instead of "/ofbiz_demo/webtools" or 
/ofbiz_demo/accounting".

Still looking for a solution. Any advice ? 


On Fri Nov 12,2010 09:13 pm, Mansour Al Akeel wrote:
> I found a way around. When creating the files to run on tomcat, this process 
> generates a server.xml file to be copied to $CATALINA_HOME/conf/server.xml
> 
> The generated file has some lines like:
>  docBase="/opt/ofbiz/specialpurpose/webpos/webapp/webpos"
>  privileged="false" antiResourceLocking="true" antiJARLocking="true">
> 
> 
> These lines should be changed to: 
> 
>  docBase="/opt/ofbiz/specialpurpose/webpos/webapp/webpos"
>  privileged="false" antiResourceLocking="true" antiJARLocking="true">
> 
> 
> If there's a better way please let me know.
> Thank you.
> 
> 
> 
> 
> On Thu Nov 11,2010 04:18 pm, Mansour Al Akeel wrote:
> > Hello all:
> > 
> > I deployed ofbiz on an external tomcat server. Other applications will be 
> > deployed to this tomcat.
> > I need to change the root path for ofbiz. For example: 
> > ofbiz can be accessed at http://localhost:8443/webtools
> > and I changed ecommerce to be at the root, so http://localhost:8080 will 
> > show the ecommerce
> > application.
> > 
> > I need to be able to access it through http://localhost:8443/demo/webtools 
> > and for ecommerce http://localhost:8080/demo 
> > 
> > How can I get this ? 
> > 
> > Thank you in advance.
> > 


Re: Changing the context root

2010-11-12 Thread Mansour Al Akeel
I found a way around. When creating the files to run on tomcat, this process 
generates a server.xml file to be copied to $CATALINA_HOME/conf/server.xml

The generated file has some lines like:



These lines should be changed to: 




If there's a better way please let me know.
Thank you.




On Thu Nov 11,2010 04:18 pm, Mansour Al Akeel wrote:
> Hello all:
> 
> I deployed ofbiz on an external tomcat server. Other applications will be 
> deployed to this tomcat.
> I need to change the root path for ofbiz. For example: 
> ofbiz can be accessed at http://localhost:8443/webtools
> and I changed ecommerce to be at the root, so http://localhost:8080 will show 
> the ecommerce
> application.
> 
> I need to be able to access it through http://localhost:8443/demo/webtools 
> and for ecommerce http://localhost:8080/demo 
> 
> How can I get this ? 
> 
> Thank you in advance.
> 


Changing the context root

2010-11-11 Thread Mansour Al Akeel
Hello all:

I deployed ofbiz on an external tomcat server. Other applications will be 
deployed to this tomcat.
I need to change the root path for ofbiz. For example: 
ofbiz can be accessed at http://localhost:8443/webtools
and I changed ecommerce to be at the root, so http://localhost:8080 will show 
the ecommerce
application.

I need to be able to access it through http://localhost:8443/demo/webtools 
and for ecommerce http://localhost:8080/demo 

How can I get this ? 

Thank you in advance.



Re: Why only some images in /images/ work?

2010-10-13 Thread Mansour Al Akeel
John:
What is the path you are getting in your browser? 
For example, if you are in firefox, you can view the source, and search for the 
image/css/js
file path. Then you can tell if the path in being produced properly.


On Wed Oct 13,2010 06:06 pm, John Brown wrote:
> Hi,
> 
> I am trying to get modify a copy of the ecommerce component by copying it
> into hot-deploy - everything seems to work except that some files that I
> have placed in the images folder but not all of them 404?
> 
> Its really weird and I dont see any setting to change to fix it?
> 
> I have added some js, jpg and css files there - they all have the same
> ownership on the server and they also all have the same permissions so I
> don't know where else to look?? Like I said its not all of the files but
> some??
> 
> - John


Re: Accessing theme context from CommonScreens.xml in a component

2010-10-11 Thread Mansour Al Akeel
Thank you Scott.

On Fri Oct 08,2010 01:15 pm, Scott Gray wrote:
> Yes you can do some of what your are asking but you should be using the 
> "value" attribute instead of the "from-field" attribute in the set operation.
> 
> What I don't think you can do out of the box is make use of the 
> ${layoutSettings.contextPath} variable simply because I don't think OFBiz 
> provides such a thing.  Because the URLs provided in the theme data already 
> have a full path provided, the mount point for the theme isn't stored 
> anywhere, nor is there any guarantee that all theme resources will be stored 
> under a single webapp.  In tomahawk for example, some resources are stored in 
> /images and others are stored in /tomahawk so there is no single 
> "contextPath".
> 
> So to summarize:
> - Yes you can override the logo supplied by the theme data
> - No you cannot have part of the logo URL path be data driven unless you find 
> a way to supply that data yourself
> 
> Regards
> Scott
> 
> HotWax Media
> http://www.hotwaxmedia.com
> 
> On 8/10/2010, at 12:30 PM, Mansour Al Akeel wrote:
> 
> > If there's anything that's not clear, please ask.
> > 
> > On Thu Oct 07,2010 03:37 pm, Mansour Al Akeel wrote:
> >> Hello all:
> >> 
> >> I am wondering if there is a simple way to access the context of current
> >> theme from the main-decorator in any component ? 
> >> Basically I want ot be able to do something like:
> >> 
> >> 
> >>
> >>
> >> >> map-name="uiLabelMap" global="true"/>
> >>...
> >> >> from-field="${layoutSettings.contextPath}/images/accounting.png" 
> >> global="true" />
> >>
> >>
> >>.
> >>
> >> 
> >> This will make the logo for each component themable.
> >> 
> >> Thank you.
> >> 
> 




Re: Accessing theme context from CommonScreens.xml in a component

2010-10-07 Thread Mansour Al Akeel
If there's anything that's not clear, please ask.

On Thu Oct 07,2010 03:37 pm, Mansour Al Akeel wrote:
> Hello all:
> 
> I am wondering if there is a simple way to access the context of current
> theme from the main-decorator in any component ? 
> Basically I want ot be able to do something like:
> 
> 
> 
> 
>  global="true"/>
> ...
>  from-field="${layoutSettings.contextPath}/images/accounting.png" 
> global="true" />
> 
> 
> .
> 
> 
> This will make the logo for each component themable.
> 
> Thank you.
> 


Accessing theme context from CommonScreens.xml in a component

2010-10-07 Thread Mansour Al Akeel
Hello all:

I am wondering if there is a simple way to access the context of current
theme from the main-decorator in any component ? 
Basically I want ot be able to do something like:





...



.


This will make the logo for each component themable.

Thank you.



Re: Setting up layoutSettings.headerImageLinkUrl in the theme

2010-10-07 Thread Mansour Al Akeel
Thank you Erwan.


On Wed Oct 06,2010 09:40 pm, Erwan de FERRIERES wrote:
> Le 04/10/2010 03:41, Mansour Al Akeel a ?crit :
> > Hello all:
> >
> > In the themes there is varilabe that couldn't figure out how to set.
> >
> > <#if layoutSettings.headerImageLinkUrl?exists>
> ><#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> > <#else>
> ><#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> > 
> >
> > I understand commonHeaderImageLinkUrl is set in the common component
> > at framework/common/widget/CommonScreens.xml
> >
> > how can "headerImageLinkUrl" be used in the theme ?
> >
> >
> >
> image logo is defined in the theme data, eg :
>   resourceTypeEnumId="VT_HDR_IMAGE_URL" 
> resourceValue="/images/ofbiz_logo.gif" sequenceId="01"/>
> 
> Cheers,
> 
> -- 
> Erwan de FERRIERES
> www.nereide.biz


Re: Setting up layoutSettings.headerImageLinkUrl in the theme

2010-10-04 Thread Mansour Al Akeel
It's still not working with me.
I am not sure if I missed something. Here's what I did:
Edited framework/common/widget/CommonScreens.xml
and replaced every occurance of "/images/ofbiz_logo.gif" with
"/images/myLogo.png".
deleted the old ofbiz_logo.gif and placed the mine.
I commented out :



I ran ./ant clean run-install  (Do I have to do this ?)
./statrofbiz.sh 

Again nothing shows. And viewing the source gives:


Did I miss anything ? 


On Tue Oct 05,2010 12:57 am, Mansour Al Akeel wrote:
> BJ:
> I am using the latest from trunk. I am trying it now with 10.04 release
> to see. 
> 
> 
> 
> On Mon Oct 04,2010 02:50 pm, BJ Freeman wrote:
> > I figured that is where you were headed and why is gave you that set
> > you need to comment it out.
> > I am not sure if they modified others
> > I have not installed any new code lately to see.
> > It does work with the versions I am using.
> > 
> > 
> > 
> > =
> > BJ Freeman
> > Strategic Power Office with Supplier Automation  
> > <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> > Specialtymarket.com  <http://www.specialtymarket.com/>
> > Systems Integrator-- Glad to Assist
> > 
> > Chat  Y! messenger: bjfr33man
> > Mansour Al Akeel sent the following on 10/4/2010 1:18 PM:
> > 
> > 
> > >BJ:
> > >changing the image in the file framework/common/widget/CommonScreens.xml
> > >doesn't change the logo !
> > >I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
> > >but still this doesn't show. And in the page source it's still the old
> > >value.
> > >
> > >I did a clean then run-install I even dropped and recreated the DB.
> > >Any idea ?
> > >
> > >On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> > >>from
> > >>framework/common/widgets/commonscreens.xml
> > >> > >>from-field="layoutSettings.commonHeaderImageLinkUrl"
> > >>default-value="main" global="true"/>
> > >>
> > >>
> > >>Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> > >>>Hello all:
> > >>>
> > >>>In the themes there is varilabe that couldn't figure out how to set.
> > >>>
> > >>><#if layoutSettings.headerImageLinkUrl?exists>
> > >>>   <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> > >>><#else>
> > >>>   <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> > >>>
> > >>>
> > >>>I understand commonHeaderImageLinkUrl is set in the common component
> > >>>at framework/common/widget/CommonScreens.xml
> > >>>
> > >>>how can "headerImageLinkUrl" be used in the theme ?
> > >>>
> > >>>
> > >>>
> > >


Re: Setting up layoutSettings.headerImageLinkUrl in the theme

2010-10-04 Thread Mansour Al Akeel
BJ:
I am using the latest from trunk. I am trying it now with 10.04 release
to see. 



On Mon Oct 04,2010 02:50 pm, BJ Freeman wrote:
> I figured that is where you were headed and why is gave you that set
> you need to comment it out.
> I am not sure if they modified others
> I have not installed any new code lately to see.
> It does work with the versions I am using.
> 
> 
> 
> =
> BJ Freeman
> Strategic Power Office with Supplier Automation  
> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
> 
> Chat  Y! messenger: bjfr33man
> Mansour Al Akeel sent the following on 10/4/2010 1:18 PM:
> 
> 
> >BJ:
> >changing the image in the file framework/common/widget/CommonScreens.xml
> >doesn't change the logo !
> >I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
> >but still this doesn't show. And in the page source it's still the old
> >value.
> >
> >I did a clean then run-install I even dropped and recreated the DB.
> >Any idea ?
> >
> >On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> >>from
> >>framework/common/widgets/commonscreens.xml
> >> >>from-field="layoutSettings.commonHeaderImageLinkUrl"
> >>default-value="main" global="true"/>
> >>
> >>
> >>Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> >>>Hello all:
> >>>
> >>>In the themes there is varilabe that couldn't figure out how to set.
> >>>
> >>><#if layoutSettings.headerImageLinkUrl?exists>
> >>>   <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> >>><#else>
> >>>   <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> >>>
> >>>
> >>>I understand commonHeaderImageLinkUrl is set in the common component
> >>>at framework/common/widget/CommonScreens.xml
> >>>
> >>>how can "headerImageLinkUrl" be used in the theme ?
> >>>
> >>>
> >>>
> >


Re: Setting up layoutSettings.headerImageLinkUrl in the theme

2010-10-04 Thread Mansour Al Akeel
BJ:
changing the image in the file framework/common/widget/CommonScreens.xml
doesn't change the logo !
I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
but still this doesn't show. And in the page source it's still the old
value. 

I did a clean then run-install I even dropped and recreated the DB. 
Any idea ? 

On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> from
> framework/common/widgets/commonscreens.xml
> from-field="layoutSettings.commonHeaderImageLinkUrl"
> default-value="main" global="true"/>
> 
> 
> Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> >Hello all:
> >
> >In the themes there is varilabe that couldn't figure out how to set.
> >
> ><#if layoutSettings.headerImageLinkUrl?exists>
> >   <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> ><#else>
> >   <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> >
> >
> >I understand commonHeaderImageLinkUrl is set in the common component
> >at framework/common/widget/CommonScreens.xml
> >
> >how can "headerImageLinkUrl" be used in the theme ?
> >
> >
> >


Re: Setting up layoutSettings.headerImageLinkUrl in the theme

2010-10-04 Thread Mansour Al Akeel
Hello BJ:
Thank you for helping. I found the purpose of
layoutSettings.headerImageLinkUrl. 

>From  applications/party/widget/partymgr/CommonScreens.xml








This is cool. 


On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> from
> framework/common/widgets/commonscreens.xml
> from-field="layoutSettings.commonHeaderImageLinkUrl"
> default-value="main" global="true"/>
> 
> 
> Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> >Hello all:
> >
> >In the themes there is varilabe that couldn't figure out how to set.
> >
> ><#if layoutSettings.headerImageLinkUrl?exists>
> >   <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> ><#else>
> >   <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> >
> >
> >I understand commonHeaderImageLinkUrl is set in the common component
> >at framework/common/widget/CommonScreens.xml
> >
> >how can "headerImageLinkUrl" be used in the theme ?
> >
> >
> >


Setting up layoutSettings.headerImageLinkUrl in the theme

2010-10-03 Thread Mansour Al Akeel
Hello all:

In the themes there is varilabe that couldn't figure out how to set.

<#if layoutSettings.headerImageLinkUrl?exists>
  <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
<#else>
  <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">


I understand commonHeaderImageLinkUrl is set in the common component
at framework/common/widget/CommonScreens.xml

how can "headerImageLinkUrl" be used in the theme ? 




request for Patch review

2010-09-10 Thread Mansour Al Akeel
Hello all:
can someone from the ofbiz team look into this
https://issues.apache.org/jira/browse/OFBIZ-3925
and give feed back. I am looking to add the same functionality for
categories, but I like to know if this one is ok.

Thank you.



Re: Related entity's data in a form field

2010-09-06 Thread Mansour Al Akeel
It worked great. Thank you Ravi. :)

On Mon Sep 06,2010 02:36 pm, Ravindra Mandre wrote:
> On Mon, Sep 6, 2010 at 2:19 PM, Mansour Al Akeel
> wrote:
> 
> > Cool, but what is the genericValueName here in my case ?
> > Here's the form definition:
> >
> > > default-table-style="basic-table" odd-row-style="alternate-row"
> > use-row-submit="false">
> > 
> >
> >
> >
> >
> 
> 
> 
> >
> >  > value="${manufacturerPartyId}" />
> > 
> >
> 
> 
> Use this service in  
>
> from-field="manufacturerPartyId" />
>
> 
> the value of  manufacturerPartyId will be available though the list which
> you getting from entity-condition  so it will map .
> 
> 
> if further does not work then post you comment
> 
> HTH
> 
> Ravi
> 
> > value="${myParty.party['description']}" />
> >
> > 
> > >description="${internalName}" />
> >
> > 
> > > target="/partymgr/control/viewprofile" target-type="content">
> >  > value="${manufacturerPartyId}" />
> > 
> >
> >
> >
> > In other words, how do I refrence the current entity ?
> > Thank you, Ravi
> >
> >
> > On Mon Sep 06,2010 02:12 pm, Ravindra Mandre wrote:
> > > On Mon, Sep 6, 2010 at 1:06 PM, Mansour Al Akeel
> > > wrote:
> > >
> > > > Ravi thank you.
> > > > I got it working. One thing is still missing, how do I extract the
> > > > variable name in the parameter ?  See the comments.
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > > > > result-map="myParty">
> > > > 
> > > > 
> > > > 
> > > > > > > value="${myParty.party['description']}" />
> > > > 
> > > >
> > > >
> > > you have do field-map idToFind from genericValueName.manufacturePartyId
> > in
> > > from-field element and you job is done .
> > >
> > >
> > > Ravi
> >


Re: Related entity's data in a form field

2010-09-06 Thread Mansour Al Akeel
Cool, but what is the genericValueName here in my case ? 
Here's the form definition:





















In other words, how do I refrence the current entity ? 
Thank you, Ravi


On Mon Sep 06,2010 02:12 pm, Ravindra Mandre wrote:
> On Mon, Sep 6, 2010 at 1:06 PM, Mansour Al Akeel
> wrote:
> 
> > Ravi thank you.
> > I got it working. One thing is still missing, how do I extract the
> > variable name in the parameter ?  See the comments.
> >
> > 
> >
> >
> >
> > > result-map="myParty">
> > 
> > 
> > 
> > > value="${myParty.party['description']}" />
> > 
> >
> >
> you have do field-map idToFind from genericValueName.manufacturePartyId   in
> from-field element and you job is done .
> 
> 
> Ravi


Re: Related entity's data in a form field

2010-09-06 Thread Mansour Al Akeel
Ravi thank you.
I got it working. One thing is still missing, how do I extract the
variable name in the parameter ?  See the comments.







 




Thank you.

On Mon Sep 06,2010 10:24 am, Ravindra Mandre wrote:
> Hi,
> 
> I have not gone through all posting but based on your last post I am only
> getting the idea that you are getting a generic value of party and also
> getting the createdByUserLogin value as admin , so simply you can get the by
> party.createdByUserLogin .
> 
> 
> 
> 
> Ravi
> 
> 
> On Sun, Sep 5, 2010 at 1:43 PM, Mansour Al Akeel
> wrote:
> 
> > To clarify my issue, the code I have posted results in a field showing
> > the who map (or list). What I need is a single value only from this map.
> > Here's an example output:
> > {responseMessage=success,
> > party=[GenericEntity:Party][createdByUserLogin,admin(java.lang.String)][createdDate,2010-08-30
> > 19:49:06.594(java.sql.Timestamp)][createdStamp,2010-08-30
> >19:49:06.663(java.sql.Timestamp)][createdTxStamp,2010-08-30
> > 19:49:06.594(java.sql.Timestamp)][dataSourceId,null()][description,SomeManufacturer
> >
> >  
> > manufacturer(java.lang.String)][externalId,null()][isUnread,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2010-08-30
> >19:49:06.594(java.sql.Timestamp)][lastUpdatedStamp,2010-09-04
> > 10:01:11.346(java.sql.Timestamp)][lastUpdatedTxStamp,2010-09-04
> >
> >  
> > 10:01:11.22(java.sql.Timestamp)][partyId,1(java.lang.String)][partyTypeId,PARTY_GROUP(java.lang.String)][preferredCurrencyUomId,USD(java.lang.String)][statusId,PARTY_ENABLED(java.lang.String)],
> >partiesFound={}}
> >
> >
> >


Re: Related entity's data in a form field

2010-09-05 Thread Mansour Al Akeel
To clarify my issue, the code I have posted results in a field showing
the who map (or list). What I need is a single value only from this map.
Here's an example output:
{responseMessage=success, 
party=[GenericEntity:Party][createdByUserLogin,admin(java.lang.String)][createdDate,2010-08-30
 19:49:06.594(java.sql.Timestamp)][createdStamp,2010-08-30
19:49:06.663(java.sql.Timestamp)][createdTxStamp,2010-08-30 
19:49:06.594(java.sql.Timestamp)][dataSourceId,null()][description,SomeManufacturer

manufacturer(java.lang.String)][externalId,null()][isUnread,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2010-08-30
19:49:06.594(java.sql.Timestamp)][lastUpdatedStamp,2010-09-04 
10:01:11.346(java.sql.Timestamp)][lastUpdatedTxStamp,2010-09-04

10:01:11.22(java.sql.Timestamp)][partyId,1(java.lang.String)][partyTypeId,PARTY_GROUP(java.lang.String)][preferredCurrencyUomId,USD(java.lang.String)][statusId,PARTY_ENABLED(java.lang.String)],
partiesFound={}}


Let's say I need the value for createdByUserLogin, how do I extract this
value and put it in a hyperlink ? The documentaion doesn't show this.


On Sat Sep 04,2010 10:56 am, Mansour Al Akeel wrote:
> Bruno, this is what I have so far. In the manufacturer field I want to
> display the name, if the name doesn't exist as it's not required, then
> it should display the id. Note that, I have the manufacturer id hard
> coded, as I couldn't find a way yet to extract the value and pass it to
> the service "findPartiesById". Any idea?
> 
> 
>  default-table-style="basic-table" odd-row-style="alternate-row">
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
>  description="${internalName}" />
> 
> 
> 
>  description="${manufacturerPartyId}">
>  description="${manufacturer}" target-type="content"> 
>  value="${manufacturerPartyId}" />
> 
> 
> 
> 
> 
> 
> 
> On Thu Sep 02,2010 08:16 pm, Bruno Busco wrote:
> > Could this help?
> > (cut and paste from
> > http://www.opensourcestrategies.com/ofbiz/ofbiz_form_widget_cookbook.txt)
> > 
> > * How to use the same field or value more than once on the form
> > 
> >   Let's say you need to display productId twice on your form, once as
> > productId and once as the product description.
> > The form widget will only display each field name="" once.  You can
> > explicitly set the 'entry-name' attribute (by default the
> > 'entry-name' attribute is equals to the 'name' attribute) to make it
> > display the same field twice.
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> > 2010/8/30 Mansour Al Akeel 
> > 
> > > Hello all:
> > > This question is still unanswered. I am not sure if I missunderstand the
> > > documentation from widget_cookbook. If there's something unclear, please
> > > let me know.
> > >
> > > Thank you.
> > >
> > > On Sat Aug 28,2010 06:10 am, Mansour Al Akeel wrote:
> > > > Hello Bruno,
> > > > No, that didn't help. It extracts the filed from an entity obtained by
> > > > calling another service. I don't see a need for this. THe entity I want
> > > > to use its field is in hand, it's just the matter of how to reference
> > > > it, and use its field.
> > > >
> > > >
> > > >
> > > > On Thu Aug 26,2010 08:32 pm, Bruno Busco wrote:
> > > > > Hi Mansour,
> > > > > please search for  > > > > in the ProductForms.xml file.
> > > > >
> > > > > There is a  > > > > that I think is what you want to do.
> > > > >
> > > > > HTH,
> > > > > Bruno
> > > > >
> > > > > 2010/8/26 Mansour Al Akeel 
> > > > >
> > > > > > Let me clarify what I want.
> > > > > > from
> > > > > >
> > > http://www.opensourcestrategies.com/ofbiz/ofbiz_form_widget_cookbook.txt I
> > > > > > got this:
> > > > > >
> > > > > > 
> > > > > > > > description="${accountName}">
> > > > > > > > > > > target="ListGlAccountEntries?glAcc

Re: Related entity's data in a form field

2010-09-04 Thread Mansour Al Akeel
Bruno, this is what I have so far. In the manufacturer field I want to
display the name, if the name doesn't exist as it's not required, then
it should display the id. Note that, I have the manufacturer id hard
coded, as I couldn't find a way yet to extract the value and pass it to
the service "findPartiesById". Any idea?








 










 








On Thu Sep 02,2010 08:16 pm, Bruno Busco wrote:
> Could this help?
> (cut and paste from
> http://www.opensourcestrategies.com/ofbiz/ofbiz_form_widget_cookbook.txt)
> 
> * How to use the same field or value more than once on the form
> 
>   Let's say you need to display productId twice on your form, once as
> productId and once as the product description.
> The form widget will only display each field name="" once.  You can
> explicitly set the 'entry-name' attribute (by default the
> 'entry-name' attribute is equals to the 'name' attribute) to make it
> display the same field twice.
> 
> 
> 
>  
> 
> 
> 
> 
> 2010/8/30 Mansour Al Akeel 
> 
> > Hello all:
> > This question is still unanswered. I am not sure if I missunderstand the
> > documentation from widget_cookbook. If there's something unclear, please
> > let me know.
> >
> > Thank you.
> >
> > On Sat Aug 28,2010 06:10 am, Mansour Al Akeel wrote:
> > > Hello Bruno,
> > > No, that didn't help. It extracts the filed from an entity obtained by
> > > calling another service. I don't see a need for this. THe entity I want
> > > to use its field is in hand, it's just the matter of how to reference
> > > it, and use its field.
> > >
> > >
> > >
> > > On Thu Aug 26,2010 08:32 pm, Bruno Busco wrote:
> > > > Hi Mansour,
> > > > please search for  > > > in the ProductForms.xml file.
> > > >
> > > > There is a  > > > that I think is what you want to do.
> > > >
> > > > HTH,
> > > > Bruno
> > > >
> > > > 2010/8/26 Mansour Al Akeel 
> > > >
> > > > > Let me clarify what I want.
> > > > > from
> > > > >
> > http://www.opensourcestrategies.com/ofbiz/ofbiz_form_widget_cookbook.txt I
> > > > > got this:
> > > > >
> > > > > 
> > > > > > description="${accountName}">
> > > > > > > > > target="ListGlAccountEntries?glAccountId=${glAccountId}"
> > > > > description="[${glAccountId}]" link-style="tabletext"/>
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > My code is :
> > > > >
> > > > >
> > > > > 
> > > > > > > > > key-field-name="productCategoryId" description="${categoryName}">
> > > > > > description="${categoryName}"
> > > > > target-type="intra-app">
> > > > > > > > > value="${primaryProductCategoryId}" />
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > But this is not working. I need to put the CategoryName and not the
> > > > > "categoryId" in the link. Any one can help ?
> > > > >
> > > > >
> > > > >
> > > > > On Thu Aug 26,2010 03:20 pm, Mansour Al Akeel wrote:
> > > > > > Bruno,
> > > > > > this will resolve the issue with exception. But still don't know
> > how to
> > > > > > display a value from the related entity.
> > > > > > Here's the code:
> > > > > >
> > > > > >
> > > > > > 
> > > > > >  > > > > > key-field-name="productCategoryId"
> > > > > description="${categoryName}">
> > > > > >  > > > > > description="${categoryName}"
> > > > > target-type="intra-app">
> > > > > >  > param-name="pr

  1   2   >