|
Fusebox
|
Instead of trying to edit the original XFA entry (I lack the energy right now) I am adding a copy from the Fusebox forums that I beleive give an excellent explaination and use case for XFAs This is the circuit xml, all your fuseactions look like this. The xml you put here gets written into CF (or PHP) automatically by the core files into a "parsed" version of your fuseaction. XFA stands for "eXit FuseAction". Basically, any exit from a fuseaction that has a viewable component, if that exit is to another fuseaction in your application it should be parameterized into an XFA, instead of being hard-coded into your display code. Using the above example, you would go from this: to There are some very real benefits to doing this.
Here's the code for dsp_member_adminform.cfm: Using the code above, this form page is now completely insulated from any need for knowledge of the application, it runs using the parameters passed into it. If those parameters change then the output will change but you won't need to update the code on the form page. And, since I'm passing in the query "member_byid" to both fuseactions, This form is now usable for both fuseactions. In the case of the addform fuseaction the values of member_byid.MemberFirstName and MemberLast name will both be empty, so it will be a blank form. In the case of the editform fuseaction the data in the form is populated. And there you go! Two fuseactions for the price of one! |