Subject | Re: [IBO] How to get the IBO object that caused the error? |
---|---|
Author | IMB T |
Post date | 2002-10-03T07:13:17Z |
"Helen Borrie" <helebor@...> wrote in message
news:5.1.0.14.2.20021002180845.0f1f1ea0@......
For example, I have a Unique Key violation because the user entered a
duplicate value 'somewhere' in the system.
It sould be very nice for me to have that dataset available in the error
handler to do a <that dataset>.Cancel
caused by an TIBOQuery:
Err: ISC ERROR CODE:335544349
ISC ERROR MESSAGE:
attempt to store duplicate value (visible to active transactions) in unique
index "IDXNAME"
STATEMENT:
TIB_Statement:
"<TApplication>.frmMain.fraAFinder1.ibtViwAcc.IBOqribtViwAcc.<TIB_UpdateSQL>
.<TIB_Statement>."
STATEMENT:
TIBOInternalDataset:
"<TApplication>.frmMain.fraAFinder1.ibtViwAcc.IBOqribtViwAcc."
I need, as I stated before, the object(s) which are represented by the above
string(s) in order to issuse an appropiate centralized action (based on the
user choice), something like 'Do you want to rollback your edit?'
news:5.1.0.14.2.20021002180845.0f1f1ea0@......
> At 09:00 AM 02-10-02 +0300, you wrote:Of course, but how can I get _that_ pointer?
> >How to get the IBO object that caused the error?
> >
> >When we have an error in TIB(O)Database we have the also, as string, the
> >full path of one (or two) IBO objects which triggered the error.
> >
> >How can we have a pointer to that object?
>
> All object references in Delphi are pointers.
>
For example, I have a Unique Key violation because the user entered a
duplicate value 'somewhere' in the system.
It sould be very nice for me to have that dataset available in the error
handler to do a <that dataset>.Cancel
>Perhaps I wasn't clear in my message. For example I have the following error
> >Why we have two objects sometimes? The second one is the encapsulated
> >TIB_query of TIBO component?
>
> Yes. The InternalDataset property gives you run-time access to the
> TIB_BDataset wrapper of the TIBOQuery.
>
> Helen
>
caused by an TIBOQuery:
Err: ISC ERROR CODE:335544349
ISC ERROR MESSAGE:
attempt to store duplicate value (visible to active transactions) in unique
index "IDXNAME"
STATEMENT:
TIB_Statement:
"<TApplication>.frmMain.fraAFinder1.ibtViwAcc.IBOqribtViwAcc.<TIB_UpdateSQL>
.<TIB_Statement>."
STATEMENT:
TIBOInternalDataset:
"<TApplication>.frmMain.fraAFinder1.ibtViwAcc.IBOqribtViwAcc."
I need, as I stated before, the object(s) which are represented by the above
string(s) in order to issuse an appropiate centralized action (based on the
user choice), something like 'Do you want to rollback your edit?'
>___________________________________________________________________________
>
>
> IB Objects - direct, complete, custom connectivity to Firebird orInterBase
> without the need for BDE, ODBC or any other layer.___________________________________________________________________________
>
> http://www.ibobjects.com - your IBO community resource for Tech Infopapers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>