condition in a xml form

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

condition in a xml form

rahul das probal
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)
Reply | Threaded
Open this post in threaded view
|

Re: condition in a xml form

Ankit Jain-2
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([hidden email]) not on Developer Mailing List.

Regards,
Ankit Jain



On Sat, May 5, 2012 at 9:41 AM, rahul das probal <[hidden email]> 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)
Reply | Threaded
Open this post in threaded view
|

Re: condition in a xml form

rahul das probal
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 <[hidden email]> 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([hidden email]) not on Developer Mailing List.
>
> Regards,
> Ankit Jain
>
>
>
> On Sat, May 5, 2012 at 9:41 AM, rahul das probal <[hidden email]>
> 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)
>
Reply | Threaded
Open this post in threaded view
|

Re: condition in a xml form

Scott Gray-2
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 <[hidden email]> 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([hidden email]) not on Developer Mailing List.
>>
>> Regards,
>> Ankit Jain
>>
>>
>>
>> On Sat, May 5, 2012 at 9:41 AM, rahul das probal <[hidden email]>
>> 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)
>>