Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

Init Method Extension in Dynamics 365 ax7

$
0
0

Hi friends,

             I am trying to call my extension method in post event handler, but i am getting error like

"ClassDoesNotContainMethod: Table 'LedgerJournalTable' does not contain a definition for method 'getDebitBalance' and no extension method 'getDebitBalance' accepting a first argument of type 'LedgerJournalTable' is found on any extension class".

My extension class is

public static class LedgerJournalTable_Extension1
{
public static real getCreditbalance(LedgerJournalTable _LedgerJournalTable)
{
LedgerJournalTable ledgerJour;


select * from ledgerJour
where ledgerJour.JournalNum == _LedgerJournalTable.JournalNum;

return ledgerJour.JournalTotalCredit;

             }

           }

and my post init method is like,

[PostHandlerFor(formStr(LedgerJournalTable), formMethodStr(LedgerJournalTable, init))]
public static void LedgerJournalTable_Post_init(XppPrePostArgs args)
{
LedgerJournalTable  ledgerJ;
LedgerJournalTable ledgerJournalTable = args.getThis() as LedgerJournalTable ;

ledgerJournalTable.getCreditbalance(ledgerJ);
}

Please suggest an solution for this error , how an call extension from method inside post init method .

Thanks & regards,

padmapriya


RE: System error in AX client

$
0
0

Hello bxhelpdesk ,

On that same pc if you log on as another user does it work fine?

System error in AX client

$
0
0

Hi,

We are running Dynamics AX 4.0.

I was wondering if anyone has ever come across the below error message before when closing AX down

I have tried reinstalling AX, rebuilding windows profile and even replaced the PC and still getting the error its only this particular user.

This is from the dynamicscrash.log file

Axapta Crash Dump File for Axapta build 2163 (Nov 18 2006 04:06:04)
Dumped  : Wed Jan 24 16:35:28 2018

Crash   : Exception 0xc0000005 caught (unspecified) in thread 0x13b4 of process 0x1388.
-------------------------------------------------------------

--# FV EIP----- RetAddr- FramePtr StackPtr Symbol

  0 .V 012225c3 011ca46c 0028f808 00288c10     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  1 .V 011ca46c 011ca481 0028f824 0028f810     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  2 .V 011ca481 01241288 0028f83c 0028f82c     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  3 .V 01241288 01241c73 0028f880 0028f844     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  4 .V 01241c73 011f62d9 0028f88c 0028f888     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  5 .V 011f62d9 011f662f 0028f8bc 0028f894     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  6 .V 011f662f 011bf4fe 0028f8c8 0028f8c4     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  7 .V 011bf4fe 01249b7d 0028f8fc 0028f8d0     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  8 .V 01249b7d 01249eb9 0028f94c 0028f904     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

  9 .V 01249eb9 0118be2c 0028f9a4 0028f954     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 10 .V 0118be2c 0115396f 0028fb54 0028f9ac     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 11 .V 0115396f 0148e5a1 0028fb5c 0028fb5c     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 12 .V 0148e5a1 011705af 0028fb8c 0028fb64     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 13 .V 011705af 0116bbf6 0028fbb0 0028fb94     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 14 .V 0116bbf6 76e262fa 0028fbfc 0028fbb8     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 15 .V 76e262fa 76e26d3a 0028fc28 0028fc04 gapfnScSendMessage +818 bytes
    Decl: gapfnScSendMessage
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 16 .V 76e26d3a 76e30d3f 0028fca0 0028fc30 GetThreadDesktop +215 bytes
    Decl: GetThreadDesktop
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 17 .V 76e30d3f 76e30d65 0028fcd8 0028fca8 GetClientRect +197 bytes
    Decl: GetClientRect
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 18 .V 76e30d65 0116a23d 0028fcf8 0028fce0 CallWindowProcW +27 bytes
    Decl: CallWindowProcW
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 19 .V 0116a23d 0116a307 0028fd14 0028fd00     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 20 .V 0116a307 76e262fa 0028fd58 0028fd1c     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 21 .V 76e262fa 76e26d3a 0028fd84 0028fd60 gapfnScSendMessage +818 bytes
    Decl: gapfnScSendMessage
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 22 .V 76e26d3a 76e277c4 0028fdfc 0028fd8c GetThreadDesktop +215 bytes
    Decl: GetThreadDesktop
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 23 .V 76e277c4 76e2788a 0028fe5c 0028fe04 CharPrevW +312 bytes
    Decl: CharPrevW
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 24 .V 76e2788a 011593cb 0028fe6c 0028fe64 DispatchMessageW +15 bytes
    Decl: DispatchMessageW
    Mod:  USER32[C:\Windows\syswow64\USER32.dll], base: 76e10000h

 25 .V 011593cb 0115ac5e 0028fea0 0028fe74     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 26 .V 0115ac5e 01169edd 0028fed8 0028fea8     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 27 .V 01169edd 0151c39c 0028fef0 0028fee0     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 28 .V 0151c39c 75cc336a 0028ff88 0028fef8     Mod:  Ax32[C:\DynamicsAX\Client\Bin\Ax32.exe], base: 01000000h

 29 .V 75cc336a 774498f2 0028ff94 0028ff90 BaseThreadInitThunk +18 bytes
    Decl: BaseThreadInitThunk
    Mod:  KERNEL32[C:\Windows\syswow64\KERNEL32.dll], base: 75cb0000h

 30 .V 774498f2 774498c5 0028ffd4 0028ff9c RtlInitializeExceptionChain +99 bytes
    Decl: RtlInitializeExceptionChain
    Mod:  ntdll[C:\Windows\SysWOW64\ntdll.dll], base: 77410000h

 31 .V 774498c5 00000000 0028ffec 0028ffdc RtlInitializeExceptionChain +54 bytes
    Decl: RtlInitializeExceptionChain
    Mod:  ntdll[C:\Windows\SysWOW64\ntdll.dll], base: 77410000h

