CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 ::: Field Method 'f' Not Always Returning Results

Print topic Send  topic

Author Message
klwillis


Posts: 428
Posted: 01/02/2005, 9:11 AM

Occasionally, I've noticed that the field method on a recordset
datasource object does not always return a result:

For example an expression similar to this may return
NULL at times:

$ACCOUNTRECORD->ds->f("debit");


To get around this problem, I have to create a seperate
connection object and do a query for the value
similar to the following:

global $DBACCOUNT;

$debit = CCDLookUp("debit","ACCOUNT","id = 10000",$DBACCOUNT);


Has anyone else experienced this problem with the field
method on a recordset object not returning results?

I'd like to here from others experiences. :-)

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
RonB

Posts: 228
Posted: 01/09/2005, 7:32 AM

It all depends on why and how you are using it. Basically in a grid no field is acessible unless used in the grid. The rest is simply not retrieved. I made the same assumption at first. That also explaines why it does work after performing your own query to the database.

Second..... from the sparse example you give a simple question arises.....wich record in the set are you trying to retrieve? If the recordset has 30 records, each containing the field "debit", wich one are you expecting to be displayed?
View profile  Send private message
klwillis


Posts: 428
Posted: 01/09/2005, 9:06 AM

Quote RonB:
It all depends on why and how you are using it. Basically in a grid no field is acessible unless used in the grid.

The rest is simply not retrieved. I made the same assumption at first. That also explaines why it does work after performing your own query to the database.
>>> Not always True, but I've seen the problem occur here also.

Second..... from the sparse example you give a simple question arises.....wich record in the set are you trying to retrieve? If the recordset has 30 records, each containing the field "debit", wich one are you expecting to be displayed?
You may have a point here - most likely, things will work as expected
after executing the select statement based on the condition to select
one record.

Thankyou. ;-)


_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.