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

use of as keyword

$
0
0

Dear All,

i read in blogs but not understand the purpose of use "as" keyword.

In standard code in SSRS reports i saw keyword "as".

Can you please let me know when and why we use "As" keyword.

What is does practically?

Please give me more shed on this.

Thanks!

Arpan


Report print preview not showing the correct text characters

$
0
0

Dear All,

May I please know if anyone of you encounter issue in AX 2012 R2 CU7 SSRS Preview Screen showing "square" instead of showing Thailand character something like this "กรมศุลกากร".

See my sample AX 2012 R2 CU7 SSRS Report (Input Tax) below:

Please share something :)

Best Regards,

Ariston

AX7 User relations

$
0
0

Can't find the set up for User relations in AX7. As you know this is necessary because Purchase Requisitions, Project Time sheets and a few other features will not work unless you have the AX-user id linked to the HR- worker id.

Extension of AX class constructor

$
0
0

Hello guys,

I would appreciate if someone can suggest a way of migrating to AX7 a code from AX2012 which overlayered class constructor. I mean new() method. In the constructor an initialization of existing class variable was changed. The class has public accessor method for the variable.

It appears that I can not implement Post event handler for the New() method as an error is raised: 'cannot be subscribed to by a Pre- or Post-method event handler. The target cannot be a constructor'.

Also I can not implement it in the constructor of the extension class as per the documentation there is no guarantee that extension constructor would be called if no extension method is used:  "It's guaranteed that the constructor that is provided in an extension class will be called one time before any instance method or the instance state on the extension class is accessed. However, if no such references are made, the constructor isn't called"

It seems to me that not supporting events for class constructor limits usage of extensions which suggested by Microsoft as main upgrade mechanism.

kind regards,

Ivan

Filter grid record

$
0
0

i have 2 tables header and line.

filter line grid 'InventTable' record by if any header exist without executequery relation(exists or NotExist).

so i used below code.

container con having header values like 'ItemId'

for(i = 1; i <= conLen(con); i++)
{
info(strFmt("ItemId inside execqry: %1", conPeek(con, i)));

qbr = qbds.addRange(fieldNum(InventTable, ItemId));
qbr.value(SysQuery::valueNot(conPeek(con, i)));
}

above code havn't any error but didnt get expected result.

these filtered only last record.

Anybody help.....

Thanks in advance. 

Creating Sales order using Business Connector C# (C Sharp)

$
0
0

As the title says, I have to create the Sales order using Business connector and C#. I am able to connect AX using business connector but unable to find any help that how can I create a sales order.  I don't know which of the tables will be used and what are the fields which should be taken care of. I am using MS Dynamics AX 2012.

If any body can help?

Thanks in advance,

Runtime metadata is invalid because the same metadata artifact has been defined in multiple assemblies

$
0
0

Hi all

We created several project in a model under ApplicationSuite.

Now some people decided to use a new Model not und ApplicationSuite to do our Development. For this we moved our existing implementations to the new model.

In the AOT our objects are shown as part of the new model now (only the new model), in the sourceControl Explorer on the Metadata or the old Model our objects are gone but when we compile our stuff we always get the error

Runtime metadata is invalid because the same metadata artifact has been defined in multiple assemblies

The multiple model are the new one and the old one

How can we fix this problem?

SMS Alert configuration

$
0
0

I have been assigned a task to configure SMS based alert system in our organization. Well, i've no idea where to start from. Can any body please help me out with this. I have searched www for this purpose but got no favorable information regarding this task.

Awaiting.


Unable to read the file name in SFTP server

$
0
0

Hi All,

I need to read all the files from a folder that is available in SFTP server. I am using  Renci.SshNet.dll file.

I can able to get the number of files (total count) available in that location by using below code but unable to retrieve the name of the each file present in that location.  

SftpClient                      sftpClient;  

SftpFile                         file;    

str                                 host                = "example.com";

str                                 username       = "example";

