Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

XMLElement - valueFor(String tableName, String fieldName)

Log in to subscribe to topics and get notified when content changes.

XMLElement - valueFor(String tableName, String fieldName)

Specifies that the value of the element maps to the specified field in the specified table.

Calling this method on an element value tells the proxy that the value for this element maps to the specified field in the specified table. The proxy then decides if the field must be encrypted.

This method is available only in an Edge Encryption rule action script.

Table 1. Parameters
Name Type Description
tableName String The table name.
fieldName String The field name.
Table 2. Returns
Type Description

This example is from the List Edit encryption rule.

function ListEditAction(request) {
	var xmlContent = request.postParams.sysparm_xml.getAsXmlContent();
	for (var xmlElementIter = xmlContent.getIterator('record_update'); xmlElementIter.hasNext(); ) {
		var xmlElement =;
		var tableName = xmlElement.getAttributeValue('table');
		for (var xmlRecordIter = xmlElement.getIterator('record'); xmlRecordIter.hasNext(); ) {
			var xmlRecord =;
			for (var xmlFieldIter = xmlRecord.getIterator('field'); xmlFieldIter.hasNext(); ) {
				var xmlField =;
				var fieldName = xmlField.getAttributeValue('name');
				for (var childIter = xmlField.getIteratorOverAllChildren(); childIter.hasNext(); ) {
					var childElement =;
					childElement.valueFor(tableName, fieldName);