Highlighted
Contributor.
Contributor.
327 views

GroupWise 18.1.1 API Token ItemSetText() is broken

Hello there,

with GroupWise 2012 the GW Token ItemSetText() worked as intended.

Now, we have a problem with our scripts since version 18 with the GroupWise Token ItemSetText(), the
address fields are empty.

As an example:

$gwApplication.Execute('NewMail()', $sResult)
$gwApplication.Execute('ItemSetText("X00";0;"example.com")',$sResult)

Also BC (Value 3) or CC (2) doesnt work, the fields stay empty.
The Fields From (1) or Subject (9) works.

See the description: https://www.novell.com/documentation/developer/groupwise_sdk/pdfdoc/gwsdk_gwtoken/gwsdk_gwtoken.pdf

What can i do or can you confirm it as a bug?!

Kind regards,

Steffen 

Labels (1)
Tags (1)
0 Likes
6 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: GroupWise 18.1.1 API Token ItemSetText() is broken

I passed this on to the client team. They created a bug to track the problem. Preston

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: GroupWise 18.1.1 API Token ItemSetText() is broken

The client developer is not able to duplicate the bug report using the code snippet provided.  Can you provide a sample application that demonstrates the problem?  

0 Likes
Highlighted
Contributor.
Contributor.

Re: GroupWise 18.1.1 API Token ItemSetText() is broken

Sry for the late response. sure i can.

I also forgot to mention, that the problem only exists, when you use the function ItemForwardFlat (and / or with ItemOpen) before.

See the example below (its not a vb script, it's a other script language):

$ToAddr = 'test@example.com'
$Subject = 'This is a item forward test.'

$gwApplication = ObjCreate('GroupWiseCommander')

$run = $gwApplication.Execute('ItemOpen("' & '' & '")',$sResult)
$run = $gwApplication.Execute('ItemForwardFlat()',$sResult)
$run = $gwApplication.Execute('ItemSetText("X00";9;"' & $subject & '")',$sResult) // Subject works
$run = $gwApplication.Execute('ItemSetText("X00";0;"' & $ToAddr & '")',$sResult)  //"to Adress"  doesnt work!!!

Kind regards,

Steffen

Tags (1)
0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: GroupWise 18.1.1 API Token ItemSetText() is broken

Thank you for the additional information.  I've added it to the bug report.

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: GroupWise 18.1.1 API Token ItemSetText() is broken

Hi Steffen,

We've coded a fix.  To get the fix ask support for a GroupWise client field test file.  The fix is available in 18.1.x build 135712 and later.  It's also available in 18.2.x builds 135711 and later.

Thank You for helping us improve the product quality.

0 Likes
Highlighted
Contributor.
Contributor.

Re: GroupWise 18.1.1 API Token ItemSetText() is broken

Hello Jay,

i could tested the code in 18.1.1 build 135716.

Good news: the bug is gone. Nice!

Thank you for fixing the issue.

Kind regards,

Steffen

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.