Stackdump exit code 0 (The operation completed successfully)

If someone could please get back to me i would be very grateful.

Thanks

Darren

RE: How to call button to disable when form was open

$
0
0

Did you changed autoDeclaration property = Yes  of button you are trying to make enable disabled ?

How to call button to disable when form was open

$
0
0

I want to disable button when form open. the button checked condition when value = 0 (2), the button was disable (1)

My friend told me to make the condition code in override selection changed (3)

But, when I called the button, ax show the error

can anyone tell me the solution?

RE: Displays Voucher transactions from Invoice Journal to a generated SSRS Report?

$
0
0

Thank you for the response @Tatiana, I am almost there.. One more thing. Did I do the right Voucher table for relation? I go on /Forms/LedgerTransVoucher/DataSources

and I append all sources table.

Displays Voucher transactions from Invoice Journal to a generated SSRS Report?

$
0
0

Hello AX Expert. I really need help guys. 

Is this possible that the Voucher Transactions APV data displayed also to Invoice Journal report? I have no idea what I am doing. Your help is deeply appreciated. 

When I print Invoice Journal, I want Voucher Transactions included/stated on the report output. 

Let's go AX.

RE: I add MessagingToolkit.QRCode.dll on AX 2009 . It is error Invalid object name.

$
0
0

Sorry i don't understand add .dll in the GAC . I add MessagingToolkit.QRCode.dll and added this dll file in the system references


I add MessagingToolkit.QRCode.dll on AX 2009 . It is error Invalid object name.

RE: How to allow a user enter new workers under Warehouse management\Setup\Work users\Worker

$
0
0

looks like only System Administrator and Warehouse Manager Role can do this. Appreciate if anyone can suggest.

How to allow a user enter new workers under Warehouse management\Setup\Work users\Worker

$
0
0

Hi

We are using customly created roles. I need to allow entering new workers under Warehouse management\Setup\Work users\Worker, but the system does not allow to enter the password for the newly created workers and gives a message :

"The user does not have permission to reset passwords. Contact the administrator or warehouse manager to reset passwords."

As I can understand it is standard in AX that only System administrator, Warehouse manager role and warehouse user itself can reset the password.

Does anybody know how to add a new role to that list of roles allowing resetting password?

Thank you

RE: How to call button to disable when form was open

$
0
0

Thanks for your response. I Forget about that one. Thanks....

RE: How to call button to disable when form was open

$
0
0

Please mark answer as verified and close the thread

RE: Item Numbers

Item Numbers

$
0
0

Hi

i have 3 legal entity, how can i add 1 item number that will be visible to the 3 entity ?

TIA


RE: AX2012 Setting Up Cluster Name in AX Configuration Utility

$
0
0

Hi Boris,

Actually, I am just comparing the configuration from previous AX3.

I am just confused about the Cluster settings in AX2012. Once I created a cluster (AX > System Administration > Setup > System > Cluster configuration), is this cluster name needs to be configured on the Client? As what we did currently on AX2012, we just added the same AOS server to the "Available Application Object Server instances" from MS Dynamics AX Configuration Utility, but never use the cluster name that was created from System Administration module as mentioned above. Not sure what is the use of creating this cluster if it will not be used on Client config.

RE: How to call button to disable when form was open

$
0
0

Just to add you may want to ovewrite VendPurchOrderJour.active() rather than .selectionChanged().

RE: System error in AX client

$
0
0

Few things of standard procedure 

1. Locate the issue is related to user or PC.

User related problem is due to usage data, access right etc.
PC related issue includes: ax client not matching the version kernel (have different service pack etc) or external issue like .net, windows etc.

a. Ask user to login in different computer and if it works issue is on PC.

b. ask other user to login in same computer if it works then issue is related to user.

2. Solving PC related issue.

a. Remove AX client cache files (.kti, .auc, .dat) C:\Users\user_name\AppData\Local\

  - stop AX client

  - delete the files

   - start ax client.

b. make sure the kernel version same between apps and client. (go to help>about).

c. If nothing work uninstall and install AX client.

3. Solving User related issue.

a. Reset usage data. YOu 

YOu can try first delete related function/form causing the crash or you can reset the entire data. refer to this blog

http://daxdude.blogspot.sg/2013/11/dynamics-ax-2012-resetclear-your-users.html

b. Sometime access right could be the issue but unlikely for your case

These are correct workflow to troubleshoot issue in one user.

RE: AX2012 Setting Up Cluster Name in AX Configuration Utility

$
0
0

Hello M P,

The cluster name does not need to be configured on the client. Its just a name for your cluster. The use of clustering AOS's is for Load balancing. Once they are in a cluster, that means you want to load balance the AOS's.

AX2012 Setting Up Cluster Name in AX Configuration Utility

$
0
0

I have read articles regarding setting up Cluster Config from AX > System Administration > Setup > System > Cluster configuration. I create new Cluster name ("My_Cluster") and Map AOS instance to cluster. In AX3, we setup in AXC Client Configuration utility > Advanced form field to add "-Cluster=My_Cluster" but for AX2012, not sure how can I call this "My_Cluster" which I have setup.

Viewing all 175888 articles
Browse latest View live


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