[OFBiz] Users - Adding Product Attribute

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

[OFBiz] Users - Adding Product Attribute

Gershaw, Geoffrey
Hello,
 
I am trying to learn about the Product Attributes that you can add via the web interface. I added on and exported the Product and ProductAssociation.xml files. What is the purpose of type in the name, value,  type of each attribute? Its not a java type is it? If so, I would think you would have used a drop down instead.
 
I was thinking of using this to add an attribute for sq ft of coverage. The name of the attribute would be sqFtCoverage. The value is say 20. Would the type be int??
 
Could someone help me with the syntax to access this value programmatically from a jsp or point me to the right docs to look at?
 
Thanks,

Geoff
 
 


DISCLAIMER

This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof.

E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY

Knight Capital Group may, at its discretion, monitor and review the content of all e-mail communications.


http://www.knight.com


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

Re: [OFBiz] Users - Adding Product Attribute

michael j
Hi Geoff

Just read your question and thought I'd respond. Disclaimer: I'm a newby as well. I am doing exactly the same thing that you described. From the research I did and to my best understanding these are the objects concerned:

Product
ProductTypeAttr
ProductType

Hierarchically, this is a representation of how it works (I think):

                                            Product
                      ______________|________________
                     /                       |                       \              \
ProductType1             ProductType 2            etc...       etc...
           |                                 |
ProductType1Attr1     ProductType2Attr1
ProductType1Attr2     ProductType2Attr2
ProductType1Attr3     etc...
etc...

The next question I asked myself was - what is the default data type of the attributes that are created and can it be configured? Is it just a string that is used? How do I make an attribute of type float, int, date or otherwise?

A couple of days ago I noticed that when creating a ProductType there is a field called "hasTable". So perhaps it is possible to create your own table for a Product Type with specified data types for all the attributes. Is this required if you need to specify data type for attributes? Is there a way around it using the webtools interface?

This is where I'm at right now. I might try to make a table for one of my ProductTypes with attributes of specified types and see how it works. Does anyone else out there have any advice on this?


Michael


Gershaw, Geoffrey wrote
Hello,
 
I am trying to learn about the Product Attributes that you can add via the web interface. I added on and exported the Product and ProductAssociation.xml files. What is the purpose of type in the name, value,  type of each attribute? Its not a java type is it? If so, I would think you would have used
a drop down instead.
 
I was thinking of using this to add an attribute for sq ft of coverage. The name of the attribute would be sqFtCoverage. The value is say 20. Would the type be int??
 
Could someone help me with the syntax to access this value programmatically from a jsp or point me to the right docs to look at?
 
Thanks,

Geoff
 
 


DISCLAIMER
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of
this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof.
E-mail transmission cannot be guaranteed to be secure or error-free.  The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.
NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Knight Capital Group may, at its discretion, monitor and review the content of all e-mail communications.

http://www.knight.com

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

Re: [OFBiz] Users - Adding Product Attribute

Vince Clark
Be sure you aren't confusing attributes and features. I'm not sure what you are trying to accomplish but you may be headed down the wrong path.

Vince Clark
Global Era
The Freedom of Open Source
[hidden email]
(303) 493-6723

----- Original Message -----
From: "michael j" <[hidden email]>
To: [hidden email]
Sent: Monday, November 5, 2007 8:20:28 AM (GMT-0700) America/Denver
Subject: Re: [OFBiz] Users - Adding Product Attribute


Hi Geoff

Just read your question and thought I'd respond. Disclaimer: I'm a newby as
well. I am doing exactly the same thing that you described. From the
research I did and to my best understanding these are the objects concerned:

Product
ProductTypeAttr
ProductType

Hierarchically, this is a representation of how it works (I think):

Product
______________|________________
/ | \
\
ProductType1 ProductType 2 etc... etc...
| |
ProductType1Attr1 ProductType2Attr1
ProductType1Attr2 ProductType2Attr2
ProductType1Attr3 etc...
etc...

The next question I asked myself was - what is the default data type of the
attributes that are created and can it be configured? Is it just a string
that is used? How do I make an attribute of type float, int, date or
otherwise?

A couple of days ago I noticed that when creating a ProductType there is a
field called "hasTable". So perhaps it is possible to create your own table
for a Product Type with specified data types for all the attributes. Is this
required if you need to specify data type for attributes? Is there a way
around it using the webtools interface?

This is where I'm at right now. I might try to make a table for one of my
ProductTypes with attributes of specified types and see how it works. Does
anyone else out there have any advice on this?


Michael



Gershaw, Geoffrey wrote:

>
> Hello,
>
> I am trying to learn about the Product Attributes that you can add via the
> web interface. I added on and exported the Product and
> ProductAssociation.xml files. What is the purpose of type in the name,
> value, type of each attribute? Its not a java type is it? If so, I would
> think you would have used
> a drop down instead.
>
> I was thinking of using this to add an attribute for sq ft of coverage.
> The name of the attribute would be sqFtCoverage. The value is say 20.
> Would the type be int??
>
> Could someone help me with the syntax to access this value
> programmatically from a jsp or point me to the right docs to look at?
>
> Thanks,
>
> Geoff
>
>
>
>
> DISCLAIMER
> This e-mail, and any attachments thereto, is intended only for use by the
> addressee(s) named herein and may contain legally privileged and/or
> confidential information. If you are not the intended recipient of this
> e-mail, you are hereby notified that any dissemination, distribution or
> copying of
> this e-mail, and any attachments thereto, is strictly prohibited. If you
> have received this e-mail in error, please immediately notify me and
> permanently delete the original and any copy of any e-mail and any
> printout thereof.
> E-mail transmission cannot be guaranteed to be secure or error-free. The
> sender therefore does not accept liability for any errors or omissions in
> the contents of this message which arise as a result of e-mail
> transmission.
> NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
> Knight Capital Group may, at its discretion, monitor and review the
> content of all e-mail communications.
>
> http://www.knight.com 
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users 
>

--
View this message in context: http://www.nabble.com/-OFBiz--Users---Adding-Product-Attribute-tf170394.html#a13588881 
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Adding Product Attribute

michael j
In reply to this post by michael j
I just realized that I didn't address the fundamental question of your message:

What is the purpose of type in the name, value,  type of each attribute?

I think that type is which ProductType that you are associating the attribute with.



michael j wrote
Hi Geoff

Just read your question and thought I'd respond. Disclaimer: I'm a newby as well. I am doing exactly the same thing that you described. From the research I did and to my best understanding these are the objects concerned:

Product
ProductTypeAttr
ProductType

Hierarchically, this is a representation of how it works (I think):

                                            Product
                      ______________|________________
                     /                       |                       \              \
ProductType1             ProductType 2            etc...       etc...
           |                                 |
ProductType1Attr1     ProductType2Attr1
ProductType1Attr2     ProductType2Attr2
ProductType1Attr3     etc...
etc...

The next question I asked myself was - what is the default data type of the attributes that are created and can it be configured? Is it just a string that is used? How do I make an attribute of type float, int, date or otherwise?

A couple of days ago I noticed that when creating a ProductType there is a field called "hasTable". So perhaps it is possible to create your own table for a Product Type with specified data types for all the attributes. Is this required if you need to specify data type for attributes? Is there a way around it using the webtools interface?

This is where I'm at right now. I might try to make a table for one of my ProductTypes with attributes of specified types and see how it works. Does anyone else out there have any advice on this?


Michael


Gershaw, Geoffrey wrote
Hello,
 
I am trying to learn about the Product Attributes that you can add via the web interface. I added on and exported the Product and ProductAssociation.xml files. What is the purpose of type in the name, value,  type of each attribute? Its not a java type is it? If so, I would think you would have used
a drop down instead.
 
I was thinking of using this to add an attribute for sq ft of coverage. The name of the attribute would be sqFtCoverage. The value is say 20. Would the type be int??
 
Could someone help me with the syntax to access this value programmatically from a jsp or point me to the right docs to look at?
 
Thanks,

