scribblemilk Posted July 27, 2016 Report Share Posted July 27, 2016 I have a tabular report with with the inline delete function active, however I need to find a way to pass parameters to another datapage when a record is deleted, is there a way of doing this, passing parameters via a URl is simple enough I just can't think of how to do this once a record is deleted. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted July 27, 2016 Report Share Posted July 27, 2016 Since there is no ID for delete link I could not see any way to call a function on click of this link?! Quote Link to comment Share on other sites More sharing options...
ChrisCarlson Posted July 27, 2016 Report Share Posted July 27, 2016 Maymusic, Can the auto submit script below be modified to autodelete instead of autosubmit? If so scribblemilk could create a delete link on the tabular report, when clicked it would forward to the autodelete datapage and then pass the parameters accordingly. <script type="text/javascript"> if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',1000); } </script> Quote Link to comment Share on other sites More sharing options...
scribblemilk Posted July 28, 2016 Author Report Share Posted July 28, 2016 So the only work around I can see on this is to remove the inline delete, and enable details pages and use that to delete the record, it means that in the report instead of seeing a delete link you see a details link, however this can be replaced with a url icon of your choosing (external). I've used the details page as a "are you sure you want to delete this record?" message, however this isn't ideal as a message link that should really be a popup in my opinion as opposed to an inline message. If anyone else has a solution or a different workaround please share. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted July 28, 2016 Report Share Posted July 28, 2016 You can open the details page as a pop up page, to generate the link use this tool: http://b4.caspio.com/dp.asp?AppKey=a3012000cb4d6f2877864fd4a875&_ga=1.124309327.432628088.1468357008 Quote Link to comment Share on other sites More sharing options...
scribblemilk Posted July 29, 2016 Author Report Share Posted July 29, 2016 What i've just realised after going down the deleting a record via the details page route is of course Caspio pops up its own "are you sure you want to delete this record" Message, which is a bit overkill after turning the details datapage into a similar message, is there a way of altering a autosubmit script like the below that will 'auto delete' the details datapage? <script type="text/javascript"> setTimeout('document.forms[3].submit()',1000); </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.