

function ObjCFieldData(cenviron,fieldID,blockID,xml) {

	this.cenviron = cenviron;
	this.xml = xml;
	this.FieldID = fieldID;
	this.BlockID = blockID;
	this.Data = "";
	this.CreatedDate = "";
	this.UpdateDate = "";
	this.UpdatedBy= "";
	this.Deleted = "";

	this.properties = new Array("FieldID","BlockID","Data","CreatedDate","UpdateDate","UpdatedBy","Deleted");
	this.stringProperties = new Array("Data");
	this.table = "fielddata";


	//'' STORAGE HASHES AND ARAYS


	//'' FUNCTIONS
	this.getDataFromXML = ObjCGenericGetDataFromXML;


	//'' INITIALISE
	if(this.xml){
		this.getDataFromXML(this.xml);

		//'' also update the type object to associate the field Name to the FieldID
		var typeObj = this.cenviron.getType(this.cenviron.getBlock(this.BlockID).TypeID);
		var fieldObj = this.cenviron.getField(this.FieldID);
		typeObj.fieldNames.setVal(fieldObj.Name,this.FieldID);
	}

}



