Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 30th May 2007, 12:59
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
Thumbs up Undocumented Functions & Variables
Baan: Other/Unknown
C/S: None/Unknown

Hi All,

In the last week I bumped into an undocumented function . I was interested in this issue and I will dedicate this thread for them. I am not talking about old functions/variables that are not documented in the new manuals and were documented in old ones. These kinds of functions were kept in order to support older versions. I am talking about totally undocumented functions/variables.

I have seen and old thread talking about two undocumented functions for Baan 5 (one of them is documented). This thread will include undocumented functions & variables for all Baan versions.

Here is a list for the undocumented functions that were posted in Baanboard:

get.message.type() was mentioned in this link.

clipboard.to.file() function was mentioned in this link. More clipboard related function here.

fork() function was mentioned in this link.

crypt.password$()
function was mentioned in this link.

If you know some more undocumented functions/variables, please share them here .

Best Regards,

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #2  
Old 30th May 2007, 15:51
spartacus's Avatar
spartacus spartacus is offline
Guru
 
Join Date: Dec 2001
Location: Germany
Posts: 773
spartacus is on a distinguished road
Baan: BaanERP 5.0c - DB: Oracle 8 - OS: SunOS 5.9
I think "free$" has also to be mentioned. It is discussed here:
http://www.baanboard.com/baanboard/s...hlight=free%24
Reply With Quote
  #3  
Old 4th June 2007, 10:02
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
I would like to share that this all began when I found a function in Baan IV by "luck". I searched for it in the IV & V manuals but I did not find it. After a while I searched in the LN manual and there it was! So it was not a totally undocumented function after all.

However, I believe there are other undocumented functions/variables out there. I will make this thread a sticky one (for a while) so that others can contribute.

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.

Last edited by george7a : 4th June 2007 at 10:07.
Reply With Quote
  #4  
Old 8th June 2007, 11:05
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,855
Hitesh Shah is on a distinguished road
Baan: triton,Baan IVc4 , ERP Ln - DB: Oracle/Bisam/SQL 2000/SQL 2005 - OS: Sun Solaris/Windows 2003
attr.company$

I checked in the documentation . I think this also is an internal variable which stores current company name .
Reply With Quote
  #5  
Old 23rd July 2007, 14:57
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
single.occ.objects() array (predefined variable)

single.occ.objects was mentioned in this post. As I have noticed, it is used to hold the ID number of each object used in the session.
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.

Last edited by george7a : 23rd July 2007 at 15:22. Reason: fixing the link
Reply With Quote
  #6  
Old 25th July 2007, 09:46
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
Quote:
Originally Posted by Hitesh Shah View Post
I checked in the documentation . I think this also is an internal variable which stores current company name .
I have found that the attr.company$ is an extern string defined in ottstp_stddll & ottstpstandard DLLs.

Edit: This was found on Baan IV
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.

Last edited by george7a : 25th July 2007 at 09:52. Reason: Adding Baan version
Reply With Quote
  #7  
Old 25th July 2007, 17:55
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,855
Hitesh Shah is on a distinguished road
Baan: triton,Baan IVc4 , ERP Ln - DB: Oracle/Bisam/SQL 2000/SQL 2005 - OS: Sun Solaris/Windows 2003
attr.company$

True . In fact this variable could be available in any program only if it's delcared in any of these programs . In fact all Baan 4GL programs are extensions of ottstpstandard which contains the Baan standard program logic .

In fact u can extend this logic for other function prototypes and other variables also .
Reply With Quote
  #8  
Old 30th July 2007, 13:15
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
pstat

In the manuals of Baan IV/V pstat function is not fully documented. There are some macros that can retrieve information from pstats's output. Only the first three macros (ps.state, ps.group & ps.parent) are documented. I have luckily found other macros that do work on Baan IV.

Here is the full list:
Code:
ps.state(info) | returns PSRUNNING, PSBLOCKING, PSSLEEPING, or PSTERMINATING.

ps.group(info) | returns the identifier of the process group to which the process belongs.

ps.parent(info) | returns the identifier of the parent process of the process group.

ps.nice(info) | returns the nice value of the process.

ps.cpu.use(info) | returns the number of ticks used by the process.

ps.mwin(info) | returns the object id of the main window of the process.

ps.pri(info) | returns the priority of the process.

ps.size(info) | returns the amount of memory allocated by the process (in bytes).

ps.cwin(info) | returns the object id of the current window of the process
After that, I checked in the LN manuals and the function was fully documented (with all the macros)! I thought I will post the full documentation here so others can see those undocumented macros also in Baan IV & V.

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #9  
Old 31st July 2007, 21:22
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,032
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger),SSA-ERP-LN-6.1,Infor LN-10.x - DB: Oracle-10g,11g,12c,MS-SQL - OS: HP-UX, Linux, Windows
Switch.to.process

More inf on SWITCH.TO.PROCESS How to Combine two session in a one form
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
Sponsored Links
  #10  
Old 10th August 2007, 09:16
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
oipstat

I have ran through this function on our Baan IV! It takes the following arguments:

long = oipstat (long,long,string)

It reminds me of pstat() function. However I did not find it in any documentation and I don't know what it does!

Maybe someone else knows!

Edit:
The documentation for this function can be found here


- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.

Last edited by george7a : 29th February 2008 at 14:06. Reason: Added a link for the documentation
Reply With Quote
  #11  
Old 11th September 2007, 14:46
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
get.cust.code

get.cust.code takes no arguments and returns the Baan Customer Code as a string.

P.S. found in Baan IV
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.

Last edited by george7a : 11th September 2007 at 14:54. Reason: added the note
Reply With Quote
  #12  
Old 11th September 2007, 15:06
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
get.lic.no

get.lic.no takes no arguments and return the Baan License Number as long
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #13  
Old 12th September 2007, 10:28
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
is.password.ok

is.password.ok takes two strings and returns true if there is a match between the password and the encrypted one (review crypt.password$ function in this thread). After I found it, I saw it was mentioned in the following links:
http://www.baanboard.com/baanboard/s...is.password.ok
http://www.baanboard.com/baanboard/s...is.password.ok

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #14  
Old 25th September 2007, 13:19
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
load.font()

As I understand load.font() should load a font into a variable that will be used in setting the font for the chart manager

It was mentioned:
http://www.baanboard.com/baanboard/s...ight=load.font

It was also mentioned in the Twiki but not documented:
http://www.baanboard.com/programmers..._set_tree_font
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #15  
Old 25th September 2007, 13:30
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
subdal - variable

Subdal has its own thread here: http://www.baanboard.com/baanboard/showthread.php?t=929
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expanding Text variables lli-baan Tools Development 9 19th October 2012 17:30
How to set Environment variables for a session in a job baaniac Tools Development 3 4th September 2003 23:21
Undocumented functions in Baan 5... Ruskin Tools Development 0 4th September 2003 01:04


All times are GMT +2. The time now is 23:17.


©2001-2017 - Baanboard.com - Baanforums.com