AXForum  
Go Back   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Forgotten Your Password?
Register Forum Rules FAQ Members List Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 19.09.2023, 23:15   #1  
Blog bot is offline
Blog bot
Участник
 
25,646 / 848 (80) +++++++
Join Date: 28.10.2006
How to create a new custom financial dimension value with description and other parameters via X++
Источник: http://alexvoy.blogspot.com/2023/09/...financial.html
==============

User can add values manually to Custom dimension attribute type only. For all other backing entities it should go via standard table creation, say, new CustTable record, etc.







The easiest way to create a new Custom list dimension value is to use the standard service DimensionValueService as follows. Say, you need to create a new value by using _newProjCategory record fields.



DimensionValueService dimensionValueService = new DimensionValueService();DimensionValueContract dimensionValueContract = new DimensionValueContract();dimensionValueContract.parmValue(_newProjCategory.Id);dimensionValueContract.parmDimensionAttribute(mgcDimHelper::getProjCategoryAttribute);dimensionValueContract.parmDescription(_newProjCategory.Name);dimensionValueService.createDimensionValue(dimensionValueContract);



It creates the display value as its description.











Источник: http://alexvoy.blogspot.com/2023/09/...financial.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Рейтинг@Mail.ru
All times are GMT +3. The time now is 23:56.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Contacts E-mail, Advertising.