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: Delete Message Option
You are not authorized to post a reply.
 
Author Messages
jefboo
Featherweight
Posts:8

10/10/2008 2:38 PM Alert 
What is the best method to add a Delete Message to a user when they click a delete icon. To put an alert script into the tags of the html, or to add it as an action. Forgive if this is a now brainer, just trying to utilize the software in it's best manner.
jefboo
Featherweight
Posts:8

10/10/2008 6:57 PM Alert 
I am trying to use this method which somewhat works. It will fire the message box but it will not fire the actual action behind it. I can't see where my syntax is incorrect, maybe a second pair of eyes can help.

{IIF, ([FORMAT,Board Member,{ISINROLE}]),"
<img id=\"tbiDelete\[Spec_ID]\" name=\"tbiDelete\" border=0 style=\"CURSOR: hand; CURSOR: pointer;\"
src='http://dnn.bi4ce.com/\[PORTALPATH,System]/Images/GI_Delete.gif' onclick=\"return window.confirm('Are you sure you want to delete this record?'); lxFetch(\[MODULEID,System],0,'Action=Delete&CurrentSpecialtyID=\[Spec_ID]&Page=\[PAGENUMBER,System]');\" onmouseover=\"this.src='http://dnn.bi4ce.com/\[PORTALPATH,System]/Images/GI_DeleteMO.gif'\" onmouseout = \"this.src='http://dnn.bi4ce.com/\[PORTALPATH,System]/Images/GI_Delete.gif'\" onmousedown = \"this.src='http://dnn.bi4ce.com/\[PORTALPATH,System]/Images/GI_DeleteMD.gif'\" onmouseup = \"this.src='http://dnn.bi4ce.com/\[PORTALPATH,System]/Images/GI_Delete.gif'\"></td>",
""}
svedire
Cruiserweight
Posts:107

10/14/2008 9:31 AM Alert 
Hi,

I think the problem is with the escaping and syntax in the IIF tag.

Syntax: {IIF,"Condition","True","False"}. In your case, the double quotes before the condition and the comma after the condition were missing. I usually don't escape the values coming from the query i.e., do not escape [Spec_ID] if that is coming form your main query.

Hope this helps,
Thanks,
Sindura
R2integrated



You are not authorized to post a reply.
Forums > Bi4ce.Modules > General > Delete Message Option



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