Hello,
I made a screen that i can insert from it in database but it shows all the records from the table
how can i make the screen show only the records that im inserting to the DB
Hello,
I made a screen that i can insert from it in database but it shows all the records from the table
how can i make the screen show only the records that im inserting to the DB
Best answer by Leonardo Justiniano
Yes it will show all the previous inserted records. I would prefer to see them, so you know the data was saved properly.
You can filter them out by only returning the inserted ones from the cache through the view delegate. Something like:
protected virtual IEnumerable yourView() // <- Notice that first character is lower case
{
return YourView.Cache.Inserted;
}
You might need to test how the cache behaves after you save the data.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.