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
|
 |
 |
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...
|
 |
 |
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?
|
 |
 |
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.... :)
|
 |
 |
|