Some issues with form widgets while converting ftls into widgets

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

Some issues with form widgets while converting ftls into widgets

Vikas Mayur-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Some issues with form widgets while converting ftls into widgets

Vikas Mayur-2
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 <[hidden email]> 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




--
Vikas Mayur
Reply | Threaded
Open this post in threaded view
|

Re: Some issues with form widgets while converting ftls into widgets

Jacopo Cappellato
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 <[hidden email]> 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
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Some issues with form widgets while converting ftls into widgets

Amit Patidar
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 <[hidden email]> 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 <[hidden email]> 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
> >
> >
> >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Some issues with form widgets while converting ftls into widgets

Amit Patidar
Sorry
It was by mistake It should be on different thread.


On 6/8/07, Amit Patidar <[hidden email]> wrote:

>
> 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 <[hidden email]> 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 <[hidden email]> 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
> > >
> > >
> > >
> > >
> >
> >
>