Hello everybody,
Can someone help me explaining how to setup a form as empty from the load page ??
In my case, I' m trying assign inputs fields with default values, as explained below. I am doing it in the preparation, its that right ? How can I override the default values to, for example : Total Questions : 0 and not 3(Default). Is there any way to show it empty or override the attributes default values to 0 ?
Thanks in advance !
When I click Invite
Default values
My Preparation
The Assign (I am not sure if its right )
Hello,
can you please share your .OML file so I can check it out? I tried this and it worked, I changed the value in the prep and the screen displayed the changed value so maybe there is a small step you are doing wrong,
Cheers
Vincent Colpa wrote:
Hi Vicent, thanks for your reply
I will upload it, dont mind about the mess because its a student project also I am newbie on Outsystems lol
Thiago Da Rocha wrote:
Let me arrive home to check it out since here I only have version 9, if someone could check it first please help him
If you want to store that values that you have in default, why don't you reverse the idea? In screen action for save: If the user save the form and he didn't choose a value for it, then assign the value that you have in default now. Like this, your preparation runs faster and you just store what you need. I don't know if this fits your needs, but it's a challenge to all of us. ;)
Hi Thiago,
Did you have more beneficts if define the default values in the table attributes?
Then, when it's a new record (I mean, ID = NullIdentifier()) he have this values in the form.
Hope this can help. ;)
Best regards,
Ricardo
Ricardo Pereira wrote:
Hi Ricardo, thanks for your attention
Yes I had to create the default values from the Entities, as required in my student project.
Thanks for your explanation
Hey Ricardo,
indeed that is a solution, but I thought ( or assumed ) that he wanted to maintain the default values, but when loading a screen wanted to load them with different ones than the default...
But if he wants to have always those values by default, yeah your solution rocks and its the obvious one,
Exactly Vincent!
Some way to override that default value created in the Entity.
I saw somewhere something about Assign a form widget as Empty, but I cannot make it works lol I am doing all this by myself, the reason of the struggles all the time.
Cheers again
Dont worry about that guys! Weekend here knocking on the door !!! Time for a beer now lol
Thanks for the replies and next Monday we finish this Cheersss