Autor Thema: How can I make a table on the web ?  (Gelesen 1596 mal)

Offline Toma Bogdan

  • Aktives Mitglied
  • ***
  • Beiträge: 146
  • Geschlecht: Männlich
  • That's me ...
    • A nice site !
How can I make a table on the web ?
« am: 03.06.03 - 08:15:31 »
I want to make a table on the web; also I need 2 buttons (ADD & REMOVE) which need to add and remove items from this table. how can I make this on the web (type of fields, some JS or LS code for actions) ?
thanks

Offline wflamme

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 690
  • Geschlecht: Männlich
  • Irgendwie geht das schon...
    • wflamme
Re:How can I make a table on the web ?
« Antwort #1 am: 03.06.03 - 10:19:16 »
A simple solution which might work for you:
You can have each row's contents as a seperate document. Then you can use the 'single category view' feature to display the <tr> ...</tr> stuff as embedded HTML view. The table header/footer goes into the form/page that holds the embedded view.

Adding/deleting/editing will then simply apply to the row documents using regular URL syntax.
Grüße,
Wolfgang

"I love deadlines. I love the whooshing sound they make as they pass by..."
DOUGLAS ADAMS

wflamme@mainz-online.de
http://www.sns1.de/partner/flamme/wflamme.nsf

Offline Toma Bogdan

  • Aktives Mitglied
  • ***
  • Beiträge: 146
  • Geschlecht: Männlich
  • That's me ...
    • A nice site !
Re:How can I make a table on the web ?
« Antwort #2 am: 03.06.03 - 10:37:37 »
this was also my ideea but I don't want to create docs for each line .... maybe there is another solution  ::)

Offline harkpabst_meliantrop

  • Senior Mitglied
  • ****
  • Beiträge: 463
  • Geschlecht: Männlich
  • I love!
    • Heute schon gelebt?
Re:How can I make a table on the web ?
« Antwort #3 am: 03.06.03 - 14:32:43 »
I'm afraid, that no other solution will be as clean, elegant and straigth forward.

For a single cell per row, you could populate a multi-value field (which transforms into a text area in the browser) and write the outer tags of a table in pass-through-HTML.  The rows and cells could be calculated by some computed text acording to that field, i.e.:

<br>
<table border="1">
  <tr>
    <td>
    <Computed Value>
    </td>
  </tr>
</table>

as pass-through-HTML and the computed text being calculated to

@Implode(Content + "[</td></tr><tr><td>]")

where Content is the name of the mult-value input field.

However, this will be hardly manageable with more complex table structures and even im my small example I always have one empty row at the bottom of my table. It's probably possible to avoid that as well, but as I said: Not clean, not elegant, not straight forward.



Offline harkpabst_meliantrop

  • Senior Mitglied
  • ****
  • Beiträge: 463
  • Geschlecht: Männlich
  • I love!
    • Heute schon gelebt?
Re:How can I make a table on the web ?
« Antwort #4 am: 03.06.03 - 15:19:25 »
O.K., just in case: It works better this way:


<table border="1">
    <Computed Value>
</table>

where Computed Value is

@Implode("[<tr><td>]" + Content + "[</td></tr>]")


Still not brilliant.

Offline wflamme

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 690
  • Geschlecht: Männlich
  • Irgendwie geht das schon...
    • wflamme
Re:How can I make a table on the web ?
« Antwort #5 am: 03.06.03 - 15:22:56 »
Of course you can also use a WebQueryOpen agent. Eg if the cells are kept in multivalue fields on a single doc, you can read them, construct your HTML table and write the results in a field for web display.
However there's much more work involved to make the Add/Delete stuff work properly then.
Grüße,
Wolfgang

"I love deadlines. I love the whooshing sound they make as they pass by..."
DOUGLAS ADAMS

wflamme@mainz-online.de
http://www.sns1.de/partner/flamme/wflamme.nsf

Offline Rob Green

  • Freund des Hauses!
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 2.651
  • Geschlecht: Männlich
    • Meipor
Vielleicht verdirbt Geld wirklich den Charakter.
Auf keinen Fall aber macht Mangel an Geld ihn besser.
(John Steinbeck)

Meiporblog: http://www.meipor.de/blog
allg. Unternehmerblog: http://www.m-e-x.de/blog

Offline eknori

  • @Notes Preisträger
  • Moderator
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 11.728
  • Geschlecht: Männlich
Egal wie tief man die Messlatte für den menschlichen Verstand auch ansetzt: jeden Tag kommt jemand und marschiert erhobenen Hauptes drunter her!

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz