By ofridagan on
Hello,
I'm trying to use the node.save service to create a new node in Java.
While I managed to do so with a simple node, I was unable to get pass through a node with a user-reference cck field.
Does someone know what I should pass for this field? uid? username? both? ...non seems to work.
Thanks!
Comments
also..
I tried all of the following:
* [{uid => 1}]
* [{value => 1}]
* [{uid => 1}, {value => username}]
none of them worked... I get "found no valid user with that name".
Apparently this has something to do with the auto complete... I can't figure why it should.
uid:6 --->Daniel
uid:6 --->Daniel Salazar
_Data = new Object();
_Data.field_q_contact = new Array({uid:6});
node.save(_Data);
(mx.messaging.messages::ErrorMessage)#0
body = (Object)#1
clientId = (null)
correlationId = "4A14ACB1-6BA6-4CC6-15BE-F38B44483708"
destination = ""
extendedData = (null)
faultCode = "AMFPHP_RUNTIME_ERROR"
faultDetail = "/home/piensama/public_html/sa/sites/default/modules/amfphp/amfphp.inc on line 74"
faultString = "Contact: found no valid user with that name."
headers = (Object)#2
messageId = "FCC3D770-F8BB-55FE-BFA6-F38B4802F135"
rootCause = (null)
timestamp = 0
timeToLive = 0