Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

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 13th February 2006, 15:01
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Baan Messenger

As a result of this thread, I was requested to post the session I created for sending messages to active Baan shells.

It is a very simple and straight forward system, which is just activating the standard Baan messaging functionality (systemmess).

IMPORTANT: In order for this session to work, first the mask pollmess should be active. This can be activated in session ttadv4188m000
Insert a new entry as follows:
mask: pollmess
session/object: ottstppollmess
automaticall add mask : yes
boot : yes
CONVERT TO RUNTIME DD.

Attached are the (compressed) objects, exported via ttiex1280m000. So you can just place it on disc, and import the folder 'baan_messenger' using ttiex1280m000.

I was lazy for the form and used hard-coded text instead of neat labels. You will see that the form is available for languages 1 & 2 (Dutch & English)

Explanation of form-fields:
- There are 4 text fields; I don't think anyone will send longer messages than that, but of course you can add more...
- The option "display message for coming x minutes": with this option the message will appear on any existing bshell, and on any new logon during the next x minutes. NOTE: when this option is selected the session stays active - and hourglass will appear - for the selected amount of minutes.
Without this option the message will be displayed on any current bshell and on any new logon, for unlimited amount of time, untill the message will be removed using option 'remove current message'.
- Option 'remove current message' removes a message placed previously. NOTE: when the message was placed only for x minutes, then it is not necessary to remove the file, for the file will be removed at the end of the x minutes.

Hope this will be usefull. For any questions, of course feel free to ask me at any time!


Cheers,
En
Attached Files
File Type: zip baan_messenger.zip (14.4 KB, 471 views)

Last edited by patvdv : 13th February 2006 at 17:53.
Reply With Quote
  #2  
Old 13th February 2006, 18:35
~Vamsi's Avatar
~Vamsi ~Vamsi is offline
Guru
 
Join Date: Aug 2001
Location: San Diego CA, USA
Posts: 590
~Vamsi will become famous soon enough
Baan: ~*~ - DB: ~*~ - OS: ~*~
En,

Could you please post the sources as well. If I remember the format of the dump files is not the same between the different Baan versions.
__________________
~Vamsi
Vamsi Potluru
Baan XL Yet another tool to format Baan output in Excel from Baan Board
This one just happens to be free :)

Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #3  
Old 14th February 2006, 10:36
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Here is the code, in attachment you will find the form information including screenshots. Of course there may be differences between different Baan versions. Also, I developed this session in a Baan 5.0B environment. I can't think directly of a reason it shouldn't work in BaanIV for instance, but didn't try it. Would be happy to hear from others..

Code:
|******************************************************************************
|* Title	: tcrom3080 - Baan Messenger
|* Author	: Eli Nager
|* Date		: 13/02/2006
|******************************************************************************
|* Script Type	: 4GL
|* Copyright 2006 by Eli Nager
|* 
|* All Rights Reserved 
|* 
|* Permission to use, copy, modify, and distribute this software and its
|* documentation for any purpose and without fee is hereby granted,
|* provided that the above copyright notice appear in all copies and that
|* both that copyright notice and this permission notice appear in
|* supporting documentation. 
|* 
|* ELI NAGER AND BAANBOARD.COM DISCLAIM ALL WARRANTIES WITH REGARD TO 
|* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|* AND FITNESS, IN NO EVENT SHALL ELI NAGER NOR BAANBOARD.COM BE LIABLE 
|* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
|* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
|* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 
|* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
|* OR PERFORMANCE OF THIS SOFTWARE.
|*                                                                                
|****************************** declaration section ***************************

declaration:

	extern	domain	tcmcs.str100	text1
	extern	domain	tcmcs.str100	text2
	extern	domain	tcmcs.str100	text3
	extern	domain	tcmcs.str100	text4
	extern	domain	tcyesno		opt.del
	extern	domain	tcyesno		del.mess
	extern	domain	tcmcs.long	minutes

		domain	tcmcs.str35	filepath
		domain	tcmcs.long 	fileid
		domain	tcmcs.long	ret.val
		domain	tcmcs.long	hold.minutes
			string		mess.txt(400)

	#define	FILENAME	"systemmess"
	#define	TR(x)		strip$(shiftl$(x))


