Documentation > Services API > ServicesPostInput

CrownPeak.CMSAPI.Services.ServicesPostInput

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

NameDescriptionType
SetAssetLabel(Asset,PostInputContext,String,String)

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

Method
SetDateTime(PanelEntry,String,Boolean)

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(PostInputContext,String,Boolean)

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(PostInputContext,String,String,Boolean)

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