2018, OutSystems 10, and the problem persists........
Hello Elize,
Don't know about what was happening in 2015, but since version 9 (the first I used), in 2016, the Form works exactly as it is supposed it to work (and as it should).And the same happens in O10 (now).
When the page load, the Form copies the content in the Source to its own Record.
After that, no matter if you do a Submit (that will execute the preparation and refresh the form), or you do an Ajax Submit + Ajax Refresh of the Form, the Form will NOT copy the source value to its Record again.But, if in the action you change one of the fields of the FORM RECORD, and refresh the FORM, the FORM will be updated in the screen, for this new value.And this is the expected behavior.So, there is no bug related to the Form behavior, now in 2018.
Cheers.
Hello guys. You have been tricked by OutSystems optimizations... again :)
Let me explain. Your sample app is working flawlessly. Yes, the Description field is blank when you hit Submit. But only because it is not being used at all by your application. So OutSystems throws it away under the carpet. Check the code I'm attaching for a counter-example.
Yes, that can be strange if you are debugging because you don't understand why the value disappeared. But your app continues to work, it produces the exact same output. So it is not a bug. And you end up with a faster application, so you should be thankful for that.
The Form widget works as Jauch explained, and as far as I know, it works exactly like the Edit Records. Both are well documented.
Hi all,
I was getting a weird behavior, or so I thought while using the Form widget. So you are saying that, if a Form is being populated by an entity record, even when I refresh the query and the form, if I don't assign the form record to the entity refreshed record, record metadata that isn't being used in the screen will never be updated in the form?
Talking about Traditional Web Apps here.
Yes, that is what I explained above.
sorry, I probably missed it. :/