Tuesday, November 27, 2018

Form - Chain Of Command D365 FO PU20


Chain of Command on FORMS

1. Method on DataSource extension
            [ExtensionOf(FormDatasourceStr(<FormName>,<DataSourceName>))]
2. Method on DataSource field extension
            [ExtensionOf(FormDataFieldStr(<FormName>,<DataSourceName>,<DataSourceFieldName>))]
3. Method on Form Control extension
            [ExtensionOf(FormControlStr(<FormName>,<controlName>))]
4. Method on Form extension
            [ExtensionOf(FormMethodStr(<FormName>,<cMethodName>))]


Samples:

FORM on Extension

DataSource Method

FormDataSource fds = this;
<Table buffer> = fds.cursor();

DataSourceField

FormDataSource fds;
FormDataObject fdo = any2Object(this) as FormDataObject;
fds = fdo.Datasource();
<Table buffer> = fds.cursor();

FormControl

FormDataSource fds;
FormButtonControl fbc = this as FormButtonControl;
fds = fbc.formRun().Datasource(tableStr(<Table Name of DS>));
<Table buffer> = fds.cursor();


Sample:
 FormDateTimeControl     dtc1 = any2object(this) as formDateTimeControl;
        FormRun                 fr              = dtc1.formRun() as FormRun;
        FormDateTimeControl     dtc2   = fr.design().controlName(formControlStr(<formname>, <controlname>) as formDateTimeControl;

Thursday, November 22, 2018

World Wide Web publishing service/AOSService down after building solution in 7.3 update 12 cloud


1. Edit DynamicsDevConfig.xml file 
2. Folder located in ‪K:\AosService\PackagesLocalDirectory\Bin 
Note: Drive letter could be different based on VM setup
3. Open .xml in notepad
4. Find RuntimeHostType tag and replace value from IISExpress to IIS.

Note: 
Make sure AOSSERVICE in IIS, if its tagged with multiple bindings. keep one and remove others.

Restart:
VS,
IIS

Open:
VS as Run as Administrator and check once

Replaces the value of the specified dimension attribute from source to target in D365FO

Replaces the value of the specified dimension attribute from source to target => LedgerDimensionDefaultFacade::serviceReplaceAttributeVal...