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?
Hello
plz shere your oml file.
hello, here it is
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
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
Hi Fernando,
Could you please share the OML, so that our community members can get some idea.
https://www.outsystems.com/forums/discussion/97610/automatic-and-manualy-select-from-dropdown/#Post422206
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
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.
What do you mean my upgrade for another state,
Share you OML if possible,
I tried to save for a record with modified Estado,
FYR.
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.
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 .
thanks for the help, i will check it.
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 thatHere i am using onafter fetch event to check the date change the status based on it
Regards,
Kiran S