mibuso.com

Microsoft Business Solutions online community
It is currently Thu Jun 20, 2013 4:46 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Data Lookup Codeunit Generator
PostPosted: Fri Dec 29, 2006 2:23 pm 
Offline
Site Admin

Joined: Sun Nov 07, 1999 8:01 am
Posts: 1915
Location: Wilrijk, Belgium
Country: Belgium (be)
Data Lookup Codeunit Generator
Small command-line tool to generate NAV codeunit to call default lookup/drilldown forms for RecordRef (RecordRef/FieldRef is good functionality but some things are unfinished).

Resulting codeunit contains one Method called "LookupDate(VAR RecRef : RecordRef)".

You need just export NAV tables as text, generate codeunit, import codeunit back to NAV and compile.

Sample is included. Tools works only with tables with LookupFormID/DrillDownFormID properties set.

Microsoft .NET Framework 2.0 required.

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

Discuss this download here.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 1:09 am 
Offline

Joined: Mon Sep 15, 2003 5:03 pm
Posts: 161
Location: Scotland
Country: United Kingdom (uk)
Not sure why the command line tool is needed? Why not just write this as a codeunit in Navision without needing to first export the tables and then run another seperate program?

If it's for cool factor then 8)

_________________
This isn't a signature, I type this at the bottom of every message


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 11:43 am 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 920
Location: Glasgow
Country: United Kingdom (uk)
:lol: :lol: :lol: :lol: :lol: :lol:

Yep, indeed! But it's much more fun, than just code in NAV! :D

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 01, 2007 11:13 am 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 920
Location: Glasgow
Country: United Kingdom (uk)
No, Steve... I've suddenly recalled why I did external tool! :D I was too busy to think about this.

I'm creating code not for all tables but for tables with default Lookup/Drilldown forms.

Happy New Year!

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 7:37 pm 
Offline

Joined: Thu Mar 30, 2000 8:01 am
Posts: 68
Location: UK
Country: United Kingdom (uk)
Hi,

Dont suppose anyone has worked out how to get around the case stuff

EG.

form,run(0,recref);


B ??


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 7:53 pm 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 920
Location: Glasgow
Country: United Kingdom (uk)
brucem wrote:
Hi,

Dont suppose anyone has worked out how to get around the case stuff

EG.

form,run(0,recref);


B ??


:?: :-k

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 27, 2007 12:54 am 
Offline

Joined: Thu Mar 30, 2000 8:01 am
Posts: 68
Location: UK
Country: United Kingdom (uk)
i assume that your reply copying my question indicates you didn;t understand the question ?

in the codeunit i download there is a CASE statement

CASE RecRef.NUMBER OF
DATABASE::"Payment Terms": BEGIN
"Payment Terms".SETVIEW(TableView);
FORM.RUN(0,"Payment Terms");
END;
DATABASE::"Currency": BEGIN
"Currency".SETVIEW(TableView);
FORM.RUN(0,"Currency");
END;
DATABASE::"Finance Charge Terms": BEGIN
"Finance Charge Terms".SETVIEW(TableView);
FORM.RUN(0,"Finance Charge Terms");
END;

has anyone worked out how to do the form.run function
FORM.RUN(0,RECREF);

is this possible yet ?

Bruce


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Tue Feb 27, 2007 7:28 am 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 920
Location: Glasgow
Country: United Kingdom (uk)
brucem wrote:
is this possible yet ?


Nope. Even in NAV5.

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: