Sorry, my mistake. I edited the wrong field. After changing back Id Field Name to doc.fullName and changing Value Field Name to doc.name it works but still shows 3 items instead of the 2 available pages:
Customer ProfileTemplate Test Customer 1 Test Customer 2 On the Customer Profile Application I have the pages Test Customer 1 Test Customer 2 Why is the item "Customer ProfileTemplate" shown? 2016-07-27 14:52 GMT+02:00 D R <rir....@gmail.com>: > After changing "Id Field Name" to doc.name still the dropdown has 3 empty > items though the source application has only 2 pages. > > Do you have another idea why it is not working? > > 2016-07-26 14:37 GMT+02:00 Marius Dumitru Florea < > mariusdumitru.flo...@xwiki.com>: > >> On Tue, Jul 26, 2016 at 11:45 AM, D R <rir....@gmail.com> wrote: >> >> > Thanks guys but I face an issue. >> > >> > I added a Database List property to the Class of App 2 as explained on >> > >> > >> http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki >> > . >> > Name: customer >> > Display Type: select >> > Relational Storage checked >> > XWiki Class Name: Customer Profile.Code.Customer ProfileClass >> > Id Field Name: doc.fullName >> > >> >> >> > Value Field Name: doc.title >> > >> >> Try doc.name or make sure those pages have their title set by editing >> them >> in Wiki edit mode. doc.title is the raw document title which may be empty >> or may contain Velocity code. It's not the computed title you see >> displayed >> on the breadcrumb. >> >> >> > >> > In the App 2 Sheet I added >> > $doc.use('XPass.Code.XPassClass') >> > $doc.display('customer') >> > >> > In edit mode of entries of App 2 (XPass) I see 3 entries without text >> > (though App 1 -Customer Profile- has only 2 entries/pages) in the >> Customer >> > dropdown. >> > >> > Thank you very much in advance for some more help. >> > >> > 2016-07-25 16:40 GMT+02:00 Vincent Massol <vinc...@massol.net>: >> > >> > > You might also find the following of interest (slightly related): >> > > >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial >> > > >> > > Thanks >> > > -Vincent >> > > >> > > > On 25 Jul 2016, at 14:56, Marius Dumitru Florea < >> > > mariusdumitru.flo...@xwiki.com> wrote: >> > > > >> > > > Hi Dennis, >> > > > >> > > > Maybe this can help >> > > > >> > > >> > >> http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki >> > > > . >> > > > >> > > > On Mon, Jul 25, 2016 at 3:35 PM, D R <rir....@gmail.com> wrote: >> > > > >> > > >> Hi community, >> > > >> >> > > >> I implemented a customer profile holding information about >> customers >> > as >> > > an >> > > >> XWiki application. Now in another app I'd like to have an optional >> > field >> > > >> that can contain the customer if it is related to one. Therefor I >> want >> > > to >> > > >> list all customers (existing pages of App 1) as dropdown values of >> a >> > > field >> > > >> of App 2. >> > > >> >> > > >> To illustrate what I'd like to achieve: >> > > >> >> > > >> App 1 (holding customer information): >> > > >> |-- Page "Customer 1" >> > > >> |-- Page "Customer 2" >> > > >> ... >> > > >> >> > > >> App 2 (holding other information but can be customer related): >> > > >> |-- Page 1 >> > > >> |-- Field "Customer" = Dropdown of Pages of App 1 (Customer 1, >> > > Customer >> > > >> 2 ...) >> > > >> >> > > >> I'm rather new in scripting in XWiki/Velocity so I'd really >> appreciate >> > > some >> > > >> help on this :) >> > > >> >> > > >> Regards, >> > > >> Dennis >> > > _______________________________________________ >> > > users mailing list >> > > users@xwiki.org >> > > http://lists.xwiki.org/mailman/listinfo/users >> > > >> > _______________________________________________ >> > users mailing list >> > users@xwiki.org >> > http://lists.xwiki.org/mailman/listinfo/users >> > >> _______________________________________________ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users