Forums

Can not get show details to work

GroteBeer 31 Jul, 2010
Hi,

I'm new here, and new to chronoforms. I've searched te forum an howto's for an answer but do not get the results I am looking for.
I've made a form wich is used to store data regarding to tasting Beer. I'm a brewer, so that's what I do most 😀
So far so good. The data is stored niceliy in the database.
Then I used Chronoconnectivity to show a list of the beers that are tasted. I want to be able to click one of the showed entry's and then show the tasting form with the details of that beer.
When I click that link, the URL I'm redirected to is http://grotebeer.enwelhierom.nl/index.php?option=com_chronocontact&chronoformname=Show_Proefformulier&Naam=Tactical, where &Naam= is the name of the beer I want to see the details of.
But the form Show_Proefformulier does not populate.
I've configured the Profile Page plugin Target Field name to direct to Naam, and the form has a connection with the right database.
I've tried every variation I came accross in the forum, but my form is empty.
How do I show for example the Naam field in a form after clicking on it from the list?

I'm an noob, so it could be I've missed something in the forum, or didn't understand the answers given there.

Regards,

Ed.
GreyHead 01 Aug, 2010
Hi Ed,

Have you enabled the Profile Plugin on the Form Plugins tab?

Bob
GroteBeer 01 Aug, 2010
Hi Bob,

Yes, the plugin is enabled on the tab.
I think the problem might be in the form that should show the records.
I've tried it with other fields s input for the form, but no luck.
What type of field shoukd I put in the form to show the data? I've tried a text-field, but no luck.

Regards,

Ed.
GreyHead 01 Aug, 2010
Hi Ed,

Use the input name in curly brackets {Naam}

Bob
GroteBeer 02 Aug, 2010
Hi Bob,

Still no luck 😢

Here are some details of my setup, maybe that will help.

These are my forms. The first one in the list is to fill the database, the last one is the one that should show the details. They both have a connection to the same database.


The Show_Proefformulier form has the Profile Plugin activated, and the Profile Plugin itself is configured as follows:


This is inside the header in chronoconnectivity:

De Grote Beer's Proef-formulieren overzicht
<br />
{new_record}<br />
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="font-weight: bold;">Naam</td>
    
    </tr>
  </tbody>
</table>
<div class="clr" style="border-bottom: 3px solid #222; padding: 3px; margin-bottom: 10px;"></div>


This is inside the body:
    <table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
      <tbody>
        <tr<?php if ($i % 2) echo ' style="background-color: #EBEBEB;"';?>>
          <td style="font-weight: bold;"><a href=http://grotebeer.enwelhierom.nl/index.php?option=com_chronocontact&chronoformname=Show_Proefformulier&Naam=<? echo $MyRow->Naam; ?>"> {Naam}</td> 
        </tr>
      </tbody>
    </table>
    <?php $i++ ?>


Then there is the form that should show the data.
I've tried some variations, but still no luck. This is how it looks right now:



I think by now I will be the laughing matter of this forum, but I don't care. Somehow I think that this post could be helpfull to other first-time users.

Regards,

Ed.
GreyHead 02 Aug, 2010
Hi Ed,

Please remove the {} from here. The Label can be any text that you like. The name should be a text string using only a-z,A-Z,0-0 or '_' with no spaces or other special characters. (Personally I'd use naam here.)

Bob
GroteBeer 02 Aug, 2010
Done.

But this still doesn't let me see data.
Where should i put the {naam} tag?
GreyHead 02 Aug, 2010
Hi Ed,

Put it into the form HTML
Name: {Naam}


Bob
GroteBeer 02 Aug, 2010
Sorry, no luck.

I noticed though that if I fill in the fields 'Request' parameter name' and 'Default Request Parameter value' in the profile Page plugin, the record that I put in there is shown in my form.
I've tried every variation in URL i can think of, because I thought that the problem could be in there.

I'm totally confused. Why won't this work.

Regards,

Ed.
This topic is locked and no more replies can be posted.