9 48 DELETE_WEB_COMPONENT

LANSA Technical

9.48 DELETE_WEB_COMPONENT

Þ Note: Built-In Function Rules.

Programmatically delete a Web Component. Refer to the LANSA for the Web Guide for more information about Web Components.

All versions (including backups) of the page text will be deleted.

This Built-In Function only supports page, script, text, and visual components. An error will be issued if an attempt is made to delete a banner, weblink, or file component.

When deleting a component, if a language is specified, only the X02 records for that language will be deleted. If *ALL is used for the language, X02 records for all languages are deleted, as well as the X03 and X01 header records.

For use with

LANSA for i

YES

Only available for RDMLX.

Visual LANSA for Windows

YES

 

Visual LANSA for Linux

YES

 

 

 

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Web Component

1

20

 

 

2

A

Req

Mode. Possible values are:
I: Input
O: Output
N: Not applicable.

1

1

 

 

3

A

Opt

Language
Default is all languages (*ALL)
For non-multilingual partitions this should be 'NAT'
*DFT - partition default language.

4

4

 

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Opt

Possible values are:
OK: Delete completed normally.
NR: No component found to delete.
ER: Delete encountered an error.

1

2