페이지 트리

버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.
댓글: 텍스트 영문으로 변경

Easy Heading Macro
navigationTitle목차
navigationExpandOptionexpand-all-by-default
navigationWidth225

...

Variable Registration (

...

지정한 변수값을 데이터의 검색 조건으로 지정하기 위해서는 변수를 선언해야 합니다.

...

Assignment)

To designate a specified variable value as a query condition for data, you need to delcare the variable.

There are two ways to use variables; declaring variables through a script or using the Variable Editor menu.

변수 유형에 따라 SQL 바인딩 규칙이 다르기 때문에 유형에 맞는 예약어로 변수명을 지정해야 합니다.

문자형 변수 예약어
정보
titleSQL 바인딩 규칙
Binding Rules

Since SQL Binding rules differ depending on the variable type, you must specify the variable name with a reserved keyword that matches the type.

  • String Variable Reserved Keyword (:VS_)
    Variables starting with 'VS_' 로 시작하는 변수는 SQL 바인딩 시 앞 뒤로 are executed with '' (Single Quotation )을 붙여 실행됩니다Marks) added before and after them during SQL binding.
    Ex) AND USER_NAME = :VS_USER_NAME → AND USER_NAME = 'Tom'
  • 수치형 변수 예약어 Numeric Variable Reserved Keyword (:VN_)
    Variables starting with 'VN_' 로 시작하는 변수는 SQL 바인딩 시 단순 치환됩니다.
    are simply substituted with their values during SQL binding.
    Ex) AND AGE = :VN_AGE → AND AGE = 28
  • 라인 삭제 옵션 Line Deletion Option (@)
    변수 예약어 앞에 '@' 기호를 붙이면 변수에 지정된 값이 없을 때 해당 조회조건 라인이 삭제됩니다.
    If you prefix a variable reserved keyword with the '@' symbol, its query condition line will be deleted when the variable has no assigned value.
    Ex) WHERE 1=1 AND USER_NAME = @:VS_USER_NAME → WHERE 1=1

컨트롤 활용

...

Utilizing Controls

You can assign the variable name to the Name field of a Control.

Utilizing the Variables Editor

...

You can register variables and assign their values using the Variables Editor.

...

How to Use the Variables Editor Window

  • Add/Delete : 변수를 추가하거나 삭제합니다Add or delete variables.
  • 변수 지정
    Specify Variable
    1. Assign the Variable Name starting with VS_ , or VN_로 시작하는 변수 Name을 지정합니다.
    2. Value를 지정합니다Assign the Value.
      • Enter the Value 값을 직접 입력directly
      • Formula 작성하여 결과값 반환
      • 보고서 내 소스코드 활용하여 Value 설정

변수 사용

DataSource에서 사용

SQL문에서 사용

Image Removed

i-META Viewer에서 사용

Image Removed

...

      • Create a Formula to return a result value
      • Set the Value by utilizing source code within the report

Using Variables

Used in DataSource

Used in SQL Statements

Image Added

Used in i-META Viewer

Image Added

Used in Client Script

컨트롤 불러오기
정보
titleParameter 관련 API
-related APIs
  • Loading a Control
    Matrix.getObject(name)변수편집기
  • 내 변수 불러오기Loading a variable from the Variables Editor
    Matrix.GetVariable(name)
  • 변수편집기 내 변수 값 설정Assign a variable value in the Variables Editor
    Matrix.SetVariable(name, value)

변수 바인딩 결과 확인하기

...

Check Variable Binding Result

You can check the variable binding results through the Log Viewer.