oOwnerAlready-prepared interface container.
AdvPL GuideFWCalendarWidget():New(oOwner)Displays activities with caller-defined operations.
The widget displays an array of FWCalendarActivity but does not implement persistence or CRUD. SetbRefresh receives the selected date and must return activities. Consulted documentation limits visualization to daily mode in Protheus 12. This fragment uses a deterministic empty callback rather than pretending missing registration routines exist. Rules, permissions and writes remain separate responsibilities. (Sources: refs. 1–1.)
FWCalendarWidget():New(oOwner)oOwnerAlready-prepared interface container.
FWCalendarWidget():New(oOwner)o:SetbRefresh(bRefresh)o:SetbNewActivity(bNew)o:Activate() / o:DeActivate()// Fragment: interface container already prepared.
oCalendar := FWCalendarWidget():New(oOwner)
// Returns no activities; does not activate the interface.
oCalendar:SetbRefresh({|dDate| {}})Refresh callback configured to return an empty array. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.