ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Patidar" <amitpati...@gmail.com>
Subject Re: Some issues with form widgets while converting ftls into widgets
Date Fri, 08 Jun 2007 16:06:27 GMT
Here are the details that
>From the  ProductScreens.xml

<entity-condition entity-name="PartyRole" list-name="organizations"
use-cache="true">
                    <condition-expr field-name="roleTypeId"
operator="equals" value="INTERNAL_ORGANIZATIO"/>
                </entity-condition>
This screen include the form below


>From the form
<field name="organizationPartyId" title="${uiLabelMap.ProductOrganization}
:">
            <drop-down allow-empty="false">
                 <list-options key-name="partyId" list-name="organizations"
description="[${partyId}]" list-entry-name=""/>
</drop-down>
</field>

Here from above code i wanted that  in the  " description="[${partyId}]"  "
it should be  some thing like    "  description="${groupName}[${partyId}]"
"    where group name belongs to  PartyNameView
table
ie i wanted to know the way  how we can display the value's of two different
entities in  a single
drop-down



On 6/8/07, Jacopo Cappellato <tiz@sastau.it> wrote:
>
> Hi Vikas,
>
> the framework will populate the rowCount field for you.
> For a good example of a multi form (where each line has its own row
> number) have a look at the Product->Prices form (the one at the top of
> the screen, with the list of prices that are editable).
>
> Hope this helps,
>
> Jacopo
>
>
> Vikas Mayur wrote:
> > Some corrections :
> > Following is the code of the list form where i have left the value of
> > _rowCount blank.
> >    As i donot know how to process this variable and need help from
> > community to sort out this problem.
> >
> > Thanx,
> >
> > On 6/8/07, Vikas Mayur <vikasmayur@gmail.com> wrote:
> >>
> >>
> >> 1) <request-map uri="updateCategoryProductMember">
> >>         <security https="true" auth="true"/>
> >>         <event type="service-multi" path=""
> >> invoke="updateProductToCategory"/>
> >>         <response name="success" type="view"
> >> value="EditCategoryProducts"/>
> >>         <response name="error" type="view"
> value="EditCategoryProducts"/>
> >>     </request-map>
> >>
> >>     Can anyone point what the above event type "service-multi" means.
> >>
> >> 2) I am encountering a variable _rowCount that need to be incremented
> and
> >> assigned to each row, that are displayed in a list form.
> >>     This _rowCount is used by ServiceMultiEventHandler.java, if not
> >> passed
> >> from the list form, the form throw an error on update.
> >>     Following is the code of the list form where i have left the value
> of
> >> _rowCount.
> >>
> >> <form name="ListProductFeatures" type="list"
> >> list-name="productFeatureAndAppls"
> >> target="UpdateFeatureToProductApplication"
> >>     default-widget-style="tabletext">
> >>     <actions>
> >>             <entity-and entity-name="ProductFeatureAndAppl"
> >> list-name="productFeatureAndAppls">
> >>                 <field-map field-name="productId"
> env-name="productId"/>
> >>             </entity-and>
> >>         </actions>
> >>         <auto-fields-service
> >> service-name="updateFeatureToProductApplication"/>
> >>         <field name="_useRowSubmit"><hidden value="Y"/></field>
> >>         <field name="_checkGlobalScope"><hidden value="Y"/></field>
> >>         <field name="_rowCount"><hidden value="${ }"/></field>
> >>         <field name="productId"><hidden value="${productId}"/></field>
> >>         <field name="productFeatureId" title="ID"><display/></field>
> >>         <field name="description"
> >> title="DescriptionType"><display/></field>
> >>         <field name="productFeatureTypeId" title="Category">
> >>             <hyperlink
> >>
> target="EditFeatureCategoryFeatures?productFeatureCategoryId=${productFeatureCategoryId}&amp;productId=${productId}"
> >>
> >> description="${description}
> >>             [${productFeatureCategoryId}]"/>
> >>         </field>
> >>         <field name="fromDate"><display/></field>
> >>         <field name="thruDate"></field>
> >>         <field name="amount"></field>
> >>         <field name="sequenceNum"></field>
> >>         <field name="productFeatureApplTypeId" title="Application
> Type">
> >>             <drop-down allow-empty="false">
> >>                 <entity-options entity-name="ProductFeatureApplType"
> >> description="${description}" key-field-name="productFeatureApplTypeId">
> >>                     <entity-order-by field-name="description"/>
> >>                 </entity-options>
> >>             </drop-down>
> >>         </field>
> >>         <field name="productFeatureApplTypeId" title="Application
> Type">
> >>             <drop-down allow-empty="false">
> >>                 <entity-options entity-name="ProductFeatureApplType"
> >> description="${description}" key-field-name="productFeatureApplTypeId">
> >>                     <entity-order-by field-name="description"/>
> >>                 </entity-options>
> >>             </drop-down>
> >>         </field>
> >>        <field name="submitButton" title="${ uiLabelMap.CommonUpdate}"
> >> widget-style="smallSubmit"><submit button-type="button"/></field>
> >>        <field name="deleteLink" title="" widget-style="buttontext">
> >>             <hyperlink
> >>
> target="RemoveFeatureFromProduct?productId=${productId}&amp;productFeatureId=${productFeatureId}&amp;fromDate=${fromDate}"
> >>
> >>                 description="${uiLabelMap.CommonDelete }"
> >> also-hidden="false"/>
> >>         </field>
> >>     </form>
> >>
> >> This list form willl go into ProductForms.xml and corresponding ftl
> file
> >> in the trunk is EditProductFeatures.ftl
> >> Both the controller entry and list form above are related to each
> other.
> >> Any pointers will be of great help.
> >>
> >> Thanx,
> >> --
> >> Vikas Mayur
> >
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message