You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@fineract.apache.org by Steven Hodgson <st...@gmail.com> on 2016/09/07 12:12:34 UTC
Data tables and Templates
Hello,
Is is possible to map Data Tables in the Templates / User Generated
Documents?
The data tables return JSON Arrays, e.g.,
[{
"client_id": 1,
"extra": "hello world"
}]
I am trying to access this datatable (mapper key: dt) through the
Templates, e.g.
{{#dt}} {{extra}}{{/dt}}, or {{dt#0.extra}}
But I am having zero luck (version 16.06). This closed issue seems to
suggest this is possible, and I found no other documentation. Any
suggestions?
Kind regards,
Steven
RE: Data tables and Templates
Posted by Adi Raju <ad...@confluxtechnologies.com>.
Not an expert on moustache syntax, so cannot really answer your query.
I do not see any problem with the mapper you are using.
Regards,
Adi
From: Steven Hodgson [mailto:steven.hodgson@gmail.com]
Sent: 08 September 2016 10:15
To: user@fineract.incubator.apache.org
Subject: Re: Data tables and Templates
Quick follow-up:
Can client identifiers be included in the templates?
At https://demo.openmf.org/#/viewtemplate/26, I have tried adding:
mapper: ABC = clients/{{clientId}}/identifiers?tenantIdentifier=default
field: {{ABC#0.documentKey}}
Is the indexing not allowed if the response is a JSON array?
Kind regards,
Steven
On Wed, Sep 7, 2016 at 7:44 PM, Steven Hodgson <steven.hodgson@gmail.com <ma...@gmail.com> > wrote:
Awesome! Thanks Adi!
The generic result set structure works well.
Pada tanggal 7 Sep 2016 19.33, "Adi Raju" <adi.raju@confluxtechnologies.com <ma...@confluxtechnologies.com> > menulis:
Hi Steven,
You can use datatables as part of templates.
As long as the mustache syntax is right and you have appended &tenantIdentifier= param as part of the mapper query, you should get the results.
Sample: https://demo.openmf.org/#/viewtemplate/26
Regards,
Adi
From: Steven Hodgson [mailto:steven.hodgson@gmail.com <ma...@gmail.com> ]
Sent: 07 September 2016 17:43
To: user@fineract.incubator.apache.org <ma...@fineract.incubator.apache.org>
Subject: Data tables and Templates
Hello,
Is is possible to map Data Tables in the Templates / User Generated Documents?
The data tables return JSON Arrays, e.g.,
[{
"client_id": 1,
"extra": "hello world"
}]
I am trying to access this datatable (mapper key: dt) through the Templates, e.g.
{{#dt}} {{extra}}{{/dt}}, or {{dt#0.extra}}
But I am having zero luck (version 16.06). This closed issue seems to suggest this is possible, and I found no other documentation. Any suggestions?
Kind regards,
Steven
Re: Data tables and Templates
Posted by Steven Hodgson <st...@gmail.com>.
Quick follow-up:
Can client identifiers be included in the templates?
At https://demo.openmf.org/#/viewtemplate/26, I have tried adding:
*mapper*: ABC = clients/{{clientId}}/identifiers?tenantIdentifier=default
*field*: {{ABC#0.documentKey}}
Is the indexing not allowed if the response is a JSON array?
Kind regards,
Steven
On Wed, Sep 7, 2016 at 7:44 PM, Steven Hodgson <st...@gmail.com>
wrote:
> Awesome! Thanks Adi!
>
> The generic result set structure works well.
>
> Pada tanggal 7 Sep 2016 19.33, "Adi Raju" <adi.raju@confluxtechnologies.
> com> menulis:
>
>> Hi Steven,
>>
>>
>>
>> You can use datatables as part of templates.
>>
>> As long as the mustache syntax is right and you have appended
>> &tenantIdentifier= param as part of the mapper query, you should get the
>> results.
>>
>>
>>
>> Sample: https://demo.openmf.org/#/viewtemplate/26
>>
>>
>>
>> Regards,
>>
>> Adi
>>
>>
>>
>> *From:* Steven Hodgson [mailto:steven.hodgson@gmail.com]
>> *Sent:* 07 September 2016 17:43
>> *To:* user@fineract.incubator.apache.org
>> *Subject:* Data tables and Templates
>>
>>
>>
>> Hello,
>>
>> Is is possible to map Data Tables in the Templates / User Generated
>> Documents?
>>
>> The data tables return JSON Arrays, e.g.,
>> [{
>> "client_id": 1,
>> "extra": "hello world"
>> }]
>>
>> I am trying to access this datatable (mapper key: dt) through the
>> Templates, e.g.
>> {{#dt}} {{extra}}{{/dt}}, or {{dt#0.extra}}
>>
>> But I am having zero luck (version 16.06). This closed issue seems to
>> suggest this is possible, and I found no other documentation. Any
>> suggestions?
>>
>> Kind regards,
>> Steven
>>
>
RE: Data tables and Templates
Posted by Steven Hodgson <st...@gmail.com>.
Awesome! Thanks Adi!
The generic result set structure works well.
Pada tanggal 7 Sep 2016 19.33, "Adi Raju" <ad...@confluxtechnologies.com>
menulis:
> Hi Steven,
>
>
>
> You can use datatables as part of templates.
>
> As long as the mustache syntax is right and you have appended
> &tenantIdentifier= param as part of the mapper query, you should get the
> results.
>
>
>
> Sample: https://demo.openmf.org/#/viewtemplate/26
>
>
>
> Regards,
>
> Adi
>
>
>
> *From:* Steven Hodgson [mailto:steven.hodgson@gmail.com]
> *Sent:* 07 September 2016 17:43
> *To:* user@fineract.incubator.apache.org
> *Subject:* Data tables and Templates
>
>
>
> Hello,
>
> Is is possible to map Data Tables in the Templates / User Generated
> Documents?
>
> The data tables return JSON Arrays, e.g.,
> [{
> "client_id": 1,
> "extra": "hello world"
> }]
>
> I am trying to access this datatable (mapper key: dt) through the
> Templates, e.g.
> {{#dt}} {{extra}}{{/dt}}, or {{dt#0.extra}}
>
> But I am having zero luck (version 16.06). This closed issue seems to
> suggest this is possible, and I found no other documentation. Any
> suggestions?
>
> Kind regards,
> Steven
>
RE: Data tables and Templates
Posted by Adi Raju <ad...@confluxtechnologies.com>.
Hi Steven,
You can use datatables as part of templates.
As long as the mustache syntax is right and you have appended &tenantIdentifier= param as part of the mapper query, you should get the results.
Sample: https://demo.openmf.org/#/viewtemplate/26
Regards,
Adi
From: Steven Hodgson [mailto:steven.hodgson@gmail.com]
Sent: 07 September 2016 17:43
To: user@fineract.incubator.apache.org
Subject: Data tables and Templates
Hello,
Is is possible to map Data Tables in the Templates / User Generated Documents?
The data tables return JSON Arrays, e.g.,
[{
"client_id": 1,
"extra": "hello world"
}]
I am trying to access this datatable (mapper key: dt) through the Templates, e.g.
{{#dt}} {{extra}}{{/dt}}, or {{dt#0.extra}}
But I am having zero luck (version 16.06). This closed issue seems to suggest this is possible, and I found no other documentation. Any suggestions?
Kind regards,
Steven