tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/17-multiples-in-a-data-definition-using-webservicesCascade CMS: Discussion 2018-10-18T20:36:02Ztag:help-archives.hannonhill.com,2010-02-09:Comment/29201872010-09-13T14:46:47Z2010-09-13T14:46:47ZMultiples in a data definition using webservices<div><p>Hi Nathan,</p>
<p>Try taking a look at <a href="http://help.hannonhill.com/discussions/how-do-i/24-add-multiple-values-for-dynamic-fields-using-wsdl">this post</a> and see if my comment there helps you out. While that post deals with Metadata field values, I believe the concept is the same.<br />
</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/29201872010-09-14T21:44:05Z2010-09-14T21:44:05ZMultiples in a data definition using webservices<div><p>Thanks, it took me a bit to wrap my brain around Here is what worked. Now the problem is the number could vary so I need to figure out how to dynamically construct the array.</p>
<pre><code> array(
'type' => "group",
'identifier' => "pi",
'structuredDataNodes' => array(
'structuredDataNode' => array(
array(
'type' => "text",
'identifier' => "pi-fname",
'text' => stripslashes($_POST['pi-fname']) ),
array(
'type' => "text",
'identifier' => "pi-lname",
'text' => stripslashes($_POST['pi-lname']) ),
array(
'type' => "text",
'identifier' => "pi-degree",
'text' => stripslashes($_POST['pi-degree']) ),
)
) ),
array(
'type' => "group",
'identifier' => "pi",
'structuredDataNodes' => array(
'structuredDataNode' => array(
array(
'type' => "text",
'identifier' => "pi-fname",
'text' => stripslashes($_POST['pi-fname2']) ),
array(
'type' => "text",
'identifier' => "pi-lname",
'text' => stripslashes($_POST['pi-lname2']) ),
array(
'type' => "text",
'identifier' => "pi-degree",
'text' => stripslashes($_POST['pi-degree2']) ),
)
) ),</code></pre></div>nathan.tanner