CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 function if with php

Print topic Send  topic

Author Message
bouvet

Posts: 24
Posted: 03/06/2004, 9:19 AM

Hello,
I need to write with Php a small function

::: if the field "group_id" is empty write "1" in the field. It will include in a before load event.

This field must contain a number

Thank you

_________________
Webdesign Hildesheim Hannover
http://www.actidesign.com
View profile  Send private message
rhostager
Posted: 03/06/2004, 4:54 PM

global $my_form_name;
if ($my_form_name->group_id->GetValue() == "") {
$my_form_name->group_id->SetValue("1");
}

Substitue the actual name of your form into $my_form_name. If the name of your form is 'employees' then the first line of code would be:
global $employees;

Hope this helps,

- Rob
RonB
Posted: 03/08/2004, 10:59 AM

On Sat, 06 Mar 2004 09:19:22 -0800, bouvet wrote:

> Hello,
> I need to write with Php a small function
>
> ::: if the field "group_id" is empty write "1" in the field. It will include in a before load event.
>
> This field must contain a number
>
> Thank you
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
You could also set it as a parameter in the query wizzard with default
value 1 . If no parameter is passed through url the 1 value will be used.
No need to use a function :-)

RonB

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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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