Command ChangeRecord and StoreDataHandler

  1. #1

    Command ChangeRecord and StoreDataHandler

    Hello!
    I have a difficulty. have code that loops through all the fields of a form and inserts when there are changes.
    I need it to enter the foreach with or without changes in the form. How to make?


    ChangeRecords<Foul> Fouls = new StoreDataHandler(e.ExtraParams["Fouls"]).BatchObjectData<Fouls>();
    foreach (var item in Fouls)
    {
    bll.Fouls.SaveFouls(item, modulo, (!HandsOn? cbDate.SelectedItem.Text.ToDate() : dtDate.SelectedDate), cbDiscipline.SelectedItem.Value.ToInt32(), (HandsOn? 1 : 0));
    }
  2. #2
    Hi @vlrolim,

    Do you mean that in the case when the "Fouls" variable has no items, you still need to execute the statement inside the foreach?

Similar Threads

  1. [CLOSED] StoreDataHandler Refresh
    By ehmdb in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 14, 2013, 1:45 AM
  2. Replies: 1
    Last Post: Apr 08, 2013, 4:46 AM
  3. StoreDataHandler.BuildConfirmationList()
    By sant3 in forum 2.x Help
    Replies: 0
    Last Post: Jul 02, 2012, 6:23 PM
  4. [CLOSED] error with json StoreDataHandler
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 25, 2009, 3:35 PM
  5. Replies: 10
    Last Post: Oct 09, 2008, 9:36 AM

Tags for this Thread

Posting Permissions