New call-to-action
Results 1 to 5 of 5

Thread: Show/Hide linked grid using session variable

  1. #1
    Member
    Real Name
    Richard
    Join Date
    Mar 2012
    Posts
    361

    Default Show/Hide linked grid using session variable

    Hi,

    I am having trouble using a session variable to show/hide a linked grid.

    The linked grid is opened from a parent grid via the row expander. When setting the Row Expander Linked Content I am clicking the Show/Hide Expression button and entering Session.Joint = "Hip".

    I am setting the Session.Joint variable using an Ajax callback (via action js) which is triggered by the OnRowSelect client side event of the parent grid. Here is the Xbasic function.

    function SetSessionVariableJoint as c (e as p)

    Session.Joint = e._currentRowDataNew.Joint
    'Note - the grid is read only so e._currentRowDataNew is the property that contains the current row data

    end function

    I have tested the value of Session.Joint and it is correctly set to the value of the Joint field in the parent grid row whenever a parent row is selected.

    The problem I'm having is that the Show/Hide expression works intermittently. Sometimes the grid is shown, other times it is hidden even though Session.Joint = Hip. I just can't pinpoint what is causing the behaviour.

  2. #2
    "Certified" Alphaholic
    Real Name
    Lee Vasic
    Join Date
    May 2010
    Location
    Salt Lake City
    Posts
    1,226

    Default Re: Show/Hide linked grid using session variable

    Is the session variable published in the linked grid?

  3. #3
    Member
    Real Name
    Richard
    Join Date
    Mar 2012
    Posts
    361

    Default Re: Show/Hide linked grid using session variable

    Quote Originally Posted by lvasic View Post
    Is the session variable published in the linked grid?

  4. #4
    Member
    Real Name
    Richard
    Join Date
    Mar 2012
    Posts
    361

    Default Re: Show/Hide linked grid using session variable

    I didn't think I needed to as I am setting the session var each time a row is selected and the show/hide property doesn't say I need to publish it. I will look into it though, thanks.

  5. #5
    Member
    Real Name
    Richard
    Join Date
    Mar 2012
    Posts
    361

    Default Re: Show/Hide linked grid using session variable

    The help shown when you click the Show/Hide Expression button says it is server side, so publishing the session var isn't going to help.

    aashowhide.JPG

Similar Threads

  1. Publish Session Variable and hide/show buttons
    By gregincolumbus in forum Application Server Version 11 - Web/Browser Applications
    Replies: 23
    Last Post: 01-09-2013, 08:19 PM
  2. Show/Hide Linked Grid
    By Charles Hoens in forum Application Server Version 11 - Web/Browser Applications
    Replies: 10
    Last Post: 10-22-2012, 09:55 PM
  3. show/hide expression and a session variable - does it only get 'published' once?
    By workaholic06 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 11-28-2010, 04:33 PM
  4. Session variable and Show/Hide expression
    By kdankwah in forum Application Server Version 10 - Web/Browser Applications
    Replies: 25
    Last Post: 07-31-2010, 09:26 AM
  5. Show/Hide in Dialog based on session variable
    By Tommy Thompson in forum Application Server Version 9 - Web/Browser Applications
    Replies: 4
    Last Post: 09-19-2008, 05:50 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
  •