fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander van der Heyden <sandervanderhey...@musoni.eu>
Subject Re: Configuring template to pull Guarantor Data
Date Thu, 07 Jul 2016 07:11:27 GMT
Hi Adi,

Nice one :-)

BTW: Did you need to add a new mapper for this one? Is the guarantor info
not included in the associations=all of the loan already?

S


Sander van der Heyden

CTO Musoni Services




Mobile (NL): +31 (0)6 14239505
Skype: s.vdheyden
Website: musonisystem.com
Follow us on Twitter!  <https://twitter.com/musonimfi>
Postal address: Hillegomstraat 12-14, office 0.09, 1058 LS, Amsterdam,
The Netherlands

On Thu, Jul 7, 2016 at 8:56 AM, Adi Raju <adi.raju@confluxtechnologies.com>
wrote:

> Hi All,
>
>
>
> I have created a sample template by name “Sample Guarantors Template” on
> https://demo.openmf.org, which is able to iterate on the guarantors.
>
> Please have a look at it for sample implementation.
>
> As Sander pointed out, implementation is based on mustache syntax and a
> proper syntax should work.
>
> The problem I see is with the editor input box that we are using on the UI.
>
> If we start typing mustache syntax directly, editor is interpreting it as
> text and converting them into something else.
>
> I did the coding on notepad and copied the text into the editor and it has
> started working.
>
> I am not even a successful user of this input box, so regular users should
> be able to figure out proper way to add the template structure.
>
>
>
> Regards,
>
> Adi
>
>
>
> From: Ashok [mailto:ashok@confluxtechnologies.com]
> Sent: 07 July 2016 10:28
> To: Adi Raju <adi.raju@confluxtechnologies.com>; Nazeer Shaik <
> nazeer.shaik@confluxtechnologies.com>
> Cc: dev@fineract.incubator.apache.org
> Subject: Re: Configuring template to pull Guarantor Data
>
>
>
> Hi Adi/Nazeer,
>
>
>
> Can you take a look at what Sander has metioned.
>
>
>
> The requirement from Amit is to display list of Guarantors associated with
> a loan account.
>
>
>
>
>
>
> Regards,
> Ashok
>
>
>
> On Thu, Jul 7, 2016 at 8:33 AM, Amit Sharma <amkrsharma@gmail.com <mailto:
> amkrsharma@gmail.com> > wrote:
>
> Hi All,
>
> It would be great if someone can recommend the correct mapper and mapper
> key for this.
>
> Thanks,
> Amit Sharma
>
> On Wed, Jul 6, 2016 at 12:12 PM, Sander van der Heyden <
> sandervanderheyden@musoni.eu <mailto:sandervanderheyden@musoni.eu> >
> wrote:
>
> > Hi Ashok,
> >
> > Have not yet digged into the code for this, but we are also looking at a
> > feature implementation which would use UGD and potentially extend it
> with a
> > bit more user-friendly generation of the various mappers. Therefore I was
> > reading up on the various items and wiki pages on this and ran into this
> > e-mail.
> >
> > When looking at this, was the issue in 'our' implementation of the
> mustache
> > library? Or in the fact that we've got the wrong object types available?
> > According to the Mustache docs this should be available, and the java
> libs
> > I quickly checked now do seem to also support it, so might be a matter of
> > correctly passing in the mappers?
> >
> > Sander
> >
> >
> > Sander van der Heyden
> >
> > CTO Musoni Services
> >
> >
> >
> >
> > Mobile (NL): +31 (0)6 14239505
> > Skype: s.vdheyden
> > Website: musonisystem.com <http://musonisystem.com>
> > Follow us on Twitter!  <https://twitter.com/musonimfi>
> > Postal address: Hillegomstraat 12-14, office 0.09, 1058 LS, Amsterdam,
> > The Netherlands
> >
> > On Wed, Jul 6, 2016 at 8:17 AM, Amit Sharma <amkrsharma@gmail.com
> <mailto:amkrsharma@gmail.com> > wrote:
> >
> > > Thanks Ashok.
> > >
> > > Though I am not a techie, I have run it myself and found it working
> under
> > > loan documents.
> > >
> > > I have used the Mapper Key:"guarantor" and the Mapper value: "
> > > loans/{{loanId}}/guarantors/1?tenantIdentifier=default" . Instead of
> > > passing the {{guarantorId}}, I hardcoded it to 1 (the first guarantor
> in
> > > the systeme)and I have been able to pick the value
> "guarantor.firstname"
> > > and "guarantor.lastname".
> > >
> > > The problem then to me appears to be how does {{guarantorId}} get
> > populated
> > > in the template, {{loan.guarantorId}} isnt working, what would be the
> > > alternative.
> > >
> > > Thanks,
> > > Amit Sharma
> > >
> > > On Wed, Jul 6, 2016 at 10:51 AM, Ashok <ashok@confluxtechnologies.com
> <mailto:ashok@confluxtechnologies.com> >
> > > wrote:
> > >
> > > > Hi Amit,
> > > >
> > > > Adding array or hash map is currently not supported in loan
> documents,
> > we
> > > > tried to included array object but we got similar error.
> > > >
> > > > Either we need to enhance the loan documents to support array and
> > hashmap
> > > > or go with a custom pentaho report. I suggest second option which
> gives
> > > > better control over format and the content of loan document.
> > > > On Wed, 6 Jul 2016 at 9:48 AM, Amit Sharma <amkrsharma@gmail.com
> <mailto:amkrsharma@gmail.com> >
> > wrote:
> > > >
> > > > > In the loan documents we need details of the Guarantor, I am using
> > the
> > > > loan
> > > > > based  template to configure this and have used the "Mapper Key:
> > > > guarantor"
> > > > > and the "Mapper value: ::
> > > > >
> > > >
> > >
> >
> loans/{{loanId}}/guarantors/{{loan.guarantorId}}?tenantIdentifier=default"
> > > > > . When I try to pick the value " guarantor.firstname" its throwing
> > the
> > > > > exception "cannot deserialize instance of java.util.HashMap out of
> > > > > STRAY_ARRAY token"
> > > > >
> > > > > --
> > > > > stay beautiful,
> > > > > Amit Sharma
> > > > >
> > > > --
> > > > Regards,
> > > > Ashok
> > > >
> > > > Sent from mobile device
> > > >
> > >
> > >
> > >
> > > --
> > > stay beautiful,
> > > Amit Sharma
> > >
> >
>
>
>
> --
> stay beautiful,
> Amit Sharma
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message