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.
 
"Module Communication does not contain a key for" - PLEASE HELP
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

--
26 Sep 2006 03:57 AM  
I have two modules.  The second is set up to edit records in the database.  I am almost where I need to be, but I keep getting the following message under Actions:


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'.



Here is the XML for my 2 modules:

Module 1:


http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  0
  false
  false
  false
  false
  false
  false
  false
  true
  false
  false
  false
 
  false
  false
  true
  false
  false
  false
  false
  false
  false
  false
 
  false
 
  true
  false
 
   
      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
   

 

 
   
      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
   

 

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

 
  Provider=;server=(local); database=NameDB; uid=; pwd=;
  <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,54,QueryString}>Edit Record</a> </td>

</tr>

 
 
 
  17




Module 2:


http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  0
  false
  false
  false
  false
  false
  false
  false
  true
  false
  false
  false
 
  false
  false
  true
  false
  false
  false
  false
  false
  false
  false
 
  false
 
  true
  false
 
 
   
      0
      <QueryString>
      EditRecord
      [ID]
      true
   

   
      1
      <Form>
      EditFirstName
      [EditedFirstName]
      true
   

   
      2
      <Form>
      EditLastName
      [EditedLastName]
      true
   

 

 
   
      0
      MainGroup
     
     
   

 

 
   
      0
      Message
      5:10;0;EditRecord
      0
   

   
      1
      Action-Execute
      7:11;102;Edit Recordupdate Names
set FirstName='[EditedFirstName]',
 LastName='[EditedLastName]'
where ID=[FindRecordID]

      1
   

 

  select * from names
WHERE ID=[ID]

 
  Provider=;server=(local); database=NameDB; uid=; pwd=;
  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




pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
01 Oct 2006 10:27 PM  
Your XML posting is screwed up somehow. Try the ListX.General forum and upload you XML file in a new post
ListX....makes you look brilliant, even though you're not.
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