spacer
cornerspacercorner
Reply
Occasional Advisor
jmeyer
Posts: 12
Registered: 01-31-2011
0 Kudos
Accepted Solution

Problems with button and Grid

I would like to make my button visible based on criteria selected in the grid.  This button then runs a SQL statement which makes that row disappear from the grid.  Currently I am using a checkbox to get the grid data and running a true/false test to determine whether or not to show the button.  The problem is that this data is not refreshing the checkbox after I remove taht row.  While it appears like a new row is selected it is not, the ID remains on the same row even after it disappears from the grid.  Commit action is not applicable to this situation and I would prefer to avoid client script if possible.

Occasional Advisor
jmeyer
Posts: 12
Registered: 01-31-2011
0 Kudos

Re: Problems with button and Grid

I figured this one out on my own.

 

In case anyone is curious, my problem was that I was using a server action button to run an Update query.  For some reason when I ran this update query which pulled an ID from the selected row of a grid it ran the query a second time when I ran a client script action on a different button.   This was causing my update to be run twice on 2 different rows.  My solution was to use a client script button which used javascript to push the server script button, then I used javascript to immediately refresh the page.  This seems like kind of a hassle but it worked.

line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line