create Dropdown for add form

Hi,

How to create country dropdown in add form?


Kindly guide.


Thanks,

Jaydeep



Hi,


create country static entity and bind that data to drop down in form.


thanks

JitendraYadav wrote:

Hi,


create country static entity and bind that data to drop down in form.


thank

Thanks for reply...I able to create static entity and show on form.

But how to save on main form?


Solution

Jaydeep Kadam wrote:

JitendraYadav wrote:

Hi,


create country static entity and bind that data to drop down in form.


thank

Thanks for reply...I able to create static entity and show on form.

But how to save on main form?


the variable binded with the dropdown holds the user selected value from the dropdown.


In the Save action use as assignment operator. On left side of the attachment assign the database column where you want to store the selected value and then on the right side assign the variable binded with the dropdown.


Do this assignment before the create/createOrupdate entity action. 


Solution

Hi Jaydeep,

What you mean by main form it meand DB or any other Place.

Use "Suprio" suggestion for save data in DB.


Regards

Rahul Sahu

Rahul Sahu wrote:

Hi Jaydeep,

What you mean by main form it meand DB or any other Place.

Use "Suprio" suggestion for save data in DB.


Regards

Rahul Sahu

Hi Rahul,

Its DB only.


Thanks,

Jaydeep


Suprio Roy wrote:

Jaydeep Kadam wrote:

JitendraYadav wrote:

Hi,


create country static entity and bind that data to drop down in form.


thank

Thanks for reply...I able to create static entity and show on form.

But how to save on main form?


the variable binded with the dropdown holds the user selected value from the dropdown.


In the Save action use as assignment operator. On left side of the attachment assign the database column where you want to store the selected value and then on the right side assign the variable binded with the dropdown.


Do this assignment before the create/createOrupdate entity action. 



Thanks for reply...Let me try out..One more query...

I have table in DB like 

TAsk table column as id, task desc, country(int)  and country static entity (1 - India)..

I will it DB like 1,"ABC",1

While listing , I want show as 1   ABC  India


How do I show India in listing??


Thanks for help,

Jaydeep




Jaydeep Kadam wrote:

Suprio Roy wrote:

Jaydeep Kadam wrote:

JitendraYadav wrote:

Hi,


create country static entity and bind that data to drop down in form.


thank

Thanks for reply...I able to create static entity and show on form.

But how to save on main form?


the variable binded with the dropdown holds the user selected value from the dropdown.


In the Save action use as assignment operator. On left side of the attachment assign the database column where you want to store the selected value and then on the right side assign the variable binded with the dropdown.


Do this assignment before the create/createOrupdate entity action. 



Thanks for reply...Let me try out..One more query...

I have table in DB like 

TAsk table column as id, task desc, country(int)  and country static entity (1 - India)..

I will it DB like 1,"ABC",1

While listing , I want show as 1   ABC  India


How do I show India in listing??


Thanks for help,

Jaydeep




The table record widget where you are displaying the data will be having an aggregate as data source of that table. In that aggregate , do a join between the entities , therefore u can display the country name on table.


Suprio Roy wrote:

Jaydeep Kadam wrote:

Suprio Roy wrote:

Jaydeep Kadam wrote:

JitendraYadav wrote:

Hi,


create country static entity and bind that data to drop down in form.


thank

Thanks for reply...I able to create static entity and show on form.

But how to save on main form?


the variable binded with the dropdown holds the user selected value from the dropdown.


In the Save action use as assignment operator. On left side of the attachment assign the database column where you want to store the selected value and then on the right side assign the variable binded with the dropdown.


Do this assignment before the create/createOrupdate entity action. 



Thanks for reply...Let me try out..One more query...

I have table in DB like 

TAsk table column as id, task desc, country(int)  and country static entity (1 - India)..

I will it DB like 1,"ABC",1

While listing , I want show as 1   ABC  India


How do I show India in listing??


Thanks for help,

Jaydeep




The table record widget where you are displaying the data will be having an aggregate as data source of that table. In that aggregate , do a join between the entities , therefore u can display the country name on table.


Thanks Jitendra..is there any video for guidance?

Apologize but I am new to outsystem


Jaydeep Kadam wrote:

Apologize but I am new to outsystem


Hi Jaydeep, if you are new to Outsystems I advise you to make one of the Paths from the online Bootcamp, it will save you hours of your coding when you understand the basics

Traditional web: https://www.outsystems.com/learn/courses/114/developing-web-apps-outsystems-11/?LearningPathId=2

Reactive: https://www.outsystems.com/learn/paths/18/becoming-a-reactive-web-developer/

Mobile: https://www.outsystems.com/learn/courses/115/developing-mobile-apps-outsystems-11/



Hope I could help you

Best Regards

Carlos Lessa