str                                 password        = "******";       

 str remoteDirectory     = @"path\files";

sftpClient                      = new SftpClient(host, 22, username, password);

sftpClient.Connect();

 

sftpClient.ChangeDirectory('..');

str name1 = sftpClient.WorkingDirectory;

sftpClient.ChangeDirectory(remoteDirectory);

str name = sftpClient.WorkingDirectory;

 

var files = sftpClient.ListDirectory(name,null);

Please suggest on how to read the file name. 

 Thanks in advance.

Can't use BusinessConnector in ASP.Net app

$
0
0

Hello, I have an ASP.Net web app. I use there self written library that references Microsoft.Dynamics.BusinessConnectorNet.dll version x64. When I try to start my app I always get this error page with an exception: 

Server Error in '/' Application.


Не удалось загрузить файл или сборку "Microsoft.Dynamics.BusinessConnectorNet" либо одну из их зависимостей. Была сделана попытка загрузить программу, имеющую неверный формат.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.BadImageFormatException: Не удалось загрузить файл или сборку "Microsoft.Dynamics.BusinessConnectorNet" либо одну из их зависимостей. Была сделана попытка загрузить программу, имеющую неверный формат.

 

It's mostly in russian, but basically it says that file or assemly can't be loaded and there was attempt to load program of wrong format.

It happens only in web app, in console app, for example, BC works just fine.

I've tried switching references differently, I created new project for that, but it's always the same...

How can I fix this? I can show you config files and cone if needed.

Issue with grouping the queries in sys operation framework

$
0
0

Hi,

I am facing issue with grouping multiple queries in the UI interface using sys operation framework. I have tried to add the query in dialogformgroup to a particular group in UI builder class, but the queries are not moving to the appropriate group. Is there any suggestion to group the query.

Thanks!

Can Not Edit Records In Invent Table error

$
0
0

Hello everyone,

I have added five customized fields on Released product form. Product is being created through integration. When I am trying to modify any of the custom field it is giving me below error.

Does any one have face similar issue? Is this any kind of bug in product itself?

Regards,

Smit

Lookup in Ax7

$
0
0

Hi Friends,

How to give lookup for customised field using extension form in D365 Ax7.

High bandwidth generated by developement VM

$
0
0

My network admin asked me why our developement vm (D365 Update 3) is pulling so much data from the Internet.  We have 5 developement VMs that pulled 232GB in the last 7 days from table.(random letters).store.core.windows.net.  I have no idea what is doing that.  Anyone know why a Dev VM needs to contact *.store.core.windows.net?  Beside the authentication, I thought Dev VM were autonomous.

Fow now this address has been block for my VM to figure what stops working because of that.

Microsoft Dynamics 365 AX (ERP) for a small business (Restaurant). Can it be possible?

$
0
0

Dear Dynamics community,

i'm just a regular restaurant owner on Brazil, and i'm searching for a solution to make my life as administrator of my business more easy, and save more threes (lol)!..

What i'm facing is: I can afford the software, but i cant afford the implementation (third-party services).

Can someone give me a light? 

Can a small business owner, with a lot of willpower, but without too much Money to spend (we are facing the biggest economical crysis on our country, but offcourse i can spend some Money on it) have a decente solution for his businesss ? :P

The biggest challenge for a restaurant its the POS, the dynamic of the business are diferente cause we have to sell and produce at same time, on my country we have a lot of softwares but it lacks on the management in general, no banking account integration etc), and we face the brazilian laws (you cant develop a software by yourself because it needs homologation and for it you have to be into some business).

I'm really confused, why people are using (on my country at least) high-end technology for personal use (like cellphones and stuff), and not thinking on it to use on business on a effective way ? even software companys aren't thinking too much for small business ;

We need technology too!

am i thinking too big?

(my degre are on business administration, i have some knowledge on computers in general. I started to search for a solution on 2010, when i was on high school, them my dad died from câncer on 2013 and i had to quit high school and take the front of the business. have researched open-erp on time, open bravo, some other solutions in general. )

Thank you guys, i'm sorry if here isnt the right place to discuss some more philosophic aspects of the erp use; but i guess that we need to think ahead!


Form Personalisation Ax7

$
0
0

Hi Friends,

              I need to know how to see table name and table field name in form personalization in Ax7 D365 ,

because i can see only form's field name in it.

thanks & regards,

padmapriya

How to Import data from a CSV file to a Table in Form

$
0
0

Hi All , 

I have a table called Empl_Temp .  

I have created a .CSV file and have inserted some data in it.

In my form I have added File Open Dialog then through this ll select the .CSV file and when the Update is Clicked I want the data in .CSV file to get Populated in the table Empl_Temp . 

Please Let me know How Could I do this.

Till Now I have Performed all the necessary actions required to select a .CSV through an File Open Dialog.

Regards , 

Nishath Salman N.

Data Replication from Dynamics AX to MONGO DB

$
0
0

we are attempting a solution to replicate data(transactional as well as reference) from microsoft dynamics AX to MongoDB

after reading a lot of blogs and doing brainstorming among my team, i have arrived at following three solutions

1. Creating Document Services over any transfer protocol

 poll through it and obtain the changes that have been done with regards to tables that document service is looking on

Fetch changed keys and subsequently obtain the row records based on changed keys

Pros:

since it is using AX document service, writing custom query or service with data source having multiple tables will make the process easier

Cons: 

each call to document service at an interval of 30 to 60 seconds for 40 services will burden the system and impact performance

2. Enable CreatedDateTime and ModifiedDateTime system columns on tables inside AOT, write custom stored procedures which will run at certain intervals and retrieve rows which have changed or newly created after last retrieval. 

Pros:

simpler approach and removes the dependency on dynamics ax

Cons:

we are unable to handle deleted records taking place in db with this approach

3. Turn on CDC on microsoft SQL Server residing behind Dynamics AX and monitor the change logs to replicate changes in mongo DB via message queues

Cons:

Enabling change tracking will slow down the performance of SQL Server and make it less responsive

is there any method through which we could get real time data push of table changes that a certain business flow has made?

could you suggest on best practices that are employed for replication using microsoft dynamics ax? also are there are any other approaches which we have not considered

free trial working MS DYNAMICS 365 ERROR

$
0
0

This page isn’t working

d365try-30.trial.operations.dynamics.com is currently unable to handle this request.

HTTP ERROR 500

Consuming web service.

$
0
0

Hi,

I am using AX 2012 CU 11.

There is a code written in Visual Studio project after adding service reference for the WSDL provided for integration. This was developed by our previous developer.

Below is the code which would call the method to get the response, by sending the request along with the authentication details :

Now the issue is in the following line of code

System.ServiceModel.Channels.MessageHeader myHeader = MessageHeader.CreateHeader("SecurityHeader", "", myElement);

MyEelement is where I am getting the below xml code.

<wsse:UsernameToken wsu:Id="UsernameToken-AE24E87D23552FED0314376394882951" xmlns:wsu="docs.oasis-open.org/.../oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="docs.oasis-open.org/.../oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username>abc</wsse:Username><wsse:Password Type="docs.oasis-open.org/.../oasis-200401-wss-username-token-profile-1.0">xyz</wsse:Password></wsse:UsernameToken>

but when messageheader is created it adds one more tag <SecurityHeader> to the above xml code.

Which is causing the error when the other system is receiving the request from AX along with the required parameters for the request.

Now I want to remove that <SecurityHeader> tag while sending the request. But I am unable to do so. I tried removing the below line of code

System.ServiceModel.Channels.MessageHeader myHeader = MessageHeader.CreateHeader("SecurityHeader", "", myElement);

but then the authentication is not getting passed alongwith the request which is resulting in authentication error.

I am not sure whether I have properly put forward my question here. Still would appreciate if anyone can help me with it.

Viewing all 17532 articles
Browse latest View live


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