Form

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

Form

Naveen Kumar-3
Hi All,

I have a scenario, where i want to fetch a list of values for a form field,
based on the value in the previous field,
can anyone suggest me how to implement this one.

For Example:- In sales order creation, based on productId, I want a list of
values, associated to that product,
which will be dropdown values for another field in the same form.

Regards,
Naveen.
Reply | Threaded
Open this post in threaded view
|

Re: Form

Jacques Le Roux
Administrator
Have a look at the dependent dropdown in widget examples screen.

Jacques

From: "Naveen Kumar" <[hidden email]>

> Hi All,
>
> I have a scenario, where i want to fetch a list of values for a form field,
> based on the value in the previous field,
> can anyone suggest me how to implement this one.
>
> For Example:- In sales order creation, based on productId, I want a list of
> values, associated to that product,
> which will be dropdown values for another field in the same form.
>
> Regards,
> Naveen.
>

Reply | Threaded
Open this post in threaded view
|

Re: Form

pankaj savita
Hi Naveen,

     You can use <entity-and> to get the list of products.

     <set field="productId"
from-field="parameters.productId"/>
     <entity-and entity-name="Product" list="products">
            <field-map field-name="productId"/>
            <order-by field-name="fromDate"/>
     </entity-and>


--
Thanks & Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: [hidden email]


On Mon, Sep 27, 2010 at 6:13 PM, Jacques Le Roux <
[hidden email]> wrote:

> Have a look at the dependent dropdown in widget examples screen.
>
> Jacques
>
> From: "Naveen Kumar" <[hidden email]>
>
>  Hi All,
>>
>> I have a scenario, where i want to fetch a list of values for a form
>> field,
>> based on the value in the previous field,
>> can anyone suggest me how to implement this one.
>>
>> For Example:- In sales order creation, based on productId, I want a list
>> of
>> values, associated to that product,
>> which will be dropdown values for another field in the same form.
>>
>> Regards,
>> Naveen.
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Form

Naveen Kumar-3
In reply to this post by Jacques Le Roux
Hi Jacques,

Thanks for information.

Regards,
Naveen.


On Mon, Sep 27, 2010 at 6:13 PM, Jacques Le Roux <
[hidden email]> wrote:

> Have a look at the dependent dropdown in widget examples screen.
>
> Jacques
>
> From: "Naveen Kumar" <[hidden email]>
>
>  Hi All,
>>
>> I have a scenario, where i want to fetch a list of values for a form
>> field,
>> based on the value in the previous field,
>> can anyone suggest me how to implement this one.
>>
>> For Example:- In sales order creation, based on productId, I want a list
>> of
>> values, associated to that product,
>> which will be dropdown values for another field in the same form.
>>
>> Regards,
>> Naveen.
>>
>>
>