[Developers] Editwizard question.
Hi there, Here's an editrwizard challenge: I've modelled a relation between an article and a theme. Every article has one theme. Instead of using a standard MMBase relation list, I would like to use a optionlist instead. I've managed to retrieve the themes with a query like this: optionlist name=themelist optionid=[EMAIL PROTECTED]'number'] optioncontent=[EMAIL PROTECTED]'title'] query xpath=/[EMAIL PROTECTED] / /optionlist Than I found the option that with a field the ftype can be set to relation. Unfortunately I could not find documentation on what the syntax is to make this work. Does anybody know this? Kors van Beem -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24-11-2005 ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers
RE: [Developers] editwizard question
-Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Pierre van Rooden Verzonden: maandag 30 mei 2005 8:40 Aan: Discussion list for developers Onderwerp: Re: [Developers] editwizard question 2 a var in the context that runs the wizard that contains the number of the node that was loaded by the wizard that started the current one. something like ${opener} or so. this way i could add something like: action type=load relation role=publishrel destinatin=${opener} /action and show the fields of the publishrel relation as wizard list in the film wizard. This is already possible, you could simply use $origin. However this doen't work until the relation in quetsion is already saved. he, i tried that (with $origin) but i got an exception, stating that $origin was not a known builder, so i fugured the var was not present in the context. So, if this should work i will try again, and hope! regards, Ernst 3 now you can start a wizard for the objects you show in a wizard list. If you could allso start a wizard for the relation You can. When you create an editwizard field you can point out the obvjectnumber of the object to edit with an xml path. The problem is again that this onbyl works with relations that have already been saved. -- Pierre van Rooden Mediapark, C 107 tel. +31 (0)35 6772815 Anything worth doing is worth overdoing. ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers
Re: [Developers] editwizard question
Ernst Bunders wrote: he, i tried that (with $origin) but i got an exception, stating that $origin was not a known builder, so i fugured the var was not present in the context. It should be {$origin}. Origin is always defined in a subwizard. -- Pierre van Rooden Mediapark, C 107 tel. +31 (0)35 6772815 Anything worth doing is worth overdoing. ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers
RE: [Developers] editwizard question
nop, i think that defeats the whole idear of the wizards. Besides i'm to lazy to build a custom editor :) Ernst -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens André van Toly Verzonden: donderdag 26 mei 2005 16:34 Aan: Discussion list for developers Onderwerp: Re: [Developers] editwizard question Hij Ernst, Normally when a node in MMBase reaches this stage, thus in which editors have so much nodes related to it that it is nearly impossible to edit it with the EditWizards, like for example a category node for tv programms or something, i cease to try to edit them with the EditWizards an build JSP editors for them. But i'm not sure whether this is the sollution you're looking for :-) ---André At 15:55 +0200 26-05-2005, Ernst Bunders wrote: hello I wonder if i can do the following: i have an 'optreder' object which has 'film' objects related to it with a 'publishrel'. the publishrel has some fields like 'datumonline' datumoffline' 'negeerembargo'. presently i have a list in my optreder wizard with al related film nodes, and in this list all the publishrel fields for that relation. As these lists grow long, the page becomes very slow, and the browser does not respond very well anymore. i allready put this list in a separate step, but it is not good enough. so i actually want to move the editing of the relation fields to the film wizard opened from this list. For this i have to be able to load the current optreder node in the load action of the film wizard, and not all optreders it has a relation to. So is there a reference i can use to the node inside the 'opening' wizard (preveous on the stack?) regards, ernst ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers -- André van Toly http://www.toly.nlmobile +31(0)627233562 -- -- ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers
Re: [Developers] editwizard question
André van Toly wrote: Hij Ernst, Normally when a node in MMBase reaches this stage, thus in which editors have so much nodes related to it that it is nearly impossible to edit it with the EditWizards, like for example a category node for tv programms or something, i cease to try to edit them with the EditWizards an build JSP editors for them. But i'm not sure whether this is the sollution you're looking for :-) Well, to start with you could only make a bit more compliated 'entrance' page. You must always avoid having unlimited lists in wizards. That simply intrinsically does not work, since wizards use XML's and XSLT's to present al data. The entrance page must ensure that these are presented by list.jsp. So, I would not immediately rebuild everthing in JSP, but only up until th part that it becomes possible to create links to list.jsp or small wizards. Michiel -- Michiel Meeuwissen mihxil' Mediacentrum 140 H'sum[] () +31 (0)35 6772979 nl_NL eo_XX en_US ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers
RE: [Developers] editwizard question
-Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michiel Meeuwissen Verzonden: vrijdag 27 mei 2005 10:18 Aan: Discussion list for developers Onderwerp: Re: [Developers] editwizard question André van Toly wrote: Hij Ernst, Normally when a node in MMBase reaches this stage, thus in which editors have so much nodes related to it that it is nearly impossible to edit it with the EditWizards, like for example a category node for tv programms or something, i cease to try to edit them with the EditWizards an build JSP editors for them. But i'm not sure whether this is the sollution you're looking for :-) Well, to start with you could only make a bit more compliated 'entrance' page. You must always avoid having unlimited lists in wizards. That simply intrinsically does not work, since wizards use XML's and XSLT's to present al data. The entrance page must ensure that these are presented by list.jsp. So, I would not immediately rebuild everthing in JSP, but only up until th part that it becomes possible to create links to list.jsp or small wizards. that solution is relevant only for the list of objects you want to edit. I'm talking about a list of object that belong to one object out of the list of objects i want to edit. So, to make it concrete: i use list.jsp to enter the wizard. it shows all the optreders. for each optreder there are a bunch of film nodes. not so many, but maybe ten or twenty max. Showing these nodes with a wizard list is allready to much. for every related film node i have to show three form fields, and the browser goes berserke. so i could think of some solutions, which i don't think are supported by the wizards right now: 1 a paging option for wizard lists, so you can control the number of related objects showed at once. 2 a var in the context that runs the wizard that contains the number of the node that was loaded by the wizard that started the current one. something like ${opener} or so. this way i could add something like: action type=load relation role=publishrel destinatin=${opener} /action and show the fields of the publishrel relation as wizard list in the film wizard. 3 now you can start a wizard for the objects you show in a wizard list. If you could allso start a wizard for the relation you could leave al the editable fields of the relation out of the list, and have them set in a separate wizard. I suppose all three would be nice additions, but that dousn't solve my problem now. Anybody? Ernst Michiel -- Michiel Meeuwissen mihxil' Mediacentrum 140 H'sum[] () +31 (0)35 6772979 nl_NL eo_XX en_US ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers
Re: [Developers] editwizard question
Hij Ernst, Normally when a node in MMBase reaches this stage, thus in which editors have so much nodes related to it that it is nearly impossible to edit it with the EditWizards, like for example a category node for tv programms or something, i cease to try to edit them with the EditWizards an build JSP editors for them. But i'm not sure whether this is the sollution you're looking for :-) ---André At 15:55 +0200 26-05-2005, Ernst Bunders wrote: hello I wonder if i can do the following: i have an 'optreder' object which has 'film' objects related to it with a 'publishrel'. the publishrel has some fields like 'datumonline' datumoffline' 'negeerembargo'. presently i have a list in my optreder wizard with al related film nodes, and in this list all the publishrel fields for that relation. As these lists grow long, the page becomes very slow, and the browser does not respond very well anymore. i allready put this list in a separate step, but it is not good enough. so i actually want to move the editing of the relation fields to the film wizard opened from this list. For this i have to be able to load the current optreder node in the load action of the film wizard, and not all optreders it has a relation to. So is there a reference i can use to the node inside the 'opening' wizard (preveous on the stack?) regards, ernst ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers -- André van Toly http://www.toly.nlmobile +31(0)627233562 ___ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers