Yet another question.
So now my EventReceiver and its logic is working just fine. Except for one thing.
Basically it queries the whole list through CAML queries, and then passes the result to a DataTable object, and later on to a DataRow object...
Like all, in test environment, it works perfectly, but in production...
What happens is that the column I need updated gets update but not shown immediately. The item column receives the value I want, but it doesn't show at first refresh, you have to refresh the page again, then it appears...
The only difference is that in teste env. my list has like, 200 records, and in production, it has almost 5000 records.
Some questions:
- Is there a way to define how many records you want? In CAML or in the DataTable object? Something like "SELECT TOP 100 ... "
- If not, is there a way to make the refresh process stop and wait for the code execution?
Some Info:
- It's WSS 3.0, and the event I'm intercepting is ItemAdded, which explains the refresh not waiting for my code.
Oh and considering changing to the ItemAdding event would be a little bit of a problem, because I need to capture the ID of the record, which is not yet available in ItemAdding because the list item has not been committed to the database yet.
Thanks in advance.