Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Reference Group Field Lookup values from Multiple tables

$
0
0

Hi ,

public Common lookupReference(FormReferenceControl _formReferenceControl)
{
Common ret;
Query query = new Query();
QueryBuildDataSource qbds, qbdssalestable;
SysReferenceTableLookup sysTableLookup;
;

sysTableLookup = SysReferenceTableLookup::newParameters(tableNum(CustInvoiceJour), _formReferenceControl);
qbds = query.addDataSource(tableNum(CustInvoiceJour));

qbdssalestable = qbds.addDataSource(tableNum(SalesTable));
qbdssalestable.relations(false);
qbdssalestable.addLink(fieldNum(CustInvoiceJour,SalesId),fieldNum(SalesTable,SalesId));
qbdssalestable.joinMode(JoinMode::OuterJoin);

sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour, Invoiceid));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour, InvoiceDate));
sysTableLookup.addLookupfield(fieldNum(SalesTable, SalesId));
sysTableLookup.parmQuery(query);

return sysTableLookup.performFormLookup();
}

getting unknown for the salestable custgroup field.

Not for custgroup the field to be added is our own customized field in salestable.

The custgroup is an example.

Please show some light on this.

Regards.

Have a great day.


Reference Group Field Lookup values from Multiple tables

$
0
0

Good Morning.

I have one field of type int 64 and having relation with cust invoice jour table.

i have added that to Form Design as reference group.

Now i need lookup from 2 tables.No filter required.

I have agged join in query and Added to Syslookupfield.addfield(2nd table field).

Then in lookup i am getting None.

How can i solve this.

Please show some ligt on this.

Regards.

Have a great day.

RE: How to find invoices that replaced by asterisk in customer payment journal

$
0
0

Hi, Tatiana

please help me again, i need to join tmpCustVendTrans with LedgerJournalTrans/DimensionAttributeValueCombination, so that i can make a report like this

i used the invoice number retrieved from tmpCustVendTrans as a header with grouping,

Here's My Query :

while select ljtr
    where ljtr.JournalNum == ledgerJournalId   //JournalNum Parameter
    {
        tmpCustVendTrans = this.tmpCustVendTrans(ljtr.JournalNum, ljtr.Voucher);

        while select dimensionAttributeValueCombination
            join    ledgerJournalTable
            join    ledgerJournalTrans
            where   ledgerJournalTrans.JournalNum               == ledgerJournalId
            &&      ledgerJournalTable.JournalNum               == ledgerJournalId
            &&
            (
                dimensionAttributeValueCombination.RecId   == ledgerJournalTrans.LedgerDimension ||
                dimensionAttributeValueCombination.RecId   == ledgerJournalTrans.OffsetLedgerDimension
            )
        {
            tmpBankReceiptVoucher.LedgerJournalId       = ledgerJournalTrans.JournalNum;
            tmpBankReceiptVoucher.LedgerJournalName     = ledgerJournalTable.Name;
            tmpBankReceiptVoucher.TransDate             = ledgerJournalTrans.TransDate;
            tmpBankReceiptVoucher.LedgerDimension       = dimensionAttributeValueCombination.RecId;

            while select tmpCustVendTrans
            {
                tmpBankReceiptVoucher.InvoiceId         = tmpCustVendTrans.Invoice;
            }

            tmpBankReceiptVoucher.insert();
        }
    }

the problem is, when i pull the data, i got redundant data. the offset is repeated every row.

thanks for helping me

How to find invoices that replaced by asterisk in customer payment journal

$
0
0

Hi everyone,

i need to create a custom report that print customer payment journal, i made the report using LedgerJournalTrans table as datasource with some relation added in order to retrieve the details. the problem is, when i mark multiple invoices from settlement, the invoice field is changed to an asterisk. how can i pull the invoices from one customer payment journal?

RE: Violation of PRIMARY KEY constraint ‘PK_ModelElementData_ElementHandle’ error installing GSTUpdate hotfixes on Microsoft Dynamics AX2012 R2

Violation of PRIMARY KEY constraint ‘PK_ModelElementData_ElementHandle’ error installing GSTUpdate hotfixes on Microsoft Dynamics AX2012 R2

$
0
0

Dear All,

Now im Facing the Error, At the time of Installing the GST Hotfix.

Anyone Please Guide me to solve this issues.

"Microsoft.Dynamics.Setup.AxSetupException: AxUtil call returned errors:Violation of PRIMARY KEY constraint ‘PK_ModelElementData_ElementHandle’. Cannot insert duplicate key in object ‘dbo.ModelElementData’. The duplicate key value is (832375, 1)."

I alredy read below mentioned blog, i can't download the Special hotfix, it's shows that page is not available.

https://blogs.msdn.microsoft.com/axsupport/2014/01/08/violation-of-primary-key-constraint-pk_modelelementdata_elementhandle-error-installing-some-hotfixes-on-microsoft-dynamics-ax-2012-r2/

Thanks in Advance.

Chandru

RE: in pr line error

$
0
0

yes...this is bedget error..can u plz tel me how to increase budget

in pr line error


RE: D365 Finance and Operations Security Roles and XDS

$
0
0

Hello Andre,

I have created the enum for filtering the projects based on specific types.

