Can Not Edit Records In Invent Table error
Noticed Selected Record through Client
Hi Community,
my Goal is to set a Field called "Status" as "processed".
I have inserted my records.
The last Field of my Table is "Status" and is a ENUM.
Enum:
- Ready
- Withhold
- Error
- Processed
When I insert my records in my Table/Form the Status is automatically set to "Ready", which is fine because I programmed it like that.
Now I want to make a new Button (Class).
When I select in the AX Client one or more records and then press that Button, I want a Dialog to pup up and when I click "Ok" These records shall in the Status-Field turn to "Processed".
I have to use RunBase-Class which I did.
I created the main class, Dialog and run Methods.
If You want to see the Code let me know.
My Question is, how does my Button can understand for which record is selected ?
Is there a Special Method ?
With the best wishes
Khashayar
Execute Query
Hi
How to run this query in D365 Ax7 ,because there is no Execute query method in D365 Ax7.
public void executeQuery()
{
;
TECPOGroupHeader_ds.query().dataSourceTable(tableNum(TECPOGroupHeader)).clearRanges();
if(statusFilter.valueStr() == enum2str(TEC_AllDraftPosted::Draft))
TECPOGroupHeader_ds.query().dataSourceTable(tableNum(TECPOGroupHeader)).addRange(fieldnum(TECPOGroupHeader,Status)).value(sysquery::value(TECPOGroupStatus::Draft));
if(statusFilter.valueStr() == enum2str(TEC_AllDraftPosted::Posted))
TECPOGroupHeader_ds.query().dataSourceTable(tableNum(TECPOGroupHeader)).addRange(fieldnum(TECPOGroupHeader,Status)).value(sysquery::value(TECPOGroupStatus::Posted));
//add by fanddy
if(statusFilter.valueStr() == enum2str(TEC_AllDraftPosted::Confirmed))
TECPOGroupHeader_ds.query().dataSourceTable(tableNum(TECPOGroupHeader)).addRange(fieldnum(TECPOGroupHeader,Status)).value(sysquery::value(TECPOGroupStatus::Confirmed));
//END add by fanddy
if(CreatorFilter.value() == true)
TECPOGroupHeader_ds.query().dataSourceTable(tableNum(TECPOGroupHeader)).addRange(fieldnum(TECPOGroupHeader,CreatedBy)).value(sysquery::value(curUserId()));
super();
}
HTML Name
HTML Name
Data import via ODBC
Has anyone already had any experiences with the DIXF in AX7 RTW local VM?
I tried to configure a migration as I did with AX2012 R3 and failed miserably.
My situation:
I want to import BankGroups from a SQL DB on the machine called StagingDB and created a BankgroupStaging Table identical to the Ax BankgroupStaging Table.
1) I configured an ODBC Datasource which points to that StagingDB.
2) I configured a template BankGroupTemplate which has the BankGroups Entity and validated the template.
3) When I try to import the data I click on "import" , named the job, chose ODBC as SourceDataFormat and then chose the Bank Groups Entity.
4) I saved the Import Project, chose "Apply Template" and chose my BankGroupTemplate -> The template shows in the form
5) I then can input the select statement like it was possible in AX2012 Processing Groups.
"select * From dbo.BankGroupStaging"
Problems:
a) When I save the group and open the project again, all settings are lost (SourceDataFormat,EntityName,ODBC Select)
Is this normal? In AX2012 all settings where saved in the processing group.
Do I really have to input everything again, every time I open the Data Project?
b) Where can I see a preview of my staging data (like in AX2012) so that I can validate my select?
c) I can´t seem to get any data, when i press the Import Button there comes the error "Upload Data File for Entity 'Bank Groups' even if I configured ODBC as a Source. is this a bug ?
Thanks for any hints
Getting Data From AX 2012 R3 To Enterprise Data Warehouse
Hi all,
We are on implementing Dynamics AX 2012 R3 in a retail company. Our existing data warehouse is well designed and based on SQL Server 2014. It meets the business units' requirements widely and get the data from other source systems like PLM, e-commerce, retail , POS and etc. We want to keep the DW on.
Now we are working on ETL process that extract the data from AX and load into DW. What is the best way for extracting data including metadata that is defined in AX application, not in database? Of course we can use SSIS packages by creating data flow task with direct SQL query within it. But Numerous metadata is defined in AX application, not in database, so it is really hard to get data just by looking into database.
Is there any AX tool or application that get data including AX business logic in standart AX?
Thanks in advance.
Sefa.
Importing role types for vendors in global address book
Hi Everyone,
I have a scenario where same vendor list is used in multiple legal entities and we want to import vendors with multiple roles in different legal entities. I need help in figuring out if this is possible?
1. Vendor A is to be used in different legal entities and we want to avoid linking this vendor manually by copy vendor to another legal entity function.
2. We have an option of importing same vendor lists in other legal entities too but that creates a lot of duplicate records in global address book.
Any ideas how a vendor can be assigned different legal entities by import.
Excel cannot access the file
When am trying to save the excel file through X++ am getting the following error..
Method 'saveAs' in COM object of class '_Workbook' returned error code 0x800A03EC (<unknown>) which means: Microsoft Excel cannot access the file 'C:\CE308000'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
Am using Ax2012, office 2013 version.
Can you guide on this ,
Thanks in advance,
Mani
Cast error if code is running in CIL
Hi
Got an error if code runs in CIL. Call IL method with Job:
conreq = ['output reverse'] conret = Global::StrReverseIL(conreq); public static server container StrReverseIL(container _str) { container conparm = _str, conret; new XppILExecutePermission().assert(); conret = Global::runClassMethodIL(classStr(Global), staticMethodStr(Global, strReverse), conparm); CodeAccessPermission::revertAssert(); return conret; } System.InvalidCastException: Unable to cast object of type 'System.Object[]' to type 'System.String'. at Global::strReverse(Object[] ) at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters) at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26 at SysDictClass::invokeStaticMethod(Object[] ) at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters) at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)
The table SysXppAssembly and XppIL was cleand up bevor running new CIL.
Any idea what have to be changed?
Open Web Page using X++ in Dynamics 365 for Operations
I need to open a URL on a button click. I found that infolog has urllookup method which does this. However that method isnt available in Dynamics 365 for Operations.
How can i do this ?
Thanks in advance,
Regards,
Himal
Entity Relationship Diagrams for AX7
Looking for an Entity Relationship Diagram for AX 7 - I would specifically like the general ledger one. They have some for AX 2012 R2 but none for AX7. Any mention of ERDs are at least three years old in the forums (unless I missed something). Does anyone know where I might find one? (NOTE: I primarily have access to Management Studio. If you are going to suggest doing it myself with data tools - some guidance on how to do this would be great) Any and all help much appreciated.
AP Invoice Journal Vendor Details
Hi,
I created an interface to upload employee expense report to AP >Invoice journal from a .CSV file. Everything works correctly except for "Terms of payment", remittance information and some other vendor information is not being automatically inserted for lines with account type vendor. When I click on vendor account and select it again from a drop down menu then information populates correctly. How can I auto-populate vendor details without explicitly pulling these fields from vendor records?
Thank you
Listpages have only queries to add as datasource
Good morning,
why listpages have only query to add as datasource.what is the reason.
please have some light on this.
Best regards.
Have a great day.
Issue facing while converting buffer to a container
I want to convert an updated buffer into a container and for this I used buf2con() function, according toMSDN it will return a container with the table buffers of a record. But in my case container size always remains same (i.e. 3 but Buffer contains more than 3 fields) and I never see the buffer values in my container.
Form Personalisation Ax7
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
Slash '\' appears when using con2str()
Dear experts,
I have a form that shows data of GeneralJournalEntry table data, and a button Print. When the button is clicked, the selected records's JournalNumber in grid will be sent to query LedgerTransPerJournal as range. I created a container that stores the selected records's journalNumber, when I set the container data as range in query, there are some '\' appear after each journalNumber. I don't how why it happened, the method i used is con2str().
This is my code of Print button:
void clicked() { GeneralJournalEntry locGeneralJournalEntry; Query q; QueryRun qrun; container conJournalNum; locGeneralJournalEntry = GeneralJournalEntry_ds.getFirst(true); q = new Query(queryStr(LedgerTransPerJournal)); q.dataSourceTable(tableNum(GeneralJournalEntry)).clearRanges(); if (!locGeneralJournalEntry) { warning('Voucher lines must be selected'); return; } else { while (locGeneralJournalEntry) { //info(strFmt('%1', locGeneralJournalEntry.SubledgerVoucher )); //q.dataSourceTable(tableNum(GeneralJournalEntry)).addRange(fieldnum(GeneralJournalEntry, JournalNumber)).value(SysQuery::value(locGeneralJournalEntry.JournalNumber)); conJournalNum += [queryValue(locGeneralJournalEntry.JournalNumber)]; locGeneralJournalEntry = GeneralJournalEntry_ds.getNext(); } q.dataSourceTable(tableNum(GeneralJournalEntry)).addRange(fieldnum(GeneralJournalEntry, JournalNumber)).value(SysQuery::value(con2Str(conJournalNum))); qrun = new QueryRun(q); qrun.prompt(); } }
This is the screen of QueryForm:
FormBuildIntControl limit Value
Hi all, looking for restricting field value for a dynamically added int control on dialog. could not find documentation around FormBuildIntControl.limitTextValue , is this something that can be utilized? I am prepopulating a value in dialog control just want to not allow the field to be edited to higher number and give a infolog if edited number is higher that what is already pre populated in control.
kill online user in dynamics ax 2009
Hi All,
Is there a way to remove instantly all the active users on Dynamics AX 2009? I mean, all open/online AX application will be close automatically once I run a specific script?
Currently I have a job that will kill all the online users using SQL job. During my testing on DEV environment I open five (5) AX application on different computers then I run the SQL job to kill connection. When I check the online user all of them are remove on the Administration-->Online Users-->Client Session> but whether they already remove on the online users, the AX application of the five users or the front end AX is still working or did not close automatically.
Here is one of the step in my script to kill online users;
---
UPDATE [SysClientSessions]
SET [Status] = 0
----
Please help.
Thanks...
Microsoft Dynamics 365 AX (ERP) for a small business (Restaurant). Can it be possible?
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!