User login
|
|
|
Frontpage Sponsor
|
|
|
Poll
|
I manage and monitor my Baan server/application with HP Openview 7% IBM Tivoli 14% BMC Patrol 2% Nagios 11% Other 30% What are you talking about? 37% Total votes: 120 |
Baanboard at LinkedIn
|

|
|
|
 |
|

30th May 2007, 11:59
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 -
DB: MS SQL, Oracle -
OS: Windows 2000, 2003 & UNIX
|
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
|

4th June 2007, 09:02
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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
Last edited by george7a : 4th June 2007 at 09:07.
|

8th June 2007, 10:05
|
 |
Guru
|
|
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,683
|
|
|
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 .
|

23rd July 2007, 13:57
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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.
Last edited by george7a : 23rd July 2007 at 14:22.
Reason: fixing the link
|

25th July 2007, 08:46
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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
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
Last edited by george7a : 25th July 2007 at 08:52.
Reason: Adding Baan version
|

25th July 2007, 16:55
|
 |
Guru
|
|
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,683
|
|
|
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 .
|

30th July 2007, 12:15
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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
|

31st July 2007, 20:22
|
 |
Guru
|
|
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 2,819
|
|
|
Baan: iBaanERP-5.2a(Reger), SSA-ERP-LN-6.1(Gemini) -
DB: Oracle -10g-R1 -
OS: HP-UX-11.11, 11.23 (Itanium, RISC)
|
|
Switch.to.process
|

10th August 2007, 08:16
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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
Last edited by george7a : 29th February 2008 at 13:06.
Reason: Added a link for the documentation
|

11th September 2007, 13:46
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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
Last edited by george7a : 11th September 2007 at 13:54.
Reason: added the note
|

11th September 2007, 14:06
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
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
|

25th September 2007, 12:30
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,353
|
|
|
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 -
DB: MS SQL, Oracle -
OS: Windows 2000, 2003 & UNIX
|
|
subdal - variable
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|