Welcome Guest, Not a member yet? Register   Sign In
Variables from loaded view
#4

[quote='InsiteFX' pid='317143' dateline='1429699847']

Many thanks for your advice but my issue is this. I have a long code element getting data from a db and setting a number of variables equal to certain data. There are a number of pages requiring the same variables and therefore the same code element, so to be more DRY I wanted to extract the code element to a separate file and load it into every page that needs it.

The variables depend on what is pulled in from the db so I can't set them upfront as global variables. Instead I want to load the code element as well as the variables. In fact want to load in this code element so that it behaves just as if it was originally part of the view.

Sorry if this seems a dumb question.
Reply


Messages In This Thread
Variables from loaded view - by msheath - 04-21-2015, 04:02 PM
RE: Variables from loaded view - by pompeu - 04-21-2015, 05:03 PM
RE: Variables from loaded view - by InsiteFX - 04-22-2015, 03:50 AM
RE: Variables from loaded view - by msheath - 04-22-2015, 08:09 AM
RE: Variables from loaded view - by mwhitney - 04-23-2015, 11:51 AM
RE: Variables from loaded view - by msheath - 04-23-2015, 01:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB