public void InitDialogParms(SnippetsParms snippetsParms) { snippetsParms.SnippetName = "Table relation to Xpp code"; snippetsParms.AddParametersValue(Table1VarParm, Table1Var); snippetsParms.AddParametersValue(Table2VarParm, Table2Var); snippetsParms.AddParametersValue(IsUseQueryParm, ""); snippetsParms.Description = "Util converts table relation to X++ code"; snippetsParms.PreviewAction = this; }
public void InitDialogParms(SnippetsParms snippetsParms) { snippetsParms.SnippetName = "Create DataContract class"; snippetsParms.AddParametersValue(ClassNameParm, "AATestDataContract"); snippetsParms.AddParametersValue(ParametersParmName, $"CustAccount" + MandatoryPropertySym + Environment.NewLine + $"NoYesId {snippetsParms.ValuesSeparator} useCurrentDate {snippetsParms.ValuesSeparator} Use current date {snippetsParms.ValuesSeparator} Help text" + Environment.NewLine + $"FromDate {snippetsParms.ValuesSeparator} fromDate {snippetsParms.ValuesSeparator} From date label {snippetsParms.ValuesSeparator} Help text { snippetsParms.ValuesSeparator} GroupId { snippetsParms.ValuesSeparator} Group label"); snippetsParms.Description = "Util creates a DataContract type class. You can specify multiple parameters - each as a separate line in the following format:" + Environment.NewLine + "EDTType | Variable name | " + "Label | Help text | GroupId | Group label" + Environment.NewLine + "You can specify only EDTType. For the Mandatory property add * to the EDTType"; snippetsParms.IsFieldsSeparatorVisible = true; snippetsParms.IsCreateButtonVisible = true; snippetsParms.CreateAction = this; snippetsParms.PreviewAction = this; }
public void InitDialogParms(SnippetsParms snippetsParms) { snippetsParms.SnippetName = "Create RunBase class"; snippetsParms.AddParametersValue(ClassNameParm, "AATestRunBase"); snippetsParms.AddParametersValue(DescriptionParmName, "Class description"); snippetsParms.AddParametersValue(QueryTableParmName, "CustTable"); snippetsParms.AddParametersValue(ExternalTableNameParmName, ""); snippetsParms.AddParametersValue(AddFileUploadParmName, ""); snippetsParms.AddParametersValue(CreateMenuItemParmName, ""); snippetsParms.AddParametersValue(ParametersParmName, $"CustAccount" + MandatoryPropertySym + Environment.NewLine + $"NoYesId {snippetsParms.ValuesSeparator} useCurrentDate {snippetsParms.ValuesSeparator} Use current date {snippetsParms.ValuesSeparator} Help text"); snippetsParms.Description = "Util creates a RunBase type class. You can specify multiple parameters - each as a separate line in the following format EDTType | Variable name | " + "Label | Help text. You can specify only EDTType. For the Mandatory property add * to the EDTType"; snippetsParms.IsFieldsSeparatorVisible = true; snippetsParms.IsCreateButtonVisible = true; snippetsParms.CreateAction = this; snippetsParms.PreviewAction = this; }