FWCalendarActivity
FWCalendarActivity():New()Represents a calendar activity.
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.)
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)
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 NilPopulated object released; no appointment saved. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- 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.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.