Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 11588200B4C for ; Thu, 7 Jul 2016 09:18:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0D090160A68; Thu, 7 Jul 2016 07:18:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 37DC3160A59 for ; Thu, 7 Jul 2016 09:18:12 +0200 (CEST) Received: (qmail 41098 invoked by uid 500); 7 Jul 2016 07:18:11 -0000 Mailing-List: contact dev-help@fineract.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.incubator.apache.org Delivered-To: mailing list dev@fineract.incubator.apache.org Received: (qmail 41062 invoked by uid 99); 7 Jul 2016 07:18:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 07:18:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 62F4EC0155 for ; Thu, 7 Jul 2016 07:18:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.701 X-Spam-Level: X-Spam-Status: No, score=-0.701 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=confluxtechnologies-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id g8HDlViB9VeP for ; Thu, 7 Jul 2016 07:18:06 +0000 (UTC) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id F3FAA5F478 for ; Thu, 7 Jul 2016 07:18:05 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id uj8so3879153pab.3 for ; Thu, 07 Jul 2016 00:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=confluxtechnologies-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=aWhO5vZWNOfnyOAw1rnt3WjftT7LrBBkR72/Ikts3QE=; b=mb+Yy95iDrekOIJS4oFi4wnhviJlBbl/+fbAKrQ5R8YdJg+8ul/fJruTWg7aAf4Ek/ wD+ZlvkqBOZEjjptbkFoCCpw7l0GwEZn81cBJ0chFswCb2SzgoETiIbmUW+xsBE0Uowu RqHWALGkvAO1s31t2/e4z6efLf9qaXTx6rCsXkq9Mv3ad+Xl7LAmGjrFhm0Zwr3BHuKK xBhBE/2PrTC+9fnk/UQ1K9IhMiPcbgtf2O43+vOWYDlLl2+8o+X500CFomMsWjEU4EO0 4udUbwrcW/YQw9pL/zj8IWZPEPk5KXgYPiSwZgMedopTmO4TwUr2yJg9ahyGv9/XA7+l 4uwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=aWhO5vZWNOfnyOAw1rnt3WjftT7LrBBkR72/Ikts3QE=; b=SYotgkinnu5yHTjN9Vv/2F46KGyInViZ8384dec+UMZqjFfEc3kyRWrrE9OfQ1Hojr gqrXE1fh1QbMHM5rUDsUEw4wgJRFLdEGmZTrphoQnx6BBS7imuq0bkRZBp21t0vQO6We jFxlV6irzy0nAY7wFLhhuQCo1of3ApCYfJDW3uzIHLoQ35ka9qKTdRP4QgiWWP8hxHsy 8sHxJfCEWijA6tDmg62pFM3azFc5agHh6GGexC0b8LoqRrYHBeF+Zk5x/EygwnYA1x7R pQuPlRx0tA8gp77dS0a8V10qXJCwF3YbFW9xDqu3ad/F8XbnaN9QIn2t+4kzSO1riRfi c84g== X-Gm-Message-State: ALyK8tLge3aRNADajy3fLwfkd/MEgmd619ztHz4v1gzOSzwTGbo0qo5DbYMaJwPGHcTjWA== X-Received: by 10.66.134.52 with SMTP id ph20mr21572054pab.72.1467875878569; Thu, 07 Jul 2016 00:17:58 -0700 (PDT) Received: from ConfluxAdi ([106.51.39.37]) by smtp.gmail.com with ESMTPSA id 69sm2068471pfc.90.2016.07.07.00.17.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jul 2016 00:17:57 -0700 (PDT) From: "Adi Raju" To: Cc: "'Ashok'" , "'Nazeer Shaik'" References: <013901d1d81c$bce456e0$36ad04a0$@confluxtechnologies.com> In-Reply-To: Subject: RE: Configuring template to pull Guarantor Data Date: Thu, 7 Jul 2016 12:48:03 +0530 Message-ID: <014c01d1d81f$b4d4dd50$1e7e97f0$@confluxtechnologies.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIVsDSaUvOtrLjH8Ywe/VKCCdHcTgH5e32gAq4n80sByz6H4QHw4k9eAnuOt/UAy8Y5EgKd0KvgnxKW7sA= Content-Language: en-in archived-at: Thu, 07 Jul 2016 07:18:13 -0000 You are right sander, guarantor info is part of associations=3Dall. There were questions on usage of mappers, So I was just trying provide = Proof Of Concept for usage of additional mapper as well. Regards, Adi -----Original Message----- From: Sander van der Heyden [mailto:sandervanderheyden@musoni.eu]=20 Sent: 07 July 2016 12:41 To: dev@fineract.incubator.apache.org Cc: Ashok ; Nazeer Shaik = Subject: Re: Configuring template to pull Guarantor Data 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=3Dall 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! Postal address: = Hillegomstraat 12-14, office 0.09, 1058 LS, Amsterdam, The Netherlands On Thu, Jul 7, 2016 at 8:56 AM, Adi Raju = wrote: > Hi All, > > > > I have created a sample template by name =E2=80=9CSample Guarantors = Template=E2=80=9D=20 > 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=20 > 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=20 > 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 ; Nazeer Shaik <=20 > 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=20 > with a loan account. > > > > > > > Regards, > Ashok > > > > On Thu, Jul 7, 2016 at 8:33 AM, Amit Sharma amkrsharma@gmail.com> > wrote: > > Hi All, > > It would be great if someone can recommend the correct mapper and=20 > mapper key for this. > > Thanks, > Amit Sharma > > On Wed, Jul 6, 2016 at 12:12 PM, Sander van der Heyden <=20 > sandervanderheyden@musoni.eu > > wrote: > > > Hi Ashok, > > > > Have not yet digged into the code for this, but we are also looking=20 > > at a feature implementation which would use UGD and potentially=20 > > extend it > with a > > bit more user-friendly generation of the various mappers. Therefore=20 > > 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=20 > > java > libs > > I quickly checked now do seem to also support it, so might be a=20 > > 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=20 > > Twitter! Postal address:=20 > > Hillegomstraat 12-14, office 0.09, 1058 LS, Amsterdam, The=20 > > Netherlands > > > > On Wed, Jul 6, 2016 at 8:17 AM, Amit Sharma > wrote: > > > > > Thanks Ashok. > > > > > > Though I am not a techie, I have run it myself and found it=20 > > > working > under > > > loan documents. > > > > > > I have used the Mapper Key:"guarantor" and the Mapper value: " > > > loans/{{loanId}}/guarantors/1?tenantIdentifier=3Ddefault" . = Instead=20 > > > of passing the {{guarantorId}}, I hardcoded it to 1 (the first=20 > > > 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=20 > > > the alternative. > > > > > > Thanks, > > > Amit Sharma > > > > > > On Wed, Jul 6, 2016 at 10:51 AM, Ashok=20 > > > > > > > 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=20 > > > > and > > hashmap > > > > or go with a custom pentaho report. I suggest second option=20 > > > > which > gives > > > > better control over format and the content of loan document. > > > > On Wed, 6 Jul 2016 at 9:48 AM, Amit Sharma > > > wrote: > > > > > > > > > In the loan documents we need details of the Guarantor, I am=20 > > > > > 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=3Ddefau= lt" > > > > > . When I try to pick the value " guarantor.firstname" its=20 > > > > > throwing > > the > > > > > exception "cannot deserialize instance of java.util.HashMap=20 > > > > > out of STRAY_ARRAY token" > > > > > > > > > > -- > > > > > stay beautiful, > > > > > Amit Sharma > > > > > > > > > -- > > > > Regards, > > > > Ashok > > > > > > > > Sent from mobile device > > > > > > > > > > > > > > > > -- > > > stay beautiful, > > > Amit Sharma > > > > > > > > > -- > stay beautiful, > Amit Sharma > > > >