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 -> PHP

 Codecharge help - Custom PHP

Print topic Send  topic

Author Message
raksmistry

Posts: 4
Posted: 01/14/2010, 1:44 AM

Hi, I'm trying to use Codecharge for a project but need to know:

a) How do I include custom PHP on a codecharge generated page. ie. I want to write custom code to appear for example, in a form table cell - I current see now way of just being able to add PHP there.

b) Can I include pages in my Codecharge project that are custom written in PHP?

Basically I want to do some things manually, as well as using Codecharge.

Many thanks
View profile  Send private message
datadoit
Posted: 01/14/2010, 7:01 AM

raksmistry wrote:
> a) How do I include custom PHP on a codecharge generated page. ie. I want to
> write custom code to appear for example, in a form table cell - I current see
> now way of just being able to add PHP there.
>

CCS is an object and event oriented program, so in your case when you
create your table, it becomes an object for which you have full control
over what happens to it when and where. Drop a CCS form or grid onto
your page, then go to the properties tab for that object and you'll see.
Before showing this object, do this. Or, after showing this object,
do that.

To be more specific for your sample of 'form table cell', you would put
that cell into a CCS panel (make the cell an object), then you can add
custom code to that panel to do whatever you wish (change the style, the
visibility, etc.).

> b) Can I include pages in my Codecharge project that are custom written in
> PHP?
>

Yes. Not a big deal.
jacem

Posts: 87
Posted: 01/14/2010, 4:31 PM

Quote raksmistry:
Hi, I'm trying to use Codecharge for a project but need to know:

a) How do I include custom PHP on a codecharge generated page. ie. I want to write custom code to appear for example, in a form table cell - I current see now way of just being able to add PHP there.

b) Can I include pages in my Codecharge project that are custom written in PHP?

Basically I want to do some things manually, as well as using Codecharge.

Many thanks

In actual fact I have found that you *have* to 'do some things manually, as well as using CodeCharge'. Following on from the previous post, there are many event triggers in reports, grids, editable grid etc...that you can attach / insert custom php code into to take care of any special needs your application has.

I have found that CodeCharge is very flexible and supportive of plugging in custom code - so have no fear and dive in...
View profile  Send private message
raksmistry

Posts: 4
Posted: 01/14/2010, 5:22 PM

Thanks for the info! I suppose I need to work with it a bit more.
I did notice the Custom code on events, my problem currently is getting that code to execute in a certain place. ie. The PHP I have written echo's some text, that needs to appear in a table cell, rather than 'Before Show' or something which echos the output at the start of the HTML page.

How do I include a completely hand written PHP page into my project?
View profile  Send private message
damian

Posts: 838
Posted: 01/14/2010, 5:58 PM

try this:

add a label on the page where you want your menu to display, add custom code in before show event:

$output = implode("", file("http://fqdn/filename));     
$Component->SetValue($output);

set content to html

_________________
if you found this post useful take the time to help someone else.... :)
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.