Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Tuesday, December 02, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
General
New modules are always under research and development here. Post questions about our upcoming modules or custom development efforts.
Subject: Stripping value from the EVENT ARGUMENT
You are not authorized to post a reply.
 
Author Messages
aterblanche
Lightweight
Posts:21

06/24/2008 9:58 PM Alert 
G'day,

I'm pretty new to ListX.
Scenario: A user has the option the click on an image to delete a record from the database. A message box asks for confirmation. This works well. The problem I have is getting the value ([BookingRequestID]) to show in the ACTION. The value needs to be sent to a stored proc as a parameter.

The value, in this case, 37, shows in the Debug: Action: Statistics, but the variable has no value in the query window.

How do I get the value? It does show in the statistics as part of the EVENTARGUMENT


My code: <a onclick="return window.confirm('Are you sure you want to delete this course??');"
{ACTION,[BookingRequestID],DeleteCourse,,Message}></a>

RESULT: Form: __EVENTARGUMENT: 37,DeleteCourse,,M

Thanks

Anton
aterblanche
Lightweight
Posts:21

06/24/2008 11:59 PM Alert 
FOUND IT!
The secret seems is to have the correct naming throughout the whole module.
FIRST the variable: define it as a <Message> variable source: deleteCourse Target:@deleteCourse
THEN create the message and name it the same as the source variable: Awaiting incoming message with Type 'deleteCoursee'
THEN Execute Query[deleteCourse]: Delete_tblCourse @deleteCoursee (Note: this is a stored procedure with one parameter)
THEN the code:
<a onclick="return window.confirm('Are you sure you want to delete this attendee?');" {ACTION,[BookingID],deleteCourse,,Message}><img border=0 src="http://[ALIAS,System]/images/delete.gif" alt="Delete Course" title="Delete Course " /></a></td>

This worked for me.
You are not authorized to post a reply.
Forums > Bi4ce.Modules > General > Stripping value from the EVENT ARGUMENT



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation