Alpha Video Training
Results 1 to 2 of 2

Thread: Automatically Open Detail View on Filtered Record

  1. #1
    Member
    Real Name
    Ken King
    Join Date
    Aug 2007
    Posts
    186

    Default Automatically Open Detail View on Filtered Record

    See attached ShowDetailView2.jpg. When I click Submit on the Ajax dropdown window, I have code that loops through the records in the Subject table, clips the subject together and puts the clipped data in the Subject field of my Item table. What I need is:
    1. Close the Ajax Dropdown window when I click submit. What's the code to close and Ajax Dropdown after Submit?
    2. Refresh the Detail View window so it has the updated data that has been saved into the Subject field of the Item table. If I redirect back to my list of Items using a filter, my detail view closes when the user would still have more data to enter on in that detail view.

    If I can't do the 2 things above, does anyone have a better approach.

  2. #2
    Member
    Real Name
    Ken King
    Join Date
    Aug 2007
    Posts
    186

    Default Re: Automatically Open Detail View on Filtered Record

    I entered the following Javascript Code in the On Row Render event. The detail view now opens when I go to that page. Since I will only have 1 filtered record I am opening RowNumber (1).

    Code:
    {grid.Object}.detailViewToggle(1)
    How do I add a condition. I tried the following and it didn't work.

    Code:
    If (1 = 1)
    {
    {grid.Object}.detailViewToggle(1)
    }
    What I eventually want is something like the following with a session variable:



    Code:
    If (session:WhatItemID = 1)
    {
    {grid.Object}.detailViewToggle(1)
    }
    Still trying to figure out what javascript I would use to close an Ajax Dropdown Window after clicking Submit.

Similar Threads

  1. Open detail view to blank fields (new record)
    By Rich Hartnett in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 07-30-2009, 12:21 PM
  2. Detail View Link Only Select First Record
    By graysarge in forum Alpha Five Version 7
    Replies: 2
    Last Post: 01-28-2007, 05:40 PM
  3. Open DB automatically
    By bryanstrader in forum Alpha Five Version 7
    Replies: 4
    Last Post: 07-11-2006, 11:20 AM
  4. Grid View with Detail View To Add New Records
    By Jeff Benson in forum Web Application Server v7
    Replies: 2
    Last Post: 05-26-2006, 10:28 AM
  5. Detail View
    By Howard G. Cornett in forum Web Application Server v6
    Replies: 2
    Last Post: 04-15-2005, 05:20 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
  •