public container getVoucherInfo(Voucher _VoucherId)
{
CustTrans _CustTrans;
LedgerJournalTrans _LedgerJournalTrans, _LedgerJournalTrans2;
TaxTrans _taxtrans;
TaxTable _taxtable;
TaxData _TaxData;
ProjInvoiceJour _ProjInvoiceJour;
CustTable _CustTable;
CustAccount...
Featured Post 1 with Small Thumbnail
Featured Post 2 with Small Thumbnail
Featured Post 3 with Small Thumbnail
Featured Post 4 with Small Thumbnail

Dynamics 365
Dynamics 365...More

Dynamics AX 2012
Dynamics 2012...More

Title Featured Post 3
Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros...More

Title Featured Post 4
Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam...More
Monday, March 27, 2017
allowCreate in x++
void AllowCreate(boolean _Status, boolean _StatusLine = _Status)
{
;
PurchReqTable_ds.allowCreate(_Status);
PurchReqLine_ds.allowCreate(_StatusLine);
PurchReqLine_ds.allowEdit(_StatusLine);...
Dialog button noyes x++
boolean ret;
ret = super();
if(substr(BIT_KodePajak.valueStr(), 3, 1) == "1")
{
if(box::yesNo("Apakah anda yakin membuat Faktur Pajak Pengganti ?", dialogButton::No, "Confirmation") == dialogButton::Yes)
{
return ret;
}
else
{
BIT_KodePajak.text("010");
}
}
return...
validateWrite x++
public boolean validateWrite()
{
boolean ret;
boolean check = true;
boolean IsExtraChargeModified;
boolean isAllowDelete;
SalesLine SalesLineOriginal = SalesLine.orig();
;
//Add by Yaya, Agreeya, Oct 27, 2010
if...
cursorNotify in x++
public void cursorNotify(int _event)
{
super(_event);
IF (GG_FPJVoucher.FPJVoucherType == GG_FPJVoucherType::CashReceipt ||
GG_FPJVoucher.FPJVoucherType == GG_FPJVoucherType::BBCR)
{
VoucherReceipt.visible(True);
VoucherInv.visible(False);
}
Else
{
VoucherReceipt.visible(False);
VoucherInv.visible(True);
}
FP.enabled(False);
PPh22.enabled(False);
...
Fetch in x++
public boolean fetch()
{
boolean abcd = true;
Query _Query = new Query(this.query());
QueryRun _QueryRun;
;
_Query.dataSourceTable(tableNum(PurchReqTable)).addRange(fieldNum(PurchReqTable, PurchReqId)).value(_getrecordPurchReqTable.PurchReqId);
_QueryRun = new QueryRun(_Query);
while(_QueryRun.next())
{
...
ValidateDelete - Write - ModifiedField - Validate in x++
ValidateDelete - Write - ModifiedField - Validate in x++ :
Table methods using ValidateWrite() ValidateDelete() initValue() ModifiedField() - Microsoft Dynamics AX
Table methods using ValidateWrite() ValidateDelete() initValue() ModifiedField()
initValue()This method file while creating new record to initialize a value, here I am assigning user id to the userID field.
public void initValue()
{
super();
this.UserId = curuserid();
}
ValidateDelete()While deleting a record if we want to put any validation we can use this method. Here once I delete a record populating...
New line in x++
New line in x++ :
=StrFmt("%1\r\n", PurchLine.PurchId);
example :
void CreatePR()
{
Salesid Salesid;
// Get Invendim
Inventtable _Inventtable;
InventItemOrdersetupType setupType = InventItemOrderSetupType::Invent;
Inventdim _Inventdim;
QueryRun ...
Subscribe to:
Posts (Atom)
A financial dimension value is based on the record and has been used on a transaction. You cannot delete the record
SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account : and Delete the Bank Account FINISH