def preserving_preference(nsc, pref)
      orig = get_rows(nsc, pref)
      yield
    ensure
      set_rows(nsc, pref, orig)
    end
def preserving_preference(nsc, pref)
      orig = get_rows(nsc, pref)
      yield
    ensure
      set_rows(nsc, pref, orig)
    end
Execute a block of code while presenving the preferences for any
 underlying table being accessed. Use this method when accessing data
 tables which are present in the UI to prevent existing row preferences
 from being set to 500.

 This is an internal utility method, not subject to backward compatibility
 concerns.

 @param [Connection] nsc Live connection to a Nepose console.
 @param [String] pref Preference key value to preserve.