Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Ich weiß leider nicht, wo ich das am besten posten soll, falls ich hier falsch bin, bitte ich um verschrieben.

Ich habe das Problem, dass ich in einer Tabelle gruppieren muss, jedoch trotzdem alle Unterelemente zugänglich machen muss.

Die Tabelle sieht vereinfacht so aus:

[table=width: 300, class: grid]

[tr]

[td]ID[/td]

[td]Time[/td]

[td]Name[/td]

[/tr]

[tr]

[td]1[/td]

[td]1377166344[/td]

[td]Name1[/td]

[/tr]

[tr]

[td]2[/td]

[td]1377166344[/td]

[td]Name2[/td]

[/tr]

[tr]

[td]3[/td]

[td]1377166314[/td]

[td]Name3[/td]

[/tr]

[/table]

Ich muss alle Einträge der Zeit nach Gruppieren, muss aber weiterhin auf alle Namen und ID's zugreifen können. Sprich es müsste in etwa so aussehen:

[table=width: 300, class: grid]

[tr]

[td]Time[/td]

[td][/td]

[/tr]

[tr]

[td]1377166344[/td]

[td]

[table=width: 200, class: grid]

[TR]

[td]1[/td]

[td]Name1[/td]

[/TR]

[TR]

[td]2[/td]

[td]Name2[/td]

[/TR]

[/table]

[/td]

[/tr]

[tr]

[td]1377166314[/td]

[td]

[table=width: 200, class: grid]

[TR]

[td]3[/td]

[td]Name3[/td]

[/TR]

[/table]

[/td]

[/tr]

[/table]

weiß jemand, wie ich das anstellen könnte? (so in etwa zumindest, da ich bei der Tabelle keinen rowspan hinbekomme)

Bearbeitet von Shadowman

  • Autor

Vielen dank für diese Information.

Ich wollte die Daten möglichst nicht geschachtelt auslesen, daher wollte ich nachfragen ob sowas direkt via SQL geht.

Dann geht's ans überlegen, wie ich die Daten möglichst performant im Programm merge

Selektiere einfach alle Spalten, die du benötigst und sortiere nach dem Gruppierungskriterium (Time). Das Programm, welches die Ausgabe übernimmt kann dann anhand der sich ändernden Zeit festellen, dass ein Gruppenwechsel statt findet.

Pseudocode, sinngemäß:


records = query("SELECT Time, ID, Name FROM Tabelle ORDER BY Time, ID;")

lastTime = -1

foreach record in records

    time = record["Time"]

    if time <> lastTime then ; Gruppenwechsel erkennen

        print("neue Gruppe: " + time)

        lastTime = time

    endif

    print("ID: " + record["ID"])

    print("Name: " + record["Name"])

next record

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.