Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Programming > Database Integration
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

Database Integration How to use MySql, PostgreSQL, MS SQL, Oracle, and most other databases with PHP.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23rd November 2008, 12:02
D4PHP Newbie
 
Join Date: Nov 2008
Posts: 7
Eric ten Westenend is on a distinguished road
Default Edit with datasource/datafield

Hi

I'm having a grid and a edit on my form.
The grid shows the data
The edit throws a error:

'Trying to access non-existant property IBTable->Achternaam in classes.inc.php

Datasource/Datafield of the edit is filled!

What i'm doing wrong?

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 23rd November 2008, 19:08
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Probably need more info unless this helps.

If I put an edit with a valid dataSource and a bogus field I get this error
Quote:
Application raised an exception class <b>EPropertyNotFound</b> with message <b>'Trying to access non-existant property Table->froglegs in dbtables.inc.php, line 603.'</b>
If I edit the datasource into something else I get
Quote:
'Trying to access non-existant property Unit11->dscategoriffes1 in classes.inc.php, line 1317.'
So just make sure you are picking something from the datasource dropdown and not typing your own.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 24th November 2008, 19:27
D4PHP Newbie
 
Join Date: Nov 2008
Posts: 7
Eric ten Westenend is on a distinguished road
Default

Hi

The datafield is not a dropdown selection of the fields in the dataset attached to the datasource, so i have to fill that name manually. I'm sure the field exists because its also show in the grid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 24th November 2008, 19:29
D4PHP Newbie
 
Join Date: Nov 2008
Posts: 7
Eric ten Westenend is on a distinguished road
Default

Hi

the exact error:

Application raised an exception class EPropertyNotFound with message 'Trying to access non-existant property IBTable->Achternaam in classes.inc.php, line 1633.'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 24th November 2008, 19:32
D4PHP Newbie
 
Join Date: Nov 2008
Posts: 7
Eric ten Westenend is on a distinguished road
Default See attachment

Hi

As you can see the field Achternaam is in the dataset.

Eric
Attached Images
File Type: jpg error.JPG (63.8 KB, 17 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 24th November 2008, 19:36
D4PHP Newbie
 
Join Date: Nov 2008
Posts: 7
Eric ten Westenend is on a distinguished road
Default

Hi

Now it works, still did not do anything else, so i do not understand that it suddenly works!

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 24th November 2008, 19:38
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

The dbgrid shows it as all caps. Could it be case specific?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 24th November 2008, 19:47
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Quote:
Now it works, still did not do anything else, so i do not understand that it suddenly works!
It's all pretty much smoke and mirrors.

error line #1633.
$value=$this->_datasource->Dataset->fieldget($fname);
This line just returns the fields value that it will assign to the edit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 21st September 2009, 16:00
D4PHP User
 
Join Date: Jan 2009
Posts: 78
misko is on a distinguished road
Lightbulb

I have this problem often...

In IE7(IE8) got error and FF was ok...

To solve this problem you must clear you cache from you browser , and it works without any changes in your source.

It happends in my case if i often start project from IDE , WITH DEBUGER . Have noticed too that i never had this problem when i start it without debuger.

Hope my experience will help you too
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:30.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use