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

COC in D365FO

$
0
0

Dear all,

I read some documents and I trying to understand the basic use of COC ( Chain of command  )

Suppose I wants to add  my own customized code in STANDARD METHOD on standard Table OR Class OR Form in MIDDLE, then it's possible only through COC.

We can use Pre and Post Event handler before OR after base code executing. I can't cal these event handler  in middle  of BASE code. So, we need to use  COC to add my custom code in middle of BASE code.

So, first we need to create a EXTENSION Of that Class OR Table OR Form whatever...

We can call like Tablestr() OR formstr() OR classstr()

Extension of(Tablestr(PriceDiscAdmTrans))

Public final class myPriceDiscAdmTrans_extension

Public Boolean validateWrite()

Boolean ret;

ret = next validate write();

If(!this.fromdate)

ret = checkfailed("Frontage must be filled in...");

So, here it execute first the Standard method and then it execute my validation ( customized code).

Kindly verify. Ist correct?

Please give me more she'd on this.

Thanks!


RE: Make relation between Mainaccount ID and BankAccountNumber (AX2012 R2)

$
0
0

It is a 2 step relation.

BankAccountTable.LedgerDimension = DimensionAttributeValueCombination.RecId

DimensionAttributeValueCombination.MainAccount = MainAccount.RecId

Now you have MainAccount.MainAccountId

RE: Synchronization errors

$
0
0

Yes Palle Agermark. There are chances, But how to check? Any suggestions?? . The new field no more exist in the table but still issue is same.  

Will AOS restart will solve the issue??

CTP calculations

$
0
0

Hi All,

I am now trying to extend AX 2012 R3 CU11 date calculations of sales orders. My goals is to extend the CTP calculation with extra properties. It seems that i can't find the place to extend CTP.

Anyone has any tips for me? It seems i'm getting stuck.

RE: Synchronization errors

$
0
0

Check SQLDictionary table and compare to the properties of the table/fields that you see in the MorphX IDE.

Did you by any change import a database into this environment from another environment? If yes, that explains why the ids would be out of sync. In that case you need to copy both databases (business and model). You can copy business database only between environments where object ids are the same.

RE: COC in D365FO

RE: COC in D365FO

$
0
0

Thanks Rustem,

Sorry, not understand.

When the call to next validateWrite()  occurs the system will randomly pick another method in the CoC or call the original implementation if none exist.

Kindly elaborate on this.

Thanks!

RE: ER Error: Shared string already exists

$
0
0

Hi,Marco.

Could you resolve this problem?

I faced the same problem.Do you find any solution?

Lisa


RE: ER Error: Shared string already exists

$
0
0

The reason is the excel problem, you can change the excel, and redraw the excel template, then try again.

ER Error: Shared string already exists

$
0
0

Hi everybody,

I have met a strange problem when i configuration a ER.

1. I added two datasource to model, and add a format,

2. Bind the string field from model datasource to cell in the excel template.

3. Run the format, it throw error "Shared string already exists.

But if i unbind the all string field, everything is correct. 

And i have tried to create a simple ER only have one datasource, everything is ok, it is very strange, anybody know this? Please help me.

 

Thanks,

Marco

RE: COC in D365FO

$
0
0

1) The system will check for any CoC logic that is written around validateWrite, and is placed before the "next" call in the CoC method. It will call all such logic in random order

2) The system executes the standard validateWrite

3) The system will check for any CoC logic that is written around validateWrite, and is placed after the "next" call in the CoC method. It will call all such logic in random order

About your original question: yes, it will first execute the standard logic, then your logic in the CoC method. But with CoC you can't add any logic in the middle of standard methods. It will always run before or after the standard method (which is called with the "next" keyword).

With extensions you can never add anything in the middle of standard code. You can only run your code before or after the standard methods. No matter if you use event handlers or CoC. The benefits of CoC compared to event handlers are:

- easier to write/read than event handlers

- access to protected class members (with event handlers you can only access public class members)

- you can add a transaction scope which will include your code AND the standard code ("next" call) - by the way I don't know how the transactions and random execution order will play together..

- compile time check for parameter names

RE: COC in D365FO

$
0
0

I'm agree that it's sounds complicated enough and because of this i've shared link in previous post. There are a good examples with code samples.

RE: LCS - Unable to change methodology

$
0
0

Hi KPradeep22,

have you made any experience regarding this Topic?

Have the same issue. MS is adding his methodology to an LCS Project from a Customer.

ATM I can only add new Tasks to the Phases, but it is not possible changing the whole methodology.

KR Georg

LCS - Unable to change methodology

$
0
0

Customer has purchased new Azure subscription. Logged in to D365, created a new project in LCS. New sandbox instance setup was initiated and queued up. 

However, the methodology by default shows as Analysis > Design and develop > Test > Deploy > Operate. As we are following a different methodology for the project, I want to change this default methodology. However, when I click on the '...> Edit methodology', I am unable to delete or edit the default methods. I tried using the '... > Append methodology > New D365 implementation methodology', it just added another set of Analysis > Design > Test > Deploy> to the above methodology. Again I am unable to edit any of these. Overall I see 10 phases now that are not relevant to my project. 

Can someone tell me how to edit / delete the phases that got added by default? 

RE: New security role issue : Access denied: SalesFormLetter_Confirm , when confirm sales order

$
0
0

Hi Ismail,

I do assume you created new privileges for these menu items? In that case, you also have to add permissions to run a class method. You can or use the standard privilege or look what exact method permissions are set on the standard privilege.


New security role issue : Access denied: SalesFormLetter_Confirm , when confirm sales order

$
0
0

when create new security to create a sales order everything is OK except confirm the SO

i add the menu item 

 SalesFormLetter_Confirm and SalesFormLetter_Confirmation_Action

with delete access level .

but when i try to open the confirmation i get : Access denied: SalesFormLetter_Confirm

thank you

RE: Synchronization errors

$
0
0

Nikolaos has good point about how this issue could have come around.

It sounds like you have an entry in SQLDictionary where your new field has the ID of what should have been the JournalNum field.

What kind of box is this on; dev, test, prod?

RE: Add field to dataset SSRS report data is not show

$
0
0

You're copying a field which name's begins with DEL_, have you checked the configuration key?, may be is a SysDeleteObject. Each time I have had those kind of problems, in addition what the other colaborators says,  I also delete the auc files from my user folder

RE: ER Error: Shared string already exists

$
0
0

Thank you for the reply!

After I changed Excel format,I can export ER.

Thanks a lot!

RE: CIL Generation Error: An item with the same key has already been added

$
0
0

Hi!

We have tried putting code in the class, but we don't get any information… it seeems like the syncronize proccess doesn't saw the changes. The breakpoint added was ignored, and the added code was ignored too.

The syncronization says that the error is on:

at Dynamics.Ax.Application.NumberSeqApplicationModule.loadAll() in NumberSeqApplicationModule.loadAll.xpp:line 60

We are adding new lines in the code before that line (breakpoint sentence in code, some info sentences to get more information about the error...) but the syncronization still says that the error is in line 60, that's why I think that the added code is being ignored.

Anyone has any new idea to atack this problema, please? :-)

Viewing all 175888 articles
Browse latest View live


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