Skip to main content
Skip table of contents

Sage: create formatted text (CreateRichText)


Sage: create formatted text (CreateRichText)

Create a formatted text. Multiple parameters can be filled with their corresponding values in the input parameter group. The following parameters in the parameter group can be filled: formulargruppe, lang_ext, txt_art, txt_nr, txtrich, useraen, userneu.

The text is entered on the parameter txtrich. This text can be formatted as per the usual rules in B7 or unformatted. The parameter txt_art specifies the type of text to be created (e.g. TTI for an article text). If a txt_art is not entered, then APP is used. The txt_nr is automatically generated and returned. If a formatted text is to be created for multiple languages, the txt_nr obtained from the first call can be used for the text in other languages.

If the formatted text cannot be created, the service delivers a corresponding error message. This is entered via the parameter Message. Before evaluating the output parameter group, the parameter Message should be verified.

The following parameters in the output parameter group are filled:

aendnr, dataen, datneu, formulargruppe, lang_ext, txt_art, txt_nr, txtlong, txtrich, useraen, userneu.

Syntax:

Status = f$SageService ( Service , 'CreateRichText' , 'PGINPUT' , 'PGOUTPUT' )

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'CreateRichText'

String

Command constant

 

'PGINPUT'

String

Name of the ePOS parameter group with the data for the formatted text to be created.

 

'PGOUTPUT'

String

Name of the ePOS parameter group with the result data.

Result:

Integer

Status of the function:

1 : the service function was successfully called

-1 : the component eposvbcomexe could not be found

-2 : function URL not entered

-4 : general error

Example:

B7Service = 'http://b7demo.sagebaeurer.de/br71/callin/epos_soap'
rich_text.txtrich = 'Description of the article'
rich_text.lang_ext = 'en_us'
rich_text.txt_art = 'TTI'
Status = f$SageService ( B7Service , 'CreateRichText' , 'rich_text' , 'rich_text' )
p$anzeige_ergebnis('rtf_liste' )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.