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.
Comments
-
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.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 155 General Questions
- 149 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 33 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories