Re: svn commit: r1064466 - /ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml

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

Re: svn commit: r1064466 - /ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml

Jacopo Cappellato-4
Hi Hans,

please use the <parameter> element for the parameters (like "partyId" and "productId") in the links.

Regards,

Jacopo

On Jan 28, 2011, at 6:53 AM, [hidden email] wrote:

> Author: hansbak
> Date: Fri Jan 28 05:53:29 2011
> New Revision: 1064466
>
> URL: http://svn.apache.org/viewvc?rev=1064466&view=rev
> Log:
> make 2 more fields clickable to party and catalog info
>
> Modified:
>    ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
>
> Modified: ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml?rev=1064466&r1=1064465&r2=1064466&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml (original)
> +++ ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml Fri Jan 28 05:53:29 2011
> @@ -314,9 +314,13 @@ under the License.
>         </field>
>         <field name="facilityId"><display/></field>
>         <field name="partyId" title="${uiLabelMap.ProductSupplier}">
> -            <display description="${groovy:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, partyId, false);}"/>
> +            <display-entity entity-name="PartyNameView" description="${LastName} ${firstName} ${middleName} ${groupName}">
> +                <sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" description="[${partyId}]" target-type="inter-app"/>
> +            </display-entity>
> +        </field>
> +        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}">
> +            <hyperlink target="/catalog/control/EditProductSuppliers?productId=${productId}" description="${supplierProductId}" target-type="inter-app"/>
>         </field>
> -        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}"><display/></field>
>         <field name="idValue" title="${uiLabelMap.ProductUPCA}"><display/></field>
>         <field name="minimumOrderQuantity" widget-area-style="align-text"><display/></field>
>         <field name="lastPrice" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1064466 - /ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml

hans_bakker
Hi Jacopo,

This was done on purpose, because now it is possible to show the
information with a right mouse click in  a separate window. If we use
parameters, then this is not possible. Please also note that these links
do not update any info, they just show.

Thanks anyway taking the time to look at it.

Regards,
Hans

On Fri, 2011-01-28 at 10:19 +0100, Jacopo Cappellato wrote:

> Hi Hans,
>
> please use the <parameter> element for the parameters (like "partyId" and "productId") in the links.
>
> Regards,
>
> Jacopo
>
> On Jan 28, 2011, at 6:53 AM, [hidden email] wrote:
>
> > Author: hansbak
> > Date: Fri Jan 28 05:53:29 2011
> > New Revision: 1064466
> >
> > URL: http://svn.apache.org/viewvc?rev=1064466&view=rev
> > Log:
> > make 2 more fields clickable to party and catalog info
> >
> > Modified:
> >    ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
> >
> > Modified: ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml?rev=1064466&r1=1064465&r2=1064466&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml (original)
> > +++ ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml Fri Jan 28 05:53:29 2011
> > @@ -314,9 +314,13 @@ under the License.
> >         </field>
> >         <field name="facilityId"><display/></field>
> >         <field name="partyId" title="${uiLabelMap.ProductSupplier}">
> > -            <display description="${groovy:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, partyId, false);}"/>
> > +            <display-entity entity-name="PartyNameView" description="${LastName} ${firstName} ${middleName} ${groupName}">
> > +                <sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" description="[${partyId}]" target-type="inter-app"/>
> > +            </display-entity>
> > +        </field>
> > +        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}">
> > +            <hyperlink target="/catalog/control/EditProductSuppliers?productId=${productId}" description="${supplierProductId}" target-type="inter-app"/>
> >         </field>
> > -        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}"><display/></field>
> >         <field name="idValue" title="${uiLabelMap.ProductUPCA}"><display/></field>
> >         <field name="minimumOrderQuantity" widget-area-style="align-text"><display/></field>
> >         <field name="lastPrice" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
> >
> >
>

--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1064466 - /ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml

Scott Gray-2
Hi Hans,

It is possible using parameters, just set the target-type to inter-app instead of intra-app.  intra-app is intended for targets within the same application.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 28/01/2011, at 11:09 PM, Hans Bakker wrote:

> Hi Jacopo,
>
> This was done on purpose, because now it is possible to show the
> information with a right mouse click in  a separate window. If we use
> parameters, then this is not possible. Please also note that these links
> do not update any info, they just show.
>
> Thanks anyway taking the time to look at it.
>
> Regards,
> Hans
>
> On Fri, 2011-01-28 at 10:19 +0100, Jacopo Cappellato wrote:
>> Hi Hans,
>>
>> please use the <parameter> element for the parameters (like "partyId" and "productId") in the links.
>>
>> Regards,
>>
>> Jacopo
>>
>> On Jan 28, 2011, at 6:53 AM, [hidden email] wrote:
>>
>>> Author: hansbak
>>> Date: Fri Jan 28 05:53:29 2011
>>> New Revision: 1064466
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1064466&view=rev
>>> Log:
>>> make 2 more fields clickable to party and catalog info
>>>
>>> Modified:
>>>   ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
>>>
>>> Modified: ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
>>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml?rev=1064466&r1=1064465&r2=1064466&view=diff
>>> ==============================================================================
>>> --- ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml (original)
>>> +++ ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml Fri Jan 28 05:53:29 2011
>>> @@ -314,9 +314,13 @@ under the License.
>>>        </field>
>>>        <field name="facilityId"><display/></field>
>>>        <field name="partyId" title="${uiLabelMap.ProductSupplier}">
>>> -            <display description="${groovy:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, partyId, false);}"/>
>>> +            <display-entity entity-name="PartyNameView" description="${LastName} ${firstName} ${middleName} ${groupName}">
>>> +                <sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" description="[${partyId}]" target-type="inter-app"/>
>>> +            </display-entity>
>>> +        </field>
>>> +        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}">
>>> +            <hyperlink target="/catalog/control/EditProductSuppliers?productId=${productId}" description="${supplierProductId}" target-type="inter-app"/>
>>>        </field>
>>> -        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}"><display/></field>
>>>        <field name="idValue" title="${uiLabelMap.ProductUPCA}"><display/></field>
>>>        <field name="minimumOrderQuantity" widget-area-style="align-text"><display/></field>
>>>        <field name="lastPrice" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
>>>
>>>
>>
>
> --
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Myself on twitter: http://twitter.com/hansbak
> Antwebsystems.com: Quality services for competitive rates.
>


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1064466 - /ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml

Scott Gray-2
My apologies, I just realized that you did exactly what I'm suggesting.  Not sure why it wouldn't work, it should.

Regards
Scott

On 28/01/2011, at 11:35 PM, Scott Gray wrote:

> Hi Hans,
>
> It is possible using parameters, just set the target-type to inter-app instead of intra-app.  intra-app is intended for targets within the same application.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 28/01/2011, at 11:09 PM, Hans Bakker wrote:
>
>> Hi Jacopo,
>>
>> This was done on purpose, because now it is possible to show the
>> information with a right mouse click in  a separate window. If we use
>> parameters, then this is not possible. Please also note that these links
>> do not update any info, they just show.
>>
>> Thanks anyway taking the time to look at it.
>>
>> Regards,
>> Hans
>>
>> On Fri, 2011-01-28 at 10:19 +0100, Jacopo Cappellato wrote:
>>> Hi Hans,
>>>
>>> please use the <parameter> element for the parameters (like "partyId" and "productId") in the links.
>>>
>>> Regards,
>>>
>>> Jacopo
>>>
>>> On Jan 28, 2011, at 6:53 AM, [hidden email] wrote:
>>>
>>>> Author: hansbak
>>>> Date: Fri Jan 28 05:53:29 2011
>>>> New Revision: 1064466
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=1064466&view=rev
>>>> Log:
>>>> make 2 more fields clickable to party and catalog info
>>>>
>>>> Modified:
>>>>  ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
>>>>
>>>> Modified: ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml
>>>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml?rev=1064466&r1=1064465&r2=1064466&view=diff
>>>> ==============================================================================
>>>> --- ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml (original)
>>>> +++ ofbiz/trunk/applications/order/widget/ordermgr/RequirementForms.xml Fri Jan 28 05:53:29 2011
>>>> @@ -314,9 +314,13 @@ under the License.
>>>>       </field>
>>>>       <field name="facilityId"><display/></field>
>>>>       <field name="partyId" title="${uiLabelMap.ProductSupplier}">
>>>> -            <display description="${groovy:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, partyId, false);}"/>
>>>> +            <display-entity entity-name="PartyNameView" description="${LastName} ${firstName} ${middleName} ${groupName}">
>>>> +                <sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" description="[${partyId}]" target-type="inter-app"/>
>>>> +            </display-entity>
>>>> +        </field>
>>>> +        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}">
>>>> +            <hyperlink target="/catalog/control/EditProductSuppliers?productId=${productId}" description="${supplierProductId}" target-type="inter-app"/>
>>>>       </field>
>>>> -        <field name="supplierProductId" title="${uiLabelMap.ProductSupplierProductId}"><display/></field>
>>>>       <field name="idValue" title="${uiLabelMap.ProductUPCA}"><display/></field>
>>>>       <field name="minimumOrderQuantity" widget-area-style="align-text"><display/></field>
>>>>       <field name="lastPrice" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
>>>>
>>>>
>>>
>>
>> --
>> Ofbiz on twitter: http://twitter.com/apache_ofbiz
>> Myself on twitter: http://twitter.com/hansbak
>> Antwebsystems.com: Quality services for competitive rates.
>>
>


smime.p7s (3K) Download Attachment