CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 GetValue and GetText methods

Print topic Send  topic

Author Message
andrea

Posts: 18
Posted: 11/19/2008, 2:07 AM

Hi all,

Can someone explain me the difference between GetValue method and GetText one?
Do I have to use GetText in some cases or can I always use GetValue?


Thanks,

Andrea
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 11/19/2008, 9:32 AM

andrea,
That's a very good question. I want to say that they are the same and that GetText has probably been depreciated and that GetValue is more commonly used ( but I'm not a 100% sure). I use GetValue. GetText is in the CCS documentation (as an example) but it is not referenced in the PHP methods/functions list which leads me to believe that it has been depreciated.
View profile  Send private message
feha


Posts: 712
Posted: 11/20/2008, 1:19 AM

The difference should be:

GetText() is more for VARCHAR
GetValue() is for INTEGER Values ...

but both work same :-)

I use more often GetValue() ...

_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
andrea

Posts: 18
Posted: 11/20/2008, 3:29 AM

Thanks for your replies; I went in Classes.php and what I think is that GetValue is generic and GetText is not.
My question arised form the examples in the manual where GetText was used (even if unreferenced) in place of GetValue to build a mail message.
The doubt was: if YesSoftware example uses GetText it is probably better to do the same, but why?

Andrea
View profile  Send private message
boolean

Posts: 62
Posted: 11/20/2008, 7:22 AM

To me, they are the same EXCEPT the date data. Let say you have a field call date_submitted and the value in database is 2008-11-29.
As you set the Format Date is ShortDate, you will have

$x = $Component->date_submitted->GetValue(): $x =Array()
$x = $Component->date_submitted->GetText(): $x = 11/29/2008

If I am wrong, please post.
View profile  Send private message
jjrjr1


Posts: 942
Posted: 11/20/2008, 7:41 AM

Boolean is exactly correct.

The array is also useful for adding and checking date values.

If anyone wants to know the Array structure, let me know. I have it figured out somewhere in my archives.

Have fun

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 11/20/2008, 7:20 PM

andrea,
I should mention that there are functions that are not documented in CCS that can be used. Maybe we should ask support to add all functions in their documentation.
View profile  Send private message
andrea

Posts: 18
Posted: 11/21/2008, 12:51 AM

Quote mamboBROWN:
andrea,
I should mention that there are functions that are not documented in CCS that can be used. Maybe we should ask support to add all functions in their documentation.
I totally agree. In my experience I found functions that were really "life saver", particularly when performing custom inserts or custom updates.
View profile  Send private message
songohan

Posts: 89
Posted: 12/05/2008, 3:35 AM

Do you have any list of those functions to share?

Thnx,
View profile  Send private message
maxhugen

Posts: 272
Posted: 12/14/2008, 8:00 PM

I'll put my hand up for a list of undocumented functions too!

Perhaps someone could start a new post, add the functions they know of, and then others can add onto the list?
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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