You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Barou <ZS...@gmail.com> on 2015/09/02 15:09:07 UTC

Is this forum only for experienced Ofbizers?

Sorry about my new bee question.
I am not sure  if I am in the right place.
When I look at Ofbiz doc I  se many examples like the link below.
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-WritingCRUDOperations
for example:
<service name="createExample" default-entity-name="Example"
engine="entity-auto" invoke="create" auth="true">
    <description>Create a Example</description>
    <permission-service service-name="exampleGenericPermission"
main-action="CREATE"/>
    <auto-attributes include="pk" mode="OUT" optional="false"/>
    <auto-attributes include="nonpk" mode="IN" optional="true"/>
    <override name="exampleTypeId" optional="false"/>
    <override name="statusId" optional="false"/>
    <override name="exampleName" optional="false"/>
</service>

How can I create service that read from several table ? 
Is there a service already implemented in the ofbiz I can use for this
purpose ?
And how do I send user credentials from a form  then used that to fetch the
records created for example  in the product table ?





--
View this message in context: http://ofbiz.135035.n4.nabble.com/Is-this-forum-only-for-experienced-Ofbizers-tp4671812.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Is this forum only for experienced Ofbizers?

Posted by BJ Freeman <bj...@yahoo.com.INVALID>.
not sure why the url was not included.
try this again

https://cwiki.apache.org/confluence/display/OFBIZ/Entity+Engine+Guide




On Wednesday, September 2, 2015 11:11 AM, BJ Freeman <bj...@yahoo.com.INVALID> wrote:



this is for any user of Ofbiz.here is the basis of entities,Entity Engine Guide - OFBiz (Open For Business) Project Open Wiki - Apache Software Foundation

