make ronica.net/cpFirstApp/ work:
1. solve the makefolder.php problem so that new folders are created correctly - solved
2. solve the albumdata problem - works, but how to make setAppData to delete/replace a tag/value pair? it seems that if I use an already existing tag, it appends the value to the existing value. (if the value argument is not present then setAppData will remove the tag)
strange, it didn’t work for me. beside, if I try to CHANGE the value, not to delete it, it will append. something like
old value : <example>val1</example>
new value: <example>val1<example>val2</example></example>
What is the xpath, tag and value that you are sending ?
this is my function call:
$page->post ( ‘Folders_setAppData’, Array (’xpath‘ => “/mydata”, ‘fid’ => $_REQUEST ["_albumcode"], ‘folder_name’ => $_REQUEST ["_albumname"], ‘folder_description’ => $_REQUEST ["_albumdescription"], ‘tag‘ => ‘dataexample’, ‘value‘ => $_REQUEST["_dataexample"]) );
xpath in that case should include the tag - xpath = “/mydata/dataexample“, tag=”dataexample” , value=something/null
I get:
System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.XmlTextReaderImpl.InitStringInput(String baseUriStr, Encoding originalEncoding, String str) at System.Xml.XmlTextReaderImpl..ctor(String xmlFragment, XmlNodeType fragType, XmlParserContext context) at System.Xml.XmlLoader.CreateInnerXmlReader(String xmlFragment, XmlNodeType nt, XmlParserContext context, XmlDocument doc) at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt) at System.Xml.XmlElement.set_InnerXml(String value) at pixInfra.XmlHelper.ReplaceTag(String xpath, String tag, String value, String[] listatt) in D:\Dev\funpix\pixInfra\xml.cs:line 378 at ASP.skins_api_rest_aspx.Method_folders_setAppData.Process() in d:\WebSites\tmpCincopa\Skins\api\rest.aspx:line 1503 at ASP.skins_api_rest_aspx.BaseMethod.Invoke(NameValueCollection tmpprms) in d:\WebSites\tmpCincopa\Skins\api\rest.aspx:line 655 — End of inner exception stack trace —
Check this page for more info http://www.cincopa.com/Developer/storeDataAPI.aspx
No luck, this is the log:
3. make Edit album work correctly - solved
status: solved, it now fully supports Unicode, hebrew characters and portuguese chars