Re: Creating a record in database

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

there is already support for this entity and service in ofbiz.
so you can extend that entity and add your information then update the
already existing service.
Note: a lot of the entities now use the auto created for CRUD services
so you just update the entity and the service will be created automatically.
or rename your entity and services.

hairi007 sent the following on 2/23/2009 2:22 AM:
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> what does the logs say
> what version of ofbiz are you using
> 
> Hi guys, I think i know the problem as to why i cannot create the record. 
> Eventhough I  created my own entity, in the entitymodel.xml, when i try
> creating a record from my program, the log shows that it is actually trying
> to create a record from another table mapping.
> 
> How do i change this mapping?
> (desparate mode) 
> 
> hope u guys can help.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJoqQDrP3NbaWWqE4RAnW7AJwJXNGlxAGShQVSwH9keC6mfxCxMACgzrQA
vaU42TmRoVCgwfajtyqKMU0=
=755N
-END PGP SIGNATURE-


Re: Creating a record in database

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

how did you get the code, through svn?
did you download the trunk or release 4.0.
the logs are in
runtime/logs.
if your running a local copy you can also see the logs in the webtools
section.


hairi007 sent the following on 2/22/2009 8:27 PM:
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> what does the logs say
> what version of ofbiz are you using
> 
> 
> 
> How do i check which version? Anyways I've just download the files for
> development about 1 mth ago.
> 
> Thnx
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJoqHcrP3NbaWWqE4RAiblAJ9zR0iHbcih097nWJbZC5//meEOnACgug7k
TGWxTEYW6N+1DWUdfPeibs4=
=8bpt
-END PGP SIGNATURE-


Re: Creating a record in database

2009-02-23 Thread hairi007



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

what does the logs say
what version of ofbiz are you using

Hi guys, I think i know the problem as to why i cannot create the record. 
Eventhough I  created my own entity, in the entitymodel.xml, when i try
creating a record from my program, the log shows that it is actually trying
to create a record from another table mapping.

How do i change this mapping?
(desparate mode) 

hope u guys can help.
-- 
View this message in context: 
http://www.nabble.com/Creating-a-record-in-database-tp22149825p22158831.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Creating a record in database

2009-02-22 Thread hairi007



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

what does the logs say
what version of ofbiz are you using



How do i check which version? Anyways I've just download the files for
development about 1 mth ago.

Thnx
-- 
View this message in context: 
http://www.nabble.com/Creating-a-record-in-database-tp22149825p22155204.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Creating a record in database

2009-02-22 Thread Ravindra Mandre

hello,
Put all log messages that you are getting on terminal so that anyone can 
help you :-)


Regards
Ravindra Mandre


hairi007 wrote:

(ofBiz newbie)
Hi guys, im using a service to create a record in a database
All tehe required datas are keyed in a textfield
service.xml
 
Create a custRequest record and optionally create a
custRequest item.

 
  




and the simple method 


   

 
  





		









When i click submit it shows success,however the new record is not reflected
on my DB when i check ed it from webtools..Need your help ..thnx! :)
  




Re: Creating a record in database

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

what does the logs say
what version of ofbiz are you using


hairi007 sent the following on 2/22/2009 10:23 AM:
> (ofBiz newbie)
> Hi guys, im using a service to create a record in a database
> All tehe required datas are keyed in a textfield
> service.xml
>   default-entity-name="CustRequest"
> location="org/ofbiz/order/request/CustRequestServices.xml"
> invoke="createCustRequest" auth="true">
> Create a custRequest record and optionally create a
> custRequest item.
>  optional="true"/>
>   optional="true"/>
>optional="true"/>
>   
> 
> 
> 
> and the simple method 
> 
>
> 
>  
>   
> 
>  field="newEntity.custRequestDate"/>
> 
> 
>field="custRequestId"/>
> 
> 
> 
> 
> 
> 
>   
> 
> When i click submit it shows success,however the new record is not reflected
> on my DB when i check ed it from webtools..Need your help ..thnx! :)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJobGwrP3NbaWWqE4RAueVAJ9AG4MQ2atVXg4GfwKe8lMYnU446ACgm28u
fnN8eVg5AIJ1SMJnv2pp5bM=
=BiVE
-END PGP SIGNATURE-