Re: [DISCUSSION] Make Back-Office screens dynamic

2020-04-09 Thread James Yong
Hi all, Done some refactoring for OFBIZ-11409: POC for Dynamic Screen Using MVVM to allow multiple view models working together. Will prepare a PR if there is community interest. Regards, James On 2020/03/15 01:01:43, James Yong wrote: > Hi all, > > Updated the patch for OFBIZ-11409: POC

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-03-14 Thread James Yong
Hi all, Updated the patch for OFBIZ-11409: POC for Dynamic Screen Using MVVM. I think is worth checking out. Regards, James On 2020/02/23 14:58:55, James Yong wrote: > Hi all, > > I have created a JIRA issue for it > i.e. OFBIZ-11409: POC for Dynamic Screen Using MVVM. > > Chose KnockoutJs

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-02-23 Thread James Yong
Hi all, I have created a JIRA issue for it i.e. OFBIZ-11409: POC for Dynamic Screen Using MVVM. Chose KnockoutJs because it uses only the data-bind attribute, instead of special attributes. Regards, James On 2020/01/15 10:52:14, Jacques Le Roux wrote: > Hi James, > > I did not look into

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-15 Thread Jacques Le Roux
Hi James, I did not look into all details, but this one looks good indeed. Thanks Jacques Le 14/01/2020 à 16:49, James Yong a écrit : Hi Jacques, Found another JQuery friendly MVVM framework to consider: https://knockoutjs.com/. Support data-binding and computed properties etc. Regards,

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-14 Thread James Yong
Hi Jacques, Found another JQuery friendly MVVM framework to consider: https://knockoutjs.com/. Support data-binding and computed properties etc. Regards, James On 2020/01/11 12:56:24, James Yong wrote: > Hi Jacques, > > Points taken. > > Thanks, > James > > On 2020/01/11 10:46:03,

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-11 Thread James Yong
Hi Jacques, Points taken. Thanks, James On 2020/01/11 10:46:03, Jacques Le Roux wrote: > Also jquery.x is not much maintained, last changes are from June 2015... > > Le 11/01/2020 à 11:44, Jacques Le Roux a écrit : > > Just noticed it needs Bower to install and at the moment Bowers says > >

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-11 Thread Jacques Le Roux
Also jquery.x is not much maintained, last changes are from June 2015... Le 11/01/2020 à 11:44, Jacques Le Roux a écrit : Just noticed it needs Bower to install and at the moment Bowers says    "...psst! While Bower is maintained, we recommend using Yarn and Webpack

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-11 Thread Jacques Le Roux
Just noticed it needs Bower to install and at the moment Bowers says "...psst! While Bower is maintained, we recommend using Yarn and Webpack or Parcel for front-end projects read how to migrate

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-11 Thread Jacques Le Roux
I remember having read about MVVM years ago, quite interesting, thanks James! Jacques Le 10/01/2020 à 16:50, James Yong a écrit : Hi Gil, I wonder if this library helps for a start: https://github.com/joshualjohnson/jquery.x Regards, James On 2019/12/13 15:52:38, Gil Portenseigne wrote:

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-10 Thread Gil Portenseigne
Hello James, Thanks for the reference we will look into that. Regards, On Fri, Jan 10, 2020 at 03:50:23PM -, James Yong wrote: > Hi Gil, > > I wonder if this library helps for a start: > https://github.com/joshualjohnson/jquery.x > > Regards, > James > signature.asc Description: PGP

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-10 Thread James Yong
Hi Gil, I wonder if this library helps for a start: https://github.com/joshualjohnson/jquery.x Regards, James On 2019/12/13 15:52:38, Gil Portenseigne wrote: > Chapter One: How to manage the updating area > > Hello, > > After different discussions already listed by Taher [1-9], Leila, >

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-08 Thread Olivier Heintz
very quick answer (inline) Best Regards Le 08/01/2020 à 17:39, Gavin Mabie a écrit : > Hi Olivier > > Quick question: Are you using NodeJs & NPM in your POC? yes And if so are you > integrating with Gradle? Not yet > > Cheers > > Gavin >

Re: [DISCUSSION] Make Back-Office screens dynamic

