Re: need help on party group

2009-02-24 Thread Hans Bakker
it looks like you use the 'link' button in profile? This function has a
bit a strange name because it is more a 'merge' function to remove
duplicate parties.

use partyrelationship and add a person in the role contact to a account
or a parytgroup in the role account to a person

Regards,
Hans

On Tue, 2009-02-24 at 13:01 +0530, abdullah shaikh wrote:
> Hi All,
> 
> 
> I want to create a party group,  with contact information, which will have
> some parties (users), and these party group users should also have their own
> individual contact information.
> 
> Like -
> 
> Party Group -> CompanyABC (contact information of the company, lets say
> cont...@companyabc.com)
> 
> and CompanyABC will have
> 
> Party -> User1 - with their their own contact information (for
> eg. us...@companyabc.com)
> Party -> User2  (us...@companyabc.com)
> 
> 
> What's happening is when I create a party group and assign a party user to
> it, the party group contact info is there, but the party status is set to
> PARTY_DISABLED, why ?, and all the party contact information is lost ?
> 
> 
> How should I achieve the above scenario ?
> 
> 
> Thanks,
> Abdullah
-- 
Antwebsystems.com: Quality OFBiz services for competitive rates



Re: need help on party group

2009-02-24 Thread abdullah shaikh
yes.. I was using the 'link' button, partyrelationship this is what I
wanted.

thank you

Regards,
Abdullah

On Tue, Feb 24, 2009 at 2:01 PM, Hans Bakker
wrote:

> it looks like you use the 'link' button in profile? This function has a
> bit a strange name because it is more a 'merge' function to remove
> duplicate parties.
>
> use partyrelationship and add a person in the role contact to a account
> or a parytgroup in the role account to a person
>
> Regards,
> Hans
>
> On Tue, 2009-02-24 at 13:01 +0530, abdullah shaikh wrote:
> > Hi All,
> >
> >
> > I want to create a party group,  with contact information, which will
> have
> > some parties (users), and these party group users should also have their
> own
> > individual contact information.
> >
> > Like -
> >
> > Party Group -> CompanyABC (contact information of the company, lets say
> > cont...@companyabc.com)
> >
> > and CompanyABC will have
> >
> > Party -> User1 - with their their own contact information
> (for
> > eg. us...@companyabc.com)
> > Party -> User2  (us...@companyabc.com)
> >
> >
> > What's happening is when I create a party group and assign a party user
> to
> > it, the party group contact info is there, but the party status is set to
> > PARTY_DISABLED, why ?, and all the party contact information is lost ?
> >
> >
> > How should I achieve the above scenario ?
> >
> >
> > Thanks,
> > Abdullah
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>


Re: Dealing with ESAPI in CMS

2009-02-24 Thread David E Jones


For the most part we'd only want to accept "safe" HTML, but it is  
certainly conceivable to need something more open/flexible/etc. It  
might be good to have two service defs (both can call the same service  
impl), with names to denote the difference, ie a suffix of "SafeHtml"  
and "AnyText" for the other.


As for storing JSON strings... it sounds a bit odd. The Content stuff  
is really meant for content that is written and read by humans. I do  
agree the above change would be good, but perhaps there is also a  
better place to store your JSON strings (ie it sounds a little bit  
"hackish"... ;) ).


-David


On Feb 23, 2009, at 10:20 PM, Al Byers wrote:

I am storing a very large JSON string in the database using the CMS.  
Am I
right in understanding that because the createTextContent service  
does not
have an "allowHtml" attribute on the textData field set to "none"  
that in

ModelService.validate method it is the
StringUtil.checkStringForHtmlStrictNone call that is encoding the  
double

quotes that are in the string?

What would setting allowHtml to "safe" do? Still encode?

If this is the case, do we have any options other than writing  
different
versions of content persisting services to handle the case where we  
do not

want encoding to happen?

-Al




Error on invoking createContactMech

2009-02-24 Thread Roel Veldhuizen
Hi all,

I was trying to invoke the createContactMech in the ContactMechServices from
a groovy service. But, got the following error:  No signature of method:
static org.ofbiz.party.contact.ContactMechServices.createContactMech() is
applicable for argument types: (org.apache.catalina.connector.RequestFacade,
org.ofbiz.base.util.collections.MapStack)

