Listview column headers.

Questions and answers for designing and implementing forms in Servoy

Listview column headers.

Postby AlanBourke » Fri Aug 14, 2015 12:00 pm

Servoy 7.4.4, webclient only.

I'm trying to achieve a layout like the one in the image. So it has to be a Listview I think, due to the multiline nature of each row. The listview will also be on a tabpanel tab in my own scenario. So how would I achieve the column headers (campagins, recipients, opens ...). The 'TitleText'' property that would work with a Tableview doesn't work with Listview.

Thanks

Image
-------------------------------------------------------------------------------------------
Servoy SAN Developer
User avatar
AlanBourke
 
Posts: 198
Joined: Tue Aug 02, 2011 3:32 pm
Location: Dublin, Ireland

Re: Listview column headers.

Postby AlanBourke » Fri Aug 14, 2015 12:13 pm

:oops: As ever, 5 mins after posting I discover how to do it by adding a header form part. Duh.
-------------------------------------------------------------------------------------------
Servoy SAN Developer
User avatar
AlanBourke
 
Posts: 198
Joined: Tue Aug 02, 2011 3:32 pm
Location: Dublin, Ireland

Re: Listview column headers.

Postby Joas » Fri Sep 25, 2015 9:29 am

Note that your form doesn't *have* to be a list view. You can also use a table view, and use some html to show multiple lines.

Use something like this as text for your label:
Code: Select all
<html>%%field1%%<br/>%%field2%%</html>
(make sure the displaysTags-property is checked)
Joas de Haan
Joas
Site Admin
 
Posts: 768
Joined: Mon Mar 20, 2006 4:07 pm
Location: Amersfoort, NL

Off topic...

Postby Bernd.N » Sun Sep 27, 2015 4:32 pm

Hi Alan,
a bit off topic:
The layout of the table looks nice, however sorting on date, on numbers and on percent values will be possible by mouseclick when every field has its own column.
And sorting makes sense on that table, especially to quickly see the best and the worst campaigns.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 480
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany


Return to Forms

Who is online

Users browsing this forum: No registered users and 4 guests

cron