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
  #1  
Old 25th May 2018, 12:39
Svidos29 Svidos29 is offline
Member
 
Join Date: Oct 2017
Posts: 39
Svidos29 is on a distinguished road
Baan: Baan IV - DB: Onpen Sql - OS: Windows 10
Marked record on MMT session
Baan: Other/Unknown
C/S: None/Unknown

Hi all, i've created a FORM command that is disabled when the session MMT starts. I want that if a record is selected (with some conditions) the form command must be enabled. How can i do this? Because the form command is in the header session, but the records (rows) are in the satellite session.
I tried with choice.mark.occur/after.choice, in the rows session, but it does not work with (enable.commands("my_formcommand") .

Thanks in advance
Reply With Quote
  #2  
Old 25th May 2018, 13:07
giggty's Avatar
giggty giggty is offline
Member
 
Join Date: May 2017
Posts: 61
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
Consider Process Change Manager functionality (prcm.* functions) may be?
Reply With Quote
  #3  
Old 25th May 2018, 14:14
Svidos29 Svidos29 is offline
Member
 
Join Date: Oct 2017
Posts: 39
Svidos29 is on a distinguished road
Baan: Baan IV - DB: Onpen Sql - OS: Windows 10
Sorry but i never used prcm.* functions, how can it be useful to me?
Reply With Quote
  #4  
Old 25th May 2018, 15:12
giggty's Avatar
giggty giggty is offline
Member
 
Join Date: May 2017
Posts: 61
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
Basically you do prcm.register("my.event") in your parent session (inside before.program for example), add the needed logic into choice.bms section:
Code:
choice.bms:
on.choice:
	if prcm.bms.is.notification() then
		on case prcm.get.subject()
		case "my.event":
			enable.commands("my_formcommand") 
			break
		endcase
	endif
and then you can fire events with prcm.notify("my.event") inside satellite whenever you need to enable your command. Consult with Programmers Guide for detailed information
Reply With Quote
  #5  
Old 25th May 2018, 15:40
Svidos29 Svidos29 is offline
Member
 
Join Date: Oct 2017
Posts: 39
Svidos29 is on a distinguished road
Baan: Baan IV - DB: Onpen Sql - OS: Windows 10
hi, thanks, i've another question, in "my.event" i have to put my satellite session right?

thanks in advance

EDIT: FIne it works! Thanks a lot, for disable the command from passing to a valid record to a non-valid one, i used to create a new case named "not.my.event" where i use disable.commands(my.process)

real thanks again!!!!

Last edited by Svidos29 : 26th May 2018 at 10:27.
Reply With Quote
Sponsored Links
  #6  
Old 28th May 2018, 08:37
giggty's Avatar
giggty giggty is offline
Member
 
Join Date: May 2017
Posts: 61
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
Yes, basically for every disjunctive scenario you have to create a separate event by picking a unique string as an event subject. Then add a handler for it in recipient session, subscribe to it, and now you can prcm.notify() your observer about change of another sesion state (child session in your example).

Glad you sorted it out
Reply With Quote
  #7  
Old 7th August 2018, 09:50
AnuKass AnuKass is offline
Junior Member
 
Join Date: May 2018
Posts: 25
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
hii all..
i'm new for LN ..
how to create MMT session and satellite session ???the what is meant by satellite session ???
Reply With Quote
  #8  
Old 9th August 2018, 08:51
giggty's Avatar
giggty giggty is offline
Member
 
Join Date: May 2017
Posts: 61
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
Consider tisfc0101m100 (Production Orders) - this is the MMT Controller session, while tisfc0110m000, ticst0101m000, tisfc0516m000 and tisfc0105m000 are its satellites (child sessions). When you create a new session in ttadv2500m000 you need to specify its Window Type as Multi Main Table for the Controller (i. e. main) session and as List Window for satellites. Then in ttadv3110m000 you can attach child sessions to controller.
If you are using LN Studio there is a nice guide with pictures about MMT sessions in its help.
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
Maintain Session (main table) update another record in main table sgoupil Tools Development 4 24th September 2010 19:58
MMT Session mbdave Tools Development 2 15th June 2009 06:19
corrupted session record in adv999 jatin_sanghi Tools Administration & Installation 9 5th September 2007 16:15
Delete a record in a customized session mostrightfuture Operating Systems & Databases 6 9th November 2006 08:23
tfacp9450m000 FIBU Brush Up Kai's Forum Users Deutsches Forum 1 16th November 1999 00:00


All times are GMT +2. The time now is 21:54.


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