AnsweredAssumed Answered

Form problem

Question asked by kiri31 on Jun 4, 2009
Latest reply on Jun 8, 2009 by kiri31
Hi, i try to make a form like the webview configuration.
The form appears, but problems raise when i submit the form :

org.alfresco.web.scripts.WebScriptException: 05040001 Failed to load script '/or
g/alfresco/modules/test/config-test.post.json.js (in classpath store file:C:
/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': 05040
000 TypeError: Cannot read property "properties" from null (file:C:/Alfresco/tom
cat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/modules/
test/config-test.post.json.js#7)

here the contain of config-test.post.json.js

var c = sitedata.getComponent(url.templateArgs.componentId);

var testLogin = String(json.get("testLogin"));
var testPass = String(json.get("testPass"));
var testURL = String(json.get("testURL"));

c.properties["testLogin"] = testLogin;
model.testLogin = (testLogin == "") ? null : testLogin;

c.properties["testPass"] = testPass;
model.testPass = (testPass == "") ? null : testPass;

c.properties["testURL"] = testURL;
model.testURL = (testURL == "") ? null : testURL;

c.save();

Thanks a lot for your help

Outcomes