Waldo Dynamics NAV Notepad (WaldoNavPad) v3.1

245

Comments

  • WaldoWaldo Member Posts: 3,412
    No, not yet, but that's indeed a good idea.

    Something for the next release :wink:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • jan_jansenjan_jansen Member Posts: 12
    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.
  • WaldoWaldo Member Posts: 3,412
    :-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.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • TallMikeyTallMikey Member Posts: 40
    Hey Waldo rocks dude!

    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);
  • WaldoWaldo Member Posts: 3,412
    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 :wink: .

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • TallMikeyTallMikey Member Posts: 40
    absolutely! when do you arrive? We are actually having an internal 5.0 training workshop on the Thurs and Fri beforehand.
  • WaldoWaldo Member Posts: 3,412
    I arrive on Fri evening.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • WaldoWaldo Member Posts: 3,412
    Dear all,

    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
  • WaldoWaldo Member Posts: 3,412
    Guys,

    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
  • ckndr47ckndr47 Member Posts: 100
    Hi Waldo,

    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,
  • WaldoWaldo Member Posts: 3,412
    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. :wink:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • WaldoWaldo Member Posts: 3,412

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • WaldoWaldo Member Posts: 3,412
    I just checked it by trying to register WaldoNavPad ... but this doesn't work. :|. It seems that a setup is needed.

    Please check my second solution (see my post above) again to see if it's fits.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • garakgarak Member Posts: 3,263
    has your dll an entry point for registration :?:

    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';
    Do you make it right, it works too!
  • ckndr47ckndr47 Member Posts: 100
    So if i have to use waldo then i have to make sure our clients have either framework 1.1 or 2.0; is that right?

    @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?
  • ckndr47ckndr47 Member Posts: 100
    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.
    recOCXDLLSetup.GET;
    recOCXDLLSetup.CALCFIELDS("Notepad DLL");
    IF NOT(recOCXDLLSetup."Notepad DLL".HASVALUE) THEN
      ERROR('Cannot find %1 in %2',recOCXDLLSetup."Notepad DLL",recOCXDLLSetup.TABLECAPTION);
    
    ltxtFile := 'c:\windows\system32\' + recOCXDLLSetup."Notepad Name";
    recOCXDLLSetup."Notepad DLL".EXPORT(ltxtFile,FALSE);
    
    CommandProcessor := ENVIRON('ComSpec');
    BatchFileName := 'ddxmit01.bat';
    BatchFile.TEXTMODE(TRUE);
    BatchFile.QUERYREPLACE(FALSE);
    BatchFile.CREATE(BatchFileName);
    BatchFile.WRITE('@ECHO OFF');
    BatchFile.WRITE('C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe ' +'"' + ltxtFile + '"');
    BatchFile.WRITE('PAUSE');
    BatchFile.CLOSE;
    SHELL(CommandProcessor,'/c',BatchFileName);
    
  • ckndr47ckndr47 Member Posts: 100
    Hi,

    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?
  • WaldoWaldo Member Posts: 3,412
    Can you select the navpad when you browse through your automations?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • ckndr47ckndr47 Member Posts: 100
    Yeah i could select; i really dont know whts wrong...
  • ckndr47ckndr47 Member Posts: 100
    Sorry guys; i am finally done with the code.

    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.
  • garakgarak Member Posts: 3,263
    ok, ok, i`m reactivate my brainb tomarrow. its here 23 o clock, and i've drunken some german beer ;-)

    i will give an statemant tomarrow
    Do you make it right, it works too!
  • WaldoWaldo Member Posts: 3,412
    We're 3 months later and still haven't had your statement, man :mrgreen:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • rkaufmannrkaufmann Member Posts: 71
    @Waldo

    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
  • WaldoWaldo Member Posts: 3,412
    hm, strange ... never experienced it before.

    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 :wink:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • rkaufmannrkaufmann Member Posts: 71
    Hi,

    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.
  • rkaufmannrkaufmann Member Posts: 71
    Hi,

    me again :mrgreen:

    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
  • WaldoWaldo Member Posts: 3,412
    rkaufmann wrote:
    Hi,

    me again :mrgreen:

    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
  • WormWorm Member Posts: 4
    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.

    Please help
  • WaldoWaldo Member Posts: 3,412
    Seems you used an earlier version of WaldoNavPad.

    You'll have to re-evaluate your code, I'm afraid...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • JDVyskaJDVyska Member Posts: 179
    I'm not savvy to the use of DLL's and such in the 2009 version. Has anyone had a chance to see if WaldoPad can still work in the Role Tailored Client?
    JEREMY VYSKA
    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"
Sign In or Register to comment.