You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by rahul das probal <ra...@gmail.com> on 2012/05/05 06:11:28 UTC
condition in a xml form
sir,
in the "glsetupform.xml" document there is a form field
"Listcompanies" which show a list of companies(organization parties).
so, i want to add a condition in that form field say "condition that
match the partyid with defaultorganizationpartyid(login organization
id)" so the list only show the default organization party(log in
organizationparty in which party an user is loged in)
Re: condition in a xml form
Posted by Scott Gray <sc...@hotwaxmedia.com>.
Ask your questions on the user list please.
Thanks
Scott
On 5/05/2012, at 11:28 PM, rahul das probal wrote:
> but when i placed that code in the form.
> it is shown error
>
> how can i placed that code ?
>
>
> On 5/5/12, Ankit Jain <an...@gmail.com> wrote:
>> Rahul,
>>
>> In the ListCompanies screen where the parties list is fetched add condition
>> <condition-expr field-name="partyId" operator="equals"
>> from-field="userLogin.partyId"/>
>>
>> it will only fetch your desired result.
>>
>> Please do ask these questions on User Mailing
>> List(user@ofbiz.apache.org) not on Developer Mailing List.
>>
>> Regards,
>> Ankit Jain
>>
>>
>>
>> On Sat, May 5, 2012 at 9:41 AM, rahul das probal <ra...@gmail.com>
>> wrote:
>>> sir,
>>> in the "glsetupform.xml" document there is a form field
>>> "Listcompanies" which show a list of companies(organization parties).
>>>
>>> so, i want to add a condition in that form field say "condition that
>>> match the partyid with defaultorganizationpartyid(login organization
>>> id)" so the list only show the default organization party(log in
>>> organizationparty in which party an user is loged in)
>>
Re: condition in a xml form
Posted by rahul das probal <ra...@gmail.com>.
but when i placed that code in the form.
it is shown error
how can i placed that code ?
On 5/5/12, Ankit Jain <an...@gmail.com> wrote:
> Rahul,
>
> In the ListCompanies screen where the parties list is fetched add condition
> <condition-expr field-name="partyId" operator="equals"
> from-field="userLogin.partyId"/>
>
> it will only fetch your desired result.
>
> Please do ask these questions on User Mailing
> List(user@ofbiz.apache.org) not on Developer Mailing List.
>
> Regards,
> Ankit Jain
>
>
>
> On Sat, May 5, 2012 at 9:41 AM, rahul das probal <ra...@gmail.com>
> wrote:
>> sir,
>> in the "glsetupform.xml" document there is a form field
>> "Listcompanies" which show a list of companies(organization parties).
>>
>> so, i want to add a condition in that form field say "condition that
>> match the partyid with defaultorganizationpartyid(login organization
>> id)" so the list only show the default organization party(log in
>> organizationparty in which party an user is loged in)
>
Re: condition in a xml form
Posted by Ankit Jain <an...@gmail.com>.
Rahul,
In the ListCompanies screen where the parties list is fetched add condition
<condition-expr field-name="partyId" operator="equals"
from-field="userLogin.partyId"/>
it will only fetch your desired result.
Please do ask these questions on User Mailing
List(user@ofbiz.apache.org) not on Developer Mailing List.
Regards,
Ankit Jain
On Sat, May 5, 2012 at 9:41 AM, rahul das probal <ra...@gmail.com> wrote:
> sir,
> in the "glsetupform.xml" document there is a form field
> "Listcompanies" which show a list of companies(organization parties).
>
> so, i want to add a condition in that form field say "condition that
> match the partyid with defaultorganizationpartyid(login organization
> id)" so the list only show the default organization party(log in
> organizationparty in which party an user is loged in)
Re: condition in a xml form
Posted by Ankit Jain <an...@gmail.com>.
Rahul,
In the ListCompanies screen where the parties list is fetched add condition
<condition-expr field-name="partyId" operator="equals"
from-field="userLogin.partyId"/>
it will only fetch your desired result.
Please do ask these questions on User Mailing
List(user@ofbiz.apache.org) not on Developer Mailing List.
Regards,
Ankit Jain
On Sat, May 5, 2012 at 9:41 AM, rahul das probal <ra...@gmail.com> wrote:
> sir,
> in the "glsetupform.xml" document there is a form field
> "Listcompanies" which show a list of companies(organization parties).
>
> so, i want to add a condition in that form field say "condition that
> match the partyid with defaultorganizationpartyid(login organization
> id)" so the list only show the default organization party(log in
> organizationparty in which party an user is loged in)