Need some clarification on deletePartyContactMech simple method value-field

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

Need some clarification on deletePartyContactMech simple method value-field

cjhorton
Hi Everyone,

I am not sure what the purpose of the second line in the deletePartyContactMech simple method...

<make-value entity-name="PartyContactMech" value-field="newPartyContactMech"/>

Can someone please explain?

I have attached the full method code below.

Thanks!

-CJ

<simple-method method-name="deletePartyContactMech" short-description="Delete a PartyContactMech">
        <make-value entity-name="PartyContactMech" value-field="newPartyContactMech"/>
        <if-empty field="parameters.partyId">
            <set field="parameters.partyId" from-field="userLogin.partyId"/>
        </if-empty>
       
        <make-value entity-name="PartyContactMech" value-field="partyContactMechMap"/>
        <set-pk-fields value-field="partyContactMechMap" map="parameters"/>
        <find-by-and entity-name="PartyContactMech" list="partyContactMechs" map="partyContactMechMap"/>
        <filter-list-by-date list="partyContactMechs" to-list="validPartyContactMechs"/>
        <first-from-list entry="partyContactMech" list="validPartyContactMechs"/>
        <if-empty field="partyContactMech">
            <add-error>
                <fail-property resource="PartyUiLabels" property="PartyContactMechNotFoundCannotDelete"/>
            </add-error>
            <return/>
        </if-empty>
        <now-timestamp field="partyContactMech.thruDate"/>
        <store-value value-field="partyContactMech"/>     
    </simple-method>
Reply | Threaded
Open this post in threaded view
|

Re: Need some clarification on deletePartyContactMech simple method value-field

Sumit Porwal
Hi CJ,

This line of code in not needed here.

 Regards,
Sumit Porwal
Amicon Technologies Pvt. Ltd., Mumbai, India.
India's No. 1 OFBiz Services Provider



On Thu, Jan 22, 2009 at 12:35 AM, cjhorton <[hidden email]> wrote:

>
> Hi Everyone,
>
> I am not sure what the purpose of the second line in the
> deletePartyContactMech simple method...
>
> <make-value entity-name="PartyContactMech"
> value-field="newPartyContactMech"/>
>
> Can someone please explain?
>
> I have attached the full method code below.
>
> Thanks!
>
> -CJ
>
> <simple-method method-name="deletePartyContactMech"
> short-description="Delete a PartyContactMech">
>        <make-value entity-name="PartyContactMech"
> value-field="newPartyContactMech"/>
>        <if-empty field="parameters.partyId">
>            <set field="parameters.partyId" from-field="userLogin.partyId"/>
>        </if-empty>
>
>        <make-value entity-name="PartyContactMech"
> value-field="partyContactMechMap"/>
>        <set-pk-fields value-field="partyContactMechMap" map="parameters"/>
>        <find-by-and entity-name="PartyContactMech" list="partyContactMechs"
> map="partyContactMechMap"/>
>        <filter-list-by-date list="partyContactMechs"
> to-list="validPartyContactMechs"/>
>        <first-from-list entry="partyContactMech"
> list="validPartyContactMechs"/>
>        <if-empty field="partyContactMech">
>            <add-error>
>                <fail-property resource="PartyUiLabels"
> property="PartyContactMechNotFoundCannotDelete"/>
>            </add-error>
>            <return/>
>        </if-empty>
>        <now-timestamp field="partyContactMech.thruDate"/>
>        <store-value value-field="partyContactMech"/>
>    </simple-method>
> --
> View this message in context:
> http://www.nabble.com/Need-some-clarification-on-deletePartyContactMech-simple-method-value-field-tp21589963p21589963.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


--
Thanks & Regards,

Sumit Porwal
[hidden email]
http://www.amicontech.com
Mobile: +919987963496
Reply | Threaded
Open this post in threaded view
|

Re: Need some clarification on deletePartyContactMech simple method value-field

cjhorton
Thanks Sumit.  For some reason, the mini language is difficult for me to
grasp still.

On Wed, Jan 21, 2009 at 11:52 PM, Sumit Porwal <[hidden email]>wrote:

> Hi CJ,
>
> This line of code in not needed here.
>
>  Regards,
> Sumit Porwal
> Amicon Technologies Pvt. Ltd., Mumbai, India.
> India's No. 1 OFBiz Services Provider
>
>
>
> On Thu, Jan 22, 2009 at 12:35 AM, cjhorton <[hidden email]> wrote:
>
> >
> > Hi Everyone,
> >
> > I am not sure what the purpose of the second line in the
> > deletePartyContactMech simple method...
> >
> > <make-value entity-name="PartyContactMech"
> > value-field="newPartyContactMech"/>
> >
> > Can someone please explain?
> >
> > I have attached the full method code below.
> >
> > Thanks!
> >
> > -CJ
> >
> > <simple-method method-name="deletePartyContactMech"
> > short-description="Delete a PartyContactMech">
> >        <make-value entity-name="PartyContactMech"
> > value-field="newPartyContactMech"/>
> >        <if-empty field="parameters.partyId">
> >            <set field="parameters.partyId"
> from-field="userLogin.partyId"/>
> >        </if-empty>
> >
> >        <make-value entity-name="PartyContactMech"
> > value-field="partyContactMechMap"/>
> >        <set-pk-fields value-field="partyContactMechMap"
> map="parameters"/>
> >        <find-by-and entity-name="PartyContactMech"
> list="partyContactMechs"
> > map="partyContactMechMap"/>
> >        <filter-list-by-date list="partyContactMechs"
> > to-list="validPartyContactMechs"/>
> >        <first-from-list entry="partyContactMech"
> > list="validPartyContactMechs"/>
> >        <if-empty field="partyContactMech">
> >            <add-error>
> >                <fail-property resource="PartyUiLabels"
> > property="PartyContactMechNotFoundCannotDelete"/>
> >            </add-error>
> >            <return/>
> >        </if-empty>
> >        <now-timestamp field="partyContactMech.thruDate"/>
> >        <store-value value-field="partyContactMech"/>
> >    </simple-method>
> > --
> > View this message in context:
> >
> http://www.nabble.com/Need-some-clarification-on-deletePartyContactMech-simple-method-value-field-tp21589963p21589963.html
> > Sent from the OFBiz - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Thanks & Regards,
>
> Sumit Porwal
> [hidden email]
> http://www.amicontech.com
> Mobile: +919987963496
>