Hello,
When we add ranges values to tablix filters will auto updates the values to """.
This can be fixed by
=CStr("03. Lines,04. Lines Total").Split(",")
Regards,
The purpose of this blog is for knowledge sharing and connect the relevant audience who are all into Microsoft Dynamics world.
Hello,
When we add ranges values to tablix filters will auto updates the values to """.
This can be fixed by
=CStr("03. Lines,04. Lines Total").Split(",")
Regards,
/// <summary>
/// <MAI 09282022>
/// FDD details
/// </MAI>
/// </summary>
[ExtensionOf(tablestr(PurchLine))]
public final class PurchLine_XXYYX_Extension
{
public display NoYes isXYZ()
{
return InventTable::find(this.ItemId).XYZ;
}
}
NOTE: In the coming days extensions will be recessive, so avoid static the display method.
Hi,
Orig() is to get the last saved values. This method is used to compare the new values with last saved values.
Regards,
Hi,
Overlayer of standard code to execute your methods is not possible literally, whereas there are several other ways to override.
Procedure.
1. Class to register the override you created.
2. Call the registered call on the eventHander.
Registering Override method.
Calling the Registered methods.
Regards,
Hi,
Using an event handler, we cannot call the custom methods created in another later / model/ ISV object.
On calling formRun.CreateDeliveryNote() throws the error ‘FormRun doesn't have the method CreateDeliveryNote.
FormDataSource purchTable_ds = sender.datasource();
FormRun formRun = purchTable_ds.formRun();
formRun.CreateDeliveryNote() ;
Conclusion is to use only COC not eventhandler
[ExtensionOf(formDataFieldStr(PurchTable, PurchTable, DeliveryDate))]
final class PurchTableDeliveryDateField_Extension
{
public void modified()
{
next modified();
element.CreateDeliveryNote(); // Custom method from Other Later / Model
}
}
Regards
Hi,
To know the ISV objects implications.
[ExtensionOf(classStr(ClassToExtend))] - class
[ExtensionOf(formstr(FormToExtend))] - Forms and its methods
[ExtensionOf(formdatasourcestr(FormToExtend, DataSource1))] - Form Datasource and its methods
[ExtensionOf(formdatafieldstr(FormToExtend, DataSource1, Field1))] - Form Datasource fileds and its methods
[ExtensionOf(formControlStr(FormToExtend, Button1))] - Form Object and its methods
[ExtensionOf(tablestr(TableToExtend))] - Table methods
[ExtensionOf(tableStr(DataEntityToExtend))] - Entity methods
Hi,
Regards,
Hi,
[ExtensionOf(formDataSourceStr(SalesTable, SalesLine))]
final class Dpay_SalesTable_SalesLine_FDS_Extension
{
//init of SalesLineDS of SalesTable form
void initValue()
{
FormDataSource formDataSource = this;
SalesLine salesLine = formDataSource.cursor();
//your logic
next initValue();
//Your logic
}
}
Regards,
Hi,
[ExtensionOf(formDataSourceStr(SalesTable, SalesLine))]
final class Dpay_SalesTable_SalesLine_FDS_Extension
{
//init of SalesLineDS of SalesTable form
void initValue()
{
FormDataSource formDataSource = this;
SalesLine salesLine = formDataSource.cursor();
SalesTable salesTable = formDataSource .formRun().dataSource( formDataSourceStr( SalesTable, SalesTable)).cursor();
//your logic
next initValue();
//Your logic
}
}
Regards,
Hi,
In this article, we will discuss renamePrimaryKey().
In the operation of changing the value any of the primary key values in the system like CustId, VendId, PurchID, PersonnelNumberId, ProjID, etc needs to reflect its supporting relationed child tables.
This can be manually achievable by renaming on record Info of the particular form.
Here my case is to do the same through code for a large list of values.
CustTable CustTable;
ttsBegin;
select firstOnly CustTable where CustTable.AccountNum == "00445";
if (CustTable)
{
CustTable.AccountNum = "CUST-00445";
CustTable.renamePrimaryKey();
}
ttsCommit;
}
Hi,
Change the fonts, colors and other display-related information of the grid or forms can be achieved here.
Override the displayOption() from the formDatasource, if there is multiple db please select the parent DB
public void
displayOption(Common _record, FormRowDisplayOption _options)
{
HcmWorker
hcmWorkerLoc = _record as
HcmWorker;
super(_record,
_options);
_options.fontBold(true); // to
make the text bold
_options.fontItalic(true); // to
make text Italic
_options.fontUnderline(true); // to
Underline the text by default
_options.backColor(WinAPI::RGB2int(255,0,127 )); // to change
the background color of the glid
_options.textColor(WinAPI::RGB2int(255,255,0)); // to change the
text color of the glid
}
Hi,
SysInfologEnumerator sysInfologEnumerator;
SysInfologMessageStruct sysInfologMessageStruct;
Exception exception;
checkFailed("Warning Msg");
error("Error MSG");
info("Info Msg");
sysInfologEnumerator = SysInfologEnumerator::newData(infolog.cut());
while (sysInfologEnumerator.moveNext())
{
sysInfologMessageStruct = new SysInfologMessageStruct(sysInfologEnumerator.currentMessage());
exception = sysInfologEnumerator.currentException();
info(strFmt("Msg type: %1; Message: %2",
exception,
sysInfologMessageStruct.message()));
}
Regards,
MAI
Hi, update companyimage set companyimage.Image = companyimageA.Image from ( select Image from companyimage where dataAreaid = 'USF...