Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cfdiv, cfinvoke and variable scope.

    Hi Everyone,

    I am having a problem with a cfdiv tag that I am using in one of my pages, say page1.cfm. It is bound to a url, page2.cfm which then calls a cfc to retrieve some data. The data is passed back from the cfc to page2.cfm and I can output the data and manipulate it etc. However, back in page1.cfm where my cfdiv resides I don't have access to any of that data.

    I guess I assumed that the cfdiv would work along the same lines as cfinclude when it comes to variables and just act as if it were all in the same page but it appears not.

    I can kind of get around it by assigning the cfc's resultant data to a session variable but it throws an error when a new session is spawned and the page is first visited as the session variable doesn't exist yet. Again I could get around this by testing for it's existence etc but it seems like a convoluted way to solve this problem.

    Am I missing something fundamental here?
    FBN.

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    Thanked 70 Times in 69 Posts
    Hmm, I'm not getting a clear picture of exactly what you're trying to do. Post your code though and I'll take a look.

    -Greg


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •