Subject | [IBO] Re:Record was not located to update |
---|---|
Author | dmarmur2002 |
Post date | 2005-09-23T18:17:19Z |
I only use the native stuff and no cached updates. But I had the same
problem when one of the key fields was "translated" with GetText
events. If you have an GetText event (for one of the PK columns)
installed it will translate the "code" to user visible text (if thats
what it's for in the first place) even "inside" IBO. But, if you edit
the the PK fields as-is this is not the source of your problem.
/Dany
--- In IBObjects@yahoogroups.com, Johannes Pretorius <johannes@p...>
wrote:
problem when one of the key fields was "translated" with GetText
events. If you have an GetText event (for one of the PK columns)
installed it will translate the "code" to user visible text (if thats
what it's for in the first place) even "inside" IBO. But, if you edit
the the PK fields as-is this is not the source of your problem.
/Dany
--- In IBObjects@yahoogroups.com, Johannes Pretorius <johannes@p...>
wrote:
> Sorry for asking this again, but can somebody please see if thangive us any ideas on how to fix this
>are ON.
> Thanks
>
> Good day All
> -=00-=-0=-0=
>
> WE are havbing a problem where we use IBOQuery where Cached Updates
> We use a normal TDataSet and a Normal TDBGrid and normalD5 or D2005)
> TDBEdit .
>
> IBObjects 4.5 Ai
>
> Delphi version : 3
> (We want to convert all db access to IBO before converting over to
>located to update)
> The Interbase version is 5.6
>
> Ekstra information regarding this.
>
> KeyLinks :
>
> MEDICAL_AID.CODE
> MEDICAL_AID.RATE_CODE
>
> Scenario
>
> WE Edit a Record. Do a post and then a Database.ApplyUpdates([Query]);
>
> The funny part is that when the error pops up (Record was not
> the DBGrid that we have in the background has MULTIPLES of only ONEentry over and over again.
> When we click okay the Grid displays normal again.update and display on grid.
>
> We have narrowed the problem down to the procedure in IBODataset
>
> procedure TIBOUpdateSQL.ExecSQL
>
> The following information is for the Query Component that we use to
>intended
> //============ QUERY ==================
> SELECT
> CODE
> , NAME
> , RATE_CODE
> , ADMINISTRATOR_NAME
> , CPT4
> , PERCENTAGE
> , PATIENT_PERCENTAGE
> , REFERENCE_VALIDATION
> , REFERENCE
> , EMPLOYER
> , MESSAGE_NUMBER
> , DATE_ENTERED
> , MASK
> , OLD_CODE
> , ELIG_ENABLED
> , CLAIMS_ENABLED
> , EDI_TEMPLATE
> , CLAIMBEFOREEXPORT
> , CLAIMS_ADDR
> , ELIG_ADDR
> , CLAIM_PART_ADDR
> , NOTE
> , ENABLED
> , VERSTEK
> , BTW_NOMMER
> FROM MEDICAL_AID
>
> //================ END QUERY ==================\
> //================= UPDATE ==================
> UPDATE MEDICAL_AID SET
> CODE = :CODE, /*PK*/
> RATE_CODE = :RATE_CODE, /*PK*/
> NAME = :NAME,
> ADMINISTRATOR_NAME = :ADMINISTRATOR_NAME,
> CPT4 = :CPT4,
> PERCENTAGE = :PERCENTAGE,
> PATIENT_PERCENTAGE = :PATIENT_PERCENTAGE,
> REFERENCE_VALIDATION = :REFERENCE_VALIDATION,
> REFERENCE = :REFERENCE,
> EMPLOYER = :EMPLOYER,
> MESSAGE_NUMBER = :MESSAGE_NUMBER,
> DATE_ENTERED = :DATE_ENTERED,
> MASK = :MASK,
> OLD_CODE = :OLD_CODE,
> ELIG_ENABLED = :ELIG_ENABLED,
> CLAIMS_ENABLED = :CLAIMS_ENABLED,
> EDI_TEMPLATE = :EDI_TEMPLATE,
> CLAIMBEFOREEXPORT = :CLAIMBEFOREEXPORT,
> CLAIMS_ADDR = :CLAIMS_ADDR,
> ELIG_ADDR = :ELIG_ADDR,
> CLAIM_PART_ADDR = :CLAIM_PART_ADDR,
> NOTE = :NOTE,
> ENABLED = :ENABLED,
> VERSTEK = :VERSTEK,
> BTW_NOMMER = :BTW_NOMMER
> WHERE
> CODE = :OLD_CODE AND
> RATE_CODE = :OLD_RATE_CODE
>
> //============== END UPDATE==================
>
> Any help will be appreciated.
>
> Thanks in Advance
>
> Johannes Pretorius
> (Programeerings Departement- Promed)
>
> Tel : +27 11 607-3300
> Faks : +27 11 622-6939
> webtuiste : http://www.promed.co.za
>
> This email and any files transmitted with it are confidential and
> solely for the use of the individual or entity to whom they areaddressed.
> If you are not the intended recipient, any review, re transmission,22/09/2005
> disclosure, copying, modification or other use of this email message or
> attachments is strictly forbidden. If you receive this email message in
> error, please contact the author and delete the message and any
> associated files from your computer. Also the contents of this e-mail
> is considered confidential.
> Thank you
>
> ----------
>
>
>
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.5/110 - Release Date:
>
>
> [Non-text portions of this message have been removed]