Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FWCalendarActivity

FWCalendarActivity():New()

Represents a calendar activity.

FWCalendarActivityAdvPL
01 · OVERVIEW

Overview

This data object feeds FWCalendarWidget. Configure ID, title, dates and times before display. SetPriority accepts LOW, MEDIUM or HIGH with associated colors; avoid combining SetColor when priority colors are intended. The example builds fictional data without persistence or calendar activation. New’s table mentions owner, whereas syntax and example use no argument; this subset follows those examples. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FWCalendarActivity():New()

Methods

SetID / SetTitleIdentifies and names the activity.o:SetID(cID) / o:SetTitle(cTitle)
SetDtIni / SetDtFinReceive AdvPL dates.o:SetDtIni(dDate) / o:SetDtFin(dDate)
SetHrIni / SetHrFinReceive time text.o:SetHrIni(cHour) / o:SetHrFin(cHour)
SetPriorityLOW, MEDIUM or HIGH.o:SetPriority(cPriority)
03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed413()
    Local oActivity := FWCalendarActivity():New()
    // Prepare data without persistence.
    oActivity:SetID("ED01")
    oActivity:SetTitle("Editorial review")
    oActivity:SetPriority("LOW")
    oActivity:SetDtIni(SToD("20261026"))
    oActivity:SetDtFin(SToD("20261026"))
    oActivity:SetHrIni("09:00")
    oActivity:SetHrFin("10:00")
    FreeObj(oActivity)
Return Nil
Expected result

Populated object released; no appointment saved. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check LIB version, lifecycle and context before integration. These methods are a documented subset rather than the complete API.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWCalendarActivity. TDN. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha