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/HowToCreateAOneToManyRelationshipIn…
.
Name: customer
Display Type: select
Relational Storage checked
XWiki Class Name: Customer Profile.Code.Customer ProfileClass
Id Field Name: doc.fullName
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 <vincent(a)massol.net>et>:
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.florea(a)xwiki.com> wrote:
Hi Dennis,
Maybe this can help
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipIn…
> .
>
> On Mon, Jul 25, 2016 at 3:35 PM, D R <rir.ceg(a)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(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users