Skip to content

Commit

Permalink
Moved model classes to namespace class
Browse files Browse the repository at this point in the history
  • Loading branch information
AhashSritharan committed Oct 9, 2023
1 parent f218f08 commit b23aff1
Show file tree
Hide file tree
Showing 47 changed files with 4,551 additions and 4,447 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ var YourNamespace = YourNamespace || {};
YourNamespace.Contact = YourNamespace.Contact || {};
(function (Self) { //Only properties assigned to the Self object will be exposed to the global scope
class Fields {
Firstname = new XrmEx.TextField("firstname");
Customer = new XrmEx.LookupField("parentcustomerid");
DoNotEmail = new XrmEx.BooleanField("donotemail");
Birthday = new XrmEx.DateField("birthdate");
PreferredContactMethod = new XrmEx.OptionsetField(
Firstname = new XrmEx.Class.TextField("firstname");
Customer = new XrmEx.Class.LookupField("parentcustomerid");
DoNotEmail = new XrmEx.Class.BooleanField("donotemail");
Birthday = new XrmEx.Class.DateField("birthdate");
PreferredContactMethod = new XrmEx.Class.OptionsetField(
"preferredcontactmethodcode",
{
Any: 1,
Expand All @@ -91,17 +91,17 @@ YourNamespace.Contact = YourNamespace.Contact || {};
);
}
class Tabs {
General = new XrmEx.Tab("tab1", {
Section1: new XrmEx.Section("section1"),
Section2: new XrmEx.Section("section2"),
General = new XrmEx.Class.Tab("tab1", {
Section1: new XrmEx.Class.Section("section1"),
Section2: new XrmEx.Class.Section("section2"),
});
Details = new XrmEx.Tab("tab2", {
Section1: new XrmEx.Section("section1"),
Section2: new XrmEx.Section("section2"),
Details = new XrmEx.Class.Tab("tab2", {
Section1: new XrmEx.Class.Section("section1"),
Section2: new XrmEx.Class.Section("section2"),
});
}
class Grids {
ContactSubgrid = new XrmEx.GridControl("Test");
ContactSubgrid = new XrmEx.Class.GridControl("Test");
}
/**@type {Fields}*/ var fields;
/**@type {Tabs()}*/ var tabs;
Expand Down
24 changes: 12 additions & 12 deletions READMEDOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ var YourNamespace = YourNamespace || {};
YourNamespace.Contact = YourNamespace.Contact || {};
(function (Self) { //Only properties assigned to the Self object will be exposed to the global scope
class Fields {
Firstname = new XrmEx.TextField("firstname");
Customer = new XrmEx.LookupField("parentcustomerid");
DoNotEmail = new XrmEx.BooleanField("donotemail");
Birthday = new XrmEx.DateField("birthdate");
PreferredContactMethod = new XrmEx.OptionsetField(
Firstname = new XrmEx.Class.TextField("firstname");
Customer = new XrmEx.Class.LookupField("parentcustomerid");
DoNotEmail = new XrmEx.Class.BooleanField("donotemail");
Birthday = new XrmEx.Class.DateField("birthdate");
PreferredContactMethod = new XrmEx.Class.OptionsetField(
"preferredcontactmethodcode",
{
Any: 1,
Expand All @@ -55,17 +55,17 @@ YourNamespace.Contact = YourNamespace.Contact || {};
);
}
class Tabs {
General = new XrmEx.Tab("tab1", {
Section1: new XrmEx.Section("section1"),
Section2: new XrmEx.Section("section2"),
General = new XrmEx.Class.Tab("tab1", {
Section1: new XrmEx.Class.Section("section1"),
Section2: new XrmEx.Class.Section("section2"),
});
Details = new XrmEx.Tab("tab2", {
Section1: new XrmEx.Section("section1"),
Section2: new XrmEx.Section("section2"),
Details = new XrmEx.Class.Tab("tab2", {
Section1: new XrmEx.Class.Section("section1"),
Section2: new XrmEx.Class.Section("section2"),
});
}
class Grids {
ContactSubgrid = new XrmEx.GridControl("Test");
ContactSubgrid = new XrmEx.Class.GridControl("Test");
}
/**@type {Fields}*/ var fields;
/**@type {Tabs()}*/ var tabs;
Expand Down
24 changes: 12 additions & 12 deletions build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ var YourNamespace = YourNamespace || {};
YourNamespace.Contact = YourNamespace.Contact || {};
(function (Self) { //Only properties assigned to the Self object will be exposed to the global scope
class Fields {
Firstname = new XrmEx.TextField("firstname");
Customer = new XrmEx.LookupField("parentcustomerid");
DoNotEmail = new XrmEx.BooleanField("donotemail");
Birthday = new XrmEx.DateField("birthdate");
PreferredContactMethod = new XrmEx.OptionsetField(
Firstname = new XrmEx.Class.TextField("firstname");
Customer = new XrmEx.Class.LookupField("parentcustomerid");
DoNotEmail = new XrmEx.Class.BooleanField("donotemail");
Birthday = new XrmEx.Class.DateField("birthdate");
PreferredContactMethod = new XrmEx.Class.OptionsetField(
"preferredcontactmethodcode",
{
Any: 1,
Expand All @@ -91,17 +91,17 @@ YourNamespace.Contact = YourNamespace.Contact || {};
);
}
class Tabs {
General = new XrmEx.Tab("tab1", {
Section1: new XrmEx.Section("section1"),
Section2: new XrmEx.Section("section2"),
General = new XrmEx.Class.Tab("tab1", {
Section1: new XrmEx.Class.Section("section1"),
Section2: new XrmEx.Class.Section("section2"),
});
Details = new XrmEx.Tab("tab2", {
Section1: new XrmEx.Section("section1"),
Section2: new XrmEx.Section("section2"),
Details = new XrmEx.Class.Tab("tab2", {
Section1: new XrmEx.Class.Section("section1"),
Section2: new XrmEx.Class.Section("section2"),
});
}
class Grids {
ContactSubgrid = new XrmEx.GridControl("Test");
ContactSubgrid = new XrmEx.Class.GridControl("Test");
}
/**@type {Fields}*/ var fields;
/**@type {Tabs()}*/ var tabs;
Expand Down
Loading

0 comments on commit b23aff1

Please sign in to comment.