2020-01-08 Thread Gavin Mabie
Hi Olivier Quick question: Are you using NodeJs & NPM in your POC? And if so are you integrating with Gradle? Cheers Gavin On Mon, Dec 23, 2019 at 6:33 PM Olivier Heintz wrote: > > > Le 17/12/2019 à 15:12, Gil Portenseigne a écrit : > > Hello Taher, > > > > The proposition you saw with your

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-23 Thread Olivier Heintz
Le 17/12/2019 à 15:12, Gil Portenseigne a écrit : > Hello Taher, > > The proposition you saw with your first glance is . > > In that vision implementing a theme for SPA application should be > possible, but in our opinion a gigantic task to support the screen > engine. We think that for

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Jacques Le Roux
Thanks indeed Gavin for all the details, I guess others have also implemented solutions with SPA frameworks. It would be interesting to compare the implementations... Thanks Jacques Le 17/12/2019 à 21:11, Gil Portenseigne a écrit : Thanks Gavin for sharing, i have a clearer view now :). Le

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gil Portenseigne
Thanks Gavin for sharing, i have a clearer view now :). Le 17:05 - mardi 17 déc., Gavin Mabie a écrit : > Hi Gil > > I used a type=groovy service to resolve the form location eg. > /* > *@paramater formLocaction (where the form resides in the system) > *@parameter formName (passed as request

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gavin Mabie
Example Angular-Ofbiz formField Service: import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { of as observableOf,Observable } from 'rxjs'; import { OfbizForm, OfbizFormFieldsBase, OfbizTexboxField, OfbizDisplayField,

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gavin Mabie
Example of Angular-Ofbiz formField Service import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { of as observableOf,Observable } from 'rxjs'; import { OfbizForm, OfbizFormFieldsBase, OfbizTexboxField, OfbizDisplayField,

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gavin Mabie
Here's a more complete snippet to get a form - in Groovy. if(formLocation) { String delegatorName = delegator.getDelegatorName(); if (delegatorName.contains("default#")) { delegatorName = "default"; } DispatchContext dispatchContext = dispatcher.getDispatchContext(); ModelReader

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gavin Mabie
Hi Gil I used a type=groovy service to resolve the form location eg. /* *@paramater formLocaction (where the form resides in the system) *@parameter formName (passed as request parameter) * returns an Ofbiz form entity with all the normal functionalties associated with ModelForm * this is

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gil Portenseigne
Hello Gavin, Thanks for four feedback, that's very interesting ! Could you elaborate about the OFBiz forms usage you did in your angular implementation ? You just used view-map with simple screen/form ? Cheers ! Gil Le 12:26 - mardi 17 déc., Gavin Mabie a écrit : > Hi Taher > > I've been

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gil Portenseigne
Hello Taher, The proposition you saw with your first glance is about : * Intent : describing into a link/menu definition, the way that the dynamically rendered form will refresh the screen upon submission success * Implementation : adding a tag that will generate a refreshment event

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gavin Mabie
Hi Oliver I think separating the GUI completely from the application layer could be an option worthy of exploring. That would mean api requests and with standard responses in JSON or XML. What the end user does with the response is entirely up to him/her. In this scenario the responses and

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Gavin Mabie
Hi Taher I've been using Angular for custom apps over the past year. This is my approach: 1. Ofbiz deployed as an AppServer: 1.1 Ofbiz controller resolves API request calls; 1.2 Ofbiz Service Engine executes Services; 1.3 Entity Engine for persistence; 1.4 Returns JSON object - including Ofbiz

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Olivier Heintz
Hello Taher, > Do you want an SPA framework now or in the future, is a very important question but which road to use to go is important too. As with the current gui renderer architecture, it's possible to have multiple rendrer engine for the "same" screen/menu/form xml files, one question is :

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-17 Thread Olivier Heintz
Hello Gil, (and Néréide Team) Thank you for sharing research and formal process to be concentrated on concept first. just short remarks inline Le 13/12/2019 à 16:52, Gil Portenseigne a écrit : > Chapter One: How to manage the updating area > > Hello, > > After different discussions already

Re: [DISCUSSION] Make Back-Office screens dynamic

2019-12-14 Thread Taher Alkhateeb
Hello Gil, Great research on the subject, thank you for sharing. I could be wrong here, but at a first glance it seems you want to essentially create a tag " wrote: > > Chapter One: How to manage the updating area > > Hello, > > After different discussions already listed by Taher [1-9], Leila, >

[DISCUSSION] Make Back-Office screens dynamic

2019-12-13 Thread Gil Portenseigne
Chapter One: How to manage the updating area Hello, After different discussions already listed by Taher [1-9], Leila, Nicolas and me tried another approach. Instead of analyzing how to implement different functionalities offered by modern js framework, we did analyzed how end user use, in