Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FWCalendarWidget

FWCalendarWidget():New(oOwner)

Displays activities with caller-defined operations.

FWCalendarWidgetAdvPL
01 · OVERVIEW

Overview

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.)

02 · SYNTAX

Syntax

FWCalendarWidget():New(oOwner)

Parameters

oOwner
ObjectRequired

Already-prepared interface container.

Methods

NewDefines the owner container.FWCalendarWidget():New(oOwner)
SetbRefreshBlock receives date and returns activity array.o:SetbRefresh(bRefresh)
SetbNewActivityCreation callback receives date and selected times when available.o:SetbNewActivity(bNew)
Activate / DeActivateActivates/deactivates visualization.o:Activate() / o:DeActivate()
03 · PRACTICAL EXAMPLE

Commented example

// Fragment: interface container already prepared.
oCalendar := FWCalendarWidget():New(oOwner)
// Returns no activities; does not activate the interface.
oCalendar:SetbRefresh({|dDate| {}})
Expected result

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.

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. FWCalendarWidget. 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