Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #61  
Old 22nd January 2008, 09:50
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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.ref.var() is not mentioned in the manuals (at least in the ones I have). I still do not know what it does exactly. I mentioned it in this post.
However, it looks similar to get.var() function.
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #62  
Old 22nd January 2008, 10:36
rajeshk rajeshk is offline
Junior Member
 
Join Date: Aug 2007
Posts: 19
rajeshk is on a distinguished road
Baan: MK, 4c4 - DB: bisam - OS: WinXp
the usage i saw was in the following context:

1) session X calls session Y and waits.
2) Y completed processing and then does a get.ref.var(parent)

i was wondering what role is it playing in this inter process communication.
Reply With Quote
  #63  
Old 22nd January 2008, 10:41
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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 have found the function in this example:
http://www.baanboard.com/programmers...andard_program
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #64  
Old 22nd January 2008, 10:47
rajeshk rajeshk is offline
Junior Member
 
Join Date: Aug 2007
Posts: 19
rajeshk is on a distinguished road
Baan: MK, 4c4 - DB: bisam - OS: WinXp
yeah! fact is this is the only instance of it i found in my manuals. no explanations.
Reply With Quote
  #65  
Old 22nd January 2008, 13:03
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,853
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
get.ref.var(parent)

In that contenxt , it is certainly not a function . All it tries to say if the standard program knows that its called from another program , it will initialize the pid of the calling program as parent variable and read the main table buffer from the parent program .

U can view other supposed functions in the same help like read.form() ,put.attributes() , on.update.db() etc in the same help .
Reply With Quote
  #66  
Old 26th February 2008, 12:51
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
obj_in_core(string)

obj_in_core() takes one (ref) string argument and returns in it all the loaded objects (not just processes) with some info about them.

use:
Code:
obj_in_core(objs_data)
objs_data's value will be something like:
Quote:
N N 1 27 ottdskbrowser
N N 1 3 ottdskmenu
N N 1 18 ottdskmbrowser
N N 4 31 ottstp_stddll
N N 1 2 ottadvexecperm
N N 1 10 ottstpshell
N N 1 57 ottstpstdlib
Explanation:
Quote:
STICK SHM REF TSIZE OBJECT
Y N 4 29 ottstp_stddll
N N 1 71 ottadv2130
N N 1 11 ottstpmenu
N Y 1 35 ottstpstdlib
N N 1 146 ottstpstandard

STICK = indicates whether the object has the sticky bit on. This
means that the object should not be removed out of memory,
when the process ends
SHM = indicates whether the object is stored in shared memory
REF = reference counter, which shows how many processes use this
object
TSIZE = size of process in KB (text)
OBJECT = the object name
You will get a similar output of you open shell and type oic.

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
Sponsored Links
  #67  
Old 29th February 2008, 11:54
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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 function

From my testing I have found the following information about the oipstat function:

Syntax
long oipstat( long process_id, ref long object_number, ref string object_name)

Description
This returns status information about a specified object in a specified process.

Arguments
process_id
The ID of the process for which you want to retrieve information.

object_number
The sequence number of object in process_id

object_name
This returns the object code.

Return values
The object sequence number of the next object in the specified process_id

Example
Code:
long obj_num,rt.val 
string obj_name(15)

rt.val = 1
while rt.val > 0
  obj_num = rt.val
  rt.val = oipstat (pid,obj_num,obj_name)
  message(obj_name)
 | This will go through all the objects this current script is using
endwhile
Comment
You can see the list of the objects for a specified process if you go to the shell and type the number of the process after the ps command. For example:
Code:
ps 2
I hope you find this helpful,

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #68  
Old 4th March 2008, 14:17
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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.name

get.cust.name takes no arguments and returns the company name that appears on Baan starup window as string.

Found in Baan IV
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #69  
Old 5th March 2008, 15:59
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
bse.portset$

bse.portset$ takes no arguments and returns the Port no. as string

Check the following explanation:
Code:
[baanserv:bsp]/baan4c/bse/bin> licmon6.1 -v
-------------------------------------------------------
Portingset  : 6.1c.06.07
Port no.    : PA.2180    | <--- The function returns this value
...
..
.
found in Baan IV

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #70  
Old 19th March 2008, 10:39
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
void wait.for.switch ( [ long flag] )

Quote:
Originally Posted by NPRao View Post
More inf on SWITCH.TO.PROCESS How to Combine two session in a one form
wait.for.switch is switch.to.process's sister. It will wait for another process to call switch.to.process. This function is typically used at the startup of the zoom process for synchronization purposes. Possible flags:

