Questions tagged [dirty-data]

60 questions
1
vote
1 answer

Ext.NET changes to gridpanel unwanted rollback

Requirement: I implemented a function that deletes rows by clikcing on a button from my grid based on a value. My requirement is that the rows with status "Verwerkt", "Ter Fiattering", "Al verwerkt" are deleted from the grid and in codebehind I add…
Danny
  • 221
  • 1
  • 6
  • 18
1
vote
3 answers

import dirty csv file with unwanted characters, strings

I would like to import csv files with pandas. Normally my data is given in the form: a,b,c,d a1,b1,c1,d1 a2,b2,c2,d2 where a,b,c,d is the header. I can easily use the pandas.read_csv here. However, now I have data stored like…
Anna
  • 81
  • 5
1
vote
1 answer

Rails partial updates problem with hashes

Rails ActiveRecord support partial updates and it works well most of the time, but in case we have serialized hash field AR executes update every time, even if nothing has been changed. Here example from rails console: ### Create class and table…
valodzka
  • 5,535
  • 4
  • 39
  • 50
1
vote
1 answer

Easy way to tell if data is dirty

I am currently using databinding on a group of spark form elements and want to know if the data class I am bound to is dirty. It might be nice if spark "Form" elements would trigger a change event that bubbled up to and was caught by a spark "Form".…
Shanimal
  • 11,517
  • 7
  • 63
  • 76
1
vote
1 answer

How to manually set dirty flag on specific cells in GridPanel in ExtJs

I have a grid panel that is populated with some data from store. This grid has some columns editable. Every row has a button to save editable data. My problem is: when I edit more rows and wont to save just one row (because I don't have one button…
1
vote
2 answers

Define if a property is loaded or set by the view

I'm trying to make a "Dirty" implementation with Catel. I have a viewmodel, with a [Model] property and a few [ViewModelToModel] mapped to it. And I added a boolean member _canGetDirty, that when set to true allows viewmodel properties to prompt a…
Kilazur
  • 3,089
  • 1
  • 22
  • 48
1
vote
0 answers

ember data relationships and ready/loaded event

Until ember data has built-in dirty relationship tracking, we have rolled our own. After upgrading to Ember/Ember Data 2.4.3 (from something quite old), our custom solution stopped working. The problem comes down to knowing when to make a snapshot…
1
vote
1 answer

R time formatting with dirty data

I'm using R to generate a CZML file from a database. The database has dirty data. I need a way to make sure times are in the format "%H:%M:%S". The data can be in the correct %H:%M:%S already or missing zeros in front of the hour, e.g 8:30:00, which…
TTR
  • 173
  • 1
  • 13
1
vote
1 answer

How to get back to before dirty state of an object in AngularJS

I would like to know if there is a way in AngularJS to get back the state of an object before it was made dirty. I have a simple use case in which I have an edit, save an cancel button. If somebody clicks on the edit button, gets the state of object…
skip
  • 12,193
  • 32
  • 113
  • 153
1
vote
1 answer

How to create IsDirty inside OnPropertyChange, but at the same time turn it off when entities are loaded from a database

I’m building WPF app, and I got to the point where I want to be able to check whether an entity IsDirty, so I found this solution online: private bool isDirty; public virtual bool IsDirty { get { return isDirty; } set {…
adminSoftDK
  • 2,012
  • 1
  • 21
  • 41
1
vote
1 answer

How to check if any attribute has changed on a model

I have an Address model which contains the fields: number, street, city, post_code. I use a method called fulladdress to interpolate all the fields into one, which is then passed to geocoder which returns the Longitude and Latitude for the…
1
vote
1 answer

AngularJS - set form pristine without removing validation errors

We have an autosave and an explicit save for a particular form (it's a long form, and we don't want the user to lose data). For an explicit save, invalid data will block the save from occurring and an XHR will not be sent back to the server. …
Mr Mikkél
  • 2,577
  • 4
  • 34
  • 52
1
vote
1 answer

How to prevent dirty write for web forums?

As a apprentice for web development, I have no clue of preventing dirty write for web forums. Is there any food for thought? Thanks in advance! I'm working on ASP.NET MVC and Entity Framework. Okay, sorry for misleading. The dirty write here means…
Roy
  • 2,313
  • 6
  • 37
  • 46
1
vote
2 answers

Jquery Forms: using the memento pattern to build a dirty form notification system - exisitng patterns?

I am currently building a script which will notify the user that the form has been changed before they navigate away from the page (This is an ASP.NET MVC app btw). I first started out building a simple script which detects if the user changes any…
Shawn J. Molloy
  • 2,457
  • 5
  • 41
  • 59
0
votes
0 answers

Read from table while prepared statement inserts in batch

I have a Java running process that inserts data into a SqlServer DB table every 3s, using a PreparedStatement executeBatch(). (Process A) // Get connection here con.setAutoCommit(false); // Create PreparedStatement here ps =…