A script-enabled browser is required for this page to function properly.

SRW.SET_XML_TAG built-in function

This function replaces the current report, group, outer group, or column XML tag.

Syntax

SRW.SET_XML_TAG (type, 'name', 'string');

Parameter

Description

type

Is one of the following: SRW.REPORT_XML, SRW.GROUP_XML, SRW.GROUP_OUTER_XML, or SRW.COLUMN_XML. It indicates whether the object is a Report, Group or Column object. If a Group object, whether it is for the group or outer group XML tag.

name

Is the report object XML tag to be set.

string

Is the XML text to be used.

Restrictions

Example


FUNCTION BeforeReport return boolean is 
  begin 
    SRW.SET_XML_TAG(SRW.REPORT_XML, 'DEPT', 
      'TOOLS_DIVISION'); 
    SRW.SET_XML_TAG(SRW.GROUP_OUTER_XML, 'G_DEPTNO', 
      'DEPARTMENT_LISTING'); 
    SRW.SET_XML_TAG(SRW.GROUP_XML, 'G_DEPTNO', 
      'DEPARTMENT'); 
    SRW.SET_XML_TAG_ATTR(SRW.GROUP_XML, 'G_DEPTNO', 
      'NUMBER="&DEPTNO"'); 
    SRW.SET_XML_TAG(SRW.COLUMN_XML, 'DNAME', 
      'DEPARTMENT_NAME'); 
    return (TRUE); 
  end;

See also

XML Tag property

XML Tag Attributes property

Outer XML Tag property

Outer XML Attributes property