SWITCH.SAME.SIZE
SWITCH.WITHOUT.INTERACTION
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #71  
Old 19th March 2008, 10:50
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
long sattr.combined

The variable sattr.combined should be used if the forms of the two processes should not overlap. This variable should be set in the before.program section. Possible values:

COMBINED.BOTTOM form stays below other process' form
COMBINED.TOP form stays on top of other process' form
COMBINED.RIGHT form stays at the right of other process' form
COMBINED.LEFT form stays at the left of other process' form

If the two processes should be of the same width or height, the value SWITCH.SAME.SIZE should be added to the flag argument.

Switching to another process also passes the input control to that process. This results in setting the current form inactive and setting the other form active. If it is not necessary to switch the focus to the other form (e.g. the other process is a display process without interaction), the flag SWITCH.WITHOUT.INTERACTION should be set. This flag should only be set in the process passing the control to the process without interaction. E.g.: proc2 is a single-occurrence session for maintaining an order line and proc1 is a multi-occurrence session, displaying the other order lines of the same order header. The user is not able to input on fields of proc1 nor able to enter commands for proc1. Only the switch.to.process call of proc2 should have the flag SWITCH.WITHOUT.INTERACTION set. To stop synchronization between the processes, set the flag argument to SWITCH.WITHOUT.WAIT. This should be used if the other process stops after receiving the switch.
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #72  
Old 19th March 2008, 10:55
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
The whole documentation of the "Functions For Switching Between A Parent Process And An Activated Child", can be found in this PDF file (that was posted earlier on Baanboard) page 218.

Edit: These functions are found only in some Baan IV documentation. They are not documented in Baan V/LN, However, as I know, they are still working.
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.

Last edited by george7a : 19th March 2008 at 11:18.
Reply With Quote
  #73  
Old 3rd June 2008, 14:12
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
Lightbulb ttadv301.zprg

Many times I needed to zoom to the "Display Sessions" session and I was expecting it to return the name of the selected session in one variable. As you may know, there was no way (that I know about) to do that. The work around was to define three fields: package, module & name and to zoom 3 times to get your session.

Well, not any more! I have found out that if the name of the field that your are zooming from was "ttadv301.zprg" then the zoomed session will return the whole session name into that field!

The following is how to define the field:
zprg.JPG

I tried it in Baan IV, I got an error that I am having a wrong domain, but it saved it!

I hope you find this helpful,

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #74  
Old 4th June 2008, 18:16
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,853
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
display sessions and domains

It is not mandatory to use field 'ttadv301.zprg' to get session code . In fact if the form field code begins with 'tt' , it should be able to return the session code .

Further there are other displays sessions like ttadv2505s000 / ttadv2506s000 which gives more choice .e.g. U can get the session on any field code beginning with tf , tg and tu also. If the field code is table field from other packge , u can deploy following code in before.zoom section to get the session code .

Code:
field.timmmnnn.cccc:
before.zoom:
timmmnnn.cccc = zoom.to$("ttadv2506s000" ,z.session , "tuabcd","",0)
attr.zoomcode = 0
For display domains , it's very strict . The zoomname must be tuxch014.domn

Code:
field.tudll989.domn:
before.zoom:
	ttadv400.cpac  = tudll989.domn(1;2)
	cpac = tudll989.domn(1;2)
	ttadv400.cdom = tudll989.domn(3)
	tudll989.domn = zoom.to$("ttadv4505s000",z.session,"tuxch014.domn","",0)
	attr.zoomcode = 0
Original discussion in http://www.baanboard.com/baanboard/s...=ttadv2506s000 may be relevent.

Last edited by Hitesh Shah : 4th June 2008 at 18:34. Reason: original link
Reply With Quote
  #75  
Old 27th October 2008, 13:08
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,491
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
Getting the release code & customer extension fields automatically filled

Another similar issue to the last one is: getting the release code & customer extension fields automatically filled after choosing the version of the VRC.

The solution is simple though its not predicted (and not documented)! All you have to do is to rename your session variables to: "vers", "rele" & "cust". All of these variables should be defined as extern fields. "vers" should zoom to ttadv1511m000. When you exit from the zoom session (ttadv1511m000), the other fields (rele & cust) will automatically be filled.

Here is the reference discussion.

- George
__________________
_
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 16:30
How to set Environment variables for a session in a job baaniac Tools Development 3 4th September 2003 22:21
Undocumented functions in Baan 5... Ruskin Tools Development 0 4th September 2003 00:04


All times are GMT +2. The time now is 19:39.


©2001-2018 - Baanboard.com - Baanforums.com