Geoff
 
 


DISCLAIMER
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of
this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof.
E-mail transmission cannot be guaranteed to be secure or error-free.  The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.
NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Knight Capital Group may, at its discretion, monitor and review the content of all e-mail communications.

http://www.knight.com

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

Re: [OFBiz] Users - Adding Product Attribute

michael j
In reply to this post by Vince Clark
Good point - this took me a bit to wrap my head around because it did in fact confuse me very much at first but now I think I have it resolved. Maybe you can confirm my understanding:
Features = product aspects that are variable and require a client to set in order to complete an order.
Attributes = product aspects which are static and do not change for a product regardless of client features.

Michael

Vince Clark wrote
Be sure you aren't confusing attributes and features. I'm not sure what you are trying to accomplish but you may be headed down the wrong path.

Vince Clark
Global Era
The Freedom of Open Source
vclark@globalera.com
(303) 493-6723

----- Original Message -----
From: "michael j" <michaeljean@ncf.ca> 
To: user@ofbiz.apache.org
Sent: Monday, November 5, 2007 8:20:28 AM (GMT-0700) America/Denver
Subject: Re: [OFBiz] Users - Adding Product Attribute


Hi Geoff

Just read your question and thought I'd respond. Disclaimer: I'm a newby as
well. I am doing exactly the same thing that you described. From the
research I did and to my best understanding these are the objects concerned:

Product
ProductTypeAttr
ProductType

Hierarchically, this is a representation of how it works (I think):

Product
______________|________________
/ | \
\
ProductType1 ProductType 2 etc... etc...
| |
ProductType1Attr1 ProductType2Attr1
ProductType1Attr2 ProductType2Attr2
ProductType1Attr3 etc...
etc...

The next question I asked myself was - what is the default data type of the
attributes that are created and can it be configured? Is it just a string
that is used? How do I make an attribute of type float, int, date or
otherwise?

A couple of days ago I noticed that when creating a ProductType there is a
field called "hasTable". So perhaps it is possible to create your own table
for a Product Type with specified data types for all the attributes. Is this
required if you need to specify data type for attributes? Is there a way
around it using the webtools interface?

This is where I'm at right now. I might try to make a table for one of my
ProductTypes with attributes of specified types and see how it works. Does
anyone else out there have any advice on this?


Michael



Gershaw, Geoffrey wrote:
>
> Hello,
>
> I am trying to learn about the Product Attributes that you can add via the
> web interface. I added on and exported the Product and
> ProductAssociation.xml files. What is the purpose of type in the name,
> value, type of each attribute? Its not a java type is it? If so, I would
> think you would have used
> a drop down instead.
>
> I was thinking of using this to add an attribute for sq ft of coverage.
> The name of the attribute would be sqFtCoverage. The value is say 20.
> Would the type be int??
>
> Could someone help me with the syntax to access this value
> programmatically from a jsp or point me to the right docs to look at?
>
> Thanks,
>
> Geoff
>
>
>
>
> DISCLAIMER
> This e-mail, and any attachments thereto, is intended only for use by the
> addressee(s) named herein and may contain legally privileged and/or
> confidential information. If you are not the intended recipient of this
> e-mail, you are hereby notified that any dissemination, distribution or
> copying of
> this e-mail, and any attachments thereto, is strictly prohibited. If you
> have received this e-mail in error, please immediately notify me and
> permanently delete the original and any copy of any e-mail and any
> printout thereof.
> E-mail transmission cannot be guaranteed to be secure or error-free. The
> sender therefore does not accept liability for any errors or omissions in
> the contents of this message which arise as a result of e-mail
> transmission.
> NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
> Knight Capital Group may, at its discretion, monitor and review the
> content of all e-mail communications.
>
> http://www.knight.com 
>
>
> _______________________________________________
> Users mailing list
> Users@lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users 
>

--
View this message in context: http://www.nabble.com/-OFBiz--Users---Adding-Product-Attribute-tf170394.html#a13588881 
Sent from the OFBiz - User mailing list archive at Nabble.com.