multiple #subobject in one page

From semantic-mediawiki.org

Hello!

I have multiple subobjects on pages. For example:

{{#subobject:
|Bezeichnung=Task 01
|Bearbeiter=MZ
|Datum=2015/03/10
|Status=unbearbeitet
|FaelligBis=2016/03/31
|Anmerkungen=Test 2
|TeilProjekt=EDV-Projekte/ZI TEST 01
}}
{{#subobject:
|Bezeichnung=Task 02
|Bearbeiter=MZ
|Datum=2015/03/10
|Status=im Plan
|FaelligBis=2018/03/31
|Anmerkungen=Test 3
|TeilProjekt=EDV-Projekte/ZI TEST 01
}}
{{#subobject:
|Bezeichnung=Test 3
|Bearbeiter=MS
|Datum=2015/03/10
|Status=im Verzug
|FaelligBis=2015/11/26
|TeilProjekt=EDV-Projekte/ZI TEST 01
}}

with the query...

{{#ask: [[-Has subobject::{{PAGENAME}}]] 
| mainlabel=-
| ?Bezeichnung
| ?Bearbeiter
| ?Datum
| ?Status
| ?FaelligBis = Fällig bis
| index=0
| link=all
| format=broadtable
| headers=plain
| class=sortable wikitable smwtable
| default=keine Teilprojekte / Aufgaben gefunden
}}

I can see all all subobjects of the page:

Projektname Bezeichnung Bearbeiter Datum Status Fällig bis
EDV-Projekte/ZI TEST 01 Task 01
Task 02
Test 3
MZ
MZ
MS
10 März 2015 unbearbeitet
im Plan
im Verzug
31 März 2016
31 März 2018
26 November 2015

BUT all entries appear in one table row. Is there a possibility to show every subobject in one row like this:

Projektname Bezeichnung Bearbeiter Datum Status Fällig bis
EDV-Projekte/ZI TEST 01 Task 01 MZ 10 März 2015 unbearbeitet 31 März 2016
EDV-Projekte/ZI TEST 01 Task 02 MZ 10 März 2015 im Plan 31 März 2018
EDV-Projekte/ZI TEST 01 Test 3 MS 10 März 2015 im Verzug 26 November 2015


Thank you in advance

Michael

13:39, 10 March 2015

I can't seemed to find anything wrong with your example, see Examples/Queries/Subobject to display table rows

12:58, 11 March 2015

It looks like I had a problem with my SMW installation. After reinstalling and updating the database now all looks fine :-). Thank you for your help.

10:49, 12 March 2015

Good to read. The positive side-effect is also that we now have a concise example for this.

13:24, 12 March 2015