hi, how to write a new UI template and replace the original UI part in ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

hi, how to write a new UI template and replace the original UI part in ofbiz

tyshan Shi
hi,

we can use a form .xml file to envoke the service and get the results and
show the result in the UI.
just like the below.
<form name="LookupDataSource" default-map-name="dataSource"
target="LookupDataSource" title="" type="single">
       <field name="dataSourceId"
title="${uiLabelMap.DataSourceDataSourceId}"><text-find/></field>
       <field name="description"
title="${uiLabelMap.DataSourceDataSourceDescription}"><text-find/></field>
       <field name="dataSourceTypeId"
title="${uiLabelMap.DataSourceDataSourceTypeId}">
           <drop-down>
               <entity-options description="${description}"
entity-name="DataSourceType" key-field-name="dataSourceTypeId">
                   <entity-order-by field-name="description"/>
               </entity-options>
           </drop-down>
       </field>
       <field name="submitButton" title="${uiLabelMap.CommonSave}"
widget-style="buttontext"><submit button-type="text-link"/></field>
   </form>

but unfortunately, my boss asked me to rewite the UI part to show the form,
not use the ofbiz style.
so how can I get the result and how to show the result in the new UI.

and can I build a template to share the style , and what will I do in the
configure files for ofbiz?

Or must I write .bsh to run in the backend and show the result in a .flt
page? so I must write more cods  for UI and .bsh file!

welcome any good advice from you.

Regards


Tyshan

_________________________________________________________________
More photos, more messages, more storage—get 2GB with Windows Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507

Reply | Threaded
Open this post in threaded view
|

Re: hi, how to write a new UI template and replace the original UI part in ofbiz

David E Jones

Just use CSS to style it or use FTL instead of the form widget.

-David


tyshan Shi wrote:

> hi,
>
> we can use a form .xml file to envoke the service and get the results
> and show the result in the UI.
> just like the below.
> <form name="LookupDataSource" default-map-name="dataSource"
> target="LookupDataSource" title="" type="single">
>       <field name="dataSourceId"
> title="${uiLabelMap.DataSourceDataSourceId}"><text-find/></field>
>       <field name="description"
> title="${uiLabelMap.DataSourceDataSourceDescription}"><text-find/></field>
>       <field name="dataSourceTypeId"
> title="${uiLabelMap.DataSourceDataSourceTypeId}">
>           <drop-down>
>               <entity-options description="${description}"
> entity-name="DataSourceType" key-field-name="dataSourceTypeId">
>                   <entity-order-by field-name="description"/>
>               </entity-options>
>           </drop-down>
>       </field>
>       <field name="submitButton" title="${uiLabelMap.CommonSave}"
> widget-style="buttontext"><submit button-type="text-link"/></field>
>   </form>
>
> but unfortunately, my boss asked me to rewite the UI part to show the
> form, not use the ofbiz style.
> so how can I get the result and how to show the result in the new UI.
>
> and can I build a template to share the style , and what will I do in
> the configure files for ofbiz?
>
> Or must I write .bsh to run in the backend and show the result in a .flt
> page? so I must write more cods  for UI and .bsh file!
>
> welcome any good advice from you.
>
> Regards
>
>
> Tyshan
>
> _________________________________________________________________
> More photos, more messages, more storage—get 2GB with Windows Live
> Hotmail.
> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 
>
>