Forum Replies Created
-
AuthorReplies
-
Hi Simon!
You might also send a HTML link – that’s what we do:
‘——————————————————————————-
‘ AddLinkHTML
‘——————————————————————————-
Sub AddLinkHTML(oMsg)Dim sfile
sFile = SelectFile()
If sFile <> “” Then ‘ file selected?
Utilities.CopyHTMLToClipboard(“<DIV><A href=file://” & NoSpaceInFileName(sFile) & “>” & sFile & “</DIV>”)
GroupWise.EditPaste
End IfEnd Sub
‘——————————————————————————-
‘ Create short path
‘——————————————————————————-
Function NoSpaceInFileName(filespec)Dim fso, f
If Instr(filespec, ” “) > 0 then
Set fso = CreateObject(“Scripting.FileSystemObject”)
Set f = fso.GetFile(filespec)
NoSpaceInFileName = f.ShortPath
Set fso = Nothing
Else
NoSpaceInFileName = filespec
End IfEnd Function
Hope this helps
Stephan
Generally it should be enough to copy the needed ocx files to the Windows System32 directory and register them with
C:WindowsSystem32Regsvr32 /s C:WindowsSystem32FileX.ocx
Stephan
Thanks for the info. We are waiting for the things to come…
Stephan
Hi!
Unfortunately I have to comeback with another issue:
With the latest GrpWise.exe (14. Dec) we can no longer open messages from shared folders – GrpWise just closes.
There is a problem with formativ and the following registry keys:
HKEY_LOCAL_MACHINESOFTWARENovellGroupWise5.0C3PODataTypesGW.MESSAGE.MAILAdvansys.formativEvents
(I believe with other message types the problem persists)If remove the key ‘…Advansys.formativEventsGW#C#OPEN and restart GroupWise the issue is gone for this session. Unfortunately this key gets recreated automatically and the problem is back on the next start.
Please note: The problem exists also if a user has local admin rights.
One time we have seen the following error message:
‘Exception: Access violation at address 02BAA1BA in module ‘formativ.dll’. Read of address 00000004, Context: GW.MESSAGE.MAIL Persist ID: GW#C#OPEN’Stephan
Hi!
You are correct – the latest GroupWise from Dec. 14th does fix the issue.
Thanks
Stephan
Hi!
I have gone the elimination path. Even if my applet is the only active applet, I get the error described.
I have sent the source code to Support@advansyscorp.com so you can try to reproduce the error.
Regards
Stephan
Hi MA
>> Use utilities.doevents …
Why would this make any change? The problematic applet only gets run when the user presses the send button.The client does not even get refreshed in normal idle operation.
Stephan
Hi,
Yes, I have tries using
GroupWise.AddressBookResolveFullName()But that’s no good for me. GroupWise.AddressBookResolveFullName() is only working through the address books that are included in the NameCompletionSearchOrder list.
Let’s assume this: You click reply on a message from ‘John Doe <john.doe@something.com> (John Doe is not in any address books)
In the To: field you will see ‘Doe, John <something.com>’.
Unfortunatly Msg.To_ will ony return ‘Doe, John’ and the true internet address missing.
There is no way I can resolve the internet address for him using GroupWise.AddressBookResolveFullName().
Can you tell me what API call Formativ is using for retrieving the value of the Msg.To_ field?
Stephan
Hi!
I have acome one intresting fact:
The Formativ statements CurrentItem.To_, CurrentItem.CC and CurrentItem.BC do actually do a full address book resolution.
Thats how I detected this:
1. Add simple code to an ‘before OnSend’ applet
Sub Main(Client, GWEvent)
Set Msg = GroupWise.ComposingItem
If Msg.To_ & Msg.CC & Msg.BC = “” Then Exit Sub ‘ No recipients
… your code here…
Exit Sub2. Create a new message with only INVALID address (e.g. asdfg) in the To line and press send. You will get an address resolution error dialog!
Unfortunately there is no way of retrieving the just resolved addresses… any chances to implement this in a future version of formativ?
Stephan
Hi!
GroupWise.ItemSaveMessageDlg()or GroupWise.ItemSaveMessageDraft(“”) are ways to save the draft message (again).
However I need the ‘Select folder’ dialog activated again, so I can say where where I want o save the new draft message to be stored.
Background: In order to have access to the ExpandedRecipient property I need to save the message as a
draft message in the ‘work in progress folder’. I do this per ItemSaveMessageDraft(Work In Progress Folder).So far no problem.
I now access the ExpandedProperties with an OnSend-applet. If the user decides NOT to send the message he gets redirected to the open message.
Now it’s time to remove the left over draft message since the user should not notice the trick with the draft message.
That’s where the trouble starts: Since the message was once stored (and later removed from the ‘work in progress folder’), a subsequent click on the save button just saves the message in the mailbox folder (root folder?). How can I make the ‘Select folder’ popup again on the ‘save draft msg’ button so the user can specify where to save the draft message?
Stephan
>>(i.e. add a space to the subject, then remove it) which might cause the client to recognise the message as requiring a resave.
This just makes the ‘save button’ active again.
However I need the ‘folder dialog’ to reappear so that I can save the msg to the folder of my choice.
Maybe I have to unlink the msg from all folders. How would I do this?Stephan
Good to know!
Hi!
I have used some of your sample code with limited success.
‘iWIPPath = GroupWise.Account.Owner.DisplayName & “” & GroupWise.Account.WorkFolder.Name’
If the workFolder is in a subfolder, then it fails. How can I build a complete folder-path for ‘groupwise.ItemSaveMessageDraft(iWIPPath)’ ?
BTW: The help-file does not contain a section ‘GroupWise.FolderCreate’
TIA
StephanHi
I have the following reg keys:
‘HKEY_CURRENT_USERSoftwareAdvansys Corporationformativ1.0Settings’
“Encoded Applets Output”=”H:\My Documents\”
“Flexalock Applet Output”=”H:\My Documents\”
“Applet Cache”=”H:\My Documents\”
“Flexalock Output”=”C:\Program Files\Advansys\Formativ\Applets\Flexalock Output”
“Encoded Macros”=”C:\Program Files\Advansys\Formativ\Applets\Encoded Output”
“Add Help Menu Items”=dword:00000000
“Data”=”H:\My Documents\”
“Debug”=dword:00000000
“Exception Countdown”=dword:00000000
“Exception Dialog”=dword:00000001
“Force Toolbar Wrap”=dword:00000001
“Help Centre Home”=”http://www.advansys.info/formativ_helpcenter.htm”
“Help Centre Last Shown”=dword:00000000
“Help Centre Reminder”=dword:00000007
“Include Groups in Discovery”=dword:00000000
“LDAP Allow Anon Login”=dword:00000000
“LDAP Automated Login”=dword:00000000
“LDAP Cache All”=dword:00000000
“LDAP Certificate”=””
“LDAP Default Password”=””
“LDAP Default Port”=dword:00000185
“LDAP Default Port SSL”=dword:0000027c
“LDAP Ignore Bind Failure”=dword:00000000
“LDAP Port”=dword:00000185
“LDAP Port SSL”=dword:0000027c
“LDAP Save Password”=dword:00000001
“LDAP Server”=””
“LDAP Server Requires Logon”=dword:00000001
“LDAP SSL”=dword:00000000
“LDAP Use Default Password”=dword:00000000
“LDAP Use Default Username”=dword:00000000
“LDAP Username”=””
“Library Backup”=””
“Local Scripts”=”C:\Program Files\Advansys\Formativ\Applets\”
“Macro Hints”=dword:00000001
“Max Traversal”=dword:0000000a
“Menu Caption”=”A&pplets”
“Mode”=dword:00000005
“No Solutions Warning”=dword:00000000
“Portal Folder Deleted”=dword:00000000
“Portal Folder Enabled”=dword:00000000
“Portal Folder Name”=”Formativ Portals”
“Protocol Order”=dword:00000000
“Protocol Override”=dword:00000000
“Redirect Associations”=dword:00000000
“TLS Mode”=dword:00000000
“Word Limit”=dword:00000000
“Word Limit Count”=dword:00000002
“Code Explorer”=dword:00000069
“Current Line”=dword:00000000
“Default Author”=”That’s me”
“Default Author Email”=”someone@somewhere.com”
“Default Author Phone”=”+123 456 789”
“Default Author URL”=”www.somewhere.ch”
“ListWidth”=dword:00000138
“WindowHeight”=dword:000003ec
“WindowLeft”=dword:fffffffc
“WindowState”=dword:00000002
“WindowTop”=dword:fffffffc
“WindowWidth”=dword:00000508
“Toolbar Limit Override”=””
“Help Centre Content Version”=dword:00000000
‘HKEY_CURRENT_USERSoftwareAdvansys Corporationformativ1.0SettingsExceptions’
@=””In the ‘HKEY_LOCAL_MACHINESoftwareAdvansys Corporation’ hive there is no reference to ‘H:My Documents’ what so ever.
And Formativ (Runtime 2.0) still creates
‘H:My DocumentsAdvansysFormativEncoded Output’ and
‘H:My DocumentsAdvansysFormativFlexalock Output’
upon startup…. what the heck???There is no need for these directories (the will only bring up unnecessary questions and therefore cause helpdesk trouble).
Regards
Stephan
Hi!
NOT working means:
I cannot redirect the (at least) following 2 folders:
‘Encoded Macros’
‘Flexalock Output’Formativ is always creating to sub folders under the directory specified by ‘HKEY_CURRENT_USERSoftwareAdvansys Corporationformativ1.0SettingsData’
BTW: I assume that all listed reg entries should by of type ‘string’.
How can I avoid/redirect the creation of the 2 folders
H:My DocumentsAdvansysFormativEncoded Output &
H:My DocumentsAdvansysFormativFlexalock OutputPlease check you mailbox again – maybe my mails get blocked by a spam filter.
Regards,
Stephan -
AuthorReplies