Announcements
No record found.
Hello,
Is there a "magic" way to move elements from a specific model to another?
(As in AX2012 the option move to model)
For exemple:
All my new specific EDT/Table from MyModel to the ApplicationSuite model?
*This post is locked for comments
Cut and paste between projects should be sufficient. :D
Hi Foxsor,
The objects are stored per model as xml files in subfolders of c:\Packages. You can simply move objects from one package to another. Note that models do have referenced models. Probably you also need to update the references to some models before you are able to compile the model correctly.
If you have a model called MyModel there are subdirectories per object type in the next folder: C:\Packages\MyModel\MyModel\
If you need to move labels, you also need to move additional files from a source subdirectory.
It's a tricky question because packages can be in different models. To Andre's point, yes you can move the XML files - but Tommy's suggestion is virtually the same though a bit nicer since you don't have to go digging for the files and folders.
However, there's some gotchas. If you're over-layering something then moving the file is something you'll want to be careful about for different reasons. Additionally, if you're trying to move to a model that's in a different package, you essentially cannot move the over-layering customization. If they are all new objects, you can move them fine, although keep in mind that moving to a different package may break your compile unless you have references setup in the correct direction.
Thanks
Just move your desired artifact from back-end, cut the file from "application suite usr model" and paste it to "My Model", Here you GO !! Now when you will open Application explorer, you will see that you artifact has been moved to "My Model".
In detail:
Go to below path and cut the artifact you want to move to other model.
C:\Packages\application suite\application suite usr model\AxTables
Now go to below path and paste that artifact here.
C:\Packages\My Model\AxTables
Open Application Explorer and find the artifact you moved, you will see that it is moved to you desired model.
How does moving the xml files between directories go with source control?
@Róbert, I would think you need to move in VSTS otherwise when you get latest, it will just put the files back, which could duplicate them in both models?
Hi, Foxsor.
If your question has been answered please mark the helpful answers as verified and mark this thread resolved. Thanks.
I'll just chip in with my notes on moving label files:
Here's a Powershell snip you can modify that I used to move in VSTS to retain history.
$tf = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\tf.exe" $source = "$/MyProject/Trunk/Main/Metadata/Directory/Directory.MySolution/AxTable/*" $target = "$/MyProject/Trunk/Main/Metadata/MySolution/MySolution/AxTable/" . $tf rename $source $target
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.