smateen
24th December 2013, 09:27
I would like to send session short cut to users as e-mail based on a setup. Presently we are able to send emails but not session short cut to users.
For example if we want a user to look into tsclm1100m000 session for a particular call send send him the session short cut as is avalible in choice "Sent To" tsclm1100m000 {6aefe904-413c-46cf-af33-2731e5359139}.bwl
Here i want to know how the the string {6aefe904-413c-46cf-af33-2731e5359139} can be constructed dynamically, so the message can be send when ever there is any change in session to specied users in setup.
The help which i require is how to confiure argument string.
bhushanchanda
24th December 2013, 10:39
Hi,
What is the purpose behind that? Well, the first thing you need to know is, when you save a worktop document, .gct file & .sct file is created in the templates.
So, what you can do is, you can directly create a program that will edit the .gct file of the users document which is basically xml file and is used to design the things displayed in worktop.
So, sending the shortcuts through email is not an option, you will need a program to edit the .gct file and add the shortcuts in the file.
The second way can be using Centralized Deployment.
smateen
24th December 2013, 11:02
1) We have a repsonsiblity flow (a customized form of mini work flow) based on user actions and service activity requirements. This triggers e-mails to respective users based on the setup. The e-mails are generated in user DALs tssoc210ue using CMF mail functions. To this email content i want to add session short cut as well so that when the user double clicks is it directly opens the mentioned service activity in the session service activities.
bhushanchanda
24th December 2013, 11:11
Ahh,
Then you might want to go with OLE kind of automation. Like, you can create a .vbs file at runtime which will open the session using BaanOle. and then send the file to user.
But again, it will have a few requirements to be able to be generic.
smateen
24th December 2013, 11:21
Yes you are right. Beacuse user will be able to work only on one record which is opened by this short cut.
smateen
24th December 2013, 12:43
can u pls elobrate the comment "..will have a few requirements to be able to be generic."
bhushanchanda
24th December 2013, 13:02
Hi,
Like, OLE requires a document to be able to call Baan sessions. So, first requirement would be every user should have a document created with a command name. The next thing is that, the document has a Host Name, again depending on users location either you have to use a local Lan IP or a static Ip to be able to connect to Baan.
I am just assuming this requirement, may be you will need much more than this. But, once you start with the implementation you will figure it out.
smateen
24th December 2013, 13:17
Yes you are right. The user(s) is/are valid user(s) of Infor LN from the local systems. My requirement is how to construct the argument part of the string .
smateen
24th December 2013, 14:44
Thanks to Bhushan. I have found the clue. The way for opening a session through file with extension "bwl" is as follows:
Syntax:
[Configuration]
hostname=<hostname>
bse=<bse path>
bshell=bshell
[Query]
session=<Session Code>
company=<Company in which code is to be opened>
query=<((Key fields of the session main table))>
Example:
[Configuration]
hostname=serv1
bse=j:\infor10
bshell=bshell
[Query]
session=tsclm1100m000
company=022
query=((tsclm100.ccll = 'KYC474822' ))
bhushanchanda
24th December 2013, 16:16
Very good :)
mark_h
24th December 2013, 17:49
Moved this to the correct forum. The code and utilities forum is where you actually post code you developed and want to share with everyone.
rahul.kolhe22
27th December 2013, 08:29
Hi,
This was very helpful. I tried searching for some documentation regarding bwl file, but was not able to find it.
Can you please tell me from where we can find documentation for this...
Thank you.
Kind Regards,
Rahul