Alpha Video Training
Results 1 to 14 of 14

Thread: video UX_V12-175 and saveToSessionFile to create report pdf

  1. #1
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default video UX_V12-175 and saveToSessionFile to create report pdf

    Creating a report pdf using the methods in the video it works in the embededmode, but in live preview where it uses saveToSessionFile to create the pdf I get the error "property not found" when saveToSessionFile(temppdffilename ,key) is executed
    temppdffilename := C:\Users\bruce\AppData\Local\Temp\tmpD7DC.pdf
    key := A5Sessionfile_e0846e559f614280ba3bea0edb1f3372.pdf

    I looked at the function in documentation and it looks like it is correct

    has anyone else tried this ? since there wasn't a sample file included with the video I had to create the xbprint from what I saw in the video, I think I got everything typed correctly and it does work using the embededmode portion of the code
    Bruce Rainwater

  2. #2
    "Certified" Alphaholic kkfin's Avatar
    Real Name
    Kenneth
    Join Date
    Dec 2006
    Location
    EU
    Posts
    1,535

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    Does live preview support sessions?

  3. #3
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    good question, guess I'll have to publish the sample and see if it works then
    Bruce Rainwater

  4. #4
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,351

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    option B is to use the onInitialize event to create the session object/variables when you are not in a web session.

  5. #5
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    I tried option B first - same result
    published and tried again - same result "property not found" when saveToSessionFile(temppdffilename ,key) is executed
    Bruce Rainwater

  6. #6
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,351

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    ok...let's let Alpha do the work.
    Put a debug(1) statement in the onInitialize event.
    Check to see where Alpha tells you session.Session_Folder is.
    For me, it is C:\Users\installer\AppData\Local\Temp\AlphaAnywhere\p_12364\.

  7. #7
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    I get a message "The session_Folder property is no longer supported"
    Bruce Rainwater

  8. #8
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    I tried it again C:\Users\bruce\AppData\Local\Temp\AlphaAnywhere\p_30112\
    Bruce Rainwater

  9. #9
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    I looked at the folder, it does have the pdf file I am trying to create in it
    Bruce Rainwater

  10. #10
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,351

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    That's what I was hoping for.
    Maybe the message is way ahead of the implementation.

  11. #11
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    If I look for session.Session_Folder while in working preview I can read it
    in Live preview I get the error message
    and it's in Live preview or published I have the problem with saveToSessionFile() (it's not used in working preview)
    Bruce Rainwater

  12. #12
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,351

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    I haven't read all the stuff yet, but this should be a step in the right direction.
    https://documentation.alphasoftware....20Sessions.xml

  13. #13
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,351

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    Just in case some bingery changes happen, I'm putting the "forever" url into this thread.
    https://documentation.alphasoftware....0in%20sessions.

  14. #14
    Member
    Real Name
    Bruce Rainwater
    Join Date
    Sep 2005
    Posts
    198

    Default Re: video UX_V12-175 and saveToSessionFile to create report pdf

    Thanks, that's a lot more information than was available when I looked up saveToSessionFile()
    Time to go ring in the new year, so I'll look at this next year
    Thanks for looking that up

    Happy new year
    Bruce
    Bruce Rainwater

Similar Threads

  1. Video Ad Playing Before Video In Video Component Plays
    By swest in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 03-16-2017, 08:14 PM
  2. Login - Mobile - PhoneGap - Video UX_V12--66
    By CarlMPearson in forum Mobile & Browser Applications
    Replies: 10
    Last Post: 11-07-2014, 03:00 PM
  3. Best Practice for sub-components in mobile applications - video UX_V12--54
    By ssmoore1 in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 11-14-2013, 04:41 PM
  4. Video: Create dynamic Linked Content Areas
    By Steve Wood in forum Application Server Version 10 - Web/Browser Applications
    Replies: 4
    Last Post: 03-09-2011, 05:06 PM
  5. Video : Create A Read Only Detail View With Group Security
    By Bob Moore in forum Application Server Version 10 - Web/Browser Applications
    Replies: 6
    Last Post: 03-27-2010, 06:38 PM

Bookmarks

Posting Permissions

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