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
|