Link to home
Create AccountLog in
Avatar of tashsmith
tashsmith

asked on

Lotus Script: Modifying "Call destdoc.replaceitemvalue" to include specified number of characters

Hi ,

I have a script that takes fields and values from one database and creates a document and populates fields in another.

The problem is this....

One field contains a large amount of text and I wish that only the first 200 characters be sent to the destination document.

The section of the script is below

Call destdoc.replaceitemvalue("ContentSummary", sourcedoc.Article)

so in brief I want 'ContentSummary' to be only the first 200 characters of 'Article'.

Can anyone help?

cheers
ASKER CERTIFIED SOLUTION
Avatar of Bozzie4
Bozzie4
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Sjef Bosman
Less crude:
    Call destdoc.replaceitemvalue("ContentSummary", articleItem.Abstract(200, False, False))  

You can even drop vowels (2nd parameter) or use a dictionary of abbreviations (3rd).
hey hey hey, abstract in notesitem... I didn't know that ... although @abstract crossed my mind :-)
Avatar of tashsmith
tashsmith

ASKER

Ahh thanks guys, this has worked a treat
Tash , you could have shared the points between us.  I think you can ask a moderator to split the points between the experts for this question ...  
Hi Tom,

Could have, but, if your method was used, there's no need because you earned the points fair and square. On the other hand...
I wondered about that, newbie to this, sorry no offence intented,

tash
Anyway, if Stef doesn't mind, I don't mind either :-)

But splitting the points is fairer to all people who helped reach an answer .

cheers,

Tom
fine by me, how do I do it?
 ive looked all over the site, so far no clues
You'd have to post a question in the Community Support section, asking to reopen this question for you. They'll reopen it for you, so you can redistribute points.
can u provide a url, i really cannot see how and where to do this, soz
In Experts Exchange, at the top-righthand corner, there is a link called Support. Just click it.