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

SalesQuotationReport:: How to add parameters

$
0
0

Hi guys,

I am reviewing some reports in my AX. Some of them needs some parameters for custom purposes. For those I made from the scratch it is pretty easy. But SalesQuotationReport looks like different. I didn't find where or how to add parameters. I tried the standard procedure and it doesn't work. any ideas? 

thank you

Roger


How do I configure a developer VM (1611 Update 6)?

$
0
0

Can someone point me to the step-by-step instructions to configure a developer VM/ It's D365fO 1611 Update 6, if it matters.

So far I've tried twice and am obviously missing something as when I try to start debugging in VS2015 I get a popup sayinh:

Unable to proceed with debugging. One or more errors occurred. See
the exceptions details below for more information.
The remote server returned an error: (503) Server Unavailable.

The steps I've followed are:

1. Download the VHD.

2. Create Hyper-V virtual machine.

3. Start it and log in as local admin.

4. Change language and keyboard from US to UK, fix time zone and join to company AD domain.

5. Fix proxy settings (group policy upsets them).

6. Run admin provisioning tool for my developer account (domain user) - success.

7. Login as developer account.

8. Configure VS2015 to run as administrator.

9. Sign in on VS and connect to VSTS service.

10. Download current project (which runs in the Azure dev instance) and build.

11. Click Start> and get the above error!

I've checked that the Management Reporter, Batch Management and Web Publishing services are running.

What have I missed?

How to get data from Original document

$
0
0

Dear All,

Vendor > Transaction > Then select voucher > Then clicked on "Original Document"

It's showing :

Original document : Journal

Identification no : BP/...

Amount: 1008

Module : Ledger

In report i need to print Identification nothose voucher having Original document = Journal.

Code :

static void VendorPaymentDetails(Args _args)
{
SysExcelApplication xlsApplication;
SysExcelWorkBooks xlsWorkBookCollection;
SysExcelWorkBook xlsWorkBook;
SysExcelWorkSheets xlsWorkSheetCollection;
SysExcelWorkSheet xlsWorkSheet;
SysExcelRange xlsRange;
VendTrans vendTrans;
VendSettlement vendSettlement;
str contact;
int recordscount;
int row = 1;
str fileName;

Dialog dialog;
DialogField dialogFromDate;
DialogField dialogToDate;

Transdate fromDate;
Transdate toDate;
Voucher voucher;
VendAccount vendAccount;
name vendName;
transdate postingDate;
real amount;
Voucher offsetVoucher;
str id;

Query query;
QueryRun queryRun;

QueryBuildDatasource qbdsVendTrans;
QueryBuildRange qbr;

OriginalDocuments originalDocuments;

;
Dialog = new dialog();
dialog.caption('Vendor Payment Details');

dialogFromDate = dialog.addField(typeid(Transdate), "From date");
dialogToDate = dialog.addField(typeid(Transdate), "To date");

fromDate = dialogFromDate.value();
toDate = dialogToDate.value();

if(dialog.run())
{
//return true;
}

//Filename
fileName = "Desktop\TableExcel";//@"C:\Users\shivakumar.p\Desktop\TableExcel";
//Initialize Excel instance
xlsApplication = SysExcelApplication::construct();
//Open Excel document
//xlsApplication.visible(true);
//Create Excel WorkBook and WorkSheet
xlsWorkBookCollection = xlsApplication.workbooks();
xlsWorkBook = xlsWorkBookCollection.add();
xlsWorkSheetCollection = xlsWorkBook.worksheets();
xlsWorkSheet = xlsWorkSheetCollection.itemFromNum(1);

query = new Query();// Add SalesTable main datasource

qbdsVendTrans = query.addDataSource(tableNum(VendTrans));
qbr = qbdsVendTrans.addRange(fieldnum(VendTrans,Transdate));
qbr.value(sysQuery::range(fromDate,toDate));

qbr = qbdsVendTrans.addRange(fieldnum(VendTrans, TransType));
qbr.value(enum2str(LedgerTransType::Payment));

queryRun = new QueryRun(query);

while (queryRun.next())
{
vendTrans = queryRun.get(TableNum(VendTrans));

vendName = vendTable::find(vendTRans.AccountNum).Name;
//Excel columns captions
xlsWorkSheet.cells().item(row,1).value(vendTrans.AccountNum);
xlsWorkSheet.cells().item(row,2).value(vendName);
xlsWorkSheet.cells().item(row,3).value(vendTrans.Voucher);
xlsWorkSheet.cells().item(row,4).value(vendTrans.TransDate);
xlsWorkSheet.cells().item(row,5).value(vendTrans.AmountCur);

// Identification no

// to do

row++;
}
//Check whether the document already exists
if(WinApi::fileExists(fileName))
WinApi::deleteFile(fileName);
//Save Excel document
xlsWorkbook.saveAs(fileName);
//Open Excel document
xlsApplication.visible(true);
}

Can you please let me know how to get identification no.

Please give me more shed on this.

