how to set form as a blank when we click on it ?
Application Type
Traditional Web

whenever i click on the form then it opens and showing previous user data by default. I want it as whenever i click on form that time form appearance should be blank. please clarify with example

formissue.png

Hello Ajit ,

As daniel say drag the entities two time in the flow you will get list and details screen on that bases you will also check that 

 Go through the traditional course for clearification

If you check this one it will give you clear idea about the list and details (form screen)

One of there chapter List and screen exercise https://www.outsystems.com/training/lesson/1780/list-and-detail-screens-exercise

For new form, you will pass Id as nullidentifier () so you will get blank form 

Thanks and regards,

Akshay Deshpande

mvp_badge
MVP
Solution

Hi Ajit,

In your preparation you have an aggregate, you need to check the filter, if correct you filter on the Id field of the entity data you show, make sure the variable you filter Id on has value NullIdentifier().

If you scaffold the entity twice on a UI Flow, the generated list and details screen will implement this behaviour by default. You could do that and see how the generated code looks like.

Regards,

Daniel

Thanks..It was helpful

Yes, as Daniel correctly said the reason is in your entity Identifier default value , because currently you are having entity identifier that is having some value all the time so when you are applying filter based on EntityID always fetching new value with that ID.

So ideally if its a new record you should assign the Identifier as NullIdentifier.

And once you are accessing the records from the list and open it on Form then you should pass current row Identifier to fetch the records,


Dileep.

Hello Ajit ,

As daniel say drag the entities two time in the flow you will get list and details screen on that bases you will also check that 

 Go through the traditional course for clearification

If you check this one it will give you clear idea about the list and details (form screen)

One of there chapter List and screen exercise https://www.outsystems.com/training/lesson/1780/list-and-detail-screens-exercise

For new form, you will pass Id as nullidentifier () so you will get blank form 

Thanks and regards,

Akshay Deshpande

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