R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Passing a message between ListX modules
Last Post 01 Jan 1900 05:00 AM by . 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
leahdugueUser is Offline
New Member
New Member
Posts:7

--
20 Sep 2006 06:03 PM  

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

leahdugueUser is Offline
New Member
New Member
Posts:7

--
25 Sep 2006 05:01 PM  
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.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share