Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cannot modify a read only dataset error message

504 views
Skip to first unread message

pcerdaz

unread,
Sep 3, 2007, 3:02:27 PM9/3/07
to
Hello,

I'm trying to add a record using a form that user must populate, as I do in
other tables, but there is a table of the same database that show the next
error message: "cannot modify a read only dataset". I'm using a simple
Append() method, as I do in other tables that works well. any idea about
which can be the problem?

Regards,
pcerdaz


Jeff Overcash (TeamB)

unread,
Sep 3, 2007, 6:26:14 PM9/3/07
to

First do you have an InsertSQL (assuming you are using TIBDataset). If not then
you need to add one. Second look at the LiveMode and make sure Insert is in
there. If not then you have a permission problem on that table.

> Regards,
> pcerdaz
>
>


--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted corridors of Whitehall.
(Fish)

pcerdaz

unread,
Sep 4, 2007, 8:55:43 AM9/4/07
to
I'm sorry; what is LiveMode?

Regards,
pcerdaz

"Jeff Overcash (TeamB)" <jeffov...@mindspring.com> escribió en el mensaje
news:46dc8a0a$1...@newsgroups.borland.com...

Jeff Overcash (TeamB)

unread,
Sep 4, 2007, 1:04:42 PM9/4/07
to
pcerdaz wrote:
> I'm sorry; what is LiveMode?
>

A property in TIBDataset. It tells you what permissions you have on the table
you are trying to update.

pcerdaz

unread,
Sep 10, 2007, 9:59:32 PM9/10/07
to
This problem was solved, but now I have another problem to which I can't
found what is happend: at the Post() method application is showing next
error message: "cannot focus a disabled or invisible window". This is the
code:

TFormFormularioIngredientes *FormFormularioIngredientes;
FormFormularioIngredientes = new TFormFormularioIngredientes(NULL);
DMTEC->IBDS_Ingredientes->Append();
if(FormFormularioIngredientes->ShowModal() == mrOk)
DMTEC->IBDS_Ingredientes->FieldByName("FechaCosto")->AsString =
DateToStr(Date());
else
DMTEC->IBDS_Ingredientes->Delete();
DMTEC->IBDS_Ingredientes->Post();

Any idea would be gratefully.

Regards,
pcerdaz

"Jeff Overcash (TeamB)" <jeffov...@mindspring.com> escribió en el mensaje

news:46dd9036$1...@newsgroups.borland.com...

0 new messages