CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Where to place a custom function

Print topic Send  topic

Author Message
Peter
Posted: 02/15/2006, 4:09 PM

I am wanting to place a custom e-mail message function that I have created in a page so that is available for "after Insert" and After Update" events and wondered if there was any specific place that it had to go?
Benjamin Krajmalnik
Posted: 02/15/2006, 10:32 PM

If you want it to be available only in that page, I would place it at the bottom of the page_events.php page.
If you want it's context to be global (available in every page), place it at the bottom of common.php

You did not mention which target language you are usin, so I assumed PHP.
Peter
Posted: 02/16/2006, 6:47 AM

You are right - PHP

Thanks
Walter Kempees
Posted: 02/16/2006, 6:54 AM

someone said it could also be put in the Page's AfterInitialize
I used a
include_once("function_name.php");
with success.

<BenjaminKrajmalnik@forum.codecharge (Benjamin Krajmalnik)> schreef in
berichtnews:243f41c6a4d41d@news.codecharge.com...
> If you want it to be available only in that page, I would place it at the
> bottom
> of the page_events.php page.
> If you want it's context to be global (available in every page), place it
> at
> the bottom of common.php
>
> You did not mention which target language you are usin, so I assumed PHP.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Nader
Posted: 02/16/2006, 8:28 AM

IF you want it to be available for After Inserto or Update of a particular for, you could Add Action Send Email to those events and replace the code the tool generates with what you have.
wkempees


Posts: 1679
Posted: 02/16/2006, 10:23 AM

Whatever way works for you, stick to using one and always the same method.
So that later you'll be able to remeber where you put it.


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.