The code:

context.contactMechTypeId = parameters.get("contactMechTypeId"+i);
context.info_string= parameters.get("contactMechData"+i);
Map res = ContactMechServices.createContactMech(request, context);

The error:

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://crm/widget/CrmScreens.xml#createPersonFtl2]:
groovy.lang.MissingMethodException: No signature of method: static
org.ofbiz.party.contact.ContactMechServices.createContactMech() is
applicable for argument types: (org.apache.catalina.connector.RequestFacade,
org.ofbiz.base.util.collections.MapStack) values:
{org.apache.catalina.connector.requestfac...@3b6177, ["webSiteId":null,
"https":null,
"formStringRenderer":org.ofbiz.widget.html.htmlformrende...@1021b85,
"null":[null-field], "contactMechTypeId":null,
"screens":org.ofbiz.widget.screen.screenrende...@15ce24f,
"globalContext":["screens":org.ofbiz.widget.screen.screenrende...@15ce24f,
"globalContext":this Map_, "nullField":[null-field],
"parameters":["localDispatcherName":"crm",
"org.apache.catalina.WELCOME_FILES":["index.jsp", "index.html",
"index.htm"],

thanks in advance,

Roel Veldhuizen


Re: Error on invoking createContactMech

2009-02-24 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

usually the Groovy files are used to gather information to display at
user level.
They are usually associated with a widget or Ftl.
the widget or ftl would then have a link through the controller
to call an event and or service.
Look in the partymgr application how contactmechs are added.

Roel Veldhuizen sent the following on 2/24/2009 1:57 AM:
> Hi all,
> 
> I was trying to invoke the createContactMech in the ContactMechServices from
> a groovy service. But, got the following error:  No signature of method:
> static org.ofbiz.party.contact.ContactMechServices.createContactMech() is
> applicable for argument types: (org.apache.catalina.connector.RequestFacade,
> org.ofbiz.base.util.collections.MapStack)
> 
> The code:
> 
> context.contactMechTypeId = parameters.get("contactMechTypeId"+i);
> context.info_string= parameters.get("contactMechData"+i);
> Map res = ContactMechServices.createContactMech(request, context);
> 
> The error:
> 
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> [component://crm/widget/CrmScreens.xml#createPersonFtl2]:
> groovy.lang.MissingMethodException: No signature of method: static
> org.ofbiz.party.contact.ContactMechServices.createContactMech() is
> applicable for argument types: (org.apache.catalina.connector.RequestFacade,
> org.ofbiz.base.util.collections.MapStack) values:
> {org.apache.catalina.connector.requestfac...@3b6177, ["webSiteId":null,
> "https":null,
> "formStringRenderer":org.ofbiz.widget.html.htmlformrende...@1021b85,
> "null":[null-field], "contactMechTypeId":null,
> "screens":org.ofbiz.widget.screen.screenrende...@15ce24f,
> "globalContext":["screens":org.ofbiz.widget.screen.screenrende...@15ce24f,
> "globalContext":this Map_, "nullField":[null-field],
> "parameters":["localDispatcherName":"crm",
> "org.apache.catalina.WELCOME_FILES":["index.jsp", "index.html",
> "index.htm"],
> 
> thanks in advance,
> 
> Roel Veldhuizen
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJo9BrrP3NbaWWqE4RAmfAAKDOEpLszWVU6beLrgb85Ih6KsSirQCfUb9j
UDtqG0f2KZ0bKCdnGZi9bGc=
=AQbz
-END PGP SIGNATURE-


Re: Dealing with ESAPI in CMS

2009-02-24 Thread Al Byers
On Tue, Feb 24, 2009 at 1:54 AM, David E Jones
wrote:

>
> For the most part we'd only want to accept "safe" HTML, but it is certainly
> conceivable to need something more open/flexible/etc. It might be good to
> have two service defs (both can call the same service impl), with names to
> denote the difference, ie a suffix of "SafeHtml" and "AnyText" for the
> other.
>
> As for storing JSON strings... it sounds a bit odd. The Content stuff is
> really meant for content that is written and read by humans. I do agree the
> above change would be good, but perhaps there is also a better place to
> store your JSON strings (ie it sounds a little bit "hackish"... ;) ).


That is an interesting thought and it would solve my problem. The JSON
string is a complete representation of an online test (takes too long to
build it on-demand), but it will not be read directly by humans. Thanks
again for a simple and pragmatic solution to my problem and shedding new
light on CMS philosophy.

-Al

>
> -David
>
>
>
> On Feb 23, 2009, at 10:20 PM, Al Byers wrote:
>
>  I am storing a very large JSON string in the database using the CMS. Am I
>> right in understanding that because the createTextContent service does not
>> have an "allowHtml" attribute on the textData field set to "none" that in
>> ModelService.validate method it is the
>> StringUtil.checkStringForHtmlStrictNone call that is encoding the double
>> quotes that are in the string?
>>
>> What would setting allowHtml to "safe" do? Still encode?
>>
>> If this is the case, do we have any options other than writing different
>> versions of content persisting services to handle the case where we do not
>> want encoding to happen?
>>
>> -Al
>>
>
>


Inventory problems

2009-02-24 Thread murp3433

I am having a problem receiving inventory. When i receive inventory from the
"product - inventory page the Facility - inventory page and the product -
inventory pages do not reflect the available inventory, but the inventory
items detail does. I created a Jira 2198 but i'm guessing that i am doing
something wrong. I tested on the demo site as well and got the same result.
-- 
View this message in context: 
http://www.nabble.com/Inventory-problems-tp22182635p22182635.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Integrating Aribaweb with ofbiz

2009-02-24 Thread farouk alhassan
I have been playing with aribaweb for some days now. Does anyone know if it is 
possible to use AribaWeb in ofbiz?


Json Queries

2009-02-24 Thread Baiju

Hi All,

How can I invoke a jsonsimple event from a java class?, How to put the 
parameters?.


Thanks & Regards
Baiju C.John


Re: Json Queries

2009-02-24 Thread Anil Patel

Baiju,
jsonsimple event handlers are designed for calls from web-browser  
client.


Can you please give some details about Why you need to call jsonsimple  
event from java class?


Regards
Anil Patel

On Feb 25, 2009, at 12:30 AM, Baiju wrote:


Hi All,

How can I invoke a jsonsimple event from a java class?, How to put  
the parameters?.


Thanks & Regards
Baiju C.John




Re: Json Queries

2009-02-24 Thread Baiju

Hi Anil,

Thanks for the response,

I need to store customer shipping , billing and credit card details .I 
have got all  the information in to my java class and need to store that 
informations for checkout process.


But in Ofbiz checkout process they are using json event for storing the 
particular details...


Regards
Baiju C.John


Anil Patel wrote:

Baiju,
jsonsimple event handlers are designed for calls from web-browser client.

Can you please give some details about Why you need to call jsonsimple 
event from java class?


Regards
Anil Patel

On Feb 25, 2009, at 12:30 AM, Baiju wrote:


Hi All,

How can I invoke a jsonsimple event from a java class?, How to put 
the parameters?.


Thanks & Regards
Baiju C.John







Re: Json Queries

2009-02-24 Thread Anil Patel
If you already have Java classes that have required information then  
call ofbiz services directly using local dispatcher. If you look at  
these simple event handlers, they are nothing but in return calling  
lower level services.


Regards
Anil Patel


On Feb 25, 2009, at 2:25 AM, Baiju wrote:


Hi Anil,

Thanks for the response,

I need to store customer shipping , billing and credit card  
details .I have got all  the information in to my java class and  
need to store that informations for checkout process.


But in Ofbiz checkout process they are using json event for storing  
the particular details...


Regards
Baiju C.John


Anil Patel wrote:

Baiju,
jsonsimple event handlers are designed for calls from web-browser  
client.


Can you please give some details about Why you need to call  
jsonsimple event from java class?


Regards
Anil Patel

On Feb 25, 2009, at 12:30 AM, Baiju wrote:


Hi All,

How can I invoke a jsonsimple event from a java class?, How to put  
the parameters?.


Thanks & Regards
Baiju C.John