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

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Tuesday, January 06, 2009 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
General
Forum for discussing Dotnetnuke and asking or answering questions regarding general usage, integration and fundamentals
Subject: Passing a message between ListX modules
You are not authorized to post a reply.
 
Author Messages
leahdugue
Featherweight
Posts:7

09/20/2006 1:03 PM Alert 

I am trying to pass a message between the following ListX modules.  I want to edit names in the database in the second module.  I am working on retrieving the ID of the selected name so that this name will populate the editing fields in the second module.  Please tell me where I am going wrong.

FIRST MODULE:

 
   
      0
      Find First Name
      FirstName
   

   
      1
      Find Last Name
      LastName
   

   
      2
      Find ID
      ID
   

 

 
   
      0
      <Form>
      NewFirstName
      [frmFirstName]
      true
   

   
      1
      <Form>
      NewLastName
      [frmLastName]
      true
   

   
      2
      <Message>
      DeleteNameRecord
      [RecordID]
      true
   

   
      3
      <Message>
      EditNameRecord
      [FindRecordID]
      true
   

 

 
   
      0
      MainGroup
      <br>Last Name <input type="text" id=NewLastName name=NewLastName maxlength=50> First Name <input type="text" id=NewFirstName name=NewFirstName maxlength=50> <a  {ACTION,Save,AddNameRecord,,Message}> ADD </a>
<br>

<br>
<table>
<tr>
<th> <a {SORT,ID,ID,"ID","ID_DOWN",ASC,0} >{SORTHEADER,0}</a></th>
<th> <a {SORT,FirstName,FirstName,"FirstNameUP","FirstNameDOWN",ASC,1} >{SORTHEADER,1}</a></th>
<th> <a {SORT,LastName,LastName,"LastNameUP","LastNameDOWN",ASC,2} >{SORTHEADER,2}</a></th>
</tr>
      </table>

   
 
 
   
      0
      Message
      5:13;0;AddNameRecord
      0
   

   
      1
      Action-Execute
      6:14;97;Add New Recordinsert into Names (
 FirstName,
 LastName
)
values (
 '[frmFirstName]',
 '[frmLastName]'
)

      1
   

   
      2
      Message
      5:16;0;DeleteNameRecord
      0
   

   
      3
      Action-Execute
      6:13;39;Delete Recorddelete
from Names
where ID=[RecordID]

      1
   

   
      4
      Message
      5:14;0;EditNameRecord
      0
   

   
      5
      Action-Execute
      6:11;98;Edit Recordupdate Names
set FirstName='EditedFirstName',
 LastName='EditedLastName'
where ID=[FindRecordID]

      1
   

 

  select * from names
WHERE [FILTERTAG]
ORDER BY [SORTTAG]

 
  <
  <tr>
<td> [ID] </td>
<td> [FirstName] </td>
<td> [LastName] </td>
<td> <a {ACTION,[ID],DeleteNameRecord,,Message}>Delete Record</a> </td>

<td> <a {ACTION,[ID],EditRecord,"/NameDB/NameDB/EditNameRecord/tabid/54/Default.aspx",Message}>Edit Record</a> </td>

</tr>

 
 
 
  17


SECOND MODULE:

      First Name <input type="text" id=EditFirstName name=EditFirstName maxlength=50 value=[FirstName]>

Last Name <input type="text" id=EditLastName name=EditLastName maxlength=50 value=[LastName]>

<a  {ACTION,Save,EditNameRecord,,Message}> CHANGE NAME </a>


     
   
 
 
   
      0
      Message
      5:10;0;EditRecord
      0
   

 

  select * from names
WHERE ID=[ID]

 
 
  First Name <input type="text" id=EditFirstName name=EditFirstName maxlength=50 value=[FirstName]>

Last Name <input type="text" id=EditLastName name=EditLastName maxlength=50 value=[LastName]>

<a  {ACTION,Save,EditNameRecord,,Message}> CHANGE NAME </a>
 
 
 
  17

leahdugue
Featherweight
Posts:7

09/25/2006 12:01 PM Alert 
This is the Action message:
Actions:Expand/Collapse
Initiating the Message Action Handler
Handling 1 messages.
Evaluating Action Message (0) ==> Message: Awaiting incoming message with  Type 'EditRecord'..

Module Communication does not contain a key for 'EditRecord'.



PLEASE HELP!
You are not authorized to post a reply.
Forums > Dotnetnuke > General > Passing a message between ListX modules



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