From: Ad S. v. S. <ad....@gm...> - 2013-08-15 15:00:07
|
Hi Yaron, Would it be possible to have a special kind of field in a multiple-instance template form that has the order in the range of instances automatically assigned to it? Than you can choose to have an order if you want that corresponds to the order in the form. Ad On 15 aug. 2013, at 16:39, Yaron Koren <ya...@wi...> wrote: > Hi Ralf, > > I agree with you that the lack of a way to sort the data is a weakness of > #subobject. There was actually a discussion about that on this list about > two months ago: > > http://wikimedia.7.x6.nabble.com/Making-subobjects-correctly-ordered-td5007553.html > > It's a long thread, but at the end of it I decided that I would change the > Semantic Internal Objects extension to set object names to be "Page > name#001", "Page name#002", etc., which is the way it used to do it before > it started calling #subobject. I'm still planning to do that. > > In any case, I'd say being able to set the order of multiple-instance > templates within forms is useful regardless, so that they can be shown in > the correct order on that page. > > -Yaron > > > On Thu, Aug 15, 2013 at 9:36 AM, Ralf <ral...@kr...> wrote: > >> Hello together, >> >> I have a question about sorting a query of subobjects made by #ask, which >> have >> been added by a form associated with a multiple-instance template - stored >> as >> subobjects. >> >> Question: How can I sort the query output in order to sort exactly the way >> the >> objects have been manually arranged in the form? >> >> Of course, I can sort by a property, which works. But if people rearrange >> the >> items in the form they expect that the query result is how they arranged >> it. >> >> If I just remove any sort from the query, the result is undetermined (maybe >> since the subobjects use random names?). >> >> Multiple-instance template like: >> >> {{#subobject: >> |PropDefinition={{{Definition|}}} >> |PropField2={{{Field2|}}} >> }} >> >> Query in main template like: >> >> {{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Definition::+]] >> |?PropDefinition=Definition >> |?PropField2=Field2 >> |format=table >> |mainlabel=- >> <!--|sort=Definition--> >> }} >> >> So how to sort the output by the order the items have been arranged by the >> editors in the form? >> Is this even possible by a sort? If not, what is the purpose of the >> rearrange >> functionality in the form? >> >> Cheers >> Ralf >> >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> > > > > -- > WikiWorks · MediaWiki Consulting · http://wikiworks.com > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |