adding a dropdown on existing php file

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
omphilesithole
Posts: 26
Joined: 2015-01-12 13:01

adding a dropdown on existing php file

Post by omphilesithole » 2015-04-16 13:31

hi, i have a project that is currently working i need to add a dropdown/lookup field i cant regenerate the files since i have added some hard codings on the files, i tried to edit the crimereport_view.php, crimereport_dml and the templetes, it has added the dropdown but its not pulling data from the table, it keeps searching do i have to edit another file? which one? cos i made sure on the inccommon.php on the function get_sql_fields and get_sql_from i added the field as well

please assist am not sure what to do because its searching only?

Thanks

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: adding a dropdown on existing php file

Post by a.gneady » 2015-04-16 22:37

The easiest way to manage code in this scenario is to use Git or a similar source code management tool .. what it does is create multiple versions (revisions) of your code, and make it easy to compare revisions and revert any unwanted changes -- whenever you make a change, either manually or using AppGini, you just create a new revision ... When you make manual changes to the generated files and create a new revision in Git, then you make a modification in AppGini and regenerate, Git makes it very easy to compare (diff) the changes and let you merge your edited code into the generated one.

For more details and a walk-through, please check this screencast: http://bigprof.com/appgini/screencasts/ ... de-changes
:idea: AppGini plugins to add more power to your apps:

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 356
Joined: 2013-03-21 04:37

Re: adding a dropdown on existing php file

Post by peebee » 2015-04-17 05:44

Another free and very handy tool for file/folder comparison is Winmerge: http://sourceforge.net/projects/winmerge or http://winmerge.org

A simple GUI and comprehensive file comparison tool laid out in text editor format, side by side. Syntax highlighting and line numbering too. Excellent for determining precise differences in files and what you may have left out.

Don't worry about the ordinary looking website or the fact it hasn't been updated since 2013 - it still works extremely well.

Post Reply