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

Failed to login Microsoft Dynamics Ax in document service

$
0
0

Dear All

I have make a vendor Group document service and use in .net application,

when I used in .net application and going to create a vendor group 

then error occurred Failed to login Microsoft Dynamics Ax

and how to give Username and password in .net 

this is my .net code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConsoleApplication2.ServiceReference1;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{

VendorGroupServiceClient client = new VendorGroupServiceClient();

CallContext context = new CallContext();
context.Company = "EFST";
///context.do
context.LogonAsUser = "Administrator";

AxdVendorGroup document = new AxdVendorGroup();
document.VendGroup = new AxdEntity_VendGroup[1];
document.VendGroup[0] = new AxdEntity_VendGroup();
document.VendGroup[0].VendGroup = "Test";
document.VendGroup[0].Name = "TestGroup";

try
{
EntityKey[] entityKey = client.create(context, document);

Console.WriteLine("Done!");
}
catch (Exception e)
{
Console.WriteLine("Error:" + e.Message);
}

Console.ReadLine();
}
}
}

how to resolve it?

please.............


Adding Link to datasources

$
0
0

Hi ,

I need to get the following structure:  ItemId(InventTable), BomId(BOMVersion), bomID(BOM), QTY(bom). 

I have created a query and i tested it in the job and it works fine, here is the job

q       = new Query();
    qbds1   = q.addDataSource(tablenum(inventTable));
    qbds1   = qbds1.addDataSource(tablenum(BOMVersion));
    qbds1.relations(true);

    //link bom to bomversion
    qbds2   = qbds1.addDataSource(tablenum(BOM));
    qbds2.relations(false);
    qbds2.addLink(fieldNum(BOM,BOMId),fieldNum(BOMVersion,BOMId));


I tried to apply the  same logic on my form based on inventtable_ds (grid1),bomversion_ds(grid2),  bom_ds, (grid3), 
to show those values in 3 separate grids. In BOMversion_ds execute query I added the following code refered to this post https://community.dynamics.com/ax/b/daxmusings/archive/2011/10/13/query-object-datasource-linking
but i didn't get the result only inventtable and bomversion are linked together.

BOM_ds.query().datasourceTable(tableNum(BOM)).relations(false);
BOM_ds.query().datasourceTable(tableNum(BOM)).addDataSource(tableNum(BOMVersion)).addLink(fieldNum(BOM,BOMId),fieldNum(BOMVersion,BOMId));

Any suggestion please? thanks.



Installing CU update

$
0
0

Hi all, I have read and watch tutorial for updating AX, i wanna ask if I'm running AX RTM version and want to update to CU 10, should I install it from CU8 to CU10 or the CU10 already have all previous updates inside?

and what is the common problems that occur during and after updated?

Which server should I install it, is it DB server or AOS server? 

Is the "merge automatically" in the AX  applicable to some customized done in std Visual Studio SSRS report? as this is my first time to update AX.

 

Thanks in advance.

Batch Jobs

$
0
0

Hi All,

We have 10 batch jobs, In that for the first batch job one deadlock occurred and still remaining batch jobs are waiting for execution. Please let me know how can i overcome the issue?

Please suggest me.

Thanks!

Regards,

Arpan Sen

Select statement returns wrong record AX7

$
0
0

I have made a simple select statement in AX7 and I cannot figure out why the returned record does not match the criteria. Specifically the first line where currentWorkerRecId is 5637146826 and the returned HcmWorkerRecId is 5637150576. Any ideas? Am I just missing something obvious?

How to create Period in lookup for report ? (month and year)

$
0
0

Hi all.

I have customize report and use parameter period.

Example : January 2016.

But, how i can create combo box for select period for parameter report.

Example : January 2016 <-- based on current date (month and year).

  February 2016 <-- based on current date (month + 1).

  March 2016 <-- based on current date (month + 2).

  April 2016 <-- based on current date (month + 3).

  May 2016 <-- based on current date (month + 4).

  .......................

Please help me.

Thanks.

Permissions in one virtual company without affecting other companies

$
0
0

We have 3 virtual accounts but want to be able to lock down not being able to post journals in one of entities without affecting the other 2, is this possible?

Copy fixed button is not coming with customized security role

$
0
0

Dears,

I have created a new role to provide access of copy function in fixed asset master list page.

I am able to copy in edit mode of the fixed asset form. But not in fixed asset list page. This is doable with system admin rights.

Unfortunately I am unable to do this. 

I have given full rights to below menu item

1. AssetCopy

2. AssetCopyAction

Also I have added the server method to this customized role. Please help me with further possibility

More over there is a default privilege for copy asset I tried that also.  


Query Range lessThanUtcNow() don't work

$
0
0

