Documentation > Services API > ServicesPostInput

CrownPeak.CMSAPI.Services.ServicesPostInput

PostInput template utility methods for commonly used post-input code.

NameDescriptionType
SetAssetLabel

ServicesPostInput.SetAssetLabel() Set given asset's Label from specified field in PostInputContext

Method
SetDateTime

Accepts an asset and a fieldname, overloads for panel entry and panel entry fieldname looks for showdatetime fields in input form and saves them to a consolodated field with the name fieldname. Saves the fields in a consolodated datetime field that can be used in output and for sorting in filter and file lists This override is used by panelEntrys. Load and iterate through panels in the input form before calling.

Method
SetDateTime

Accepts an asset and a fieldname, overloads for panel entry and panel entry fieldname looks for showdatetime fields in input form and saves them to a consolodated field with the name fieldname. Saves the fields in a consolodated datetime field that can be used in output and for sorting in filter and file lists

Method
SetDateTime

Accepts an asset and a fieldname, overloads for panel entry and panel entry fieldname looks for showdatetime fields in input form and saves them to a consolodated field with the name fieldname. Saves the fields in a consolodated datetime field that can be used in output and for sorting in filter and file lists

Method

Connect with Crownpeak