Installing Reporting Services Extension in AX 2012 R3
How do I reference a .dll in an X++ class in D365?
I feel like I'm missing something obvious, but I took a .dll SDK and added it as a reference to my project and created an X++ class. I added "using" lines at the top of the class, but I'm getting "A reference to 'xxx' is required to compile this module."
Autocomplete is detecting the class and providing suggestions. What am I missing? See image below:
Refresh temp table in form
In AX7 i don't know why i can't refresh the tempDB in form.
we add one new method in a class as below:
[FormControlEventHandler(formControlStr(FormTesting, cbxType), FormControlEventType::Modified)] public static void cbxType_OnModified(FormControl sender, FormControlEventArgs e) { testTempTable tempTable; FormDataSource fds = sender.formRun().dataSource(formDataSourceStr(FormTesting, testTempTable)) as FormDataSource; ; tempTable.Id = "A"; tempTable.Name = "Test"; tempTable.insert(); fds.setRecord(tempTable); fds.executeQuery(); }
After the field data changed in form, no record show...
testTempTable was set to TempDB
in AX2012, we just use testTempTable.linkPhysicalTableInstance(tempTable) is ok -->code in form
but in AX7, the method can only write in a class, we can't use object "testTempTable"(Datasource name) any more...
Can anyone help me? Thanks a lot!!
Call Visual Studio C Sharp project in batch job
Hi,
I have created one Visual Studio C Sharp project to connect external database. I have referred this http://dev.goshoom.net/en/2015/03/connection-to-external-database/. It is working fine.
I could able to call the C# Project from AX Job. It is working fine. I am trying to call the same C# project in batch job. it is not working. I have deployed C# project in both client and server (Changed to Yes in the Deploy to client and deploy to server project properties). I have done the Incremental CIL.
I referred this link for batch job creation https://community.dynamics.com/ax/b/dynamicsaxinsightbyanas/archive/2015/04/14/ax-2012-create-a-simple-batch-job
Thanks,
Hari
API with Json
Hi. I'm a D365 developer.
I need to develop an interface through API with Json.
Please let me know if there is an example source of how to make Json sentences and Interface.
1) I have to send it in the format of the following to get data.
[data request json]
{
"API_ID" : "0411",
"API_KEY" : "5a0d6070-1853-4e37-a4b0-bbbbbbbbbb",
"ORG_CD" : "2148635102",
"REQ_DATA" : {
"BIZ_NO" : "2148635102",
"CARD_NO" : "",
"START_DATE" : "20161024",
"START_TIME" : "",
"END_DATE" : "20161030",
"END_TIME" : "",
"RCV_STS" : "",
"REQ_CNT" : "",
"NEXT_KEY" : ""
}
}
2) then, this json sting covert UTF-8.
%0d%0a+%7b+++%22API_ID%22++++%3a+++%220411%22%2c+%22API_KEY%22+++%3a+++%225a0d6070-1853-4e37-a4b0-fd11e5699296%22%2c+%22ORG_CD%22++%3a+++%222148635102%22%2c+%22REQ_DATA%22++%3a+%7b+++%22BIZ_NO%22++++++++%3a+++%222148635102%22%2c+++%22CARD_NO%22+++%09%3a+++%22%22%2c++++%22START_DATE%22++++%3a+++%2220161024%22%2c+++%22START_TIME%22++++%3a+++%22%22%2c+++++%22END_DATE%22++++++%3a+++%2220161030%22%2c++%22END_TIME%22+++%09%3a+++%22%22%2c+++%22RCV_STS%22+++%09%3a+++%22%22%2c+++++%22REQ_CNT%22+++%09%3a+++%22%22%2c++++++%22NEXT_KEY%22++++++%3a+++%22%22+++++++%7d+%7d++++++++++++++++++++++++++++++++%09++%0d%0a+++++%0d%0a++++++
3) add string to wep API URL.
webankdev.appplay.co.kr/gateway.doUTFCovertString
4) receive data as follows
{"RESULT_CD":"00000000","NEXT_KEY":null,"RES_COUNT":"1","RESULT_MG":"정상 처리 되었습니다.","RES_DATA":[{"CARD_NO":"5887490101135054","LST_USER_ID":"aireagle","CARD_TPBZ_CD":null,"USER_EMP_OFFICE":"","PROC_CUST_HIST":[],"SEQ":"1000309139","COMM":"0.00","SUMMARY_5":null,"BIZ_NO":"2148635102","COLL_NO":null,"PROC_STS":"7","ATT_IMG_YN":"N","APPR_STS":null,"APV_CAN_YN":"A","END_DTM":null,"EVENT_DATETIME":null,"CARD_TPBZ_NM":"일반한식","RESERVE_01_NM":null,"ASSET_DEPT_ERP_CD":"","ORG_VAT":"0.00","USER_ID":"mispro","MEST_TEL_NO":"023623048","BIZ_UNIT_NM":null,"SUMMARY_3":null,"CARD_TYPE":"1","APPR_CONT":null,"MEST_TAXT_TYP_INFO":"","ASSET_DEPT_NM":"","DEDCT_YN":null,"MEST_BIZ_NO":"1210595304","ASSET_DIV_ERP_CD":"","APR_AMT":"0.00","VAT_AMT":"0.00","SUMMARY_2":null,"DEPT_NM":null,"LST_USER_DEPT_ERP_CD":null,"APR_VAT_AMT":"0","PURCH_DATE":null,"VAT_RFND_STS":null,"MEST_NO":"767714525","SPLIT_LIST":null,"CURR_CD":"KRW","REG_GB":"1","SPLY_AMT":"0.00","ITLM_MMS_CNT":null,"CD_PPP_APPR_REC":[],"CURR_AMT":"0","SETL_SCHE_DT":"","BANK_CD":"30000003","MEST_NM":"서대문집","TRAN_KIND_CD":"A1002","LST_USER_EMP_CD":null,"BIZ_UNIT_ERP_CD":null,"EVENT_DTM":null,"MEST_REPR_NM":"박숙자","DEPT_ERP_CD":null,"RESERVE_01_CODE":null,"PPP_APPR_VOUCH_YN":"N","APPR_SUBJ":null,"ERP_CODE":null,"SUMMARY_6":null,"APV_CAN_DT":null,"ACQU_EXCH":null,"CD_APPR_REC":[],"APV_NO":"77441702","SUMMARY":"부서 회식","ATT_IMG_CNT":"0","ERP_ASST_CD":null,"CARD_B_TYPE":null,"LST_MOD_DT":"20161104200608","MEST_ADDR_1":"서울특별시 서대문구 충정로2가","APR_SPLY_AMT":"0.00","DEPT_CD":null,"SRV_FEE":"0.00","TRAN_KIND_ERP_CO_CD":null,"MEST_ADDR_2":"2층(미근동)","SUMMARY_4":null,"PPP_APPR_SEQ_NO":null,"APV_TM":"","ORG_SPLY_AMT":"0.00","PROC_EMPL_HIST":[],"USER_NM":"김영신","ASSET_DIV_NM":"","APV_DT":"20161028","START_DTM":null,"USER_EMP_CD":null,"BUY_SUM":"36000.00","BUY_YN":null,"OVRS_USE_YN":"A","TRAN_KIND_NM":"회식비","RESERVE_01_ERP_CD":null,"MEST_ZIP_CD":null}]}
best regards,
dongwoon.
Modelstore Release
Good Morning I have a question I have been using Microsoft Dynamics AX 2012R3 for just a little over 1 year now we have been implementing it as part of a 3 phased project the 1st project has only affected the Manufacturing area and the 2nd part will be the majority of the other business areas for example Finance, Merchandising, CallCentre etc
the question I have is that we have released 4 model store releases since we went live in November 2017 and to apply a model store to Production we need to have all users out of the AX application to do this sometimes up to 4 hours and testing- now although very challenging to do this when your you work for a business that is a 24 operation we found the time
my concern is when the rest of the business comes online with AX2012 - do we really have to have everyone out to apply a model store as I am thinking this is going to cause us significant disruption while this takes place making it almost impossible to implement change
obviously I understand the risks with XPOs and understand why we wouldn't choose and XPO release over a Model store - I am just wondering if there's anyway to deploy change without taking everyone out the system for so long
Passing arguments to controller class from Form on button click
Hello all, in a requirement i have to run my report from form where it takes the selected record on form as parameter to process the report. The report dialog should be invisible. How can i achieve this ?
I have written DP class, contract class and controller class, created an action menu item and set it as menu item button form. But here i am not setting the data source. I need some code level implementation from where the report gets open on button click
Copy uploaded files
Hi,
does anybody has experience with copy of uploaded files? Or is there an example in D365?
I want to upload a file, do something with the file and copy it to a new file...
Thank's in advance
Lookup method for form data source field using Extension in D365.
Hi all,
I am trying to create lookup method for form data source field using form extension ,as we all know there is no event handler for lookup for data source field so how can i achieve the solution?
public void lookup(FormControl _formControl, str _filterStr)
{
if (table.AccountCode == TableGroupAll::Table)
{
super(_formControl, _filterStr);
}
else
{
ChainGroup::lookup(_formControl,fieldNum(ChainGroup,Field);
}
}
Thanks and Regards
Prabhakaran
Convert container to System.Byte[]
Hi there
I have pictures in the data base (such as company logo) and I need to pass it to an external application which need the content as a System.Byte array.
How can I achieve such a thing?
Regards
Query extended range failure: Right parenthesis expected near pos 0.
Hi All,
In the below query I am getting error "Query extended range failure: Right parenthesis expected near pos 0."
Could someone please advise me where I have to make the correction.
protected Query buildQueryToGetCostProjBudgetLine(ProjBudget _projBudget)
{
Query query = next buildQueryToGetCostProjBudgetLine(_projBudget);
QueryBuildDataSource qbds = query.datasourceTable(tableNum(ProjBudgetLine));
qbds.addDataSource(tableNum(ProjBudget)).addRange(fieldNum(ProjBudget, BudgetState)).value(
strfmt('(%1 != %2) || ((%1 == %2) && (%3 != %4))',
fieldStr(ProjBudget, BudgetState),
enum2int(ProjBudgetState::Amendment),
fieldStr(ProjBudgetLine, UncommittedRevisions),
SysQuery::value(0)));
return query;
}
Can you give me a list of Monitor items of LCS?
Hi all, I am an architect of Azure, and I am doing the operation design of Dynamics 365 for finance and operations.
I want to get the whole list of monitor items(telemetries, metrics, logs, and so on) that we(MS DSE and Implement Partner) can retrieve from D365FO.
Could you give me the list?
Best regards,
Linshan.xu
connect to SQL server of a D365 on DevBox
Hi all,
We have a performance issue with one of our data entity exports and we would like to use SSMS (SQL server management Studio) activity monitor to see what is going on when we export the data. How can we get the connection string of the Azure SQL server DB?
Thanks
What is best way for integration of D365 with EDI ?
Hi All,
I want experts opinion in a matter. We need to integrate D365 with third party (EDI).
Usually we will receive sales orders in XML form in bulk. May be 15000 records on daily bases. There are other things also like ASN and invoices etc. And we need detailed information if any error occurs, e.g. if a sales order couldn't create due to invalid item then it should return error to client application that 'item ABC doesn't exist in system'
We have a few option:
1. OData
2. Soup based custom services
3. Integration through DIXF.
These all approaches have their pros and cons. I want to identify which approach will suit us best. I have done some POCs on all three approaches, and what i concluded so far is this.
Odata | SOAP | DMF | |
Pros | No manual coding is required, deals with data entities. Just create entities and these entities will be exposed automatically. | Complex objects will be fetched in one call, no multiple calls are required. | Both data entities and composite data entities can be used. So, complete Sales orders can be created in a single call. |
Microsoft recommended | Gives XML, so no conversion is required from JSON to XML. | Better than SOAP and OData for bulk operations. | |
Cons | Very long connection for bulk operations | Very long connection for bulk operations | Asynchronous |
JSON to XML conversion is required as we must need XML and it gives JSON. | Complex data contract classes will be created. So, extensive coding is required. E.g. Sales order consists of more than 15 tables, so its complex object will be created. | Only few operations are available (Import/export/update). Ad hock queries can’t be handled. | |
Composite data entities can’t be used for OData so separate calls are required for single object. e.g. Multiple calls are required for single sales order creation from client side, first it creates header and then it will create lines. | Chances of bugs are there due to dealing with manual complex objects. | Detailed error logging is not available. Which is required by EDI |
After these all information we are more inclined towards DIXF. But there are some major issues in it. 1st we need detailed error logging at client side, but still i couldn't find any way to return detailed errors to client by using DIXF. I have posted 2 questions about it. That are still unresolved. So first of all I want some experts opinion on this, that what approach should I use for this. And after that there are some issue that i am facing.
Links for those issues are as follows.
1. Issue in creating sales order through DIXF in D365.
https://community.dynamics.com/ax/f/33/t/221981
2. Getting error details of import/export through DIXF
WinAPI methods replacement in D365
Hi All,
In AX 2012, I have the code which calls WinAPI method getSaveFileName. This method shows the Saveas dialog with the fileName suggested in the FileName field. Does anyone know if there is any replacement for this method in D365, as WinAPI has been deprecated. I already looked at the FileUpload.. classes in AOT, but couldn't find any method which does the same thing I am looking for. The requirement is to get the fileName from the user through SaveAs dialog and then write to that file.
Thanks,
Baber.
Know from where eventhandler is triggered
Similarly I will be inserting records to InventJournalTable from multiple places like classes, button clicked methods of forms etc..
[DataEventHandler(tableStr(InventJournalTable), DataEventType::Inserted)]
public static void InventJournalTable_onInserted(Common sender, DataEventArgs e)
{
}
Rocord popup as click on button
Dear Experts,
I have a form in the form a grid on the form one button, now, i want that when i select any record and press the button on the form that selected record should be popup.
Thanks and Regards,
Shabir Ahmad
Error : When mapping In VS TFS 2015
Set Field
I am new in coding and i need a help .
I have this code as below
AxLedgerJournalTable journalTable;
AxLedgerJournalTrans journalTrans;
container accCon;
container offSetCon;
LedgerJournalTable ledgerJournalTable;
ledgerJournalCheckPost ledgerJournalCheckPost;
journalTable = new AxLedgerJournalTable();
journalTrans = new AxLedgerJournalTrans();
//Journal Name
journalTable.parmJournalName('GenJrn');
journalTable.save();
journalTrans.parmJournalNum(journalTable.ledgerJournalTable().JournalNum);
journalTrans.parmTransDate(mkDate(04,05,2017));
journalTrans.parmAccountType(LedgerJournalACType::Ledger);
//LedgerDimension => Ledgeraccount, DAX 2009
accCon = ["500200", "500200",2,"Department","023","Costcenter","009"];
journalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(accCon));
journalTrans.parmAmountCurDebit(200);
//OffsetLedgerDimension => OffsetLedgerAccount, DAX 2009
journalTrans.parmOffsetAccountType(LedgerJournalACType::Ledger);
offSetCon = ["510370", "510370", 1, "Department", "022"];
journalTrans.clearField(fieldNum(LedgerJournalTrans, OffsetLedgerDimension), false);
journalTrans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId(offSetCon));
journalTrans.save();
//ledgerJournalCheckPost = ledgerJournalCheckPost::newLedgerJournalTable(journalTable.ledgerJournalTable(),NoYes::Yes);
//ledgerJournalCheckPost.run();
info(strFmt("Journal %1 created", journalTable.ledgerJournalTable().JournalNum));
I need to set the field values from the another table that has the values
So Plz help me out.
It is possible to use locally installed VS to doing D365 developement/customization
Hello Everyone,
It is possible to use locally installed Visual Studio to doing customization/developement on D365. If its possible then tell me how we can implemented on my local system . Basically i am use D365 VM (application version 8.0) and i have also LCS credential.