Hi,
update companyimage
set
companyimage.Image = companyimageA.Image
from
( select Image from companyimage where dataAreaid = 'USFM' and imagetype = 1) as companyimageA
where
dataAreaid != 'USFM' and imagetype = 1
Regards
The purpose of this blog is for knowledge sharing and connect the relevant audience who are all into Microsoft Dynamics world.
Hi,
update companyimage
set
companyimage.Image = companyimageA.Image
from
( select Image from companyimage where dataAreaid = 'USFM' and imagetype = 1) as companyimageA
where
dataAreaid != 'USFM' and imagetype = 1
Regards
Hi,
update TableA
set TableA.Image = TableB.Image from ( select Image from TableA where dataAreaid = 'USMF' and imagetype = 1) as TableB
where dataAreaid = 'USF1' and imagetype = 1
Regards,
Hi,
VendInvoiceHeaderWorkflow::submitToWorkflow(VendInvoiceInfoTable::find(541879755462212), "Submitted by Integration");
Regards,
Hi,
Train Dest Time
1 HK 10:00
1 SH 12:00
1 SZ 14:00
2 HK 13:00
2 SH 09:00
2 SZ 07:00
Expected output
Train Dest Time
1 SZ 14:00
2 HK 13:00
Distinct ( max(AccountingDate) and group by (SubLedgerVoucherDataAreaID) from GeneralJournalEntry )
distinct (GROUP BY with MAX(DATE) [duplicate] )
/**************************/
SELECT GJE.SubLedgerVoucherDataAreaID, MAX(GJE.AccountingDate) as MaxDate
FROM GENERALJOURNALENTRY GJE
GROUP BY GJE.SubLedgerVoucherDataAreaID
Thanks,
Hi,
static void HandlingContainerJob(Args _args)
{
container contain;
int i;
str containstr;
;
contain = ["DataAt1stPosition","DataAt2ndPosition"]; //Data will be inserted at position 1 and 2
contain = Conins(contain,3,"DataAt3rdtPosition","DataAt4thPosition"); // from 3rd position onward
contain = conins(contain,5,"DataAt5thPosition"); // now the data inserted in 5th position
//or use this technique
info (strFmt("Length of the container: %1", conLen(contain)));
for (i=1; i <= conLen(contain); i++)
{
info (strFmt("container value %1 is %2", i, conPeek(contain, i)));
}
}
Hi,
This is the continuity of the previous article where we are now getting the size of recordsortedlist .
Hi,
Regards,
Hi,
/// <summary>
/// Provides the look-up interaction for the individual dimension value lookup controls.
/// </summary>
/// <param name="_dimensionValueControl">
/// The <c>FormStringControl</c> enumeration value that triggers this event.
/// </param>
/// <param name="_localizedName">
/// The localized dimension attribute name
/// </param>
/// <param name="_promptErrorMessage">
/// Whether prompt the error message if the dimension type is empty.
/// </param>
public static void dimensionValueLookup(
FormStringControl _dimensionValueControl,
Name _localizedName,
boolean _promptErrorMessage = false)
{
Query query = new Query();
SysTableLookup sysTableLookup;
QueryBuildDataSource qbds;
DimensionAttribute dimensionAttribute;
RecId dimensionAttributeId;
DataAreaId dataAreaId = curext();
if (_localizedName)
{
dimensionAttribute = DimensionAttribute::findByLocalizedName(_localizedName, false, currentUserLanguage());
dimensionAttributeId = dimensionAttribute.RecId;
}
if (dimensionAttributeId)
{
sysTableLookup = SysTableLookup::newParameters(DimensionCache::instance().dimensionAttributeBackingTable(dimensionAttributeId), _dimensionValueControl);
sysTableLookup.addLookupfield(dimensionAttribute.ValueAttribute);
LedgerDimensionTranslationLookupHelper::addLookupTranslation(sysTableLookup, dimensionAttributeId);
sysTableLookup.addSelectionField(dimensionAttribute.NameAttribute);
changeCompany(dataAreaId)
{
qbds = query.addDataSource(DimensionCache::instance().dimensionAttributeBackingTable(dimensionAttributeId));
qbds.addOrderByField(DimensionCache::instance().dimensionAttributeValueField(dimensionAttributeId));
DimensionAttribute::restrictQueryToCategorizedValues(qbds, dimensionAttributeId);
}
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
else if (_promptErrorMessage)
{
//Please choose a value for "Dimension type" first!
checkFailed("@GLS100015");
}
}
Regards
Hi,
SELECT ENUMVALUETABLE.ENUMID, ENUMVALUETABLE.ENUMVALUE, ENUMVALUETABLE.NAME
FROM ENUMVALUETABLE
INNER JOIN ENUMIDTABLE ON ENUMIDTABLE.ID = ENUMVALUETABLE.ENUMID
where ENUMIDTABLE.NAME = 'ProjOrigin'
Regards,
Hi,
dateMthFwd( _projTable.StartDate, 12*9) ;
Thanks,
Hi, update companyimage set companyimage.Image = companyimageA.Image from ( select Image from companyimage where dataAreaid = 'USF...