Hi Support,
When I add a new item (not using the RDDS) through my code then call the RDDS.Load() method it does not pick up the new additions. When I leave the page and come back to it, the RDDS picks up on the new item from the database and displays it in the control.
My code looks like this;
Am I doing something wrong that would cause the RDDS not to reload all of the data that's now in the database and cache what is there?
When I add a new item (not using the RDDS) through my code then call the RDDS.Load() method it does not pick up the new additions. When I leave the page and come back to it, the RDDS picks up on the new item from the database and displays it in the control.
My code looks like this;
if ( win.DialogResult == true )//user selected yes.
{
//Create new comment and set it up.
CommentNote note = new CommentNote();
note.HistoricalInfo_CreateDate = DateTime.Now;
note.HistoricalInfo_LDateTime = DateTime.Now;
note.HistoricalInfo_IsDeleted = false;
note.HistoricalInfo_LAction = "I";
note.HistoricalInfo_LUser = 0;
note.CommentId = CurrentComment.Id;//Links to the current summary.
note.NoteText = win.Note;
note.NoteAuthor = 0;
note.NoteDateTime = DateTime.Now;
//Submit our new summary.
CommentsCommentNoteDomainContext notes = new CommentsCommentNoteDomainContext();
notes.CommentNotes.Add( note );
notes.SubmitChanges();
//Refresh controls.
ddsCommentNotes.QueryParameters[ 0 ].Value = CurrentComment.Id;
ddsCommentNotes.Load();
}
Am I doing something wrong that would cause the RDDS not to reload all of the data that's now in the database and cache what is there?