스케쥴 » Api

getperioditembyindex

Description

첫번째와 두번째 파라미터를 기준으로 해당 기간일정 정보 오브젝트를 리턴한다.

Parameters

Parameters Type Description
strDate STRING 기간일정 날짜
nIndex short 기간일정 인덱스(Zero-Based)

Return Value

Type Description
class 아이템 정보 오브젝트 또는 null

Remark

해당하는 기간일정이 없는 경우 null 값을 리턴한다.

일정 정보 오브젝트의 구조는 getperioditembykey 함수 도움말을 참조한다.

Example

function btn_on_mouseup() { var objItemInfo = schedule.getperioditembyindex("20231203", 0); if (objItemInfo != null) { factory.consoleprint("start_date = " + objItemInfo.start_date); factory.consoleprint("end_date = " + objItemInfo.end_date); factory.consoleprint("key = " + objItemInfo.key); factory.consoleprint("title = " + objItemInfo.title); factory.consoleprint("memo = " + objItemInfo.memo); factory.consoleprint("image = " + objItemInfo.image); } else { factory.consoleprint("The object is null"); } }

See Also

getperioditembykey

Viewer Ver.

9.1.1.1

Update Date

20240110