PxPlus User Forum

Main Board => Discussions => Webster Plus => Topic started by: Jon Toomsen on January 17, 2024, 09:49:30 AM

Title: short code [list]
Post by: Jon Toomsen on January 17, 2024, 09:49:30 AM
Starting to test shortcode syntax - This does not work.
is there a declare I must use.


[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo[/data][/list]
Title: Re: short code [list]
Post by: Mike King on January 17, 2024, 12:10:26 PM
I haven't checked but it looks like you are missing the trailing separator.
I think it should be:

[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo/[/data][/list]

Title: Re: short code [list]
Post by: Mike King on January 17, 2024, 12:48:34 PM
I just did a test and the trailing slash is not required (although it probably should be there).

Using PxPlus 2023 the following web page worked for me with or without the trailing separator.

Code: [Select]
<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Mike King" />
</head>
<body>
[ttl]Cars[/ttl]<br>
<p>[form program=myprog]</p>
[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo/[/data][/list]
<br />
[list Cars2$][data rowsep=/]Ford/Gm/Audi/Volvo[/data][/list]
[/form]
</body>
</html>
Title: Re: short code [list]
Post by: Jon Toomsen on January 17, 2024, 09:10:00 PM
Yes it all works - getting used to html again.
Thanks
Title: Re: short code [list]
Post by: Mike King on January 18, 2024, 08:48:43 AM
There are a number of ways to create HTML using PxPlus that don't require much knowledge of HTML itself.

I personally use the PxPlus HTML editor (*htmledit) if I want to design the screen myself.  It has menu options to insert Webster short odes.  Basically just start the editor and enter the short codes. No HTML coding required.

You can also use the file maintenance generator to create forms based on file definitions.  It can make general maintenance screens which you can customize or inquiry screens which provide basic layouts that you then add events to. 

Using the section and row short codes allows you to create responsive screens without much work.