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 -> General/Other

 Variables not populating

Print topic Send  topic

Author Message
amfonline

Posts: 7
Posted: 04/28/2007, 7:15 AM

I need help figuring out what is wrong with my situation. I have installed the latest version of CCS and am creating forms to beat the band. Only problem? The variables do not populate with actual data upon publishing. I am solid on database apps, but weak to medium on php so I apologize if this is something really REALLY stupid... I have tried this on my local machine AND my web host with the same result. Both connect in, and when I use the Visual Query Builder I do in fact see the data.

To see what I see, http://www.stsiweb.com/Lean/Login.html

Sorry - I attempted to include the codes but kept running into a max size issue with the post.

In addition, I have installed the Examples, and the same thing happens.

TIA for any help,
Angela.
View profile  Send private message
amfonline

Posts: 7
Posted: 04/28/2007, 10:15 AM

Something very odd happened. I split my .html and my other files (.php, .js) - and magically, this issue went away. On to the next opportunity, but wondering "why"? If anyone can shed light as to why this would happend, I would like to know for future reference.

Thanks again,
Angela.
View profile  Send private message
wkempees
Posted: 04/28/2007, 11:39 AM

The problem you are experiencing is not a CCS problem per sé.

Basicaly you are using CCS to generate .php .js and .htm files, using PhP
with Templates.
Your webserver will render any .html you feed it.
You should however not use YourForm.html as the URL but YourForm.php.
Apache will then execute/parse the .php file and that will call the htm
template.
One way of solving this "problem" is telling your webserver to change the
order of processing YourForm if it has no extension.
The other way, and I use this daily, is to use the Template Direcory
directive in Project settings.
if you enter tpl or template there, CCS will when generating create a
directory wuthj that name, place the .html in that and the .php code will
call those.
You have then separated your programming from your presetation layer.

It is in the docs.

Walter
Have fun


"amfonline" <amfonline@forum.codecharge> schreef in bericht
news:24633571399190@news.codecharge.com...
>I need help figuring out what is wrong with my situation. I have installed
>the
> latest version of CCS and am creating forms to beat the band. Only
> problem?
> The variables do not populate with actual data upon publishing. I am
> solid on
> database apps, but weak to medium on php so I apologize if this is
> something
> really REALLY stupid... I have tried this on my local machine AND my web
> host
> with the same result. Both connect in, and when I use the Visual Query
> Builder
> I do in fact see the data.
>
> To see what I see, http://www.stsiweb.com/Lean/Login.html
>
> Sorry - I attempted to include the codes but kept running into a max size
> issue
> with the post.
>
> TIA for any help,
> Angela.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

amfonline

Posts: 7
Posted: 04/28/2007, 12:39 PM

Thank you. I guess I stumbled upon the answer by separating the templates folder then. Didn't see it in the docs, but I was probably looking in the wrong spot (or right at it and didn't realize).

I will just know to do what I normally do anyway, which is separate html and php into subfolders and I will not have an issue.

Really enjoying CCS so far - just need to get more familiar.

Thanks again,
Angela.
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.

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.