Example #1
0
        public static string wmGetVars(string sStepID)
        {
            FunctionTemplates.HTMLTemplates ft = new FunctionTemplates.HTMLTemplates();
            string sErr = "";
            Step oStep = new Step(sStepID, "", ref sErr);
            if (!string.IsNullOrEmpty(sErr))
                throw new Exception("No data row found for step_id [" + sStepID + "].<br />" + sErr);

            if (oStep != null)
                return ft.GetVariablesForStepForEdit(oStep);
            else
                return "";
        }
Example #2
0
        public static string wmGetVars(string sStepID)
        {
            FunctionTemplates.HTMLTemplates ft = new FunctionTemplates.HTMLTemplates();
            string sErr  = "";
            Step   oStep = new Step(sStepID, "", ref sErr);

            if (!string.IsNullOrEmpty(sErr))
            {
                throw new Exception("No data row found for step_id [" + sStepID + "].<br />" + sErr);
            }

            if (oStep != null)
            {
                return(ft.GetVariablesForStepForEdit(oStep));
            }
            else
            {
                return("");
            }
        }