mibuso.com

Microsoft Business Solutions online community
It is currently Wed Jun 19, 2013 9:52 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 101 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: Calling existing comment tables
PostPosted: Wed Dec 28, 2005 5:21 pm 
Offline

Joined: Thu Apr 28, 2005 8:51 pm
Posts: 43
Location: USA
Country: United States (us)
Waldo is a very valuable tool. As we are implementing Navision in a non-profit environment, we want to be able to use WaldoNavPad with the existing Navision comment tables [HR, Contacts, Events (a new module)]

We have
- successfully altered the variables passed to include the option field for the table that the comment is affiliated with
- added the Separator field to those tables

The WNP works great but requires that we identify the comment table being used with a Record variable. We would like to dynamically call the appropriate comment table based on the module in use. It looks like a RecordRef variable can open the correct table but then the SETRANGE / SETFILTER functions are not available.

Can anyone tell me how to dynamically change the Comment Table that is used? Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 5:31 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Fri Dec 06, 2002 11:50 am
Posts: 3390
Location: Kontich, Belgium
Country: Belgium (be)
Thanks for your interest in the WNP.

I have not done this before, but I see no issue in solving this with RecordRef-possibilities, don't you think?

_________________

Eric Wauters
MVP - Microsoft Dynamics NAV
My blog


Top
 Profile  
 
 Post subject: Recordref
PostPosted: Wed Dec 28, 2005 5:36 pm 
Offline

Joined: Thu Apr 28, 2005 8:51 pm
Posts: 43
Location: USA
Country: United States (us)
I would think so but I am still fairly new to C/AL programming so I am not quite sure how it would work. It looked like RecordRef was the only way to change tables but then I am not sure how you set the filters the way you are able to set them with Record

Can a RecordRef object be referenced as a Record object?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 5:48 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Fri Dec 06, 2002 11:50 am
Posts: 3390
Location: Kontich, Belgium
Country: Belgium (be)
If you look at the "Change Log Management"-codeunit, you have lots of code that is explaining how you should use RecordRef.

You can find a lot on this forum as well... .

_________________

Eric Wauters
MVP - Microsoft Dynamics NAV
My blog


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 6:17 pm 
Offline

Joined: Thu Apr 28, 2005 8:51 pm
Posts: 43
Location: USA
Country: United States (us)
Thanks very much - that code looks very useful. Will let you know what we find.


Top
 Profile  
 
 Post subject: This does look very handy
PostPosted: Wed Dec 28, 2005 11:09 pm 
Offline

Joined: Wed Jan 02, 2002 8:01 am
Posts: 109
Location: Boston area, USA
Country: United States (us)
I'm impressed by what I've seen so far, but I do have one question.

With other (not so good) pad solutions, it's just a simple DLL, not an 'installer' EXE. The advantage of that simple approach is that with a BLOB field somewhere in the system, you can simply push the DLL out to users when they need the editor.

With the EXE installer road, one has to run setup on every Navision client machince.

Is there any way to more easily distribute this one?

Jeremy


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 11:15 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Fri Dec 06, 2002 11:50 am
Posts: 3390
Location: Kontich, Belgium
Country: Belgium (be)
Well, actually, the only reason I use the setup program, is to have an easy method for the user to install the DLL. I didn't try it, but it should work as you say. Just find the WaldoNavPad.dll in the program folder, and use it as you like.

Again, I didn't try this, so I could be wrong.

_________________

Eric Wauters
MVP - Microsoft Dynamics NAV
My blog


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 3:28 pm 
Offline

Joined: Mon Mar 08, 2004 2:42 pm
Posts: 3255
Location: Hannover
Country: Germany (de)
Can you give me a "little" example how to write an ocx or DLL for use in navision:?:

Regards

_________________
Do you make it right, it works too!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 5:46 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Fri Dec 06, 2002 11:50 am
Posts: 3390
Location: Kontich, Belgium
Country: Belgium (be)
Download the WNP and you've got one :wink:

There are a few tips on this forum:
http://www.mibuso.com/forum/viewtopic.php?t=8156
http://demiliani.com/blog/archive/2005/09/19/2965.aspx
http://www.mibuso.com/forum/viewtopic.php?t=1543

_________________

Eric Wauters
MVP - Microsoft Dynamics NAV
My blog


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 9:15 am 
Offline

Joined: Mon Mar 08, 2004 2:42 pm
Posts: 3255
Location: Hannover
Country: Germany (de)
Thanks

_________________
Do you make it right, it works too!


Top
 Profile  
 
 Post subject: Trim?
PostPosted: Fri Jun 09, 2006 10:32 pm 
Offline

Joined: Fri Feb 18, 2005 1:13 pm
Posts: 51
Location: Germany
[edit]

Well, maybe someone can help me with one question:

Why is Waldo changing the ASCII-Code 151 (— called dash) to 150 (- short dash)? How can this be solved?

Thanks a lot in advance!

Jut


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 22, 2006 5:51 pm 
Offline

Joined: Thu Jun 02, 2005 5:53 pm
Posts: 16
Location: Texas, USA
Country: United States (us)
One note - you have to call WaldoNavPad.Text := '' or you get some kind of null reference object. i haven't checked the source code, but it would make sense to initialize this variable to a blank string if it didn't exist, wouldn't it?

Or is this meant to be a check against trying to reuse the same text from a prevous instance?


Top
 Profile  
 
 Post subject: Re: Trim?
PostPosted: Wed Aug 23, 2006 8:30 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Fri Dec 06, 2002 11:50 am
Posts: 3390
Location: Kontich, Belgium
Country: Belgium (be)
Jut wrote:
Why is Waldo changing the ASCII-Code 151 (— called dash) to 150 (- short dash)? How can this be solved?


I don't remember exactly, but probably because dash gave a strange character in NAV. What do you meen with: how can this be "solved"? I don't exactly understand what the problem is.

_________________

Eric Wauters
MVP - Microsoft Dynamics NAV
My blog


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 8:39 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Fri Dec 06, 2002 11:50 am
Posts: 3390
Location: Kontich, Belgium
Country: Belgium (be)
[quote="Matt Keyes"]One note - you have to call WaldoNavPad.Text := '' or you get some kind of null reference object. i haven't checked the source code, but it would make sense to initialize this variable to a blank string if it didn't exist, wouldn't it?
[quote]

Never encountered the problem, but I can imagine that I will have to add something like that. Thx for the "heads up".

_________________

Eric Wauters
MVP - Microsoft Dynamics NAV
My blog


Top
 Profile  
 
 Post subject: Waldo Dynamics NAV Notepad (WaldoNavPad) v3
PostPosted: Mon Nov 27, 2006 11:25 am 
Offline
Site Admin

Joined: Sun Nov 07, 1999 8:01 am
Posts: 1915
Location: Wilrijk, Belgium
Country: Belgium (be)
Waldo Dynamics NAV Notepad (WaldoNavPad) v3
With WaldoNavPad you edit big amouts of texts in some kind of textpad, and store it in navision-tables (in pieces) to be able to show the content in a subform. The fieldlenght of a piece of text is adjustable. The pieces of text will be cut of at a "Space" or "Carriage Return".

New functionality v3:
Added:
- warning when you changed the text and cancelled. The warningtext is customizable for multilanguage reasons.
- Possibility for working with fonts
- Possibility for making the pane readonly
Fixed:
- Pressing EditFind and then Cancel resulted into an error (cfr. Mibuso member Andic)

New functionality v2:
- Button text is adjustable (with text constants it's easy to make it language dependant).
- Print / Print Preview functionality
- Save text as rtf-file (easy to open in MS Word)
- Search functionality
- Bigger font so text is better "readable".

The download contains:
- navision-objects which shows how to use the WaldoNavPad-DLL.
- a setup for installing the VB.NET-DLL file.
- the sourcecode of the VB.NET Class Library and Test UI

http://www.mibuso.com/dlinfo.asp?FileID=335

Discuss this download here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 101 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: