Aaron
Posts: 145
|
Posted: 03/11/2004, 1:51 PM |
|
I have a search grid and results display on one page, then, upon clicking on one of the results it takes you to an add/edit grid. Even though the data it is supposed to send to the next page is there, it only shows the add button and not the edit button as it should; since I'm editing data that is already in the data base.
Any ideas as to why it's doing this? I'm sure it's something simple I'm missing, but can't figure it out.
Thanks.
Aaron
|
|
|
peterr
Posts: 5971
|
Posted: 03/11/2004, 2:22 PM |
|
What URL do you see when clicking on the results?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Aaron
Posts: 145
|
Posted: 03/12/2004, 5:58 AM |
|
Sorry for the delay, had to get back to work to get access to my test server...
Anyway, say I'm searching for an individual with the first name Aaron. In the list I have all the Aarons there are. Then if I were to click on one to go to the Add/Edit page, I get the form filled out with what information there is, but only the add button is active, not the update.
Here is the link address for the individual...
http://192.168.100.137/aaron/individual_maint.php?PHPSE...n+H.+Warshawsky
Thanks.
Aaron
|
|
|
Aaron
Posts: 145
|
Posted: 03/12/2004, 6:02 AM |
|
Sorry about that... forgot to put it in code tags...
http://192.168.100.137/aaron/individual_maint.php
?PHPSESSID=6e1a16be3db72e58efac20739cc997cb&s_first=aaron
&s_middle1=&s_last=&state=NY&prefix=
&first=Aaron&middle1=H.&middle2=&last=Warshawsky&suffix=
&title=&nickname=&fullName=Aaron+H.+Warshawsky
Without a search first, I get this link, but same results on the Add/Edit page:
http://192.168.100.137/aaron/individual_maint.php?state=NC
&prefix=&first=Maureen&middle1=Leahy&middle2=
&last=Aarons&suffix=&title=&nickname=&fullName=Maureen+Leahy+Aarons
&PHPSESSID=6e1a16be3db72e58efac20739cc997cb
|
|
|
peterr
Posts: 5971
|
Posted: 03/12/2004, 1:18 PM |
|
Hi,
Looks like there is nothing setup within your Grid (or actually within the Link) to tell the Record form which exact record you want to edit. The record form cannot search for anything and it must know the exact record number/id.
Please open up the "Href Source" property of your Link (in the Grid), click "+" and select the field (Parameter source) that contains the record key.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Aaron
Posts: 145
|
Posted: 03/12/2004, 1:35 PM |
|
Ah, thank you very much. I'll give that a shot.
Aaron
|
|
|
Aaron
Posts: 145
|
Posted: 03/13/2004, 7:40 AM |
|
In the href source, I already have added all the link Parameters that I am trying to send. Should I only have the primary key parameter in the list, or all that the grid should be sending?
Aaron
|
|
|
peterr
Posts: 5971
|
Posted: 03/13/2004, 12:23 PM |
|
The key is sufficient, unless you have reasons to submit additional parameters to the record form.
Also make sure that the Record form is reading this key parameter, as shown here: http://docs.codecharge.com/studio/html/UserGuide/Forms/ug313.png http://docs.codecharge.com/studio/html/UserGuide/Forms/RecordForm.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|