Extending SalRTFDocumentInsert

Missing or incomplete OpenText Gupta product features? Discuss it here!
Posts: 166
Joined: 16 Mar 2017, 08:13
Location: Hannover, Deutschland

Extending SalRTFDocumentInsert

Post by Acclaro » 29 Jun 2014, 11:10

Missing a function to insert RTF-formated text from a (bind-) variable.
with the current function "SalRTFDocumentInsert", which only works with Files, we
1. load the RTF-text from the database
2. save it to a temp file
3. use "SalRTFDocumentInsert" to insert into the RTF-Control

I would prefer a function with Paramtetern because it makes the source code much easier as an additional function.
A future extension would only require another type and not another function

bOk = SalRTFDocumentInsert(hWnd, sFileOrVariable, bOverwrite, nType )

nType = 0, from file (sFileOrVariable defines the file)
nType = 1, from variable (sFileOrVariable defines the variable)

As an example I would like to mention the 17 existing SalDateXXX functions of
SalDateCurrent to SalDateYearBegin these could be replaced by 2 functions and an additional parameter,
first function return date d = SalDate(..., Type)
second function return number n= SalDatePart(..., Type)
this would also speed up the training for beginners in my opinion, because the scope of functions would be clearer (less is more)

thanks in advance


Posts: 191
Joined: 06 Mar 2017, 07:27
Location: Frankfurt, Germany

Re: Extending SalRTFDocumentInsert

Post by Christof » 30 Jun 2014, 07:41


We also do this using this long way round creating temp files. It's annoying.

User avatar
Posts: 892
Joined: 06 Mar 2017, 06:07
Location: Austria

Re: Extending SalRTFDocumentInsert

Post by markus.essmayr » 30 Jun 2014, 15:04

Markus Eßmayr

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Posts: 3390
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Extending SalRTFDocumentInsert

Post by Dave Rabelink » 30 Jun 2014, 15:06

Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

User avatar
Posts: 241
Joined: 10 Mar 2017, 07:53
Location: Rohlstorf, Germany

Re: Extending SalRTFDocumentInsert

Post by H3PO4 » 30 Jun 2014, 16:15



Re: Extending SalRTFDocumentInsert

Post by teambau » 16 Jul 2014, 14:16


Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Google] and 3 guests