Thanks!

Arpan Sen

Web server error when accessing AX on local VM

$
0
0

Dear All,

Server : Windows Server 2012 R2

Firewall settings OFF

Hyper V : Configure VM for D3FO with external switch. Internet is working fine.

O365 : 1 month trail period (Create new account)

Once login in to VM , gave O365 account to Admin user provisioning. That is successfully done.

Then go to IIS > Sites > AOS service > Manage > Browse

It's asking for User name and password. I provided O365 account and password, Then it's gave me an error " 

There is a problem with Server

Sorry, the server has encountered an error. It is either not available or it can't respond at this time. Please contact your system administrator"

Please let me know how to resolve this error.

Please give me more shed on this.

Thanks!

Arpan Sen

ODATA SERVICE Authentication Issue / Accessing Entity Data

$
0
0

Hi all,

I'm currently using the Dynamics Github Service Examples to see if I could consume the OData end points.  I'm currently having an issue where I'm trying to enumerate through the returned data set but i'm reaching an exception where it gives me a status code of 403 unauthorized.  

Does anyone know what might be causing that?  I'm thinking I'm missing a setting or something.  

Other pertinent info:

The app is registered in AAD as a Web App / API.  I've given it the following permissions:

Microsoft Dynamics ERP

- Delegated Permissions:  all 3

Windows Azure Active Directory

- Delegated Permissions: only 1 - Sign in and Read user Profiles

I'm passing through a set of credentials as well as the client key.

Not sure what i'm missing but i would be eternally grateful if someone could give me some hints as to what i'm missing.

Thank you!

Learning Dynamics AX

$
0
0

Hi

I am trying to learn Dynamics AX . The training is very expensive .  There so many modules in AX .

Where shall i get started . I have a technical back ground . But I want to focus both on functional and technical side.

I could not find something solid on the web to get used to everything in Dynamics .

Thanks.

User count.

$
0
0

Hi All ,

For example, a customer had 100+ AX end users. However, he has bought only 80 licenses. It means all 100+ users are created in AX with specific to their roles, permissions will be granted within an application. However, at any given point in time, only 80 users can login irrespective of the user name who is logging into.

The ask from the client is that how to identify the count of users who did login into application every month.

Is there any standard report or form available in AX 2009 & 2012 R3 applications.? and guide me the path.

Thanks in advance.

Join multiple table in Query in X++

$
0
0

Dear All

I have make make query using X++ join three table but desire result not showing 

Please help me and let me know is it ok ??

qbdsCustInvoiceJour = query3.addDataSource(tableNum(CustPackingSlipJour));
qbdsCustInvoiceJour.relations(true);
qbdsCustInvoiceJour.joinMode(JoinMode::InnerJoin);

qbdsCustTable=qbdsCustInvoiceJour.addDataSource(tableNum(CustTable));
qbdsCustTable.relations(true);
qbdsCustTable.joinMode(JoinMode::InnerJoin);

qbdsGatePassLine = qbdsCustInvoiceJour.addDataSource(tableNum(GatePassLine));
qbdsGatePassLine.relations(true);
qbdsGatePassLine.joinMode(JoinMode::NoExistsJoin);
qbdsGatePassLine.fields().addField(fieldNum(GatePassLine,InvoiceId));

qbdsCustInvoiceJour.fields().addField(fieldNum(CustPackingSlipJour,PackingSlipId));
qbdsCustInvoiceJour.fields().addField(fieldNum(CustPackingSlipJour,SalesId));
qbdsCustInvoiceJour.fields().addField(fieldNum(CustPackingSlipJour,InvoiceAccount));

qbdsCustTable.fields().addField(fieldNum(CustTable,AccountNum));
Customerqbr= qbdsCustTable.addRange(fieldNum(CustTable,CompanyChainId));
Customerqbr.value(queryValue(("GDN GP")));


Errors when importing solution to Visual Studio

$
0
0

I want to move a project that I have been working on from one VM to another. I tried to do this by doing the export/import that Dynamics provides, following this link:  https://community.dynamics.com/ax/b/axilitynet/archive/2016/05/19/project-export-and-import

When I imported the project, I selected the axpp file which was located on the VM desktop for the file name. I entered C:\Users\sovos1\Documents\Visual Studio 2015\Projects for the project file location. I selected "new solution" to open the project in (since this is a new VM I didnt have any solutions). I also checked the overwrite solution.

The project was imported with no errors. Then I ran a build of the project. The build finished stating that the build completed. Then it prompted me that I had 50 errors. these errors were caused by classes that had _packageSlip appended to them. How can I resolve these errors? There is a screenshot below of the build and the errors.

None of these errors exist in the VM that I exported the solution from to generate the axpp file. How can I fix these errors?

Customize xml output of a document service in x++ class

$
0
0

I had generate a document service on a query over WMSPickingRoute by wizard. I have created an outbound port and selected the service operation that I previously created.

