Show / Hide Table of Contents

RefreshContext

Object and Type

Object  : FCSession

Type     : Method

Prototype

Public Sub RefreshContext()

Description

This method refreshes the Item data collection for the FCSession. If any of the contact or user data is updated, the RefreshContext method should be called in order to update the data in the Item collection.

Example

The following example updates the contact information and refreshes the context.

JavaScript:

Contact Phone Number Before = <%=FCSession.Item("contact.phone")%><BR>

<%
var boContact = FCSession.CreateGeneric();
boContact.DBObjectName = "contact";
boContact.AppendFilter("objid", "=", "268435457");
boContact.Query();

boContact("objid") = FCSession.Item("contact.id");
boContact("phone") = "512-418-2905";
boContact.Update();

FCSession.RefreshContext();
%>

Contact Phone Number After = <%=FCSession.Item("contact.phone")%><BR>
Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.