Re: [WebDNA] Feature Request: [returnhtml]

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112938
interpreted = N
texte = 525 Brian, we are studying the [dumptable] idea. There are some tools that exist to list all the open databases, find the = number of fields and find the field names. =46rom there, it is = relatively easy to do a [dumpdb] function. Do you think coding the same = tags for the table would fullfill your request as well as others, or do = you think the [dumptable] as you describe it is what you are looking = for? [LISTDATABASES] [listwords words=3D[NAME]&delimiters=3D/\][delimiter][word][/listwords] [NUMFIELDS] fields: [ListFields path=3D[name]][FIELDNAME], = [/ListFields]
[/LISTDATABASES] > On Aug 30, 2016, at 20:18, Brian Burton wrote: >=20 > You missed the point. This can not be done with any combination of = existing tags.=20 >=20 > i want a way, without knowing anything about a table that's in memory = (other then it=E2=80=99s name), to dump it to the screen or a file for = debugging purposes. This may sound silly (I _should_ know the field = names, and what=E2=80=99s in the table) but i often create tables = programmatically, and debugging them is a nightmare when I have no way = of listing fields in a database to debug it. Additionally, if the point = of WebDNA is to make our programming life easier, having each of us = write our own functions for things that should be in the language itself = is redundant.=20 >=20 > Brian B. Burton >=20 >> On Aug 2, 2016, at 1:36 PM, William DeVaul wrote: >>=20 >> You can write dumptable to a function that does just that. I would = not clutter the language with it. Something like this when you pass in = [db=3D]: >>=20 >> [function name=3Ddb_to_tab&scope=3Dglobal] >> [!]THIS WILL NEED TO BE WRITTEN TO A FILE[/!] >> [listfields db=3D[db]][hideif [index]=3D1][tab][/hideif][/listfields] >> [search db=3D[unurl][db][/unurl]][!] >> [/!][founditems][interpret][[word]][/interpret][/listwords] >> [/founditems][/search] >> [/function] >>=20 >>=20 >> On Thu, Mar 24, 2016 at 4:21 PM, Brian Burton = wrote: >> Awesome! Can I add two more? >>=20 >> 1) [dumptable table=3Dblah.tab&type=3Dtext/html] >> Displays the contents of the table in either tab delimited format = (handy inside a [writefile]), >> or an HTML table (all made by webdna of course) >> Debugging tables can be a major pain sometimes, we need some help = here. --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Feature Request: [returnhtml] (dbrooke@euca.us 2016)
  2. Re: [WebDNA] Feature Request: [returnhtml] (christophe.billiottet@webdna.us 2016)
  3. Re: [WebDNA] Feature Request: [returnhtml] (christophe.billiottet@webdna.us 2016)
  4. Re: [WebDNA] Feature Request: [returnhtml] (William DeVaul 2016)
  5. Re: [WebDNA] Feature Request: [returnhtml] ("Matthew A Perosi, Psi Prime" 2016)
  6. Re: [WebDNA] Feature Request: [returnhtml] (Kenneth Grome 2016)
525 Brian, we are studying the [dumptable] idea. There are some tools that exist to list all the open databases, find the = number of fields and find the field names. =46rom there, it is = relatively easy to do a [dumpdb] function. Do you think coding the same = tags for the table would fullfill your request as well as others, or do = you think the [dumptable] as you describe it is what you are looking = for? [listdatabases] [listwords words=3D[NAME]&delimiters=3D/\][delimiter][word][/listwords] [NUMFIELDS] fields: [ListFields path=3D[name]][FIELDNAME], = [/ListFields]
[/LISTDATABASES] > On Aug 30, 2016, at 20:18, Brian Burton wrote: >=20 > You missed the point. This can not be done with any combination of = existing tags.=20 >=20 > i want a way, without knowing anything about a table that's in memory = (other then it=E2=80=99s name), to dump it to the screen or a file for = debugging purposes. This may sound silly (I _should_ know the field = names, and what=E2=80=99s in the table) but i often create tables = programmatically, and debugging them is a nightmare when I have no way = of listing fields in a database to debug it. Additionally, if the point = of WebDNA is to make our programming life easier, having each of us = write our own functions for things that should be in the language itself = is redundant.=20 >=20 > Brian B. Burton >=20 >> On Aug 2, 2016, at 1:36 PM, William DeVaul wrote: >>=20 >> You can write dumptable to a function that does just that. I would = not clutter the language with it. Something like this when you pass in = [db=3D]: >>=20 >> [function name=3Ddb_to_tab&scope=3Dglobal] >> [!]THIS WILL NEED TO BE WRITTEN TO A FILE[/!] >> [listfields db=3D[db]][hideif [index]=3D1][tab][/hideif][/listfields] >> [search db=3D[unurl][db][/unurl]][!] >> [/!][founditems][interpret][[word]][/interpret][/listwords] >> [/founditems][/search] >> [/function] >>=20 >>=20 >> On Thu, Mar 24, 2016 at 4:21 PM, Brian Burton = wrote: >> Awesome! Can I add two more? >>=20 >> 1) [dumptable table=3Dblah.tab&type=3Dtext/html] >> Displays the contents of the table in either tab delimited format = (handy inside a [writefile]), >> or an HTML table (all made by webdna of course) >> Debugging tables can be a major pain sometimes, we need some help = here. --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . christophe.billiottet@webdna.us

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Emailer (1997) DataBaseHelper Flawed (1997) Order not created error (never mind) (1997) [WebDNA] Back to the fold (2013) more on quicktime test stuff (1997) OT: WebDNA and LINUX (2004) Plugin or CGI or both (1997) show all problem (1997) shownext (2000) Search results templates (1996) quantity minimum problem (1997) Authenticate (1997) [Announce] WebCatalog 2.1 Released (1998) New command suggestion (1997) The USArea® Network web site ... (1997) hideifs using [date] (1999) RE: Ongoing group search problems ... (1997) Show first couple of lines. (2003) Major Security Hole IIS NT (1998) Getting total number of items ordered (1997)