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

 [BUG] [WORKAROUND] Dynamic menu from database

Print topic Send  topic

Author Message
THX1138

Posts: 37
Posted: 06/18/2008, 11:43 AM

Hi all.

I have the following page setup in a project.

Header 1 : database created menu of php links ( menu name - menulink.php )

subHeader: display of session variables and modal popup date selector to change records
( date select -> record number -> update session variable )

page contents..

- - -

I have just implemented this using the CCS menu which previously was not displaying properly, however, now all of my links in my pages and in my menu are passing url parameters from page to page, which i do not want to happen.
( ie: menulink.php becomes menulink.php?param=blablabla etc )

I see in the forum that individual links can be set to not pass parameters, but here my entire menus are passing whatever parameters are on the page before.

Previously, i was using a flash menu with hard coded php links
of the form ( menulink.php ) which was not passing parameters left right and center.

Any clues appreciated..
View profile  Send private message
THX1138

Posts: 37
Posted: 06/18/2008, 4:48 PM

Further troubleshooting carried out shows this to be an issue with menus generated on the fly from a database table.
Static menus pointing to internal .ccp pages work ok without appending all the unwanted paramaters to the urls.

However, the previous still stands, it is buggy when running database driven menus.

Have submitted to support and will post any resolution here
View profile  Send private message
THX1138

Posts: 37
Posted: 06/20/2008, 2:57 PM

WORKAROUND to Database driven Menu lack of configurability

1/ use a hardcoded flash menu with static links ( annoying as have to regenerate menu each time a development change occurs in databse toolset functionality )

2/ CODECHARGE TOOLS JAVASCRIPT MENU WORKS PROPERLY
It allows you to make a database created dynamic menu and control the passing of parameters ( or in this case, not passing of extraneous parameters) between the pages
referred to in the database links fields.

Another cool feature is they have some rather decent documentation, written in "makes sense"



View profile  Send private message
jlaffitte

Posts: 2
Posted: 11/25/2008, 10:48 AM

I always try to leave the generated PHP intact, but this fixes it

at the end of:
//Class_Initialize Event
function clsMenuHeaderMenu1($RelativePath, & $Parent)

search for something like:
$this->ItemLink->Parameters = CCGetQueryString("QueryString", array("ccsForm"));

change it for an empty string.
$this->ItemLink->Parameters = "";

It worked for me.
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.