Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

WINAPI Deprecated methods

$
0
0

Hi, all,

Since WINAPI is deprecated, how to rewrite the methods in ax 7.

HWND hwnd;
;

WinAPI::findWindow(#XLMAIN,'');
WinAPI::bringWindowToTop(hwnd);
WinAPI::setForegroundWindow(hwnd);

and WinAPI::getLocaleInfo(#Locale_user_default, #locale_sDecimal);


VSTS Build - different branches on one agent

$
0
0

Hello everyone!

Is it possible to run build successfully for two different branches of one project on one build agent?

Thank you!

Get the datasource from caller MenuItemButton

$
0
0

Hi all

I have a form with 3 Action MenuItemButtons. In that form I have 3 different datasources. 

The menuItems call the same class.

I have set the datasource property for all 3 menuItems. 

In the class main menu I have this code:

pdp = args.caller().dataSource(0);


The problem is that it always take the same datasource no matter which button is clicked. 

In Update 15 (D365FO) , Application Suite, Foundation and Platform are there ?

$
0
0

Hi All,

Can you please let me know in Update 15 (D365FO) , Application Suite, Foundation and Platform are there?

Or Is there any changes?

Please give me more shed on this.

Thanks!

Layers in D365

$
0
0

I have never worked in AX2012 - I started with D365. The company I work at still does a lot of work in AX2012, so I hear a lot of layers and overlaying and whatever.

At the moment I simply ignore layers - I just think in terms of packages and models. But layers are still there - the model I work on is in the ISV and most of the baseline elements I use are in SYS.

  • What relevance does the layer an element resides in have?
  • What relevance does the layer a model resides in have?
  • Are layers something I should look into for development in D365 or is it of negligible importance?

Thanks for reading

Value was either too large or too small for an Int32, AIF.

$
0
0

Hi, i made a node.js application which communicates with AX through AIF(http service hosted on iis). The application is clocking in and out workers, and also starts and stops jobs. I am using the buildt-in jmgshopfloorservice for this. 

My problem is, when i try to send a 'clock-out' request to the server, i get in response 'Value was either too large or too small for an Int32', and this message isn't telling me much about the problem. Is it the request that is too large/small or is it the response? 

This is the XMLbody i am sending: 

<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope">
	<s:Header>
		<h:CallContext xmlns:h="schemas.microsoft.com/.../datacontracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
			<h:Company>INT</h:Company>
			<h:Language i:nil="true"/>
			<h:LogonAsUser i:nil="true"/>
			<h:MessageId i:nil="true"/>
			<h:PartitionKey i:nil="true"/>
			<h:PropertyBag i:nil="true" xmlns:a="schemas.microsoft.com/.../Arrays"/>
		</h:CallContext>
	</s:Header>
	<s:Body>
		<ShopFloorServiceClockOutRequest xmlns="schemas.microsoft.com/.../routing">
			<_clockOutData xmlns:a="schemas.datacontract.org/.../Dynamics.Ax.Application" xmlns:i="www.w3.org/.../XMLSchema-instance">
				<a:AbsenceCodeId i:nil="true"/>
				<a:ClientDateTime>0001-01-01T00:00:00</a:ClientDateTime>
				<a:Login>000005</a:Login>
			</_clockOutData>
		</ShopFloorServiceClockOutRequest>
	</s:Body>
</s:Envelope>

The request-headers looks like this: 

'Content-Type': 'text/xml; charset=utf-8', 
'Authorization': 'Basic ' + new Buffer('domain\\user:pass').toString('base64'), 
'SOAPAction': 'schemas.microsoft.com/.../clockOut'


In AIF history in AX i can see that jmgShopFloorService.clockout got called, and the AIF exception log shows nothing. 
I do not know if this error comes from AX or IIS. I would appreciated some help on this.

EDIT: I did some more testing and found out that this error appears when i have started a job and then tries to clock out, so it is an AX error as of my understanding. Either way this error still does not make any sense.

Game Development in AX 365 for finance and operations

$
0
0

Good Morning,

Can any one help me in developing games.

Any resource how can we develop games in ax  current version.

Please show some light i donot found any resource.

Any book is there for game development.

Please show some light.

Regards.

Have a great day.

How to consume C# data contract class list in Ax 2012

$
0
0

Hello,

I had to make integration between 2 different Ax environment. I wrote an AIF service for one environment to read data and I wrote a C# class, I am getting data from AIF to C# by using data contract class and I am returning as data contract class list. When I added C# project to second Ax environment in Visual Studio C# Projects I can not consume the data which returning from C# project as data contract class list in x++. How can i consume C# list in X++?

I need to get data from this C# method in x++;

public List<ShipmentTableContract> getShipmentTable(string companyId)
{

    CallContext axCallContext = new CallContext();
    ShipmentIntegServiceClient axService = this.logonToService();
    axCallContext.Company = companyId;


    List<ShipmentTableContract> shipmentList = new List<ShipmentTableContract>();
    shipmentList = axService.getShipmentTable(axCallContext);

    return shipmentList;

}


Can anyone help?


Exception occurred on the metadata service on client or server - error

$
0
0

Hi experts,

Please help me in solving this error I get while selecting a Query for a  SSRS report's dataset.

I have Microsoft Dynamics 365 for Operations in my VM. 

  1. In Visual Studio 2015, I have created a new project and trying to customize an existing report.
  2. I open the report. Go to the dataset and select "Query" as the "Data Source Type" in the properties window. Go to the Query property and click "..." to open the dialog. 
  3. Select any Query and click next, I get the error "Exception occurred on the metadata service on client or server".

Thanks,

Syed

Multiple SSRS report print issue in D365

$
0
0

I have code where i am calling same SSRS report twice to print (PDF/file) with different parameter, but it only prints last one and skip printing first.

I thought this is standard bug so tried doing same thing with 'SalesInvoice' report and it worked fine for it.

Any help would be appreciated. 

Multiple SSRS report print issue in D365

$
0
0

I have code where i am calling same SSRS report twice to print (PDF/file) with different parameter, but it only prints last one and skip printing first.

I thought this is standard bug so tried doing same thing with 'SalesInvoice' report and it worked fine for it.

Any help would be appreciated. 

Override Query of Form Data Source

$
0
0

Hi all,

How can I override the query of the form data source?

I need to remove the firstFast in the Select statement. I've checked the query in AOT and its firstFast property is set to no yet when I debugged it, its statement has firstFast in it. This is the SQL statement I get 

SELECT FIRSTFAST * FROM CustTransOpen(CustTransOpen) ..... and SO ON

Best regards

Filter in grid does not work

$
0
0

Hello!

I created new simple form: two datasources with inner join relation and one grid. The problem is that the standard filter does not work when I click on column header or press Ctrl+G. nothing happens, the filter form does not appear, only performance time is changing. 

It is table fields, not display fields, sure.

Does anyone have an idea about this?

Thanks in advance, Alexey

Implement an Interface in a standard form via extension

$
0
0

Hello together,

in order to make a standard list page capable of reacting on custom tile filters, I need to implement two interfaces in a standard form (e.g. "SalesQuotationListPage"):

SysIFilterConsumerForm, SysIFilterEventHandler

How could I achieve this?

In the extension class it is possible to add the required methods but an interface is not allowed to be implemented:

[ExtensionOf(formStr(SalesQuotationListPage))]
final class SalesQuotationListPage_Extension
{
    public void registerDatasourceOnQueryingEvent()
    {
        SalesQuotationTable_ds.OnQueryExecuting += eventhandler(this.parmFilterFormQueryEventHandler().applyFilter);
    }

    public void onFilterChanged()
    {
        SalesQuotationTable_ds.executeQuery();
    }

}

The customization is based on the following very helpful blog:

http://www.enavate.com/the365blog/microsoft-dynamics-365-filtering

Thanks in advance for any ideas.

Sebastian

SysIFilterConsumerForm, SysIFilterEventHandler

Performance SDK :Could not load file or assembly 'aoskernel.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).

$
0
0

Hi i am getting below error when running load-testing. 

Initialization method MS.Dynamics.Performance.Application.TaskRecorder.AcxInventoryAdjustmentBase.TestSetup threw exception. System.BadImageFormatException: System.BadImageFormatException: Could not load file or assembly 'aoskernel.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).


How we can post data to data entities OData endpoint in AX 7?

$
0
0

I have created 'TMSRoute' table data entities and  exposed it by setup public property is 'YES'.

Now I am able to get data in browser using OData endpoint.  But I not aware of how I can make POST request with Odata EndPoint or testing it with Client Rest API Third Party Tools.

I have referred this link for understanding OData endpoint in AX 7 : https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/odata

Please help me out to understanding OData endpoint & correct me if anything I misunderstood. 

Please let me know if any example document is available for OData endpoint for POST or Put, Patch Request.

Thanks in advance.

Show less fields in a lookup form

$
0
0

Hi,

I have created a display method in the job for the purchase table and i want only purchid to be shown in the dialog box.

But i am getting all the values from the purchtalbe.

Please advice

Regards,

Bharath K

Data Entities not showing records

$
0
0

In the Dev environment and created several data entities with success.  I have them published to our BYOD.  Now I have created a data entity for the SalesLine table but this time it does not show any records.  Using PowerBI it shows the table is empty, when I publish it to the BYOD it shows no records, but when I open the SalesLine table there are records.  Cannot determine what is causing this. 

data entity for inventtrans

$
0
0

I require to run a report for all inventory activity and I focusing on inventtrans file is the table I need to focus on.  I cannot create a data entity for this since there is no natural key.  How can I have this table viewable in OData and be able to publish it to our Azure database.

PO

$
0
0

s are going into approved state but not going into Confirmed state so e-mail with PO is not going back to originator any idea what I need to change here or look into I am stuck

Viewing all 17532 articles
Browse latest View live


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