IP*Works! V9 - Online Help
IP*Works! V9
Questions / Feedback?

SetEntryProperty Method

Set an OData entry property.

Syntax

public void setEntryProperty(String XPath, String value);

Remarks

This method is intended for extending functionality of the OData bean and will set the value of the entry property (specified by XPath) to the specified Value. Therefore the value of the corresponding property will be updated within EntryProperties.

XPath is the XPath of the element or attribute according to the following convention: entry[x]/element. When EntryIndex is set to an index greater than or equal to zero, a relative path can also be used: property. When a relative path is specified, the bean will use the specified EntryIndex along with the property specified to update the EntryProperty value.

entry[x] is the feed's xth entry (or any other root level child), where the indexer x starts at 1.

property is any child of the properties element. For example:


	ODataControl.SetEntryProperty("entry[5]/content/properties/Name", "MyNewName")

Here is an example using a relative path to retrieve properties of the first feed entry:

	ODataControl.EntryIndex = 1
	ODataControl.SetEntryProperty("Name", "MyNewName")
	ODataControl.SetEntryProperty("Address/State", "NC")

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 9.0.6635.0