DMXzone Database Connector PHP Support Product Page

Answered

how can I create a non repeating table row header

Asked 15 Feb 2018 13:27:00
1
has this question
15 Feb 2018 13:27:00 Gary Roddy posted:
how can I create a non repeating table row header using the list of all my records using Database Connector PHP please

I love these extensions but am struggling to understand how i can create a header non repeating above all the records in a table ideally.

It maybe simple and I am just being stupid

any idead greadily welcome

Replies

Replied 15 Feb 2018 14:06:52
15 Feb 2018 14:06:52 Teodor Kuduschiev replied:
Hi Gary,
Which element of the table are you repeating exactly? Just apply the repeat region your TR.
Replied 15 Feb 2018 14:33:46
15 Feb 2018 14:33:46 Gary Roddy replied:
Below is the tabel and connection created by the extension.
I would like to add a noin-repeating header row to the top

Such as this:
User Name. First Name. Second Name. Email.
bert. Berty. Biggs.
Harry. Chips. Cheese.

Is this possible:

<div data-binding-id="repeat1" data-binding-repeat="{{AllAdminList.data.ListAdmin}}">

<table width="100%" border="1" align="left" cellpadding="2">
<tbody>
<tr>
<td width="25%">{{username}}</td>
<td width="25%">{{first_name}}</td>
<td width="25%">{{last_name}}</td>
<td width="25%">{{email}}</td>
</tr>
</tbody>
</table>
</div>
Replied 15 Feb 2018 14:40:00
15 Feb 2018 14:40:00 Teodor Kuduschiev replied:
What is the purpose of binding the repeat around the table? - this way you repeat the whole table, not just the rows.
Just bind it to the TR tag.
Replied 15 Feb 2018 14:56:03
15 Feb 2018 14:56:03 Gary Roddy replied:
That was my mistake - should bind it to:

here <tr> or here
<td >
Replied 15 Feb 2018 15:09:52
15 Feb 2018 15:09:52 Teodor Kuduschiev replied:
The repeat region must repeat the row: TR
Replied 15 Feb 2018 15:17:23
15 Feb 2018 15:17:23 Gary Roddy replied:
sorry to be dense
but would I put the region before the tr or after it before the td?
Replied 15 Feb 2018 15:35:51
15 Feb 2018 15:35:51 Gary Roddy replied:
Ignore the last question - I sorted it out.
I was being stupid.
But thanks for the inital quick response.

Kind regards

G

Reply to this topic