|****************************** form section **********************************

form.1:
init.form:
	get.screen.defaults()

	if opt.del <> tcyesno.yes then
		hold.minutes = minutes
		minutes = 0
		disable.fields("minutes")
		display("minutes")
	endif

|****************************** choice section ********************************

choice.cont.process:
on.choice:
	filepath = bse.dir$()
	filepath = TR(filepath) & "/lib/" & FILENAME

	if del.mess = tcyesno.yes then
		del.file()
	else
		if opt.del = tcyesno.yes and minutes < 1 then
			message("Gelieve eerst aantal minuten te selecteren")
			choice.again()
		else
			display.mess()
		endif
	endif

|****************************** field section *********************************

field.opt.del:
when.field.changes:
	if opt.del = tcyesno.yes then
		enable.fields("minutes")
		minutes = hold.minutes
		if minutes < 1 then
			minutes = 1
		endif
		display("minutes")
	else
		hold.minutes = minutes
		minutes = 0
		disable.fields("minutes")
		display("minutes")
	endif

field.del.mess:
when.field.changes:
	if del.mess = tcyesno.yes then
		disable.fields("text1", "text2", "text3", "text4", "opt.del", "minutes")
		display.all()
	else
		enable.fields("text1", "text2", "text3", "text4", "opt.del", "minutes")
		display.all()
	endif
		
|****************************** function section ******************************

functions:

function display.mess()
{
	del.file()

	fileid = seq.open(filepath, "wt")
	if fileid < 0 then
		message("boodschap niet verzonden. Oorzaak: kon bestand niet aanmaken")
		choice.again()
	else
		mess.txt = TR(text1) & " " & TR(text2) & " " & TR(text3) & " " & TR(text4)
		ret.val = seq.puts(mess.txt, fileid)
		ret.val = seq.puts("-", fileid)
		ret.val = seq.close(fileid)

		if opt.del = tcyesno.yes then
			suspend(60000 * minutes)
			del.file()
		endif
	endif
}


function del.file()
{
	ret.val = file.rm(filepath) 	|remove old message-file if present
}

Regards,
En
Attached Files
File Type: doc Baan Messenger.doc (49.0 KB, 394 views)
Reply With Quote
  #4  
Old 25th March 2006, 08:20
deepaksachdeva's Avatar
deepaksachdeva deepaksachdeva is offline
Senior Member
 
Join Date: Jan 2003
Location: Mumbai
Posts: 151
deepaksachdeva is on a distinguished road
Baan: B IV c4, ERP Ln 6.1, Webtop - DB: Oracle , MS Sql Server 2000 - OS: IBM AIX 5.3,windows 2000
Dear En,

do u have the same code for Baan IV c4 ?

deepak
Reply With Quote
  #5  
Old 25th March 2006, 18:42
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,653
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
Maybe it will also work on 4C4 !

Quote:
Originally Posted by deepaksachdeva
Dear En,

do u have the same code for Baan IV c4 ?

deepak
Hello deepack,

i've seen no problems.
en's code should also do it's job on BaaN IV c4

Regards
__________________
//Bernd
Reply With Quote
  #6  
Old 27th March 2006, 12:08
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Indeed, as I have previously mentioned, I don't see any reason why it shouldn't work for Baan 4C4, please test and let us know...
Reply With Quote
  #7  
Old 27th March 2006, 12:41
deepaksachdeva's Avatar
deepaksachdeva deepaksachdeva is offline
Senior Member
 
Join Date: Jan 2003
Location: Mumbai
Posts: 151
deepaksachdeva is on a distinguished road
Baan: B IV c4, ERP Ln 6.1, Webtop - DB: Oracle , MS Sql Server 2000 - OS: IBM AIX 5.3,windows 2000
while importing the dump, system throws an error

error -13 during seq.open file "/backup/baanmsn/installed.path"

pls comment.

with regards
Deepak
Reply With Quote
Sponsored Links
  #8  
Old 27th March 2006, 18:26
~Vamsi's Avatar
~Vamsi ~Vamsi is offline
Guru
 