|  |
|  |  |  |  |  |
| Entity Engine Guide - OFBiz (Open...Written By: David E. Jones Edited by: Les Austin and Pawel H Debski  Table of Contents Related Documents: Entity Engine Configuration Guide Introduction  |
|  |
| View on cwiki.apache.org | Preview by Yahoo |
|  |
|  |

service is one to two ways to work with the entity 



    On Wednesday, September 2, 2015 6:21 AM, Barou <ZS...@gmail.com> wrote:
  

Sorry about my new bee question.
I am not sure  if I am in the right place.
When I look at Ofbiz doc I  se many examples like the link below.
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-WritingCRUDOperations
for example:
<service name="createExample" default-entity-name="Example"
engine="entity-auto" invoke="create" auth="true">
    <description>Create a Example</description>
    <permission-service service-name="exampleGenericPermission"
main-action="CREATE"/>
    <auto-attributes include="pk" mode="OUT" optional="false"/>
    <auto-attributes include="nonpk" mode="IN" optional="true"/>
    <override name="exampleTypeId" optional="false"/>
    <override name="statusId" optional="false"/>
    <override name="exampleName" optional="false"/>
</service>

How can I create service that read from several table ? 
Is there a service already implemented in the ofbiz I can use for this
purpose ?
And how do I send user credentials from a form  then used that to fetch the
records created for example  in the product table ?





--
View this message in context: http://ofbiz.135035.n4.nabble.com/Is-this-forum-only-for-experienced-Ofbizers-tp4671812.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Is this forum only for experienced Ofbizers?

Posted by BJ Freeman <bj...@yahoo.com.INVALID>.
this is for any user of Ofbiz.here is the basis of entities,Entity Engine Guide - OFBiz (Open For Business) Project Open Wiki - Apache Software Foundation

|   |
|   |   |   |   |   |
| Entity Engine Guide - OFBiz (Open...Written By: David E. Jones Edited by: Les Austin and Pawel H Debski   Table of Contents Related Documents: Entity Engine Configuration Guide Introduction  |
|  |
| View on cwiki.apache.org | Preview by Yahoo |
|  |
|   |

service is one to two ways to work with the entity 


     On Wednesday, September 2, 2015 6:21 AM, Barou <ZS...@gmail.com> wrote:
   

 Sorry about my new bee question.
I am not sure  if I am in the right place.
When I look at Ofbiz doc I  se many examples like the link below.
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-WritingCRUDOperations
for example:
<service name="createExample" default-entity-name="Example"
engine="entity-auto" invoke="create" auth="true">
    <description>Create a Example</description>
    <permission-service service-name="exampleGenericPermission"
main-action="CREATE"/>
    <auto-attributes include="pk" mode="OUT" optional="false"/>
    <auto-attributes include="nonpk" mode="IN" optional="true"/>
    <override name="exampleTypeId" optional="false"/>
    <override name="statusId" optional="false"/>
    <override name="exampleName" optional="false"/>
</service>

How can I create service that read from several table ? 
Is there a service already implemented in the ofbiz I can use for this
purpose ?
And how do I send user credentials from a form  then used that to fetch the
records created for example  in the product table ?





--
View this message in context: http://ofbiz.135035.n4.nabble.com/Is-this-forum-only-for-experienced-Ofbizers-tp4671812.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


  

Re: Is this forum only for experienced Ofbizers?

Posted by gil portenseigne <gi...@nereide.fr>.
Hello,

Your example show an entity-auto service, which will, in this "invoke" 
case, create a record in Example table.

If you look a bit further in the link you gave, you'll see :

|<service name=||"createPracticePerson"| 
|default||-entity-name=||"Person"| |engine=||"simple"|
|location=||"component://practice/script/org/hotwax/practice/PracticeServices.xml"| 
|invoke=||"createPracticePerson"| |auth=||"true"||>|
|<description>Create a Person</description>|
|<auto-attributes include=||"pk"| |mode=||"OUT"| |optional=||"false"||/>|
|<attribute name=||"salutation"| |mode=||"IN"| |type=||"String"| 
|optional=||"true"||/>|
|<attribute name=||"firstName"| |mode=||"IN"| |type=||"String"| 
|optional=||"false"||/>|
|<attribute name=||"middleName"| |mode=||"IN"| |type=||"String"| 
|optional=||"true"||/>|
|<attribute name=||"lastName"| |mode=||"IN"| |type=||"String"| 
|optional=||"false"||/>|
|<attribute name=||"suffix"| |mode=||"IN"| |type=||"String"| 
|optional=||"true"||/>|
|</service>

Which is a minilang service, in these kind of services, you'll find 
example to create more data.

But in you case, to fetch data into forms, it's best to use 
<action></action> in screen/form widget, see there for more info 
https://cwiki.apache.org/confluence/display/OFBIZ/Understanding+the+OFBiz+Widget+Toolkit

Or look for some examples in *Forms.xml files.
|

HTH

Gil
On 02/09/2015 15:09, Barou wrote:
> Sorry about my new bee question.
> I am not sure  if I am in the right place.
> When I look at Ofbiz doc I  se many examples like the link below.
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-WritingCRUDOperations
> for example:
> <service name="createExample" default-entity-name="Example"
> engine="entity-auto" invoke="create" auth="true">
>      <description>Create a Example</description>
>      <permission-service service-name="exampleGenericPermission"
> main-action="CREATE"/>
>      <auto-attributes include="pk" mode="OUT" optional="false"/>
>      <auto-attributes include="nonpk" mode="IN" optional="true"/>
>      <override name="exampleTypeId" optional="false"/>
>      <override name="statusId" optional="false"/>
>      <override name="exampleName" optional="false"/>
> </service>
>
> How can I create service that read from several table ?
> Is there a service already implemented in the ofbiz I can use for this
> purpose ?
> And how do I send user credentials from a form  then used that to fetch the
> records created for example  in the product table ?
>
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Is-this-forum-only-for-experienced-Ofbizers-tp4671812.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Is this forum only for experienced Ofbizers?

Posted by Pierre Smits <pi...@gmail.com>.
Hi Barou,

Of course not! It is intended for all kinds of OFBiz users.

Best regards,

Pierre Smits

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

On Wed, Sep 2, 2015 at 3:09 PM, Barou <ZS...@gmail.com> wrote:

> Sorry about my new bee question.
> I am not sure  if I am in the right place.
> When I look at Ofbiz doc I  se many examples like the link below.
>
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-WritingCRUDOperations
> for example:
> <service name="createExample" default-entity-name="Example"
> engine="entity-auto" invoke="create" auth="true">
>     <description>Create a Example</description>
>     <permission-service service-name="exampleGenericPermission"
> main-action="CREATE"/>
>     <auto-attributes include="pk" mode="OUT" optional="false"/>
>     <auto-attributes include="nonpk" mode="IN" optional="true"/>
>     <override name="exampleTypeId" optional="false"/>
>     <override name="statusId" optional="false"/>
>     <override name="exampleName" optional="false"/>
> </service>
>
> How can I create service that read from several table ?
> Is there a service already implemented in the ofbiz I can use for this
> purpose ?
> And how do I send user credentials from a form  then used that to fetch the
> records created for example  in the product table ?
>
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Is-this-forum-only-for-experienced-Ofbizers-tp4671812.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>