Hi all,
the static method SysQueryRangeUtil::lessThanUtcNow(), used in a range within a query to populate a view, does not recover the current date.
Have you ever encountered similar problems?
Thank you

[ITA VERSION]

Ciao a tutti,
all'interno di una query utilizzata per popolare una vista, il metodo statico SysQueryRangeUtil::lessThanUtcNow() utilizzato in un range non recupera la data corrente.
Avete mai incontrato problemi simili?
Grazie

checkbox in Grid

$
0
0

Hi Friends,

I have a bound checkbox in grid, I can overwrite 'click' or 'modified' method for it, but, none would fired when I clicked on checkbox.

Is this typical behavior since it's in grid? what alternative I can do if I need to do something when it's clicked.

Thanks,

Auto Email from AX to customers while click on post button of payment journal

$
0
0

Dear Experts,

I  am new in X++, I wrote a clicked method on the post button of LedgerJournalTransCustPaym form, my method is sending email to top one customer in payment journal not all the customers who are exist in the same journal. I want to send emails to all the customers who's payment is received in the journal which we are going to post. help required, clicked method is giving below.

void clicked()

{


SysEmailId sysEmailId = 'PayEmail';
str recipientEmail = "erpadmin@test.com";
CustTable custTable;
Map mappings;
;
super();


custTable = LedgerJournalTrans.findCustTable();
recipientEmail = custTable.email();

mappings = new Map(Types::String, Types::String);
mappings.insert('CustomerName', custTable.name());
mappings.insert('InvoiceNo',LedgerJournalTrans.MarkedInvoice );
mappings.insert('EntryDate',LedgerJournalTrans.TransDate );
mappings.insert('Amount', LedgerJournalTrans.AmountCurCredit);

SysEmailTable::sendMail(
sysEmailId,
SysEmailTable::find(sysEmailId).DefaultLanguage,
recipientEmail,
mappings,
'',
'',
true,
curUserId(),
true);

}

Thanks in advance.

-Aamir Raza

Workspace Tiles for records

$
0
0

Is it possible to add workspace tiles dynamically in an AX7 workspace? For example you have a data table and you want to represent each record with a tile in the workspace. When you add or remove a record in the table the workspace should also add or remove a tile in the workspace.

How to add sorting in Dialog form for VendTable?

$
0
0

Hi,

I'm working on SSRS report. I have to add sorting for the vendtable.accountnumber. I should do in both the ways ascending and descending. Can anyone please help me to add sorting in the Dialog form. Because it is not working for me. Please help with some screenshot.

Sample of getExchangeRateDisplayFactor Method

$
0
0

Hello,

I just need help.

Can someone explain to me how to use getExchangeRateDisplayFactor Method. it is my first time to use it. hoping for your prompt response. thank you.

Ivan

Issue in Item Creation

$
0
0

Hi All,

         while creating a new item The Loc8 interface is being executed, but no XML is sent and no item is added to ecoresproduct or inventtable. How to fix this issue??

Thanks&Regards

   Adam


cannot see parameters on batch job task when added manually - sysoperation batch job

$
0
0

Dear all,

I have created few of the batch jobs with the sysoperation framework in AX 2012.

when I run these jobs from the menu items in a batch and then go the batch job form and look for the parameters, I could see the parameters.

But if I try to add these jobs manually, as in when I create a new batch job and select the class and then try to look for the parameters I could not see it. I could not find out the reason behind this. If anyone have any idea, please share.

Thanks.

Amount in words

$
0
0

In the SSRS reports, is there any function that transforms amounts into words - The Amount in Words

Excel export is very slow and freezes

$
0
0

Dear All,

I have a custom Form which has many tables as datasources and shows the data of all its tables fields and methods in one grid.

I want the data to be in excel. so I click export to excel button. the data is very Huge, 20000+  records.

its taking huge to export and some times its stuck.

Please suggest how to export the data faster to excel.

Thank you,

Praveen Kumar

How to create Entity from view in DIXF

$
0
0

Hello,

In DIXF, we can export data from each entities.
However, we would like to do from some tables at once.
(It is like that exporting from view which is consist of plenty tables.)

Have you ever tried this way?
If it is impossible, either alternative is there?
It is like that below...

 - executing query

 - importing to work-table(temporary-table)

 - creating entity from work-table(temporary-table)

 - ....

Best Regards.

Moving Licenses from AX 2009 to AX 2012

$
0
0

Hi AX Community,

I am currently having Dynamics AX 2009 license and wants to move on 2012.

1. Can I exchange these licenses for AX 2012 licenses ?

OR

2. Can I get a credit for my 2009 license value and buy 2012 licenses from scratch ?

What will be the cost factor?

I know that contacting Microsoft would be the best option, ,but I don't think they respond on Saturdays and Sundays. !!!

Thanks in Advance

Viewing all 17532 articles
Browse latest View live


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