Join Date: Aug 2001
Location: San Diego CA, USA
Posts: 590
~Vamsi will become famous soon enough
Baan: ~*~ - DB: ~*~ - OS: ~*~
Deepak,

See my earlier post in the same thread. The dump format is not the same. So go ahead and create the form manually and put in the code. Perhaps you can contribute the dump files for version 4 when you are done.
__________________
~Vamsi
Vamsi Potluru
Baan XL Yet another tool to format Baan output in Excel from Baan Board
This one just happens to be free :)

Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #9  
Old 28th March 2006, 06:46
deepaksachdeva's Avatar
deepaksachdeva deepaksachdeva is offline
Senior Member
 
Join Date: Jan 2003
Location: Mumbai
Posts: 151
deepaksachdeva is on a distinguished road
Baan: B IV c4, ERP Ln 6.1, Webtop - DB: Oracle , MS Sql Server 2000 - OS: IBM AIX 5.3,windows 2000
Vamsi,

it would be nice, if u pls put up the screen shot of the form, it helps me to understand the layout.

with best regards
Deepak
Reply With Quote
  #10  
Old 28th March 2006, 10:01
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Deepak,

In attachment a screenshot of the form, with a little explanation to it.. Hope this will help..

Feel free to ask if you need any further assistance


Regards,
En
Attached Files
File Type: doc baan_messenger_screenshots.doc (37.5 KB, 354 views)

Last edited by en@frrom : 28th March 2006 at 10:28.
Reply With Quote
  #11  
Old 28th March 2006, 10:15
deepaksachdeva's Avatar
deepaksachdeva deepaksachdeva is offline
Senior Member
 
Join Date: Jan 2003
Location: Mumbai
Posts: 151
deepaksachdeva is on a distinguished road
Baan: B IV c4, ERP Ln 6.1, Webtop - DB: Oracle , MS Sql Server 2000 - OS: IBM AIX 5.3,windows 2000
Quote:
Originally Posted by en@frrom
Deepak,

In attachment a screenshot of the form, with a little explanation to it.. Hope this will help..

Feel free to ask if you need any further assistance


Regards,
En
I think you have forgotten to attach the screenshot.

could u pls attach again.

with regards
Deepak
Reply With Quote
  #12  
Old 28th March 2006, 10:29
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
My apologies; done.
Reply With Quote
  #13  
Old 3rd April 2006, 09:04
gurmeetmakkar's Avatar
gurmeetmakkar gurmeetmakkar is offline
Member
 
Join Date: Mar 2006
Posts: 30
gurmeetmakkar is on a distinguished road
Baan: BAAN 6.1 LN FP2 - DB: SQL - OS: window 2003
please solv my problem

problem is

how to group comment
Reply With Quote
  #14  
Old 3rd April 2006, 09:56
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
gurmeetmakkar,

Please be a little more specific; I don't understand your request...
Reply With Quote
  #15  
Old 28th April 2006, 12:28
litrax's Avatar
litrax litrax is offline
Member
 
Join Date: Sep 2005
Location: Germany
Posts: 95
litrax is on a distinguished road
Baan: ERP LN (FP8) - DB: Oracle10g (10.2.0.1.0) - OS: Solaris
I tried to compile the Script from en@frrom. But the Error "Unresolved reference to function 'disable.fields' " appeared. Do you have any hint for me?
__________________
Have a lot of fun...

Please look at this before asking wholes in the stomach ;-)
http://www.baanboard.com/programmers_manual_baanerp
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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Baan Development Opportunity jurbane Jobs and Resumes 2 30th April 2005 15:23
Invitation to SSA Global's BaaN User Group Meeting in Bangkok nopadon ไทยฟอรัม 0 12th January 2005 20:25
Urgent help needed in Baan srivatsrs Miscellaneous 0 7th January 2005 16:04
Should Baan provide a level 2 database driver for SQL server 2000 on BaanIVc4? patvdv Polls and Surveys 6 28th March 2003 14:22
ERP Security, Baan Example NPRao General Discussion & Chat 2 24th January 2003 01:57


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


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