How can I get the "used by" form in Dynamics AX 2009 to work? - dynamics-ax-2009

I am trying to do a look up of where labels are used in application objects.
In the label editor there is a button Used By which is supposed to perform this function. However, it only ever opens an empty dialog.
Is there some kind of indexing that I need to setup first before this will work?

Yes, you need to do the update of reference from here:
Tools > Development tools > Cross-reference > Periodic > Update.
You can read more about this on this page:
http://msdn.microsoft.com/en-us/library/aa877386.aspx

Related

Unbind/unsynchronized scrolling in source control compare function

In compare option inside the source control, the scrolling is bind together for both files.
I want to scroll just one of the sides while the other stay pinned also I want to avoid comparing outside on the VS.
I can't find any solution online and there is no obvious option in the VS.
I'm Using VS2015 with TFS.
Thank you.
EDIT
New feature request for microsoft was opened
Feature request
EDIT
In VS1029 Version 16.11.3 feature exist, by pressing it you can unbind the windows
In compare option inside the source control, the scrolling is bind
together for both files.
For this , I am afraid this is by designed. The same is true for my test in visual studio2019.
You could add your request for this feature on our UserVoice site , which is our main forum for product suggestions. After suggest raised, you can vote and add your comments for this feedback. The product team would provide the updates if they view it.

Menu-commands extension for Visual Studio without command-table

I am building a Visual Studio extension (VSIX) with menu commands depending on the options for the extension. Its dynamic, what commands (how many) depends on the options.
I have a solution for it that uses the command-table, like: Dynamically add menu items
I would like to skip the command-table and build the menus totally programmatically, like: HOWTO: Package with commands created by code
The reason is to make it more dynamic. So if the user adds/changes/deletes in the options of the extension it would be handled dynamically (programmatically). On saving options the menu-command tree would be rebuildt. If I use a command-table I will have to add/delete nodes there to be able to solve it.
The thing I can not figure out is howto add the objects for "groups" and "menus" programmatically.
So I am out for the class/interface that has "AddGroup" or "AddMenu" as methods.
Is this at all possible or do I have to use the command-table? If it is possible I would appreciate links to code-examples for it.
Regards Hans
MVP Carlos Quintero has published sample code using IVsProfferCommmands3.AddNamedCommand that illustrates how to programmatically add menu items via the automation services (formerly utilized by the now discontinued add-in extensibility model).
https://github.com/visualstudioextensibility/VSX-Samples/tree/master/PackageCommandsCreatedByCode
While add-ins are no longer supported, the automation interfaces are still present. So you can use these, bearing in mind these menu items (aka commands) are temporary.
Also, the sample code here is a little outdated, using Package instead of AsyncPackage, and ProvideAutoLoad attributes. So you'll also want to read up on the following:
https://github.com/microsoft/VSSDK-Extensibility-Samples/tree/master/AsyncPackageMigration
https://devblogs.microsoft.com/visualstudio/updates-to-synchronous-autoload-of-extensions-in-visual-studio-2019/
Sincerely,

NSIS Uninstall Feedback Dialog with Radio Buttons

I am trying to show a simple dialog before uninstall in NSIS. It consists of several predefined radio buttons (reasons for uninstalling), none of them checked initially. Uninstallation cannot continue until a user selects one of the radio buttons.
As a bonus, ideally I would like to have a custom reason text field too (toggle-able via last radio button). As well as 2 more text fields for custom text and email.
Then I need to take selected value(s) (checked radio button) as well as text fields data and either append it to my predefined URL to which I make a GET request using InetC or similar plugin before uninstaller exits; or laternatively construct a POST request to a predefined URL using InetC or similar plugin. I cannot figure out how to create such a dialog page. Any help would be appreciated.
What I am looking for:
First, you should get familiar with nsDialogs to create the interface according to your needs. Since nsDialogs is a function, you would then can call it as a custom page.
You can use my tool Visual & Installer (www.visual-installer.com) for Visual Studio 2005 - 2015 to fast write the NSIS code.
(If you are "writing" the installer - I assume you have some experiences with nsDialogs).
Also there are some other tools like NSIS Dialog Designer (http://forums.winamp.com/showthread.php?t=329801) which can help you and generate lot of code for you.
This tool is GUI based - designer similar to Visual Studio designer - but remember: the result is still the scripts!

Dynamics CRM option set

I am new to Dynamics CRM so please excuse me for the newbie question xD
I managed to create an option set field with 2 possibilities:
Scheme 1
Scheme 2
Does anyone have an idea how when a particular possibility is picked, a list of custom based fields will appear in the form? Thanks in advance
If i understand your problem correctly you want certain fields to appear/disappear according to the choice selected in the option set.
The way I see this working is by implementing a Javascript on the onChange event of the option set. you can do this from the 'Form Properties' when changing the layout of the form.
Below is a link showing some examples of possible useful commands that might help you:
http://www.powerobjects.com/blog/2011/01/14/crm-2011-useful-javascript-tidbits/
You can put your custom fields in a custom tab and then hide/disable it according to the value in the option set.
If you have any further problems feel free to ask :)
I hope this helps :)
Gdluck
If you are comfortable working in Visual Studio, I highly recommend installing the Developer Toolkit (You can find the .msi \tools\developertoolkit - download it from here). It will allow you to develop JScript with some syntax highlighting and intellisense and makes source control and deployment a snap.

class name and method name dropdown list is missing (visual studio setting)

Does anyone know how to get my class name and method name dropdown lists again? It's the dropdown lists that are usually above the code. It's just a setting but i can't seem to find it. I don't want to reset my setting btw. I shouldn't have to.
Tools-->Options...
Text Editor-->All Languages
Check "Navigation Bar."
(Picture is from VS2013)
Tools - Options - Text Editor - (choose the type of file - C#, html, etc) - General
In the bottom section of the form (The "Display" area) make sure that "Navigation Bar" is checked.
Actually there is a bug in VS2013, where if you place VS on the monitor on the left side, and this is not your primary monitor, then the dropdowns will not work.
I came here searching for a solution for javascript/node.js specifically (in VS 2013). Only by doing further search I found out that this feature has been removed (from RC) due to stability/performance reasoning and is not available anymore.
https://connect.microsoft.com/VisualStudio/feedback/details/806325/javascript-navigation-bars-are-missing-after-upgrading-from-vs2013-pro-rc-to-rtm
Also, I did not see this added again through either node tools or web essentials.
In VS2015 I just had to toggle this setting off then back on again to get the navigation bar back.
If you want a list of javascript functions that works similar to the navigation bar in the VB or C# pages then search for the extension inside Tools > Extensions and Updates...
Javascript Map Parser
You have to add in aspx into the pages is parses but it's exactly what I needed to quickly find functions in a big section of Javascript I had.
Make sure you in code behind file.
In my case I was looking at code (VB) server side code inside .aspx page, and the dropdown only for code behind files (.aspx.vb or aspx.cs)

Resources