/// <summary> /// DataField mode: loads content file and on scopeInOperation applies context data and saves result to output field. /// </summary> /// <param name="__sourcepath">The sourcepath - relative to reportTheme directory</param> /// <param name="__outputfield">The outputfield.</param> /// <param name="__location">The location - level to be triggered</param> public deliveryUnitItemFileOutput(string __sourcepath, templateFieldSubcontent __outputfield, deliveryUnitItemLocationBase __location, string __title = "", string __description = "") : base(deliveryUnitItemType.contentTemplate) { location = __location; flags = deliveryUnitItemFlags.useTemplate; name = "File to data field"; description = "On level patch - during scopeInOperation loads source path into outputfied after applying context.data"; if (!__title.isNullOrEmpty()) { name = __title; } if (!__description.isNullOrEmpty()) { description = __description; } sourcepath.setup(__sourcepath); output_datafield = __outputfield; outputpath = null; }
protected void deliveryUnitItemSetup(deliveryUnitItemLocationBase __location, deliveryUnitItemFlags __flags) { location = __location; flags = __flags; }