LIST_TABLE() HTML output

If you think that something doesn't work in Aware IM post your message here
Post Reply
UnionSystems
Posts: 197
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

LIST_TABLE() HTML output

Post by UnionSystems »

The first row of the HTML produced by the LIST_TABLE() function seems to be missing opening and closing <tr> tags.

Ideally that first row should also be wrapped in <thead></thead> tags and the remain rows in <tbody> </tbody> tags. This would make the HTML code complete and enable adoption of various table javascripts and CSS libraries to the table.
AWS Linux, Windows Server, AIM 8.4 & 8.6
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: LIST_TABLE() HTML output

Post by aware_support »

The first line should have <th></th>, not <tr>. Does it?
Aware IM Support Team
UnionSystems
Posts: 197
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Re: LIST_TABLE() HTML output

Post by UnionSystems »

First line is

Code: Select all

<th></th><th></th><th></th>
where quantity of <th></th> will be determined by number of attributes requested
it should be ?

Code: Select all

<tr><th></th><th></th><th></th></tr>
AWS Linux, Windows Server, AIM 8.4 & 8.6
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: LIST_TABLE() HTML output

Post by aware_support »

No, using <th> is correct.
Aware IM Support Team
UnionSystems
Posts: 197
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Re: LIST_TABLE() HTML output

Post by UnionSystems »

Sorry you do not seem to be understanding me.

Yes I agree <th></th> is correct for cells of the first row of the table HTML. What is missing from the output of LIST_TABLE() for the first row is the <tr></tr> that should envelope that first row.

This is some HTML I am getting from LIST_TABLE()

Code: Select all

<table cellpadding="0" cellspacing="0" border="1" ><th>&nbsp;&nbsp;&nbsp;Number&nbsp;&nbsp;&nbsp;</th><th>&nbsp;&nbsp;&nbsp;Surname&nbsp;&nbsp;&nbsp;</th><th>&nbsp;&nbsp;&nbsp;Workplace Name&nbsp;&nbsp;&nbsp;</th><th>&nbsp;&nbsp;&nbsp;First Name&nbsp;&nbsp;&nbsp;</th><th>&nbsp;&nbsp;&nbsp;Number&nbsp;&nbsp;&nbsp;</th><tr><td>&nbsp;&nbsp;
There is no <tr> between

Code: Select all

<table cellpadding="0" cellspacing="0" border="1" >
and

Code: Select all

<th>
The first row is missing both starting <tr> and closing </tr>
AWS Linux, Windows Server, AIM 8.4 & 8.6
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: LIST_TABLE() HTML output

Post by aware_support »

You are right. This will be fixed in the next build.
Aware IM Support Team
Post Reply