34
Views
15
Comments
Automatic and manualy select from dropdown
Question
Application Type
Reactive

i have a form validation with some fields and i want tha in some scenarios if i ad data in a specific field tha automaticly assign a record from a static entety but that i can be able to manualy modify it too.

for example: i create a vlidation to Data AprovaĂ§Ă£o and assing Estado Aprovado but my logic is not working if i want to manuly select another Estado to Canceled for example.

Can someone help me understand how to achieve that?

2024-05-30 10-12-48
Anushka singh

Hello

plz shere your oml file.

UserImage.jpg
Fernando André Carvalhal Nogueira

hello, here it is

Candidaturas.oml
2023-06-23 06-41-28
Bandaru Mahesh

Hi @Fernando André Carvalhal Nogueira,

I have tried with the automatic/Manual populating of dropdown. Please find attached OML.

Hope it will help you.


Regards

Mahesh

DropDownAutomaticMapping.oml
UserImage.jpg
Fernando André Carvalhal Nogueira

hello, thanks for your help. I have this implemented but my problem is on the saving logic.

When i save it and if i want to change state latter i cant do it because the assing dont let me! i think is my logic :s

2023-06-23 06-41-28
Bandaru Mahesh

Hi Fernando,

Could you please share the OML, so that our community members can get some idea.


Regards

Mahesh

UserImage.jpg
Fernando André Carvalhal Nogueira


https://www.outsystems.com/forums/discussion/97610/automatic-and-manualy-select-from-dropdown/#Post422206

2025-08-03 07-20-35
Mythily - EONE

Hi,

Please check the demo link - Click here

In on change of the  Data AprovaĂ§Ă£o , you can set the Estado  value. 

and Estado  can also be changed manually, Hope this is the one you want.


Thanks


UserImage.jpg
Fernando André Carvalhal Nogueira

this i can do, my probelm is in my saving logic, when i do the logic and if iwant to upgrade for another state latter, i cant.

2025-08-03 07-20-35
Mythily - EONE

What do you mean my upgrade for another state, 

Share you OML if possible,

UserImage.jpg
Fernando André Carvalhal Nogueira


https://www.outsystems.com/forums/discussion/97610/automatic-and-manualy-select-from-dropdown/#Post422206

2025-08-03 07-20-35
Mythily - EONE

I tried to save for a record with modified Estado,

FYR. 

UserImage.jpg
Fernando André Carvalhal Nogueira

Oh!  yes, my fault there, because i changed for my testing porpuses the action in the save button. If you can, try to use the action to SaveDetail, is the action that i used to assign the automatic values.

2025-08-03 07-20-35
Mythily - EONE

Hi,

this if condition is getting true based on DataAprovacao, as date is not nulldate().

So Estado is getting reassigned to Aprovado, if i select Cancelado .



UserImage.jpg
Fernando André Carvalhal Nogueira
UserImage.jpg
Kiran Shetty

Hi @Fernando AndrĂ© Carvalhal Nogueira 

I assume you want a automatic selected status based on the date you have selected previously

Then you can modify the date and status as you wish once again when you open 

So i have made a oml you can through that
Here i am using onafter fetch event to check the date change the status based on it 

Regards,

Kiran S

Candidaturas.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.