Hello,
I agree that this is a nice tool, but it's not downwards compatible with previous versions. We have a customer who uses version 2 and another who uses version 3. So if I develop for the other client, I have to uninstall the other version. Also I cannot copy the code.
Another thing with version 3 is that you need .NET version 2. Most of our clients haven't installed this on there computer.
But again, it's a nice tool.
:-k
I noticed this myself, and can't find what causes this ... . Some way, the references to the functions and properties are re-ordered and have to be readdressed... . Wouldn't know what causes this. I used the same GUIDs, and added functions and properties at the back... .
May be a (small) solution is to create 2 VPC's, both with one version of the navpad?
.NET version 2 has to be installed, indeed. Not much I can do about that ... it's because it's developed in the latest version of Visual Studio .NET.
I even put some code in so that if it isn't intsalled on the client, it automatically dumps the intsall files out and runs them (code below.)
We are having an issue, I'm hoping v3 fixes - we have a consultnat running Vista, and it won't intsall Waldo 'cause it doesn't think she has .NET installed - but it's part of the OS in Vista...so she can't enter notes into our CRM system!!!
Help!
Thx,
Mike
recCoInfo.CALCFIELDS("Waldo Install 1", "Waldo Install 2", "Waldo Install 3");
txtFile := recCoInfo."Waldo Install 1".EXPORT('Setup.exe',FALSE);
IF txtFile = '' THEN
ERROR('There was a problem. You must install manually.');
recCoInfo."Waldo Install 2".EXPORT('Setup.ini',FALSE);
recCoInfo."Waldo Install 3".EXPORT('WaldoNavPad Setup.msi',FALSE);
SHELL(txtFile);
Thanks for the interest 8) ... and also thanks for sharing the code!
I run Vista myself and didn't have this issue, probably because I compiled my version in Vista ... . I will have a look at it (doesn't registering the dll manually help?).
by the way, I see you're from San Diego ... may be we'll meet at convergence .
I received some problems of installing the navpad on a Vista box. Is anyone experiening these problems as well? I'm having problems in reproducing it .
Here is some more feedback that I forgot to post until now:
When you want to upgrade from v2 to v3, you should consider (at least) these steps:
Go into the codeunit where you implemented the WaldoNavPad, and replace following statements:
.FontSize --> .GetNextTextField
.TextChanged --> .ShowDialog
.ChangedWarningText --> .AppendText
Sorry for the trouble, but for some reason, when creating new functions, it messes up the order of properties/functions.
Your solution is really very good and trust me its better then the previous pad based solutions.
Anyways i have few questions and its kinda urgent; i would really appreciate if you could help me out.
1) I have used the dll and have tested it with our comments table and so far its working good; the only concern i have is the fact that i have to ship the .dll to client; which is one of the steps that i dont want to do. I dont want our client to install.
So whats the work around. We could do it in this way that we could put the .dll in any blob field of the any table right; then in the App Management codeunit we could put in some code that will check if the dll is installed or not; if not then get one from that blob field and register it.
Above solution would work? i dont know... but could u provide me any reference or any other trick to avoid installing that .dll.
2) Since it is public, can i use your code (VB.NET), i have to do some modifications. Would that be fine if i use your dll then?
My colleague salespeople or very angry for this but ... you're free to use the code in the way you want. I'm a community-man in "heart and kidneys" (like they say in Belgium), so I don't mind.
For your DLL-registering question, I'm afraid that it will not work. I'm afraid registering only one DLL is not enough. You should test this (I never did). If it does, this link is probably very useful: http://www.mibuso.com/howtoinfo.asp?FileID=5.
I did something else. I created a table with Code/Description/BLOB. I put all my install programs in this table (exe in blob). I created a form to export the blob to a temp folder, and execute the install... . Very simple, but still an installprocess to go through.
Please let me know if you succeed in automatically installing the DLL.
So i have managed to register waldonavpad.dll successfully. I want to share the code, though there are many things that i have to recorrect in the code but still it work.
I am done with .dll Registration at runtime (see previous posting)
I have imported the .fob file that has all the demo objects.
Compiled them all, they all compiled, that means my .dll is registered.. right..
but somehow when i run the TestNavPad codunit its pops up with this error
Microsoft Dynamics NAV
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={334309EB-4AA6-497C-BABF-2AFDA61317EC} 1.0:{1B883E97-B2CB-48CF-8B47-87AAA589C289}:'WaldoNavPad'.WaldoNavPad.
Check that the OLE control or Automation server is correctly installed and registered.
OK
The .dll registration n code was not correct; although i was registering the dll but i missed one thing in the code that is to include /codebase in the regasm.
Thanks garak its from ur code that i got idea of including codebase and it worked.
The pieces of text will be cut of at a "Space" or "Carriage Return".
This is not working over here.
I have a field of type "Text" with the length of 80.
I set "WaldoNavPad.TextFieldLength := 80;"
When I import a Text, the text is cut exactly after 80 character, even if there is a Space on position 75.
If you give me the objects and text (via pm), I'll have a look at it when I get the chance.
Now, I have to say, in the first version of the navpad I noticed a bug when cutting off the text. This only happened occasionally. I added some kind of procedure to the dll, but since then, I also have the habbit to set the TextFieldLength about 5 or 10 characters less then the actual fieldlength. May be you can try this as well?
I know this workaround shouldn' t be definite, so I would really like to receive the code and text you're testing with.
I think I can not send you my objects via PM. I don't seen an option to make an attachment.
I can reproduce the problem with your Demo-Objekts when using the following string:
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 8901234567890
There is a Space on Position 238 but the text is cut on Position 240.
I did another test. When using a string like that it works correctly:
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
Maybe the NavPad has a Problem, when the first part of the string is extremly long.
By the way:
Is there a possibility to save the size and position of the NavPad Window?
I did another test. When using a string like that it works correctly:
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
Maybe the NavPad has a Problem, when the first part of the string is extremly long.
By the way:
Is there a possibility to save the size and position of the NavPad Window?
Regards,
Rolf
That is a good suggestion. Never thought of this.
It is not possible in the current release, but I will try to build it in the next one.
I have re-installed XP but now my WaldoNavPad v3 doesn't work anymore. It's long time since I installed it and forgot how to do it. Hope someone will post a easy step-list so I will get access to my long-text again.
Comments
Something for the next release
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I agree that this is a nice tool, but it's not downwards compatible with previous versions. We have a customer who uses version 2 and another who uses version 3. So if I develop for the other client, I have to uninstall the other version. Also I cannot copy the code.
Another thing with version 3 is that you need .NET version 2. Most of our clients haven't installed this on there computer.
But again, it's a nice tool.
I noticed this myself, and can't find what causes this ... . Some way, the references to the functions and properties are re-ordered and have to be readdressed... . Wouldn't know what causes this. I used the same GUIDs, and added functions and properties at the back... .
May be a (small) solution is to create 2 VPC's, both with one version of the navpad?
.NET version 2 has to be installed, indeed. Not much I can do about that ... it's because it's developed in the latest version of Visual Studio .NET.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I even put some code in so that if it isn't intsalled on the client, it automatically dumps the intsall files out and runs them (code below.)
We are having an issue, I'm hoping v3 fixes - we have a consultnat running Vista, and it won't intsall Waldo 'cause it doesn't think she has .NET installed - but it's part of the OS in Vista...so she can't enter notes into our CRM system!!!
Help!
Thx,
Mike
recCoInfo.CALCFIELDS("Waldo Install 1", "Waldo Install 2", "Waldo Install 3");
txtFile := recCoInfo."Waldo Install 1".EXPORT('Setup.exe',FALSE);
IF txtFile = '' THEN
ERROR('There was a problem. You must install manually.');
recCoInfo."Waldo Install 2".EXPORT('Setup.ini',FALSE);
recCoInfo."Waldo Install 3".EXPORT('WaldoNavPad Setup.msi',FALSE);
SHELL(txtFile);
I run Vista myself and didn't have this issue, probably because I compiled my version in Vista ... . I will have a look at it (doesn't registering the dll manually help?).
by the way, I see you're from San Diego ... may be we'll meet at convergence .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I received some problems of installing the navpad on a Vista box. Is anyone experiening these problems as well? I'm having problems in reproducing it .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Here is some more feedback that I forgot to post until now:
When you want to upgrade from v2 to v3, you should consider (at least) these steps:
Go into the codeunit where you implemented the WaldoNavPad, and replace following statements:
.FontSize --> .GetNextTextField
.TextChanged --> .ShowDialog
.ChangedWarningText --> .AppendText
Sorry for the trouble, but for some reason, when creating new functions, it messes up the order of properties/functions.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Your solution is really very good and trust me its better then the previous pad based solutions.
Anyways i have few questions and its kinda urgent; i would really appreciate if you could help me out.
1) I have used the dll and have tested it with our comments table and so far its working good; the only concern i have is the fact that i have to ship the .dll to client; which is one of the steps that i dont want to do. I dont want our client to install.
So whats the work around. We could do it in this way that we could put the .dll in any blob field of the any table right; then in the App Management codeunit we could put in some code that will check if the dll is installed or not; if not then get one from that blob field and register it.
Above solution would work? i dont know... but could u provide me any reference or any other trick to avoid installing that .dll.
2) Since it is public, can i use your code (VB.NET), i have to do some modifications. Would that be fine if i use your dll then?
Thanks in Advance
Regards,
For your DLL-registering question, I'm afraid that it will not work. I'm afraid registering only one DLL is not enough. You should test this (I never did). If it does, this link is probably very useful: http://www.mibuso.com/howtoinfo.asp?FileID=5.
I did something else. I created a table with Code/Description/BLOB. I put all my install programs in this table (exe in blob). I created a form to export the blob to a temp folder, and execute the install... . Very simple, but still an installprocess to go through.
Please let me know if you succeed in automatically installing the DLL.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
http://www.mibuso.com/forum/viewtopic.php?t=20257
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Please check my second solution (see my post above) again to see if it's fits.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
or if you have an tlb File you can use regasm.exe
Command := 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\regasm.exe ' +
'"' + DIRECTORY + DLLNAME + '" ' +
'/tlb ' + TLBDATEI + ' ' +
NAVISIONCLIENTDIRECTORY +
TBLDATEI + '" /codebase';
@Garak, could you please illustrate a bit more as what you are saying.
Do you mean to say that we could use Type Library File instead of dll.
Any code snippet that could help?
I am done with .dll Registration at runtime (see previous posting)
I have imported the .fob file that has all the demo objects.
Compiled them all, they all compiled, that means my .dll is registered.. right..
but somehow when i run the TestNavPad codunit its pops up with this error
Microsoft Dynamics NAV
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={334309EB-4AA6-497C-BABF-2AFDA61317EC} 1.0:{1B883E97-B2CB-48CF-8B47-87AAA589C289}:'WaldoNavPad'.WaldoNavPad.
Check that the OLE control or Automation server is correctly installed and registered.
OK
Am i missing anything?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
The .dll registration n code was not correct; although i was registering the dll but i missed one thing in the code that is to include /codebase in the regasm.
Thanks garak its from ur code that i got idea of including codebase and it worked.
I will post updated code shortly.
i will give an statemant tomarrow
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
The pieces of text will be cut of at a "Space" or "Carriage Return".
This is not working over here.
I have a field of type "Text" with the length of 80.
I set "WaldoNavPad.TextFieldLength := 80;"
When I import a Text, the text is cut exactly after 80 character, even if there is a Space on position 75.
Can you please give me a hint on that?
Thanks,
Rolf
If you give me the objects and text (via pm), I'll have a look at it when I get the chance.
Now, I have to say, in the first version of the navpad I noticed a bug when cutting off the text. This only happened occasionally. I added some kind of procedure to the dll, but since then, I also have the habbit to set the TextFieldLength about 5 or 10 characters less then the actual fieldlength. May be you can try this as well?
I know this workaround shouldn' t be definite, so I would really like to receive the code and text you're testing with.
At least, thanks for your interest
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I think I can not send you my objects via PM. I don't seen an option to make an attachment.
I can reproduce the problem with your Demo-Objekts when using the following string:
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 8901234567890
There is a Space on Position 238 but the text is cut on Position 240.
Im running on Navision 4 SP2 on Windows XP SP2.
me again
I did another test. When using a string like that it works correctly:
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
Maybe the NavPad has a Problem, when the first part of the string is extremly long.
By the way:
Is there a possibility to save the size and position of the NavPad Window?
Regards,
Rolf
That is a good suggestion. Never thought of this.
It is not possible in the current release, but I will try to build it in the next one.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Please help
You'll have to re-evaluate your code, I'm afraid...
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"