El 09/08/13 15:15, Ricardo Aráoz escribió:

Done.
Changed the code you wanted me to try to what I though you really wanted.
Run this code :
        bizTjtas = self.Form.getBizobj(dataSource='Tarjetas')
        bizTjtas.requery()
        ds = bizTjtas.getDataSet()
        bizTjtas.deleteAll()
        bizTjtas.appendDataSet(ds)
        self.Form.save(dataSource='Tarjetas')
        self.Form.requery(dataSource='Tarjetas')
        self.Form.GridTarjetas.refresh()

And the data was deleted but not inserted back.


Now I think I may say I've bumped into a bug.
In the code above I replaced "bizTjtas.appendDataSet(ds)" with :
        for Tjta in ds:
            bizTjtas.new(NroTarjeta=Tjta['NroTarjeta'],
                         Apellido=Tjta['Apellido'],
                         Nombre=Tjta['Nombre'],
                         Ubicacion=Tjta['Ubicacion'],
                         Observaciones=Tjta['Observaciones'])

And it all worked as expected. So we might say that appendDataSet is not working properly?






--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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