Customize JetBrains Rider to open a link when you click on class/function name in a file - resharper

I am not sure if this can be done but what I am trying to achieve here is that when I click on a method name in JetBrains Rider, I want it to open a browser, append the namespace, class name and method name to a URL like www.myrepo.com for me. So if I click on method z(on line #n) in class y on namepsace abc.lmn.x, then I want it to open www.myrepo.com/abc.lmn.x/y#n.html
Why? When I want to point another developer to a piece of code, the way I do it right now is to open the internal tool we developed on a browser, lookup for the classname on it and share.

I use action "Open on github" a lot, when project is on github (either github.com or private github server).

Related

acumatica project customizations project ID missing on localhost instance

I have a local instance of Acumatica 2018 R2 that I am using for development and when I try to edit a Customization Project it is not pulling in the specific project and ID.
Local instance of the Custom Project editor
Where it says "Project" in the top left, it should say "Test5".
Here is how the editor should look:
Production Instance Custom Project Editor
I believe that I've configured my IIS setting correctly but I can't get it to perform correctly.
I've seen that happen before. It appears to be an Ajax glitch. When the customization project editor opens it displays Project as a placeholder first. Then an Ajax call fetch the proper project name to replace the template placeholder text.
There isn't much to do to resolve this issue. I suggest using a different web browser (Chrome seems to handle Ajax more reliably) and possibly issuing an IISReset command on the web server or if you don't have access to server a restart application from the apply updates page.

Impossible to import Acumatica Customization package undefined: Cannot read property 'nodeValue' of undefined

I want to import some customization packages I have created for Acumatica, but, when I try to import (click on import button on SM204505 screen) I receive a message "undefined: Cannot read property 'nodeValue' of undefined"
Have you ever seen this message? does somebody know how to solve it?
Yes, I encountered this last night and have been troubleshooting ever since. I have not found a solution, but might have a possible workaround (I am not an experienced coder - please excuse any faux pas...)
1 - Under System Management > Companies, make sure your company has a company name (in addition to a company login name). Training materials say that this serves as the top-level node in the company tree and is needed to import customization projects. However, "Company," was already in my Company Name field and I still got the error.
2 - I was logged in as administrator and found under User Security > Access Rights by Role, that access for Administrator was set as 'Revoked' under System > Customization > Work Area > Manage. I changed that to 'Delete.' Also, under source code, I set my access rights to 'Insert.'
I still got the error, but chose to include the above in case they affect the following workaround:
3 - The customization project .zip file I was trying to import contained XML code. On the Customization Projects screen (SM204505), I added a row and a project name, then saved it. After clicking on the project name link, the Customized Screens screen opened (AU201000). Under the File menu, I selected Edit Project XML, copy/pasted it onto the screen, then clicked Upload Package. (It seems that using Choose File then Upload Package also works for me). Then I Saved to Database. I published from that screen - I did not try it back on the Customization Projects screen.
Even if your case is not as simple, maybe there is a similar workaround along those lines.

Open custom user control in tool window using VS Package

I'm trying to create simple custom command (added in TOOLS menu option) to open the tool bar with custom control in VS 2013 using VS Package project.
I'm following https://msdn.microsoft.com/en-us/library/bb165987.aspx this guide but not sure why it's not working.
When I click on it, it opens tool window but without content under it. I want to show the MyControl.cs or custom control content under it.
I've tried a lot to find it out on Google but no relevent article found for same.
I've notice when I created new VS Package, it created "MyControl.xaml" file which loading it's data properly. I deleted that file and created new user control "MyControl.cs" which is not loading data.
Not sure if it requires VSIX project or VS Package. Is there any other way to do this?
Nothing in vsix development is simple at first. Try using this tutorial. It's from a series you can find here.
For you to show custom tool window content you have to extend the ToolWindowPane class and override the Window property returning your content as a IWin32Window. The tutorial fully explains it, and very well I might add, and the series is excellent even though it targets vs2010.

Launch Lotus notes and show mail with Domino API

I would like to know if through Domino API it is possible to launch (start) Lotus or open a lotus notes email knowing the noteURL.Something like this
notes:///__C12579A3004143A1.nsf/0/07A2154411B264E5C12579A4004AD43E?OpenDocument
without specifying the path of the executable that is the notes.exe file.
For the moment, I using this java command
Runtime.getRuntime().exec( "C:\Program Files\IBM\Lotus\Notes\notes.exe " + document.getURL() );
but I don't want to specify the path to the executable.
Thanks
You can on a Windows machine. When you install the Lotus Notes client on a windows PC, it registers the notes:// protocol and associates it with notes.exe. You can then use a URL formatted as notes://server/database.nsf/view/docid to launch Notes and open a particular document.
The java.awt.Desktop class has a browse(URI uri) method. The doc says that it launches the 'default browser', but it's unclear to me whether it will handle "notes://" URIs. That's what I might try, as I think it has the best chance of being a cross-platform solution.
If Windows-only meets your requirements, though, and if hard-coding the executable path is your real concern, then you can read it from the registry. The appropriate registry keys to use, and a method for reading the registry from Java are both covered in answers to other questions on stackoverflow:
Lotus Notes registry keys
Accessing Windows registry from Java
You could use a .NDL (Notes Data Link) file and "start" that. If the Notes Client is properly installed, it should open automatically.
Steps to create a .NDL file:
Open a Notes database.
Select Edit -> Copy As Link and select the type of link you want to create, for example a View link.
Open the Windows Notepad and select Edit -> Paste.
The following is an example of what the Notepad file will look like:
discuss - By Category (discuss is the Notes Database name and "By Category" is the view link)
<NDL>
<REPLICA 852565A7:005180C7>
<VIEW OFAAC7D56C:A8FD884B-ON852563BE:00610639>
<HINT>CN=Slider.lotus.com/O=WWBPSS</HINT>
<REM>discuss</REM>
</NDL>
Source: How to start a Notes client from a browser or send doclinks to non-Notes users

WebBrowser Control: Is there a good documentation on browsing local files and folders?

I am using the WebBrowser control to browse local files and folders, but the control seems to be designed primarily to browse the Web (as its name implies).
I need to be able to do common tasks, like using the "Up one level" button, or put the control in "File Search" mode, get the active item, etc.
Is there a way to do these things using this control?
Is there a comprehensive documentation somewhere to explain local browsing using the WebBrowser?
Thanks all.
Here is a good intro that should help you get started on this. Most of the work with this dialog will be done by the browser, you need only to prompt it how to open the dialog.
I think you may be confusing the WebBrowser control with Windows Explorer.
If you want to browse around your local file system, then you need to add an Open File Dialog to the form containing the Web Browser control, then have a button of some kind open that dialog to locate the file to load into the WebBrowser control.

Resources