Forums

link element not working as expected

skittle 21 Jan, 2019
Hello,

I am having trouble with the link element on one of the systems I am working on. I have developed a few sites which make successful use of the link element in a table to provide the user a hyperlink to load a CF with the desired record which is why I am unsure of the reason for this particular instance not working. CCv6 and CFv6 are updated to the most current versions on my site (just updated yesterday to be sure).

Specifically, my link element URL Parameter looks like this {var:get_all_campers.row.AC.aid}. It is setup to appear in every row of the Campers column of my table. The link variable returns nothing. Interestingly, changing the word 'row' to a valid row number (like 0 for example) will work and provide the expected data. In other words, doing this works {var:get_all_campers.0.AC.aid} but is not helpful because it only supplies the information for the specified record (not all records in table).

Running {debug:} shows my table (get_all_campers) contents as expected (example of table debug with first record below).

  [var] => Array
(
[0] => Array
(
[AC] => Array
(
[child_first_name] => Robin
[child_last_name] => Fisher
[birthday] => 2014-05-25 00:00:00
[camp_descr] => 9am-1pm M-F 3 year olds - $125
[ipaddress] => 100.10.10.100
[email] => freinstein@xmail.xxx
[aid] => 130
)

)

Why doesn't 'row' seem to work?

Thanks for any insight here.

John
healyhatman 21 Jan, 2019
Answer
Change get_all_campers to the name of your table view. I suspect you're trying to use the name of your read_data action
skittle 22 Jan, 2019
Excellent diagnosis! Of course you are correct.

Not sure how I didn't spot this.

Thank you!

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