CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Field Formatting

Print topic Send  topic

Author Message
Francis Boundy
Posted: 08/08/2001, 6:01 AM

How can I change the formatting of numerical and/or date fields in CC?

Alexey Alexapolsky
Posted: 08/08/2001, 6:49 AM

This is done in Form properites/Events/Before show" event , e.g.

fldprice = FormatCurrency(fldprice)

CC automatically creates variables for form/database fields.
They contain field values that you can feel free to change.
"fld" is a standard prefix for cc field variable. For instance
if field name is price then corresponding cc variable is named fldprice.
You can manipulate them through events.


--
Alex

Francis Boundy <fboundy@troyikoda.com> wrote in message
news:9krd5v$el7$1@news.codecharge.com...
> How can I change the formatting of numerical and/or date fields in CC?
>
>

Don Oldenburg
Posted: 08/08/2001, 2:25 PM

GREAT -- that works nicely... Except when you have it on an form to
update--Then it has a problem writing it back to the database. I am
assuming we need an opposite event on a "before update" event... something
like formatdecimal or formatnumber? I know it bombed out on formatdecimal,
haven't tried number yet.

Don



"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:9krg1l$kti$1@news.codecharge.com...
> This is done in Form properites/Events/Before show" event , e.g.
>
> fldprice = FormatCurrency(fldprice)
>
> CC automatically creates variables for form/database fields.
> They contain field values that you can feel free to change.
> "fld" is a standard prefix for cc field variable. For instance
> if field name is price then corresponding cc variable is named fldprice.
> You can manipulate them through events.
>
>
> --
> Alex
>
> Francis Boundy <fboundy@troyikoda.com> wrote in message
>news:9krd5v$el7$1@news.codecharge.com...
> > How can I change the formatting of numerical and/or date fields in CC?
> >
> >
>
>

Don Oldenburg
Posted: 08/08/2001, 2:29 PM

formatnumber() sorta worked... it drops the pennies though...

"Don Oldenburg" <don.oldenburg@cacmnet.com> wrote in message
news:9ksaok$dql$1@news.codecharge.com...
> GREAT -- that works nicely... Except when you have it on an form to
> update--Then it has a problem writing it back to the database. I am
> assuming we need an opposite event on a "before update" event...
something
> like formatdecimal or formatnumber? I know it bombed out on
formatdecimal,
> haven't tried number yet.
>
> Don
>
>
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:9krg1l$kti$1@news.codecharge.com...
> > This is done in Form properites/Events/Before show" event , e.g.
> >
> > fldprice = FormatCurrency(fldprice)
> >
> > CC automatically creates variables for form/database fields.
> > They contain field values that you can feel free to change.
> > "fld" is a standard prefix for cc field variable. For instance
> > if field name is price then corresponding cc variable is named fldprice.
> > You can manipulate them through events.
> >
> >
> > --
> > Alex
> >
> > Francis Boundy <fboundy@troyikoda.com> wrote in message
> >news:9krd5v$el7$1@news.codecharge.com...
> > > How can I change the formatting of numerical and/or date fields in CC?
> > >
> > >
> >
> >
>
>


   


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.