Refactoring file structure.
Optimizing for reading code on GitHub by removing auto-generated metadata artifacts. Now only the human-readable code remains. Optimizing for easy downloading of the samples by directly providing the AXPP project files.
This commit is contained in:
Родитель
f45deb6c72
Коммит
d1ca9008f6
|
@ -1 +0,0 @@
|
|||
<PackageDescriptor xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.Framework.Tools.ProjectSystem.ExportImport" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ContentResourceDictionary xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringstring><a:Key>ProjectItem\AxResource\BasicControlHTML.xml</a:Key><a:Value>ProjectItem\AxResource\ResourceContent\Html\BasicControl.htm</a:Value></a:KeyValueOfstringstring></ContentResourceDictionary><PackageVersion xmlns:a="http://schemas.datacontract.org/2004/07/System"><a:_Build>-1</a:_Build><a:_Major>1</a:_Major><a:_Minor>1</a:_Minor><a:_Revision>-1</a:_Revision></PackageVersion></PackageDescriptor>
|
|
@ -1 +0,0 @@
|
|||
<AxModelInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AppliedUpdates i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><Description>Tutorial Content</Description><DisplayName>Tutorial</DisplayName><Id>219</Id><Layer>14</Layer><Locked>false</Locked><ModelModule>Tutorial</ModelModule><ModelReferences i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ModuleReferences xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>ApplicationSuite</a:string><a:string>ApplicationPlatform</a:string><a:string>ApplicationFoundation</a:string></ModuleReferences><Name>Tutorial</Name><Publisher>Microsoft Corporation Internal</Publisher><VersionBuild>4033</VersionBuild><VersionMajor>7</VersionMajor><VersionMinor>0</VersionMinor><VersionRevision>0</VersionRevision></AxModelInfo>
|
|
@ -1,57 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<Configuration>Debug</Configuration>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<Model>Tutorial</Model>
|
||||
<DBSyncInBuild>False</DBSyncInBuild>
|
||||
<GenerateFormAdaptors>False</GenerateFormAdaptors>
|
||||
<Company>
|
||||
</Company>
|
||||
<Partition>initial</Partition>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<OutputPath>bin</OutputPath>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<DataEntityExpandParentChildRelations>False</DataEntityExpandParentChildRelations>
|
||||
<DataEntityUseLabelTextAsFieldName>False</DataEntityUseLabelTextAsFieldName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{00e527e7-23c8-431f-bc34-4c774d08e646}</ProjectGuid>
|
||||
<Name>Tutorial_1_BasicControl</Name>
|
||||
<RootNamespace>BasicControl</RootNamespace>
|
||||
<StartupType>Class</StartupType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Classes\" />
|
||||
<Folder Include="Forms\" />
|
||||
<Folder Include="Resources\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AxClass\BasicControl">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicControl</Name>
|
||||
<Link>Classes\BasicControl</Link>
|
||||
</Content>
|
||||
<Content Include="AxForm\BasicControlForm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicControlForm</Name>
|
||||
<Link>Forms\BasicControlForm</Link>
|
||||
</Content>
|
||||
<Content Include="AxResource\BasicControlHTML">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicControlHTML</Name>
|
||||
<Link>BasicControlHTML</Link>
|
||||
</Content>
|
||||
<Content Include="BasicControl.htm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicControl.htm</Name>
|
||||
<DependentUpon>AxResource\BasicControlHTML</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" />
|
||||
</Project>
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Microsoft.Dynamics.AX.Metadata.V6">
|
||||
<Name>BasicControlForm</Name>
|
||||
<SourceCode>
|
||||
<Methods xmlns="">
|
||||
<Method>
|
||||
<Name>classDeclaration</Name>
|
||||
<Source><![CDATA[
|
||||
[Form]
|
||||
public class BasicControlForm extends FormRun
|
||||
{
|
||||
}
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>init</Name>
|
||||
<Source><![CDATA[
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void init()
|
||||
{
|
||||
super();
|
||||
this.design().addControlEx(classStr(BasicControl),"BasicControl1");
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
<DataSources xmlns="" />
|
||||
<DataControls xmlns="" />
|
||||
</SourceCode>
|
||||
<DataSources />
|
||||
<Design>
|
||||
<Controls xmlns="" />
|
||||
</Design>
|
||||
<Parts />
|
||||
</AxForm>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicControlHTML</Name>
|
||||
<FileName>BasicControl.htm</FileName>
|
||||
<RelativeUriInModelStore>Tutorial\Tutorial\AxResource\ResourceContent\Html\BasicControl.htm</RelativeUriInModelStore>
|
||||
<TypeOfResource>Html</TypeOfResource>
|
||||
</AxResource>
|
Двоичный файл не отображается.
|
@ -1,17 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicControl</Name>
|
||||
<SourceCode>
|
||||
<Declaration><![CDATA[
|
||||
[FormControlAttribute("BasicControl","resources/html/BasicControl", classstr(FormBuildControl))]
|
||||
class BasicControl extends FormTemplateControl
|
||||
{
|
||||
}
|
||||
]]></Declaration>
|
||||
<Methods>
|
||||
<Method>
|
||||
<Name>new</Name>
|
||||
<Source><![CDATA[
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
@ -20,8 +9,4 @@ class BasicControl extends FormTemplateControl
|
|||
this.setResourceBundleName("resources/html/BasicControl");
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
</SourceCode>
|
||||
</AxClass>
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
[Form]
|
||||
public class BasicControlForm extends FormRun
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void init()
|
||||
{
|
||||
super();
|
||||
this.design().addControlEx(classStr(BasicControl),"BasicControl1");
|
||||
}
|
||||
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
<PackageDescriptor xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.Framework.Tools.ProjectSystem.ExportImport" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ContentResourceDictionary xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringstring><a:Key>ProjectItem\AxResource\BasicValueControlHTM.xml</a:Key><a:Value>ProjectItem\AxResource\ResourceContent\Html\BasicValueControl.htm</a:Value></a:KeyValueOfstringstring></ContentResourceDictionary><PackageVersion xmlns:a="http://schemas.datacontract.org/2004/07/System"><a:_Build>-1</a:_Build><a:_Major>1</a:_Major><a:_Minor>1</a:_Minor><a:_Revision>-1</a:_Revision></PackageVersion></PackageDescriptor>
|
|
@ -1 +0,0 @@
|
|||
<AxModelInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AppliedUpdates i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><Description>Tutorial Content</Description><DisplayName>Tutorial</DisplayName><Id>219</Id><Layer>14</Layer><Locked>false</Locked><ModelModule>Tutorial</ModelModule><ModelReferences i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ModuleReferences xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>ApplicationSuite</a:string><a:string>ApplicationPlatform</a:string><a:string>ApplicationFoundation</a:string></ModuleReferences><Name>Tutorial</Name><Publisher>Microsoft Corporation Internal</Publisher><VersionBuild>4033</VersionBuild><VersionMajor>7</VersionMajor><VersionMinor>0</VersionMinor><VersionRevision>0</VersionRevision></AxModelInfo>
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<Configuration>Debug</Configuration>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<Model>Tutorial</Model>
|
||||
<DBSyncInBuild>False</DBSyncInBuild>
|
||||
<GenerateFormAdaptors>False</GenerateFormAdaptors>
|
||||
<Company>
|
||||
</Company>
|
||||
<Partition>initial</Partition>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<OutputPath>bin</OutputPath>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<DataEntityExpandParentChildRelations>False</DataEntityExpandParentChildRelations>
|
||||
<DataEntityUseLabelTextAsFieldName>False</DataEntityUseLabelTextAsFieldName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{820cd121-5250-45f6-b6dc-c8aebdc7620a}</ProjectGuid>
|
||||
<Name>Tutorial_2_BasicValueControl</Name>
|
||||
<RootNamespace>BasicValueControl</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Classes\" />
|
||||
<Folder Include="Forms\" />
|
||||
<Folder Include="Resources\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AxClass\BasicValueControl">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicValueControl</Name>
|
||||
<Link>Classes\BasicValueControl</Link>
|
||||
</Content>
|
||||
<Content Include="AxForm\BasicValueControlForm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicValueControlForm</Name>
|
||||
<Link>Forms\BasicValueControlForm</Link>
|
||||
</Content>
|
||||
<Content Include="AxResource\BasicValueControlHTM">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicValueControlHTM</Name>
|
||||
<Link>Resources\BasicValueControlHTM</Link>
|
||||
</Content>
|
||||
<Content Include="BasicValueControl.htm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicValueControl.htm</Name>
|
||||
<DependentUpon>AxResource\BasicValueControlHTM</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" />
|
||||
</Project>
|
|
@ -1,41 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Microsoft.Dynamics.AX.Metadata.V6">
|
||||
<Name>BasicValueControlForm</Name>
|
||||
<SourceCode>
|
||||
<Methods xmlns="">
|
||||
<Method>
|
||||
<Name>classDeclaration</Name>
|
||||
<Source><![CDATA[
|
||||
[Form]
|
||||
public class BasicValueControlForm extends FormRun
|
||||
{
|
||||
BasicValueControl basicValueControl;
|
||||
|
||||
}
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>init</Name>
|
||||
<Source><![CDATA[
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void init()
|
||||
{
|
||||
super();
|
||||
basicValueControl = this.design().addControlEx(classStr(BasicValueControl), "BasicValueControl1");
|
||||
basicValueControl.parmValue("Hello World!");
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
<DataSources xmlns="" />
|
||||
<DataControls xmlns="" />
|
||||
</SourceCode>
|
||||
<DataSources />
|
||||
<Design>
|
||||
<Controls xmlns="" />
|
||||
</Design>
|
||||
<Parts />
|
||||
</AxForm>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicValueControlHTM</Name>
|
||||
<FileName>BasicValueControl.htm</FileName>
|
||||
<RelativeUriInModelStore>Tutorial\Tutorial\AxResource\ResourceContent\Html\BasicValueControl.htm</RelativeUriInModelStore>
|
||||
<TypeOfResource>Html</TypeOfResource>
|
||||
</AxResource>
|
Двоичный файл не отображается.
|
@ -1,48 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicValueControl</Name>
|
||||
<SourceCode>
|
||||
<Declaration><![CDATA[
|
||||
[FormControlAttribute("BasicValueControl","resources/html/BasicValueControl", classstr(FormBuildControl))]
|
||||
class BasicValueControl extends FormTemplateControl
|
||||
{
|
||||
#define.ValuePropertyName("Value")
|
||||
|
||||
FormProperty valueProperty;
|
||||
|
||||
}
|
||||
]]></Declaration>
|
||||
<Methods>
|
||||
<Method>
|
||||
<Name>new</Name>
|
||||
<Source><![CDATA[
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
||||
this.setTemplateId("BasicValueControl");
|
||||
this.setResourceBundleName("resources/html/BasicValueControl");
|
||||
|
||||
valueProperty = this.addProperty(methodStr(BasicValueControl, parmValue), Types::String);
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>parmValue</Name>
|
||||
<Source><![CDATA[
|
||||
[FormPropertyAttribute(FormPropertyKind::Value, #ValuePropertyName, true)]
|
||||
public str parmValue(str _value = valueProperty.parmValue())
|
||||
{
|
||||
if(!prmisdefault(_value))
|
||||
{
|
||||
valueProperty.setValueOrBinding(_value);
|
||||
}
|
||||
return valueProperty.parmValue();
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
</SourceCode>
|
||||
</AxClass>
|
||||
[FormControlAttribute("BasicValueControl","resources/html/BasicValueControl", classstr(FormBuildControl))]
|
||||
class BasicValueControl extends FormTemplateControl
|
||||
{
|
||||
#define.ValuePropertyName("Value")
|
||||
|
||||
FormProperty valueProperty;
|
||||
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
||||
this.setTemplateId("BasicValueControl");
|
||||
this.setResourceBundleName("resources/html/BasicValueControl");
|
||||
|
||||
valueProperty = this.addProperty(methodStr(BasicValueControl, parmValue), Types::String);
|
||||
}
|
||||
|
||||
[FormPropertyAttribute(FormPropertyKind::Value, #ValuePropertyName, true)]
|
||||
public str parmValue(str _value = valueProperty.parmValue())
|
||||
{
|
||||
if(!prmisdefault(_value))
|
||||
{
|
||||
valueProperty.setValueOrBinding(_value);
|
||||
}
|
||||
return valueProperty.parmValue();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
[Form]
|
||||
public class BasicValueControlForm extends FormRun
|
||||
{
|
||||
BasicValueControl basicValueControl;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void init()
|
||||
{
|
||||
super();
|
||||
basicValueControl = this.design().addControlEx(classStr(BasicValueControl), "BasicValueControl1");
|
||||
basicValueControl.parmValue("Hello World!");
|
||||
}
|
||||
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
<div id="BasicValueControl">
|
||||
<span data-dyn-bind="text: $control.Value"></span>
|
||||
</div>
|
||||
<div id="BasicValueControl">
|
||||
<span data-dyn-bind="text: $control.Value"></span>
|
||||
</div>
|
|
@ -1 +0,0 @@
|
|||
<PackageDescriptor xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.Framework.Tools.ProjectSystem.ExportImport" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ContentResourceDictionary xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringstring><a:Key>ProjectItem\AxResource\BasicActionControlHTM.xml</a:Key><a:Value>ProjectItem\AxResource\ResourceContent\Html\BasicActionControl.htm</a:Value></a:KeyValueOfstringstring><a:KeyValueOfstringstring><a:Key>ProjectItem\AxResource\BasicActionControlJS.xml</a:Key><a:Value>ProjectItem\AxResource\ResourceContent\Scripts\BasicActionControl.js</a:Value></a:KeyValueOfstringstring></ContentResourceDictionary><PackageVersion xmlns:a="http://schemas.datacontract.org/2004/07/System"><a:_Build>-1</a:_Build><a:_Major>1</a:_Major><a:_Minor>1</a:_Minor><a:_Revision>-1</a:_Revision></PackageVersion></PackageDescriptor>
|
|
@ -1 +0,0 @@
|
|||
<AxModelInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AppliedUpdates i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><Description>Tutorial Content</Description><DisplayName>Tutorial</DisplayName><Id>219</Id><Layer>14</Layer><Locked>false</Locked><ModelModule>Tutorial</ModelModule><ModelReferences i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ModuleReferences xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>ApplicationSuite</a:string><a:string>ApplicationPlatform</a:string><a:string>ApplicationFoundation</a:string></ModuleReferences><Name>Tutorial</Name><Publisher>Microsoft Corporation Internal</Publisher><VersionBuild>4033</VersionBuild><VersionMajor>7</VersionMajor><VersionMinor>0</VersionMinor><VersionRevision>0</VersionRevision></AxModelInfo>
|
|
@ -1,73 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<Configuration>Debug</Configuration>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<Model>Tutorial</Model>
|
||||
<DBSyncInBuild>False</DBSyncInBuild>
|
||||
<GenerateFormAdaptors>False</GenerateFormAdaptors>
|
||||
<Company>
|
||||
</Company>
|
||||
<Partition>initial</Partition>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<OutputPath>bin</OutputPath>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<DataEntityExpandParentChildRelations>False</DataEntityExpandParentChildRelations>
|
||||
<DataEntityUseLabelTextAsFieldName>False</DataEntityUseLabelTextAsFieldName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{08479511-2dfc-4e25-b805-0d61cf23330f}</ProjectGuid>
|
||||
<Name>Tutorial_3_BasicActionControl</Name>
|
||||
<RootNamespace>BasicActionControl</RootNamespace>
|
||||
<StartupObject>BasicActionControlForm</StartupObject>
|
||||
<StartupType>Form</StartupType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Classes\" />
|
||||
<Folder Include="Forms\" />
|
||||
<Folder Include="Resources\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AxClass\BasicActionControl">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicActionControl</Name>
|
||||
<Link>Classes\BasicActionControl</Link>
|
||||
</Content>
|
||||
<Content Include="AxClass\BuildBasicActionControl">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BuildBasicActionControl</Name>
|
||||
<Link>Classes\BuildBasicActionControl</Link>
|
||||
</Content>
|
||||
<Content Include="AxForm\BasicActionControlForm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicActionControlForm</Name>
|
||||
<Link>Forms\BasicActionControlForm</Link>
|
||||
</Content>
|
||||
<Content Include="AxResource\BasicActionControlHTM">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicActionControlHTM</Name>
|
||||
<Link>Resources\BasicActionControlHTM</Link>
|
||||
</Content>
|
||||
<Content Include="AxResource\BasicActionControlJS">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicActionControlJS</Name>
|
||||
<Link>Resources\BasicActionControlJS</Link>
|
||||
</Content>
|
||||
<Content Include="BasicActionControl.htm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicActionControl.htm</Name>
|
||||
<DependentUpon>AxResource\BasicActionControlHTM</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="BasicActionControl.js">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicActionControl.js</Name>
|
||||
<DependentUpon>AxResource\BasicActionControlJS</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" />
|
||||
</Project>
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BuildBasicActionControl</Name>
|
||||
<SourceCode>
|
||||
<Declaration><![CDATA[
|
||||
[FormDesignControlAttribute("Basic action control")]
|
||||
class BuildBasicActionControl extends FormBuildControl
|
||||
{
|
||||
}
|
||||
|
||||
]]></Declaration>
|
||||
<Methods />
|
||||
</SourceCode>
|
||||
</AxClass>
|
|
@ -1,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Microsoft.Dynamics.AX.Metadata.V6">
|
||||
<Name>BasicActionControlForm</Name>
|
||||
<SourceCode>
|
||||
<Methods xmlns="">
|
||||
<Method>
|
||||
<Name>classDeclaration</Name>
|
||||
<Source><![CDATA[
|
||||
[Form]
|
||||
public class BasicActionControlForm extends FormRun
|
||||
{
|
||||
}
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
<DataSources xmlns="" />
|
||||
<DataControls xmlns="">
|
||||
<Control>
|
||||
<Name>BasicActionControl1</Name>
|
||||
<Type>Custom</Type>
|
||||
<Methods>
|
||||
<Method>
|
||||
<Name>clicked</Name>
|
||||
<Source><![CDATA[
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void clicked(str _text = "")
|
||||
{
|
||||
super(_text);
|
||||
info(_text);
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
</Control>
|
||||
</DataControls>
|
||||
</SourceCode>
|
||||
<DataSources />
|
||||
<Design>
|
||||
<Controls xmlns="">
|
||||
<AxFormControl>
|
||||
<Name>BasicActionControl1</Name>
|
||||
<FormControlExtension>
|
||||
<Name>BasicActionControl</Name>
|
||||
<ExtensionComponents />
|
||||
<ExtensionProperties />
|
||||
</FormControlExtension>
|
||||
</AxFormControl>
|
||||
</Controls>
|
||||
</Design>
|
||||
<Parts />
|
||||
</AxForm>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicActionControlHTM</Name>
|
||||
<FileName>BasicActionControl.htm</FileName>
|
||||
<RelativeUriInModelStore>Tutorial\Tutorial\AxResource\ResourceContent\Html\BasicActionControl.htm</RelativeUriInModelStore>
|
||||
<TypeOfResource>Html</TypeOfResource>
|
||||
</AxResource>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicActionControlJS</Name>
|
||||
<FileName>BasicActionControl.js</FileName>
|
||||
<RelativeUriInModelStore>Tutorial\Tutorial\AxResource\ResourceContent\Scripts\BasicActionControl.js</RelativeUriInModelStore>
|
||||
<TypeOfResource>Scripts</TypeOfResource>
|
||||
</AxResource>
|
Двоичный файл не отображается.
|
@ -1,38 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicActionControl</Name>
|
||||
<SourceCode>
|
||||
<Declaration><![CDATA[
|
||||
[FormControlAttribute("BasicActionControl","resources/html/BasicActionControl", classstr(BuildBasicActionControl))]
|
||||
class BasicActionControl extends FormTemplateControl
|
||||
{
|
||||
}
|
||||
]]></Declaration>
|
||||
<Methods>
|
||||
<Method>
|
||||
<Name>new</Name>
|
||||
<Source><![CDATA[
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
||||
this.setTemplateId("BasicActionControl");
|
||||
this.setResourceBundleName("resources/html/BasicActionControl");
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>clicked</Name>
|
||||
<Source><![CDATA[
|
||||
[FormCommandAttribute("Clicked")]
|
||||
public void clicked(str _text)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
</SourceCode>
|
||||
</AxClass>
|
||||
[FormControlAttribute("BasicActionControl","resources/html/BasicActionControl", classstr(BuildBasicActionControl))]
|
||||
class BasicActionControl extends FormTemplateControl
|
||||
{
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
||||
this.setTemplateId("BasicActionControl");
|
||||
this.setResourceBundleName("resources/html/BasicActionControl");
|
||||
}
|
||||
|
||||
[FormCommandAttribute("Clicked")]
|
||||
public void clicked(str _text)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
[FormDesignControlAttribute("Basic action control")]
|
||||
class BuildBasicActionControl extends FormBuildControl
|
||||
{
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
[Form]
|
||||
public class BasicActionControlForm extends FormRun
|
||||
{
|
||||
[Control("Custom")]
|
||||
class BasicActionControl1
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void clicked(str _text = "")
|
||||
{
|
||||
super(_text);
|
||||
info(_text);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
<script src="../scripts/BasicActionControl.js"></script>
|
||||
<div id="BasicActionControl">
|
||||
<a href="javascript.void(0)" data-dyn-bind="click: $control.click">Click here!</a>
|
||||
</div>
|
||||
<script src="../scripts/BasicActionControl.js"></script>
|
||||
<div id="BasicActionControl">
|
||||
<a href="javascript.void(0)" data-dyn-bind="click: $control.click">Click here!</a>
|
||||
</div>
|
|
@ -1,16 +1,16 @@
|
|||
(function () {
|
||||
$dyn.controls.BasicActionControl = function (control, element)
|
||||
{
|
||||
self = this;
|
||||
$dyn.ui.Control.apply(self, arguments)
|
||||
$dyn.ui.applyDefaults(self, control);
|
||||
|
||||
self.click = function (event) {
|
||||
alert("Hello");
|
||||
event.preventDefault();
|
||||
$dyn.callFunction(self.Clicked, self, { _text: "World!" })
|
||||
};
|
||||
|
||||
};
|
||||
$dyn.controls.BasicActionControl.prototype = $dyn.extendPrototype($dyn.ui.Control.prototype, {});
|
||||
})();
|
||||
(function () {
|
||||
$dyn.controls.BasicActionControl = function (control, element)
|
||||
{
|
||||
self = this;
|
||||
$dyn.ui.Control.apply(self, arguments)
|
||||
$dyn.ui.applyDefaults(self, control);
|
||||
|
||||
self.click = function (event) {
|
||||
alert("Hello");
|
||||
event.preventDefault();
|
||||
$dyn.callFunction(self.Clicked, self, { _text: "World!" })
|
||||
};
|
||||
|
||||
};
|
||||
$dyn.controls.BasicActionControl.prototype = $dyn.extendPrototype($dyn.ui.Control.prototype, {});
|
||||
})();
|
|
@ -1 +0,0 @@
|
|||
<PackageDescriptor xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.Framework.Tools.ProjectSystem.ExportImport" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ContentResourceDictionary xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringstring><a:Key>ProjectItem\AxResource\BasicUserEntryControlHTM.xml</a:Key><a:Value>ProjectItem\AxResource\ResourceContent\Html\BasicUserEntryControl.htm</a:Value></a:KeyValueOfstringstring><a:KeyValueOfstringstring><a:Key>ProjectItem\AxResource\BasicUserEntryControlJS.xml</a:Key><a:Value>ProjectItem\AxResource\ResourceContent\Scripts\BasicUserEntryControl.js</a:Value></a:KeyValueOfstringstring></ContentResourceDictionary><PackageVersion xmlns:a="http://schemas.datacontract.org/2004/07/System"><a:_Build>-1</a:_Build><a:_Major>1</a:_Major><a:_Minor>1</a:_Minor><a:_Revision>-1</a:_Revision></PackageVersion></PackageDescriptor>
|
|
@ -1 +0,0 @@
|
|||
<AxModelInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AppliedUpdates i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><Description>Tutorial Content</Description><DisplayName>Tutorial</DisplayName><Id>219</Id><Layer>14</Layer><Locked>false</Locked><ModelModule>Tutorial</ModelModule><ModelReferences i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ModuleReferences xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>ApplicationSuite</a:string><a:string>ApplicationPlatform</a:string><a:string>ApplicationFoundation</a:string></ModuleReferences><Name>Tutorial</Name><Publisher>Microsoft Corporation Internal</Publisher><VersionBuild>4033</VersionBuild><VersionMajor>7</VersionMajor><VersionMinor>0</VersionMinor><VersionRevision>0</VersionRevision></AxModelInfo>
|
|
@ -1,66 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<Configuration>Debug</Configuration>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<Model>Tutorial</Model>
|
||||
<DBSyncInBuild>False</DBSyncInBuild>
|
||||
<GenerateFormAdaptors>False</GenerateFormAdaptors>
|
||||
<Company>
|
||||
</Company>
|
||||
<Partition>initial</Partition>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<OutputPath>bin</OutputPath>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<DataEntityExpandParentChildRelations>False</DataEntityExpandParentChildRelations>
|
||||
<DataEntityUseLabelTextAsFieldName>False</DataEntityUseLabelTextAsFieldName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{2bf8f436-adfa-43b3-b06f-c2d1cb50c08b}</ProjectGuid>
|
||||
<Name>Tutorial_4_BasicUserEntryControl</Name>
|
||||
<RootNamespace>BasicUserEntryControl</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Classes\" />
|
||||
<Folder Include="Forms\" />
|
||||
<Folder Include="Resources\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AxClass\BasicUserEntryControl">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicUserEntryControl</Name>
|
||||
<Link>Classes\BasicUserEntryControl</Link>
|
||||
</Content>
|
||||
<Content Include="AxForm\BasicUserEntryControlForm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicUserEntryControlForm</Name>
|
||||
<Link>Forms\BasicUserEntryControlForm</Link>
|
||||
</Content>
|
||||
<Content Include="AxResource\BasicUserEntryControlHTM">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicUserEntryControlHTM</Name>
|
||||
<Link>Resources\BasicUserEntryControlHTM</Link>
|
||||
</Content>
|
||||
<Content Include="AxResource\BasicUserEntryControlJS">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicUserEntryControlJS</Name>
|
||||
<Link>Resources\BasicUserEntryControlJS</Link>
|
||||
</Content>
|
||||
<Content Include="BasicUserEntryControl.htm">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicUserEntryControl.htm</Name>
|
||||
<DependentUpon>AxResource\BasicUserEntryControlHTM</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="BasicUserEntryControl.js">
|
||||
<SubType>Content</SubType>
|
||||
<Name>BasicUserEntryControl.js</Name>
|
||||
<DependentUpon>AxResource\BasicUserEntryControlJS</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" />
|
||||
</Project>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicUserEntryControlHTM</Name>
|
||||
<FileName>BasicUserEntryControl.htm</FileName>
|
||||
<RelativeUriInModelStore>Tutorial\Tutorial\AxResource\ResourceContent\Html\BasicUserEntryControl.htm</RelativeUriInModelStore>
|
||||
<TypeOfResource>Html</TypeOfResource>
|
||||
</AxResource>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicUserEntryControlJS</Name>
|
||||
<FileName>BasicUserEntryControl.js</FileName>
|
||||
<RelativeUriInModelStore>Tutorial\Tutorial\AxResource\ResourceContent\Scripts\BasicUserEntryControl.js</RelativeUriInModelStore>
|
||||
<TypeOfResource>Scripts</TypeOfResource>
|
||||
</AxResource>
|
Двоичный файл не отображается.
|
@ -1,55 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Name>BasicUserEntryControl</Name>
|
||||
<SourceCode>
|
||||
<Declaration><![CDATA[
|
||||
[FormControlAttribute("BasicUserEntryControl","resources/html/BasicUserEntryControl", classstr(FormBuildControl))]
|
||||
class BasicUserEntryControl extends FormTemplateControl
|
||||
{
|
||||
FormProperty valueProperty;
|
||||
|
||||
}
|
||||
]]></Declaration>
|
||||
<Methods>
|
||||
<Method>
|
||||
<Name>new</Name>
|
||||
<Source><![CDATA[
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
||||
this.setTemplateId("BasicUserEntryControl");
|
||||
this.setResourceBundleName("resources/html/BasicUserEntryControl");
|
||||
|
||||
valueProperty = this.addProperty(methodStr(BasicUserEntryControl, getValue), Types::String);
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>getValue</Name>
|
||||
<Source><![CDATA[
|
||||
[FormPropertyAttribute(FormPropertyKind::Value, "Value", true)]
|
||||
public str getValue()
|
||||
{
|
||||
return valueProperty.parmValue();
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>setValue</Name>
|
||||
<Source><![CDATA[
|
||||
[FormCommandAttribute("SetValue")]
|
||||
public void setValue(str _value = "")
|
||||
{
|
||||
valueProperty.setValueOrBinding(_value);
|
||||
this.properties().notifyChange(valueProperty);
|
||||
info(strFmt("Value set to: %1",_value));
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
</SourceCode>
|
||||
</AxClass>
|
||||
[FormControlAttribute("BasicUserEntryControl","resources/html/BasicUserEntryControl", classstr(FormBuildControl))]
|
||||
class BasicUserEntryControl extends FormTemplateControl
|
||||
{
|
||||
FormProperty valueProperty;
|
||||
|
||||
public void new(FormBuildControl _build, FormRun _formRun)
|
||||
{
|
||||
super(_build,_formRun);
|
||||
|
||||
this.setTemplateId("BasicUserEntryControl");
|
||||
this.setResourceBundleName("resources/html/BasicUserEntryControl");
|
||||
|
||||
valueProperty = this.addProperty(methodStr(BasicUserEntryControl, getValue), Types::String);
|
||||
}
|
||||
|
||||
[FormPropertyAttribute(FormPropertyKind::Value, "Value", true)]
|
||||
public str getValue()
|
||||
{
|
||||
return valueProperty.parmValue();
|
||||
}
|
||||
|
||||
[FormCommandAttribute("SetValue")]
|
||||
public void setValue(str _value = "")
|
||||
{
|
||||
valueProperty.setValueOrBinding(_value);
|
||||
this.properties().notifyChange(valueProperty);
|
||||
info(strFmt("Value set to: %1",_value));
|
||||
}
|
||||
|
||||
}
|
|
@ -1,48 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AxForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Microsoft.Dynamics.AX.Metadata.V6">
|
||||
<Name>BasicUserEntryControlForm</Name>
|
||||
<SourceCode>
|
||||
<Methods xmlns="">
|
||||
<Method>
|
||||
<Name>classDeclaration</Name>
|
||||
<Source><![CDATA[
|
||||
[Form]
|
||||
public class BasicUserEntryControlForm extends FormRun
|
||||
{
|
||||
BasicUserEntryControl basicUserEntryControl;
|
||||
FormStaticTextControl staticTextControl1;
|
||||
FormStaticTextControl staticTextControl2;
|
||||
FormStaticTextControl staticTextControl3;
|
||||
}
|
||||
]]></Source>
|
||||
</Method>
|
||||
<Method>
|
||||
<Name>init</Name>
|
||||
<Source><![CDATA[
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void init()
|
||||
{
|
||||
super();
|
||||
basicUserEntryControl = this.design().addControlEx(classStr(BasicUserEntryControl),"BasicUserEntryControl1");
|
||||
basicUserEntryControl.setValue("Hello World!");
|
||||
|
||||
staticTextControl1 = this.design().addControl(FormControlType::StaticText, "StaticTextControl1");
|
||||
staticTextControl1.text("The new value will be sent back to the server after you remove focus from the control by clicking in blank space");
|
||||
|
||||
}
|
||||
|
||||
]]></Source>
|
||||
</Method>
|
||||
</Methods>
|
||||
<DataSources xmlns="" />
|
||||
<DataControls xmlns="" />
|
||||
</SourceCode>
|
||||
<DataSources />
|
||||
<Design>
|
||||
<ViewEditMode xmlns="">Edit</ViewEditMode>
|
||||
<Controls xmlns="" />
|
||||
</Design>
|
||||
<Parts />
|
||||
</AxForm>
|
||||
[Form]
|
||||
public class BasicUserEntryControlForm extends FormRun
|
||||
{
|
||||
BasicUserEntryControl basicUserEntryControl;
|
||||
FormStaticTextControl staticTextControl1;
|
||||
FormStaticTextControl staticTextControl2;
|
||||
FormStaticTextControl staticTextControl3;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void init()
|
||||
{
|
||||
super();
|
||||
basicUserEntryControl = this.design().addControlEx(classStr(BasicUserEntryControl),"BasicUserEntryControl1");
|
||||
basicUserEntryControl.setValue("Hello World!");
|
||||
|
||||
staticTextControl1 = this.design().addControl(FormControlType::StaticText, "StaticTextControl1");
|
||||
staticTextControl1.text("The new value will be sent back to the server after you remove focus from the control by clicking in blank space");
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<script src="../scripts/BasicUserEntryControl.js"></script>
|
||||
<div id="BasicUserEntryControl">
|
||||
<!-- Dynamics stylesheet removes borders from inputs by default since Dynamics Inputs place the border on the container of the input.
|
||||
Here we use an in-line style to add the border back for tutorial control -->
|
||||
<input style="border: 1px solid" data-dyn-bind="event: {change: $control.handleUserValue}, attr: {value: $control.Value}" />
|
||||
</div>
|
||||
<script src="../scripts/BasicUserEntryControl.js"></script>
|
||||
<div id="BasicUserEntryControl">
|
||||
<!-- Dynamics stylesheet removes borders from inputs by default since Dynamics Inputs place the border on the container of the input.
|
||||
Here we use an in-line style to add the border back for tutorial control -->
|
||||
<input style="border: 1px solid" data-dyn-bind="event: {change: $control.handleUserValue}, attr: {value: $control.Value}" />
|
||||
</div>
|
|
@ -1,16 +1,16 @@
|
|||
(function () {
|
||||
$dyn.controls.BasicUserEntryControl = function (control, element)
|
||||
{
|
||||
self = this;
|
||||
$dyn.ui.Control.apply(self, arguments)
|
||||
$dyn.ui.applyDefaults(self, control);
|
||||
|
||||
self.handleUserValue = function (event)
|
||||
{
|
||||
var userValue = $(event.target).val();
|
||||
|
||||
$dyn.callFunction(self.SetValue, self, { _value: userValue });
|
||||
}
|
||||
};
|
||||
$dyn.controls.BasicUserEntryControl.prototype = $dyn.extendPrototype($dyn.ui.Control.prototype, {});
|
||||
})();
|
||||
(function () {
|
||||
$dyn.controls.BasicUserEntryControl = function (control, element)
|
||||
{
|
||||
self = this;
|
||||
$dyn.ui.Control.apply(self, arguments)
|
||||
$dyn.ui.applyDefaults(self, control);
|
||||
|
||||
self.handleUserValue = function (event)
|
||||
{
|
||||
var userValue = $(event.target).val();
|
||||
|
||||
$dyn.callFunction(self.SetValue, self, { _value: userValue });
|
||||
}
|
||||
};
|
||||
$dyn.controls.BasicUserEntryControl.prototype = $dyn.extendPrototype($dyn.ui.Control.prototype, {});
|
||||
})();
|
Загрузка…
Ссылка в новой задаче