For eg, enum has values north, south, east, west. Each project will have a specific enum value.

Role1 should be able to see projects of north, Role2 should be able to see projects of south and so on.

This is my purpose of creating enum.

I added this field to the project table. This table has relation with all the primary tables of the forms PO, PA, RFQ etc so that these tables can be added as constraint tables in XDS.

But the above method is not working.

I even tried using the existing project type field of the project table in the security policy but even this method did not solve the issue.

Whatever method I try, only the projects form gets filtered. None of the other forms get filtered.

D365 Finance and Operations Security Roles and XDS

$
0
0

I have a requirement in D365 wherein I need to create different roles which can access only certain projects and its corresponding purchase orders, purchase agreements, request for quotations etc. To cater to this requirement, I have created an enum and created a security policy so that only specific projects are visible to that role based on the enum value provided in the filter of the query. Hence, the projects get filtered out for the particular role. But I'm unable to extend this functionality for PO, PA or RFQ forms. I tried giving relation of the projtable to the tables of the respective forms in the query but it did not help. I also tried using the constrained table present in security policy but it too gave an error. If anyone has even a small clue as to how it should be done or how should I proceed ahead in the direction of resolving this issue, then request you to share it. Even a small help will be appreciable.

RE: Apply Binary Hotfix on Local Vm in D365 Finance and Operations

Apply Binary Hotfix on Local Vm in D365 Finance and Operations

$
0
0

Hi everyone,

I want to apply Binary Hotfix in our Local VM.

How can we do it? Is there any command for this? I have KB downloaded from LCS.

RE: Hide the setup in General ledger

$
0
0

Hi Crispin,

I need to give no access to all setup menu items in General Ledger module. am i right Crispin?

Thanks,

Prabakaran R.

RE: Fixed Assets Depreciation Opening Balance Wrong Voucher

$
0
0

Hello Nada Gamal,

Are the two lines with the $1.00 amount posted really recorded in a separate voucher? I cannot identify this from the screenprint above because the voucher numbers are not fully visible.

If it is really a separate voucher then you should be able to simply reverse that transaction by making use of the reverse button available in the voucher transactions form.

Best regards,

Ludwig

Fixed Assets Depreciation Opening Balance Wrong Voucher

$
0
0

Hi,

I am facing an issue when I tried to post the depreciation opening balance journal of the assets, I found that the voucher is wrongly posted. as below;

1- Dr. Opening Balance Account (Bridging Account)  600 L.E

     Cr. Accumulated Depreciation                                       600 L.E

2- Dr. Accumulated Depreciation                                1 L.E

        Cr. Depreciation Expense                                                 1 L.E

I don't think that the second voucher was needed, so any help, please?


RE: Route and Bom report

How to make a query to retrieve invoice and use it in a report

$
0
0

Hi, Everyone

please help me, i need to join tmpCustVendTrans with LedgerJournalTrans/DimensionAttributeValueCombination, so that i can make a report like this

i retrieve the invoice number from tmpCustVendTrans, group it, and use it as a header.

and i put all data in one temporary table.

Here's My Query :

LedgerJournalTrans ljtr;
DimensionAttributeValueCombination dimensionAttributeValueCombination;
LedgerJournalId ledgerJournalId = '000001';
TmpBankReceiptVoucher tmpBankReceiptVoucher; // Temporary Table

while select ljtr where ljtr.JournalNum == ledgerJournalId //JournalNum Parameter { tmpCustVendTrans = this.tmpCustVendTrans(ljtr.JournalNum, ljtr.Voucher); while select dimensionAttributeValueCombination join ledgerJournalTable join ledgerJournalTrans where ledgerJournalTrans.JournalNum == ledgerJournalId && ledgerJournalTable.JournalNum == ledgerJournalId && ( dimensionAttributeValueCombination.RecId == ledgerJournalTrans.LedgerDimension || dimensionAttributeValueCombination.RecId == ledgerJournalTrans.OffsetLedgerDimension ) { tmpBankReceiptVoucher.LedgerJournalId = ledgerJournalTrans.JournalNum; tmpBankReceiptVoucher.LedgerJournalName = ledgerJournalTable.Name; tmpBankReceiptVoucher.TransDate = ledgerJournalTrans.TransDate; tmpBankReceiptVoucher.LedgerDimension = dimensionAttributeValueCombination.RecId; while select tmpCustVendTrans { tmpBankReceiptVoucher.InvoiceId = tmpCustVendTrans.Invoice; } tmpBankReceiptVoucher.insert(); } }

the problem is, when i pull the data, i got redundant data. the OffsetLedgerDimension is repeated every row.

thanks for helping me

RE: Error "Function InventCostTransCostList::newPlannedCostList has been used incorrectly" while posting the prodution order

$
0
0

Hi,

Some one help me to resolve the error while posting the production order journal in ax 2012.

Error "Function InventCostTransCostList::newPlannedCostList has been used incorrectly" while posting the prodution order

$
0
0

Hi,

I have a production order.If i try to post the production order getting error "Function InventCostTransCostList::newPlannedCostList has been used incorrectly".Someone suggest me the solution.

Please see the below screenshots for reference.

RE: Quality Order Generation

$
0
0

Thanks I try that but no result. this fix is for R3 not R2.

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>