can't do a db insert (with two new columns) its driving me crazy

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

can't do a db insert (with two new columns) its driving me crazy

Patrick-4
I added two fields to the entitymodel definition of facility -- but
when i do a store / insert, the two fields I added are not added to
the DB.

GenericValue facility = delegator.makeValue("Facility", newfacility);
facility.setNonPKFields(context);

Debug.logError("check nonPk fields" + facility, module); //i've
checked it looks fine, my new data is there

toBeStored.add(facility);

try
{
delegator.storeAll(toBeStored);
}

returns success...

why can't it updated my two new columns?
Reply | Threaded
Open this post in threaded view
|

Re: can't do a db insert (with two new columns) its driving me crazy

BJ Freeman
using webtools can you see your new columns?
can you manually add a record with data in the new columns?
if so then would look at code.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Patrick sent the following on 4/9/2010 12:43 PM:

> I added two fields to the entitymodel definition of facility -- but
> when i do a store / insert, the two fields I added are not added to
> the DB.
>
> GenericValue facility = delegator.makeValue("Facility", newfacility);
> facility.setNonPKFields(context);
>
> Debug.logError("check nonPk fields" + facility, module); //i've
> checked it looks fine, my new data is there
>
> toBeStored.add(facility);
>
> try
> {
> delegator.storeAll(toBeStored);
> }
>
> returns success...
>
> why can't it updated my two new columns?
>