[jira] [Updated] (OFBIZ-9258) Render form values from pulled data

2018-12-21 Thread Deepak Dixit (JIRA)


 [ 
https://issues.apache.org/jira/browse/OFBIZ-9258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-9258:

Affects Version/s: (was: 17.12.01)
   Trunk

> Render form values from pulled data
> ---
>
> Key: OFBIZ-9258
> URL: https://issues.apache.org/jira/browse/OFBIZ-9258
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Affects Versions: Trunk
>Reporter: James Yong
>Assignee: James Yong
>Priority: Minor
> Attachments:  OFBIZ-9258.patch, OFBIZ-9258.patch
>
>
> Currently, form data is being rendered together with the form widgets. To 
> better facilitate the use of Single Page or Mobile Application in the future, 
> it would be better to let the form widgets pull data from the server instead.
> An initial discussion was made at 
> http://ofbiz.135035.n4.nabble.com/Render-table-rows-from-pulled-data-td4703142.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (OFBIZ-9258) Render form values from pulled data

2017-04-20 Thread James Yong (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-9258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Yong updated OFBIZ-9258:
--
Attachment:  OFBIZ-9258.patch

Uploaded a new patch, as POC. 

Some points to note:

* Only implemented for Text and Text Area fields.
* Used a jQuery plugin from https://github.com/dtuite/jquery.populate. License 
is MIT.
* To keep things simple, 2-way binding is left out. So not using Vue JS here.
* Also applied OFBIZ-7004 with some modification as the original patch is not 
usable for trunk.
* There is a quick example at EditProductPromo page. To test it, do the 
following:
*# Navigate to Catalog Manager > Promos, and create a Product Promo, if needed.
*# Click on a Product Promo to go to the Edit Product Promo page.
*# For the purpose of demo, there is a delay of 1 second before text and text 
area fields are populated. 
* The following are the changes for EditProductPromo page to allow the form to 
pull its data from the server:
*# In the screen (view-map type = 'screen') that includes the form, we add 
{code:xml}{code}
*# create a new screen (view-map type = 'screenjson') that include the original 
form, and configure the routing in controller.xml i.e.
{code:xml}




...

{code}
Note that ‘screenjson’ is a new view-map type.
*# Using the new feature made possible from OFBIZ-7004, we write script within 
the html-template tag to query and populate the form.
{code:xml}



{code}

Feedbacks are welcome.


> Render form values from pulled data
> ---
>
> Key: OFBIZ-9258
> URL: https://issues.apache.org/jira/browse/OFBIZ-9258
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Affects Versions: Upcoming Release
>Reporter: James Yong
>Assignee: James Yong
>Priority: Minor
> Attachments:  OFBIZ-9258.patch, OFBIZ-9258.patch
>
>
> Currently, form data is being rendered together with the form widgets. To 
> better facilitate the use of Single Page or Mobile Application in the future, 
> it would be better to let the form widgets pull data from the server instead.
> An initial discussion was made at 
> http://ofbiz.135035.n4.nabble.com/Render-table-rows-from-pulled-data-td4703142.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)