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

String Size in AX ..??

$
0
0

I am looking to increase the size of purchline.Name(string of size 1000 EDT-ItemFreeTxt). I tried to change the EDT character to Memo where I ran into DB Sync error on other dependencies(ProjTransView and so on...) 
My requirement is to allow it to atleast 5000 characters. What is the maximum size that's allowed on a string in AX ..? What will be the consequences of changing the size of base EDT of type String..?


Some developers suggested to add a new custom field of type memo and hide the standard one. This will be a major customization because the process would start from a requisition and should be changed in many tables, reports and views which is a long process.

Please suggest.


AIF webservice 401 unauthorized using SOAP w/ NTLM

$
0
0

I've spent days searching for a solution to get a simple HTTP webservice, salesorder.read, working off of a JAVA client with no avail. We're trying to achieve communication first via NTLM as this was suggested in many forums, but I'm open to other suggestions. My testing criteria is to get it working on VS first, then SOAP UI and finally java. I've been successful at testing with VS, however I haven't had any luck with SOAP UI.

Configuration:

-AX 2012 R3

- Changed HTTP configuration binding from Windows to NTLM (as suggested in many posts)

- IIS

- Authentication set to Windows and Basic Authentication

- Windows authentication providers; NTLM set as primary

- SOAP UI

- Basic configuration w/ Authentication set to NTLM

- Verified lmcompatibilitylevel set to 1 on server

The response has ever been "An error occurred." or "401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied."

  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Stale connection check
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Attempt 1 to execute request
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Sending request: POST /MicrosoftDynamicsAXAif60/WebSalesOrderRead/xppservice.svc HTTP/1.1
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Connection can be kept alive indefinitely
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Target requested authentication
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Authorization challenge processed
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Authentication scope: NTLM @<website>:80
  • Tue Dec 20 11:06:41 EST 2016:INFO:<website>:80 requires Windows authentication
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Found credentials
  • Tue Dec 20 11:06:41 EST 2016:DEBUG:Attempt 2 to execute request 

Event viewer on the server shows a similar error, "Object Server 01:  An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.Security.SecurityException: The user name or password is incorrect."

My first question would be what should be the correct user/pass, is it in terms of IIS or AX? We've tried multiple of combinations of course, but perplexed at this issue and led to believe it's something more. 

Please, any insight would be appreciated.

Custom Display in a query

$
0
0

Hi,

Anyone know how to modify a display of a query? 

thanks!

How to disable Import Ribbon Button in Development Work space for specific users

Developing on the same VM with TFS

$
0
0

Hi!

I have problem with developing on one server by several developers...

Each of them logs on server by his own credentials...

The problem is because MS Dynamics AX have shared settings... And TFS is configured to the specific account...

Is there any solution to cooperate by several developers on one server with TFS(also every account have own specific TFS account)...

Thanks

Regards

HD

Dynamic button control click event

$
0
0

Hi,

I am adding button on a form thru code in AX 2009.

How can I write Click event for that button? In AX 2012, we have RegisterOverride method that is missing from AX 2009.

Thanks,

Khan

Store Configuration Values on the Server Side

$
0
0

What is the best way to store any configuration values in X++ ? I need to store few URLs and some credentials to access external APIs.

Thanks in advance. 

Regards,

Himal

Table relation

$
0
0

A good example of what i'm trying to do is the Journal lines/price discount agreement form under sales and marketing module. Under the overview tab, there is account code and account selection. I'm trying it to set it so that new will link account selection my new form/table drop-down. I apologize for this lengthy description. Please let me know if more clarification is needed.

I've a table with AccountRelation field(extends to PriceDiscAccountCode) and AccountRelation field(extends to PriceDiscAccountRelation). If the Accountcode selection is "table" then it will show customer name and account drop-down in account selection field. However, if the Accoundcode selection is a "group" then I need account selection to show a new drop-down(custom table). I've tried creating a table relation of type normal to new field from the new table... but this doesn't pull in the cust/vent table relation. Any tips on how I can get this to work without writing systablelookup code? I'm trying to use table relation to create drop-down.  


Exporting Data from Dynamics AX 365

$
0
0

Create a project in visual studio and set below properties

Model: name of the model,

Company: company name,

Synchronize DB on build: True.

                  

Right click on project Add new item.

 

Click on data models select data entity(Add)

 

In the wizard give primary data source, entity data source as reference, click on next then finish.

 

Once build the project.

 

Open dynamics 365 client.

 

Select data management then go to Export.

 

Give the job details along with entity name and format then run the job, click on more to download file.

Multiple developers on the same machine

$
0
0

Hi,

I am new to AX7. But have a couple of questions:

1. It seems the changes we made in VS are saved to files. If there are multiple developers log onto the same development servers, how to control the versions?

2. Is it possible to install multiple AOS service (web application) on the same server? If yes, how to configure VS to point to different AOS services?

Thanks,

Design a multiple page SSRS report

$
0
0

Hi,

We have a requirement wherein we need to design a report which comprises of 2 pages. 
The first page displays data from the temporary table, but the second page comprises mainly the static text along with a few fields from the first page.

