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
38%
Installation Wizard into new VRC
41%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 37

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 2nd December 2010, 15:39
theierm theierm is offline
Junior Member
 
Join Date: Jul 2004
Posts: 8
theierm is on a distinguished road
Baan: Baan IV - DB: Informix - OS: HP-UX
3gl subsession closes main session too
Baan: Baan IVc4
C/S: None/Unknown

I have main 3gl session with some graphical parts. By dubble click on some object the new subsession is activated (with wait.and.activate function). This subsession is 3gl with graphical parts, too (it is subsession for selecting a new color for object). Everything works OK with one exception - when i close subsession (by pressing cross sing in upper right corner of subsession window) then main session is closed, too. When i call from main session any standard 4gl subsession, then clossing this subsession does not effect on main session. Why this is not working for my 3gl subsession? Any ideas? Thanks
Reply With Quote
  #2  
Old 2nd December 2010, 23:01
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,029
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
You might be having issues with Process Groups.

Refer to -

Process groups overview

Processes, process groups, and main windows
__________________
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
  #3  
Old 3rd December 2010, 09:12
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
The links that NPRao posted should help.

If you still have problems, please post your code.
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
Sponsored Links
  #4  
Old 3rd December 2010, 13:53
theierm theierm is offline
Junior Member
 
Join Date: Jul 2004
Posts: 8
theierm is on a distinguished road
Baan: Baan IV - DB: Informix - OS: HP-UX
I played with process group and grab.window and etc. - without success. I found some workaround - do not allowed to close subsession with standard cross sign (create special button for clossing) - i am not very lucky with it.
I attached two scripts - main session sdanpplan00011 and subsession sdanpplans0011 - i would be very grateful if you can check it.
Attached Files
File Type: txt panpplan00011.txt (2.3 KB, 19 views)
File Type: txt panpplans0011.txt (3.0 KB, 8 views)
Reply With Quote
  #5  
Old 3rd December 2010, 14:25
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
Your working script is attached. Enjoy

By the way, search in the forum for how to select a color, there is a Baanish way to do so.
Attached Files
File Type: txt panpplans0011.txt (3.0 KB, 20 views)
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #6  
Old 3rd December 2010, 14:46
theierm theierm is offline
Junior Member
 
Join Date: Jul 2004
Posts: 8
theierm is on a distinguished road
Baan: Baan IV - DB: Informix - OS: HP-UX
Thanks a lot for your quick answer,
the subsession closing OK - the main session stay alived. But after return to main session, the event handler does not work - if i double pressed again the object, the subsession is not activated. Should i change anything in main session too?
Reply With Quote
  #7  
Old 3rd December 2010, 14:49
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
Probably, yes. As you can see, I used this function:
http://www.baanboard.com/programmers...roups_set_pgrp

But since I saw that you are trying to choose colors, I suggested you search in the forum for how to do it. Let me know if you couldn't find any..
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #8  
Old 3rd December 2010, 14:53
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
Check this link, if you want to know how to select a color :
http://www.baanboard.com/baanboard/s...lor#post132419

It is a part of the Undocumented Functions & Variables Thread.
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #9  
Old 3rd December 2010, 15:09
theierm theierm is offline
Junior Member
 
Join Date: Jul 2004
Posts: 8
theierm is on a distinguished road
Baan: Baan IV - DB: Informix - OS: HP-UX
This color selection is only example. The main idea is to have main session and from there activate some special subsession, where i can change all properties which selected object has (the color is only one of them).

I see, that you used set.prgp(pid, pid). I think, that this way, the subsession losts connection to main session. I am looking for the solution which works the same way as for example zoom.to$ function for 4gl session.

By the way, thanks for you effort again.
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
Handling Unit functionality baazigar Distribution, Transportation & Warehousing 4 19th February 2012 16:54
Maintain Session (main table) update another record in main table sgoupil Tools Development 4 24th September 2010 20:58
How to get data of one session to another session - Urgent manish2111 Tools Development 4 21st January 2009 06:21
synchronizing different occurrences on parent session from child Ruskin Tools Development 8 18th March 2008 18:56
copy text in session with main table without standard text Werner_nagel Tools Development 5 24th October 2002 10:35


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


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