Adrian Klaver wrote:
> On 08/25/2010 11:56 AM, Adrian Klaver wrote:
>> On 08/25/2010 10:55 AM, Jim Byrnes wrote:
>>> Adrian Klaver wrote:
>>>> On 08/25/2010 10:03 AM, Jim Byrnes wrote:
>>>>> Will Form.save() save changes to a record or just save new records?
>>>>>
>>>>> I ask because if I edit a dTextBox and then try to save it to a Sqlite
>>>>> db using Form.save() the status bar says it is saving but the record in
>>>>> the db is unchanged.
>>>>>
>>>>> Thanks, Jim
>>>>
>>>> You are looking at the Sqlite db directly or looking at the text in the
>>>> dTextBox? You are looking at the same db as the Dabo app?
>>>>
>>>
>>> Yes to all three. I used my app to make a change and save it. I
>>> shutdown the app and reopened it and the change was not made. I looked
>>> at the db using Sqliteman and verified there was no change. Just to be
>>> sure I could make a change, I made one with Sqliteman. After that I
>>> could see the change in Sqliteman and my app.
>>>
>>> Thamks, Jim
>>> _______________________________________________
>>
>>
>> Have you tried specifying the dataSource in the Form.save()
>> i.e Form.save(dataSource=foo) ?
>>
>
> Oops should be Form.save(dataSource="foo")

I'm not sure if that should be dataSource or DataSource. I tried both 
but neither saved the data.  Using DataSource produced this error: 
TypeError: save() got an unexpected keyword argument 'DataSource'.
dataSource produced no error.

I put a print in the OnHit to be sure it is being called and it is.  I 
tried one other thing. I made a change and then closed the app.  I was 
not prompted to save my change.  I don't know if this is significant or not.

Thanks,  Jim


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to