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 < sandervanderhey...@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 > 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 <amkrsha...@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 <as...@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 <amkrsha...@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