Alpha Video Training
Results 1 to 5 of 5

Thread: Passing a var between a grid and a a5w page in a div

  1. #1
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Passing a var between a grid and a a5w page in a div

    Having a problem passing a var between a grid and a a5w page in a div.

    I have a simple grid, an id field, and a button. The javascript action button sets the Page URL to the following:

    Testpop.a5w?session.myid={id_footwear}

    Code:
    <body>
    <p>This is a test</p>
    <%a5 
    ?"My var is:" + session.myid
    %>
    </body></html>

    What prints when the page is called: This is a test

    or

    Testpop.a5w?myid={id_footwear}

    Code:
    <body>
    <p>This is a test</p>
    <%a5 
    ?"My var is:" + myid
    %>
    </body></html>
    What prints when the page is called: This is a test



    Neither method is working.

    Any clues to why this will not work?



    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,724

    Default Re: Passing a var between a grid and a a5w page in a div


  3. #3
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Passing a var between a grid and a a5w page in a div

    Quote Originally Posted by Davidk View Post
    That is about passing a javascript variable to xbasic.

    My issue is getting the to the page variable. Should work as illustrated but does not. So I am either missing something real simple or it could be a bug.

    Anyway I think I am going to roll back to the previous patch.

    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  4. #4
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Passing a var between a grid and a a5w page in a div

    Quote Originally Posted by MichaelCarroll View Post
    Having a problem passing a var between a grid and a a5w page in a div.

    I have a simple grid, an id field, and a button. The javascript action button sets the Page URL to the following:

    Testpop.a5w?session.myid={id_footwear}

    Code:
    <body>
    <p>This is a test</p>
    <%a5 
    ?"My var is:" + session.myid
    %>
    </body></html>

    What prints when the page is called: This is a test

    or

    Testpop.a5w?myid={id_footwear}

    Code:
    <body>
    <p>This is a test</p>
    <%a5 
    ?"My var is:" + myid
    %>
    </body></html>
    What prints when the page is called: This is a test


    For some reason it did not occur to me to run this in the browser, just live preview. When I ran it in the browser it worked. Anyone run into that also?


    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  5. #5
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,643

    Default Re: Passing a var between a grid and a a5w page in a div

    Quote Originally Posted by MichaelCarroll View Post
    For some reason it did not occur to me to run this in the browser, just live preview. When I ran it in the browser it worked. Anyone run into that also?
    Working preview doesn't support session variables, but I'm not sure why live preview didn't work.

Similar Threads

  1. Link Grid and A5w page
    By Claire Shuttleworth in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 02-06-2012, 01:39 PM
  2. Pass JS var in a5w page
    By Peter.Greulich in forum Application Server Version 10 - Web/Browser Applications
    Replies: 8
    Last Post: 03-10-2011, 09:24 PM
  3. Is there a var that holds the A5W page name?
    By Steve Wood in forum Web Application Server v6
    Replies: 3
    Last Post: 04-15-2005, 10:45 PM
  4. Problem passing variable to a5w page
    By Ragnar Midtskogen in forum Web Application Server v6
    Replies: 4
    Last Post: 02-18-2005, 09:36 AM
  5. Passing Variables from A5W to a Grid
    By seidel1 in forum Web Application Server v6
    Replies: 3
    Last Post: 02-04-2005, 09:23 AM

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
  •