Yanachik.org

Archive for the ‘Yahoo YUI’ Category

After writing Unit tests lately I’ve been trying to test my business logic (which is all done in the Entity Manager) without actually submitting data to the database.  I’ll create my Items and Customers and do an InsertOnSubmit to get them into the Entity Manager context, but never call SubmitChanges().
This gets the data into the [...]

In Yahoo YUI 2.5.2 the Yahoo DataTable editorSave Event’sData Cell Editor has changed.  To get to the data record for the editor it is no-longer oArgs.editor.record, but rather oArgs.editor.getRecord();
DataTable.subscribe(”editorSaveEvent”, EditorChanged);
function EditorChanged(oArgs)
{
var record = oArgs.editor.getRecord();
}