Table Element for Chronoform

AussieNeil 03 Mar, 2013
Hi,

It would be good to have a table element much like a text field. I guess it would be a little complicated and of course would be good if it could tie in with the DB Record element 😀 .

Regards,

Neil
GreyHead 03 Mar, 2013
Hi Neil,

What would a table element look like / do exactly?

Bob
AussieNeil 04 Mar, 2013
It would a user to display a grid (ie. HTML table) which is populated by the DB Multi Record Loader.

it would save writing php code like:


<style type="text/css">
table.rabbit {
	border: 6px inset #8B8378;
	-moz-border-radius: 6px;
}
table.rabbit td {
	border: 1px solid black;
	padding: 0.2em 2ex 0.2em 2ex;
	color: black;
}
table.rabbit tr.d0 td {
	background-color: #FFFFFF;
}
table.rabbit tr.d1 td {
	background-color: #C6FEFD;
}
</style>

<table class="rabbit", width="568">
<tr><th>Breed Name</th><th>Action</th></tr>
<?php
   $i = 0;
   foreach ($form->data('RabbitBreedList') as $rsList):
?>
<tr class=d<?php echo $i ?>>
<td><?php echo $rsList['RabbitBreedName']; ?></td>
<td><a href="index.php?option=com_chronoforms&chronoform=RabbitBreedDetail&RabbitBreedToken=<?php echo $rsList['cf_id']; ?>"> Edit</a></td>
</tr>
<?php
if ($i==0) 
{ $i=1;}
else
{ $i=0;}
endforeach;
?>
</table>


You could have a CSS style sheet ability rather than having to write what I have and nominate what columns are shown in which column etc..

Neil
GreyHead 04 Mar, 2013
Hi Neil,

That's pretty much what the Data Displayer in the DB Multi-Record Loader does now; or ChronoConnectivity if you want more options.

Bob
AussieNeil 04 Mar, 2013
Ah. Didn't look too much at the other TAB's. Sorry.

Did find the ChronoConnectivity and am playing with it now.

Looks promising but can I play with the styles in ChronoConnectivity (or should I ask that question in the forum for that product)

Thanks,

Neil
GreyHead 04 Mar, 2013
Hi Neil,

If you use the Custom Listing option in ChronoConnectivity you can add pretty much any Table HTML you like.

Bob
AussieNeil 04 Mar, 2013
So I would be back to writing HTML code :-(.

Was hoping to avoid that.
GreyHead 04 Mar, 2013
Hi Neil,

There's a built-in table display as well. But whether that gives you the formatting you want is a different question.

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