So, I would request if anyone could help me with the design aspect of this report.

As we can add only a single header or footer to a report, so I need to know if there is any way to get this done. Can we use multiple designs to get this done?

Do PostingLoad PostedLoad table delegates work for you?

$
0
0

Code in AX7:

class TestPostLoad
{

    [DataEventHandler(tableStr(VendPackingSlipTrans), DataEventType::PostingLoad)]
    public static void VendPackingSlipTrans_onPostingLoad(Common _sender, DataEventArgs _eventArgs)
    {
        info("Test PostingLoad");
    }

    [DataEventHandler(tableStr(VendPackingSlipTrans), DataEventType::PostedLoad)]
    public static void VendPackingSlipTrans_onPostedLoad(Common _sender, DataEventArgs _eventArgs)
    {
        info("Test PostedLoad");
    }

    public static void main(Args _args)
    {
        int                     i;
        str                     output;
        VendPackingSlipTrans    vendPackingSlipTrans;
        while select vendPackingSlipTrans
        {
            i++;
            output += (strFmt("%1. %2 ",i,vendPackingSlipTrans.RecId));
            if (i > 5)
            {
                break;
            }

        }
        info(output);

    }

}

AX 2012 override VendPackingSlipTrans postLoad:

public void postLoad()
{
    super();

    info("Test post load");
}
And run job from TestPostLoad.main example:

Image from Dynamics 365 output: https://i.imgur.com/1qZoPFw.png

Image from Dynamics AX 2012 output: https://i.imgur.com/sSIfBLt.png 

P.S. forgot to mention version of Dynamics 365

Installed product version : Microsoft Dynamics 365 for Operations (1611)

Installed platform version : Update3 (7.0.4307.16141)

Retirement of Certification Exam MB6-704

Looping all fields for disable some Fields of Form DS

$
0
0

Dear All,

I would try to disable editing to all fields except one Fields  "ProjCategoryId" in InventTrans Table

DictTable           dictTable;
DictField           dictField;
int                 fldCnt;
QueryBuildFieldList qBFL;
;
qBFL = InventTrans_DS.query().dataSourceTable(tablenum(InventTrans)).fields();
for (fldCnt = 1; fldCnt <= qBFL.fieldCount() ; fldCnt++)
{
    dictField = new DictField(tablenum(InventTrans), qBFL.field(fldCnt));

    if(InventTrans_DS.object(qBFL.field(fldCnt))) //exception recVersion for example
    {
        InventTrans_DS.object(qBFL.field(fldCnt)).allowEdit(false);
    }
}
InventTrans_DS.object(fieldnum(InventTrans, ProjCategoryId).allowEdit(true);


Its working fine and take time to looping all fields.

is there any other simple way to achieve this operation in Ax 2012 R3?


 

How to implement Generate methods in Dynamics AX 365 for Data import & export

$
0
0

I am able to implement data entities for data migration in visual studio and it's not generating classes to write Generate methods. How to approach generate methods which resides in DMFClasses?


Apply new license file on production environment

$
0
0

I have a production environment running Dynamics AX 2012 R3, I want to apply a new license file to add some languages. I have a couple of questions

- what is the best way to take a full backup of the system before applying the change, is it enough to take backup of the SQL databases  (business and model store).

- Do the customizations we have made on user layer got affected

- Does the data stored in some tables that will be synchronized affected

Thanks

LCS apply a methodology to a project

$
0
0

LCS apply a methodology to a project

 

I’m trying to learn Lifecycle services. I see demos where a methodology is applied to a project; however, I have no ability to select a methodology for my per-sales and learn type projects.

I’ve found where I can define a methodology, but it does me no good since I can apply it to a project.

 

Any ideas on what I may be missing? I can only assume that pre-sales and learn projects do not support a methodology.

 

John

Not able to find delegate in lower model

$
0
0

Hi Experts,

I have created my own package and model in AX 7 , lets call it "TEST".

In application suite for one method in a class I had some customization which I am trying to handle with delegate. I have specified a delegate in Application Suite and Handler in my TEST model. But on Handler it is showing error that not able to find delegate.

Please look at the SnapShot for details.

Buffer issue in custom service call

$
0
0

I am getting error "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."

Steps to reproduce

1. We created an application in .Net which contains Web reference to Sales Force system and Axapta net Tcp reference to connect to Axapta. The whole purpose of this kind of setup is to pull customers from Sales force and Sync into Axapta.

2. When we run this application in .Net we are able to sync customers successfully.

3. We created reference in Axapta and called this application for sync, we started getting error "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." This was working fine earlier but seems the number of customers have increased over a period of time.

4. We have increased the buffer size parameters in app.config file in .Net. We also increased the buffer size values in inbound ports (By stopping service and clicking on configure button). But no help.

Can anyone please suggest what to be done.

Service reference in AX7

$
0
0

Hi,

In AX 2012, we implement some business logic in .NET DLL and add it as a service reference in AOT. Is it possible to do the same thing in AX 7?

Thanks,

Viewing all 17532 articles
Browse latest View live


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