I have a form with a grid of a tempTable. One of the columns in the grid displays the 'existsAlready' property:
FM_MovieTemp movie = ds.getFirst(1);
while (movie)
{
if (movie.existsAlready)
{
existingMovies = true;
}
info(movie.Title);
movie = ds.getNext();
}
if (existingMovies)
{
DialogButton Button;
Button = Box::okCancel("Test",DialogButton::No);
if (Button == DialogButton::Ok)
{
FM_MovieTemp movieBuffer = ds.getFirst(1);
FM_MoviePersistLogic::PersistToDatabase(movieBuffer);
}
}
Called function:
public static boolean PersistToDatabase(FM_MovieTemp fM_MovieTemp)
{
}
The problem with this code is that, while the movieBuffer variable is filled with the data of the selected grid rowswhen it is created before the call to PersistToDatabase, it is empty in when received in the PersistToDatabase function. Could someone explain why this is and how I should correctly supply my selected grid rows to the other class?