Questions tagged [x++]

X++ is the development language used by Microsoft Dynamics AX. It belongs to the curly brackets and dot-operator class of programming languages (like C# or Java). It is an object-oriented, class-based, single dispatch language. X++ supports garbage collection, and SQL queries are integrated into the language.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

How to set Execution timer in a Form to find the duration of the form running.?

I am new to Ax 2012, and now I want to find the running time of the Form where I was filtering the balance of the Vendor based on the Accounting Unit for the specific date range. I have used two Date ...
monish's user avatar
  • 1
0 votes
1 answer
31 views

How to get the EnumType used on a field in a Table

I want to get the Enum Type used on a field on a Table either preferably by T-SQL or by X++. My aim is to get the Metadata of a table specifically FieldName, FieldType (If it's a string then it's ...
Mohammad Yusuf's user avatar
0 votes
0 answers
36 views

Print multiple transfer order's Picking list (WMSPickinglist_OrderPick) report in ax 2012

My requirement is, I want to print Multiple Transfer order Picking list report (WMSPickingList_OrderPick). Navigation : Inventory and warehouse management > Periodic > Transfer update > ...
Moiz Ahmed's user avatar
2 votes
1 answer
124 views

X++ Update_recordset using MaxOf

Is there anyway to use MaxOf on update_recordset on X++? ttsbegin; update_recordset asuRepairServiceProdDeviceInfo setting RepairCompletionDate = **maxof**(asuRepairOrderTrans.ScanEndDateTime) ...
Dhen's user avatar
  • 23
1 vote
2 answers
60 views

Filter records in DirPartyTableListPage form

I need to apply ExistsJoin with RestrictionTable to records in DirPartyTable that have InstanceRelation value = 123 and not filter the others in init method in form. I tried this, but only records ...
julia's user avatar
  • 11
0 votes
1 answer
25 views

How to adjust the timestamp as per requirement

I am trying to generate the timestamp as per the requirement The required format is : yyyy:mm:ddThh:mm:ssGMT+1:00 I am able to generate the Date and time format but unable to figure out how to bring ...
Dishanth Varadaraj's user avatar
0 votes
0 answers
28 views

D365 F&O : In X++, reduce bit-depth of PNG file from 24 bits to 1 bit

We need to print PNG images with a bit depth of 24 bits on a Zebra printer. So we have to convert the PNG to ZPL. I have done it in the PNG's current bit depth pf 24 bits, generated the ZPL, but the ...
Fleetie's user avatar
  • 163
0 votes
2 answers
81 views

D365 FinOps View Range Error : "Query extended range failure: Expected identifier near pos"

Getting this error when browsing the view using SysTableBrowser Seems to be coming from the range I've added in the View: ((PersonUser.VALIDFROM <= Heu_UserInfo.today) && (PersonUser....
147's user avatar
  • 582
0 votes
1 answer
137 views

How to get ARGS from XppPrePostArgs in extension methos?

I extended the main class method, I would like to get from XppPrePostArgs the Args in D365 environment. [PreHandlerFor(classStr(MYCLASS), staticMethodStr(MYCLASS, main))] public static void ...
ulisses's user avatar
  • 1,549
0 votes
0 answers
25 views

D365fo: How to display info box when SellectAll is checked

How do i display info when select all checkbox is checked or unchecked on a form grid in D365fo. Using the linkActive() method on the DataSource and the MultiSelectionHelper class i was able to get ...
simon peter's user avatar
0 votes
2 answers
50 views

Dynamics AX 2012 Formdatasource::executeQuery calls a lot more methods on specific remote servers

All the AX clients are accessed through RDS. We received a ticket a few weeks ago that a certain application had bad performance. We were looking in to it but could not reproduce the problem. After ...
KHP's user avatar
  • 3
0 votes
1 answer
238 views

How to add LINK relations in executeQuery DataSource Form?

In executeQuery DataSource method, how can I add a Table relation by code x++? My code: I don't need to add the table My_Other_Table in forms DataSources, I would like to add the relation by code ...
ulisses's user avatar
  • 1,549
0 votes
1 answer
54 views

D365 FO / Odata error : unable to resolve the type name '' to an EdmType

I am making a PowerBI Report about time sheets from Dynamics Finance Operation but i can't see the "Hours" columns (1 column by day of the week, with a number of hours worked). It is an ...
Ivan Pk's user avatar
0 votes
1 answer
37 views

How can I say that few values are not meant to display in a lookup field of form in finance and operations d365 x++?

I have a field named ScaleID that has been created in the form level in Form1. This field has two methods associated with it. One is jumpref which is responsible for navigating to another form. ...
C4U's user avatar
  • 1
0 votes
0 answers
82 views

How to set value in coc Validate method D365?

In Dynamics D365 FFO, I would like to set the value in VALIDATE chain of command method. My Code: [ExtensionOf(formDataFieldStr(MyFORM,MyDataSource, MyControl))] final class ...
ulisses's user avatar
  • 1,549
0 votes
0 answers
34 views

Unable To Add a Reference To a D365 Package I Can See In Application Explorer

I'm attempting to build my first custom module for Dynamics 365 Finance and Operations. I have a custom table Patron. I'd like for this table to hold PartyNumber values, so want to reference ...
Crippledsmurf's user avatar
0 votes
0 answers
53 views

Dynamics 365fo: How can I open a docuview document attached to a VendTable from a Vendor payment proposal

I Would like to open documents that were attached to VendTable from Vendor payment proposal (VendPaymProposalEdit Form) using jumpref in the grid column without having to navigate back to the ...
simon peter's user avatar
1 vote
1 answer
127 views

X++ Missing SysComputedColumn::Sum documentation, or how to sum?

I am trying to sum some values in view via Sys computed columns. I am using SysComputedColumn as I have mentioned values in view's datasources, not directly in view. I am multiplying and diving all ...
Šimon Šťastný's user avatar
0 votes
1 answer
308 views

refresh display method if field is updated x++

I have two display method fields in past workers form (termination reason (default of system), hiring status(customization)): I selected worker opened employment history form set values of ...
Menna Ahmed's user avatar
0 votes
0 answers
73 views

addDynalink with multiple fields

I had this code: [DataSource] class FiscalDocument_BR { public void init() { super(); this.query().dataSourceTable(tableNum(FiscalDocument_BR))....
Emanuel Hiroshi's user avatar
0 votes
1 answer
146 views

Is it possible to use C# .dll file in X++ code without adding it into reference?

I have the following problem: we developed a C# class which we are planning to use in X++ classes. So, we created a .dll file and added it through reference in X++ project. However, if we upload the ...
No Name's user avatar
  • 31
0 votes
0 answers
46 views

Dynamic 365 API Table Entity

We created a table, then I made a table entity from it. We can insert and read from it but we can't update any field. We have set the Title Field properties and added them to the index for the table. ...
bilal dandashi's user avatar
1 vote
1 answer
126 views

TTSBegin Error in AX 2009 when retrieving SQL data and placing it into an AX table

In AX 2009, I have some code that runs a stored procedure on the same database, and loops round the results. This works without any problems (I can use the InfoLog or the debugger to see the values). ...
HurricaneCoffee's user avatar
1 vote
1 answer
312 views

validate financial dimension on general journal d365fo

I am making a ssrs report and I need to call method that validate financial dimensions on general journal lines . which method should I call to validate financial dimension ? I found this code but ...
Menna Ahmed's user avatar
2 votes
1 answer
503 views

Table Cardinality in Microsoft Dynamics 365 F&O

When creating a table in Microsoft Dynamics 365 F&O there are two fields that confuses me and I can't find the right documentation to fullfill them. They are "Cardinality" and "...
Emanuel Hiroshi's user avatar
0 votes
2 answers
120 views

Two Lookups in my SysOperation UiBuilder Error

When i click my Sa_Type field that is a base enum with Vendor and Customer i want it to fill my second field called combo with all the customer or all the vendors, but this way im receiving the error ...
R Monkey's user avatar
  • 131
0 votes
0 answers
603 views

using a TempDB table as my form data source, but the data doesn't display in the form

I am using a TempDB table as a form data source and am facing an issue where the data is not showing up in the form. Issue: I found out by debugging, linkPhysicalTableInstance in the clicked method, ...
ash's user avatar
  • 1
0 votes
1 answer
275 views

split full name to first ,middle and last in x++ d365fo

i want to split full name to first ,middle and last in x++ d365fo str fullName = _contracts.fullName(); // Replace any non-ASCII whitespace characters with regular spaces fullName = strReplace(...
user4833581's user avatar
0 votes
0 answers
80 views

update first , middle and last name in dynamics 365 fo

i want to update first , middle and last name in dynamics 365 fo str firstname,lastname,middlename; firstname = subStr(_contracts.fullName(),1,1); middlename = subStr(_contracts.fullName(),2,2); ...
user4833581's user avatar
0 votes
0 answers
191 views

OData action in data entity for table without natural key

In Dynamics 365 Finance and Operations, I created data entity for WMSOrderTrans table. Let's say it's SalesOrderPickingListLines. I've added EntityKey with two fields: orderId and RecId (the same ...
tomekc's user avatar
  • 44
0 votes
1 answer
426 views

Sending a POST command

I've the below code that is working correctly at c# how can I write the equivalent code using x++? using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { ...
Hasan A Yousef's user avatar
0 votes
0 answers
112 views

validate financial dimension on general journal x++

I make a report have all validation on general journal before posting . I want to check about financial dimension have an error or not . so which method check on financial dimension ?
Menna Ahmed's user avatar
0 votes
0 answers
38 views

i don't know how to create XDS in D365FO

I created a simple car rental in D365FO with 3 tables Cars ,Customers, Rentals and I'm working on security I give them Privileges and duties and roles and I want to ad XDS to them i don't know how to ...
Mugiwara's user avatar
1 vote
1 answer
364 views

Calculating Age in X++

I am trying to calculate an age in x++ where the customer is born on 1/6/2010 to the selected day of his visit - 1/6/2023 today but the result doesn't give me 13 years old but gives me 12. real ...
R Monkey's user avatar
  • 131
3 votes
1 answer
80 views

Unable to close SysBoxForm in unit test X++

When I close a SysQueryForm (by clicking on Ok button), a system generated dialog box appears on the form as shown below:- I am writing a unit test to close this dialogue box but when I try to close ...
zester's user avatar
  • 155
0 votes
0 answers
95 views

How to put value from lookup in dialog field in SSRS d365fo

I made a SSRS Report in D365FO by X++ . I made RDP class and temp table and I want vehicle id and driver in temp table lookup to vehicle table in dialog but when I choose from lookup value didn't ...
Menna Ahmed's user avatar
0 votes
0 answers
77 views

Multi selection didn't get all records , all records didn't load before select

[ExtensionOf(formControlStr(BankReconciliation ,ClearALL))] final class ClearAll_Extension { void clicked() { next clicked(); FormRun formrunn = this.FormRun(); ...
Menna Ahmed's user avatar
0 votes
1 answer
980 views

move cursor of datasource to the next record on form extension [duplicate]

[ExtensionOf(formControlStr(BankReconciliation ,ClearALL))] final class ClearAll_Extension { void clicked(){ next clicked(); FormRun formrunn = this.FormRun(); ...
Menna Ahmed's user avatar
0 votes
1 answer
112 views

SSRS report tables mutiple lines not showing

I am doing Microsoft Dynmics D365 report layout. I have a table in my report that need to show the lines from the table in MS Dynamic D365. Which have only 2 lines. D365 frontend system: In the ...
clc988's user avatar
  • 3
1 vote
0 answers
135 views

How do I handle AX timeouts where the operation continues on? Abort not working?

I have a custom AX service operation that can take 5+ minutes to complete and I'm trying to figure out how to abort it from my .NET application, but aborting the client doesn't seem to do anything? ...
William YK's user avatar
  • 1,045
0 votes
1 answer
103 views

SSRS Report Date Formate using X++ [duplicate]

please help me. I am doing MS Dynamics D365 Report laypot. I have a date that I want to set for a specific formate - YYYY/MM/DD. I can get that formate but I have the time in the end. I just want ...
clc988's user avatar
  • 3
0 votes
0 answers
98 views

SSRS reporting tool and X++ code for MS Dynamics D365

I am doing a SSRS Report for MS Dynamics D365 for report layout. I have successfully mapped the correct field in the line level. I have 3 lines in the line level, the first line of one of the field ...
clc988's user avatar
  • 3
1 vote
0 answers
66 views

Missing method calling puppeteer LaunchAsync

When I try to use puppeteersharp in AX I get a error "Method not found: 'Void Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger, System.Exception, System....
Tweene's user avatar
  • 257
0 votes
1 answer
469 views

How to validate dialog fields without closing the dialog window?

I would like to validate the DialogField value without closing the dialog window (not in closeOK). I'm using Dynamics 365 FFO. class myClassCaller { MyClassDialog::MyPromtDialog(`parameters`); } ...
ulisses's user avatar
  • 1,549
0 votes
1 answer
165 views

Posting new field to CustTrans

I created a new field in LedgerJournalTrans(General Ledger > General Journals menu), but click on Post but was unable to get my new field value in the CustTrans, is there any method i need to ...
simon peter's user avatar
0 votes
1 answer
236 views

how to get records from tempDB AX 2012 X++

I want to implement this functionality but vendBalanceProvisionalTmpProcesing is always empty, i know it is empty because it is tempDB : while select AccountNum,PostingProfile from ...
VGScode's user avatar
0 votes
0 answers
130 views

Electronic reporting automation and bank reconciliation (BAI2)

I have to submit BAI2 files for bank reconciliation that are coming in from a logic app into the DMF. I have found that the DMF is no longer used, but I cannot change the way the file comes in as that ...
rjv's user avatar
  • 1,058
1 vote
2 answers
693 views

D365 formControlStr not working with data group fields on form extension

I've added new fields to the InventNonConformanceTable form, by adding them to the Overview and ProblemInformation data groups, and they show up on the form, but whenever I try and reference them with ...
Hein von Brandis's user avatar
0 votes
1 answer
512 views

Number of records in grid AX 2012

I tried to count num of rows in grid in runtime with this code FormRun caller; FormDataSource fds; QueryRun queryRun; int64 rows; fds = caller.dataSource(); query = fds.query(); queryRun = new ...
VGScode's user avatar
0 votes
0 answers
381 views

How to pass a datasource of a tempTable data to a class

I have a form with a grid of a tempTable. One of the columns in the grid displays the 'existsAlready' property: FM_MovieTemp movie = ds.getFirst(1); while (movie) { if (movie.existsAlready) { ...
Kai's user avatar
  • 742

1
2 3 4 5
29