You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Lionel Raymundi - Poincenot <li...@poincenot.com> on 2017/11/08 18:54:03 UTC
Return Id when creating a record in datatable
Hi guys,
I have just realized that after creating a new entry in a datatable, the id
of the new record is not returned. Returning the new entity's id is a
common practice after any creation action.
For example, for a new item created on a client datatable the response is
this json:
1. clientId:852
2. officeId:1
3. resourceId:852
As you can see, both clientId and resourceId are the same and represent
the id of the client for which I added the datatable record.
You can try it on demo, by going to
https://demo.openmf.org/#/viewclient/852?fromEntity=client and adding an
entry to the FAMILY DETAILS data table
Is this the expected behavior? Or the new entity id should be returned in
"resourceId"?
Regards
Lionel
Re: Return Id when creating a record in datatable
Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Lionel.
confirmed and send PR.
Thank you
Santosh
On Thu, Nov 9, 2017 at 7:05 PM, Lionel Raymundi - Poincenot <
lionel@poincenot.com> wrote:
> Done!
>
> https://issues.apache.org/jira/browse/FINERACT-552
>
> If you confirm me that the id of the newly created entity should be
> returned on "resourceId" we can try to fix it and create a PR
>
> Regards
>
> Lionel
>
>
> 2017-11-09 2:01 GMT-03:00 Santosh Math <sa...@confluxtechnologies.com>:
>
> > Hi Lionel,
> >
> > Looks like this is issue. Will you please create a ticket on this ?
> >
> > Thanks
> > Santosh
> >
> >
> >
> > On Thu, Nov 9, 2017 at 12:24 AM, Lionel Raymundi - Poincenot <
> > lionel@poincenot.com> wrote:
> >
> > > Hi guys,
> > >
> > > I have just realized that after creating a new entry in a datatable,
> the
> > id
> > > of the new record is not returned. Returning the new entity's id is a
> > > common practice after any creation action.
> > >
> > > For example, for a new item created on a client datatable the response
> is
> > > this json:
> > >
> > > 1. clientId:852
> > > 2. officeId:1
> > > 3. resourceId:852
> > >
> > > As you can see, both clientId and resourceId are the same and
> represent
> > > the id of the client for which I added the datatable record.
> > > You can try it on demo, by going to
> > > https://demo.openmf.org/#/viewclient/852?fromEntity=client and adding
> an
> > > entry to the FAMILY DETAILS data table
> > >
> > > Is this the expected behavior? Or the new entity id should be returned
> in
> > > "resourceId"?
> > >
> > >
> > > Regards
> > >
> > > Lionel
> > >
> >
>
Re: Return Id when creating a record in datatable
Posted by Ippez Robert <ip...@gmail.com>.
Also same in account creation. The account number of the newly created
Loans, Savings, RD, FD and Share Account should be return. We need this
values too.
On Thu, Nov 9, 2017 at 4:35 PM, Lionel Raymundi - Poincenot <
lionel@poincenot.com> wrote:
> Done!
>
> https://issues.apache.org/jira/browse/FINERACT-552
>
> If you confirm me that the id of the newly created entity should be
> returned on "resourceId" we can try to fix it and create a PR
>
> Regards
>
> Lionel
>
>
> 2017-11-09 2:01 GMT-03:00 Santosh Math <sa...@confluxtechnologies.com>:
>
> > Hi Lionel,
> >
> > Looks like this is issue. Will you please create a ticket on this ?
> >
> > Thanks
> > Santosh
> >
> >
> >
> > On Thu, Nov 9, 2017 at 12:24 AM, Lionel Raymundi - Poincenot <
> > lionel@poincenot.com> wrote:
> >
> > > Hi guys,
> > >
> > > I have just realized that after creating a new entry in a datatable,
> the
> > id
> > > of the new record is not returned. Returning the new entity's id is a
> > > common practice after any creation action.
> > >
> > > For example, for a new item created on a client datatable the response
> is
> > > this json:
> > >
> > > 1. clientId:852
> > > 2. officeId:1
> > > 3. resourceId:852
> > >
> > > As you can see, both clientId and resourceId are the same and
> represent
> > > the id of the client for which I added the datatable record.
> > > You can try it on demo, by going to
> > > https://demo.openmf.org/#/viewclient/852?fromEntity=client and adding
> an
> > > entry to the FAMILY DETAILS data table
> > >
> > > Is this the expected behavior? Or the new entity id should be returned
> in
> > > "resourceId"?
> > >
> > >
> > > Regards
> > >
> > > Lionel
> > >
> >
>
--
Ippez Roberts
Director & Founder - Skyline Technologies Uganda
"IT Consultants & Engineers"
P.O.Box 155, Moyo
UGANDA.
Tel: +256788725408/789643284
Skype ID: ippez.robert1
Email: ippezrobert@gmail.com
Re: Return Id when creating a record in datatable
Posted by Lionel Raymundi - Poincenot <li...@poincenot.com>.
Done!
https://issues.apache.org/jira/browse/FINERACT-552
If you confirm me that the id of the newly created entity should be
returned on "resourceId" we can try to fix it and create a PR
Regards
Lionel
2017-11-09 2:01 GMT-03:00 Santosh Math <sa...@confluxtechnologies.com>:
> Hi Lionel,
>
> Looks like this is issue. Will you please create a ticket on this ?
>
> Thanks
> Santosh
>
>
>
> On Thu, Nov 9, 2017 at 12:24 AM, Lionel Raymundi - Poincenot <
> lionel@poincenot.com> wrote:
>
> > Hi guys,
> >
> > I have just realized that after creating a new entry in a datatable, the
> id
> > of the new record is not returned. Returning the new entity's id is a
> > common practice after any creation action.
> >
> > For example, for a new item created on a client datatable the response is
> > this json:
> >
> > 1. clientId:852
> > 2. officeId:1
> > 3. resourceId:852
> >
> > As you can see, both clientId and resourceId are the same and represent
> > the id of the client for which I added the datatable record.
> > You can try it on demo, by going to
> > https://demo.openmf.org/#/viewclient/852?fromEntity=client and adding an
> > entry to the FAMILY DETAILS data table
> >
> > Is this the expected behavior? Or the new entity id should be returned in
> > "resourceId"?
> >
> >
> > Regards
> >
> > Lionel
> >
>
Re: Return Id when creating a record in datatable
Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Lionel,
Looks like this is issue. Will you please create a ticket on this ?
Thanks
Santosh
On Thu, Nov 9, 2017 at 12:24 AM, Lionel Raymundi - Poincenot <
lionel@poincenot.com> wrote:
> Hi guys,
>
> I have just realized that after creating a new entry in a datatable, the id
> of the new record is not returned. Returning the new entity's id is a
> common practice after any creation action.
>
> For example, for a new item created on a client datatable the response is
> this json:
>
> 1. clientId:852
> 2. officeId:1
> 3. resourceId:852
>
> As you can see, both clientId and resourceId are the same and represent
> the id of the client for which I added the datatable record.
> You can try it on demo, by going to
> https://demo.openmf.org/#/viewclient/852?fromEntity=client and adding an
> entry to the FAMILY DETAILS data table
>
> Is this the expected behavior? Or the new entity id should be returned in
> "resourceId"?
>
>
> Regards
>
> Lionel
>