PxPlus User Forum

Twitter Twitter Twitter

Author Topic: short code [list]  (Read 363 times)

Jon Toomsen

  • Silver Member
  • ***
  • Posts: 24
    • View Profile
short code [list]
« 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]

Mike King

  • Diamond Member
  • *****
  • Posts: 3803
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: short code [list]
« Reply #1 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]

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Mike King

  • Diamond Member
  • *****
  • Posts: 3803
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: short code [list]
« Reply #2 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>
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jon Toomsen

  • Silver Member
  • ***
  • Posts: 24
    • View Profile
Re: short code [list]
« Reply #3 on: January 17, 2024, 09:10:00 PM »
Yes it all works - getting used to html again.
Thanks

Mike King

  • Diamond Member
  • *****
  • Posts: 3803
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: short code [list]
« Reply #4 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.
« Last Edit: January 18, 2024, 01:58:23 PM by Mike King »
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com