Click or drag to resize

PFItemPageContext Properties

The PFItemPageContext type exposes the following members.

Properties
  NameDescription
Public propertyApplication
Gets the current application.
(Inherited from PFContext.)
Public propertyApplicationContext
Gets the current application context.
(Overrides PFPageContextApplicationContext.)
Public propertyCanGetSiteFromRequestContext
Gets a value indicating whether this instance can get the PFSite from the request context. This avoids to load the site multiple times, e.g. from the controller factory and the binder. But in that case, creating a new context from another identity will not return the PFSite with the expected authentication. To be enabled carefully for optimization purpose. Default value: False.
(Inherited from PFPageContext.)
Public propertyCanSave
Gets a value indicating whether the current user can save the current item.

In new mode, checks that at least one application context is available.

In other cases, checks the update permissions and the lock.

Public propertyContainer
Gets the type of container hosting the form being generated.
Public propertyContentType
Gets the current content-type.
(Inherited from PFContext.)
Public propertyCurrentUserContextFilter
Gets the id of the application context filtered by the current user. If there is no filter, -1 is returned.
Public propertyDateObjectCreation
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.)
Public propertyForceReadOnly
Gets or sets a value indicating whether the form should be in read-only even if all conditions are met for an edition.
Public propertyIsAdmin
Gets a value indicating whether the user has the owner privilege on the current item.

Will also return true if the user is member of the Site Administrators.

Public propertyIsContainerInView
Gets a value indicating whether the container hosting the form is in a View context.

It currently only concerns rows of gridviews.

If True, the View property should be initialized.

Public propertyItem
Gets the current item.
(Inherited from PFContext.)
Public propertyItemLocks
Gets the locks of the current item.
(Inherited from PFContext.)
Public propertyLockActive
Gets a value indicating whether a PFObjectLock is active for the current user on the current item.
Public propertyLogger
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.)
Public propertyLogIdentification
Gets a technical text representing this object.
(Inherited from PFManagedObject.)
Public propertyMode
Gets the display mode of the form.
Public propertyModelForm
Gets the current Form definition from the current application's model.
Public propertyNewMode
Gets a value indicating whether a new item is being created and the form should be rendered accordingly.
Public propertyPossibleApplicationContexts
Gets the possible application contexts.

Starts with the list of contexts in which the current user can create items of the current content-type.

If a context is forced by the request parameter PFInterfaceConstants.Context_ForcedApplicationContext, only this one is returned.

If a parent context is available, only this one is returned.

Note: a forms restriction (from the application settings) may filter the output.

Public propertySite
Gets the current site.
(Inherited from PFContext.)
Public propertySourceParentItem
Gets the parent(source) item. Only available during the creation from another item (e.g. form gridviews).
Public propertySourceParentItemLocalContextId
Gets the parent(source) item application context. The context is translated if the parent item is in another application. Only available during the creation from another item (e.g. from a gridview).
Public propertyTheme
Gets the current theme.
(Inherited from PFPageContext.)
Public propertyTranslations
Gets the contextual translations provided by Packflow.
(Inherited from PFPageContext.)
Public propertyUnlimitedModification
Gets a value indicating whether the unlimited modification mode is active.

Returns false if the current user is not an admin, even if the mode is active .

Public propertyUrl
Gets or sets the page URL.
(Inherited from PFPageContext.)
Public propertyUser
Gets the current user.
(Inherited from PFContext.)
Public propertyUserLock
Gets the current user lock on the current item, if any.
Public propertyView
Gets the current view.
(Inherited from PFContext.)
Top
See Also