I'd like to add in the field list of the form Document data policy any other "fields" by customize the class X++ generated by the wizard. Is it possible ? What class I have to modify and what operation I have to perform to view the modification ?

Thanks in advance.

store c# byte array as image in ax

$
0
0

hi,

i  have  custom ax service ,  which  must  receive  byte [ ]  from  c#   and  i must store  image in ax database .  i know  , that i must  store  image in container with EDT  - bitmap .  but  i don't know how to  transform  c# System.byte[]  to   ax  container .

Set a property value in a c# class from x++ class

$
0
0

I know there's a simple answer, I've probably read it already but it's been a long day and I'm tired.  Thanks in advance.

I have an azure D365 dev machine procured through LCS.

I have a c# class library called MyCSharpProj in my solution with one class

 public class x
 {
        public bool boolVal { get; set; }

 }

I've added a reference to the project in my solution from my "Dynamics 365 for Operations" "Operations Project"

I have a class in the operations project and the following method

public void test()
{
        MyCSharpProj.x testVar = new MyCSharpProj.x();
        testVar.boolVal = true; // this gives an error ' Invalid token "=" '
}

What is the correct way to be able to set the value from the c# class?

Access elements declared in form scope from class extension

$
0
0

Hi everyone,

I have worked with extensions on other elements but I am unable to find a proper way to add new methods to an extension class for a form in such a manner that form controls and elements are also accessible. I really want to avoid customization/over-Layering. Anyone??

Thanks.

AOS process abnormally large and oh where is SQL server process?

$
0
0

I am currently having the worst time trying to do anything.  I noticed on the main server (AOS and AX databases) has a giant AOS and a small SQL process.  Any way to fix this without rebooting AOS?

ODBC statement: Cannot insert the value NULL into column 'RECID'

$
0
0

Hi All,

I am creating ODBC connection and want to insert record in table from one DB to another.

I am using following job for this.

 Statement                       statement;
    str                             query, criteria;
    LoginProperty                   loginProperty;
    OdbcConnection                  odbcConnection;
    
    loginProperty = new LoginProperty();
    loginProperty.setDSN('AX_ETL');
    
    odbcConnection = new OdbcConnection(loginProperty);
    
    statement = odbcConnection.createStatement();
    
    query = "INSERT into Target.dbo.Test (EXECUTIONID) select  ExecutionId from Source.Budget where TransactionCurrencyAmount = 300";//
    
    new SqlStatementExecutePermission(query).assert();  
    
    statement.executeUpdate(query);
    
    CodeAccessPermission::revertAssert();

Above query will return more than one record.

where Target database is AX database and Source database is another DB in same SQL Server.

When I run this job I am getting error


Debugging SSRS Reports

$
0
0

Hi,

Can any one help me

How many ways we can debug SSRS Reports based on RDP classes,

User License - Current Number of Users

$
0
0

Hi All

I have query regarding AX user license count.

In my company there are 30 users for AX.and out of which only 6 users are regular users.

So i bought 10 user license.This is only for concurrent users or how it will work.

Because while i importing users, AX allows me to import all 30 users and i am able to assign system admin role to all

when AX system will stop me , i think once 11 users access a system at same time ...i may receive infolog from system or not.

How do you activate a registration worker in AX 2012?

$
0
0

 came across an issue today and I thought why not just share the resolution here publicly so others can also be benefited .

Summary :“I was maintaining a route version where I changed the resource on one route operation and added a new one, I then saved the line and clicked “Approve” as version needs to be approved before we activate it, though I got an Info-log indicating “01660 is not a registration worker or is not active”.

4.jpg

Resolution:

  • Go to Human Resource Module in AX
  • Navigate to Common > Workers > Workers
    1.jpg

  • On the list page, apply a filter ALT+G and paste the personnel number i.e. 01660 under Personnel numbercolumn in the table.Note: Personnel number is a unique number and will be different in your case.
  • Once the record is found, click on Employment History button.
    2.jpg
  • Create employment for the legal entity in which you are trying to approve the BOM.
    3.jpg
  • Once the employment history is created, system will register the worker within that legal entity and it will not restrict user to “Approve” a BOM version.

Expected Results:

Problem will be solved, BOM version will be Approved and Activated. 

Change Existing EDT length/size

$
0
0

I need to change the string size of an existing EDT say ItemID which is extended from another EDT "ItemIdBase". Now other than the customization option, It only allows to change the string size in an extension for the EDT. But changing string size in an extension for the ItemIdBase doesn't instill a change in ItemId's length. How can we do this?

How to create a Custom AIF service to match a WSDL from Vendor ?

$
0
0

Hi AX Group, my vendor is providing us a WSDL document and based on that I need to publish an AIF service from AX 2012 R3 CU11

This is not about AX to call Vendor's Service, but the other way and Vendor would dictate the WSDL of this Service 

Any ideas on how to achieve this using AIF custom service framework in AX 2012 and match the Vendor's WSDL? 

Thank you

San

Viewing all 17532 articles
Browse latest View live


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