Hi Justin, Justin Robertson wrote:
Can anyone tell me why the first script is returning None for request.get('argClsRecId')?
Script: request = container.REQUEST response = request.RESPONSE print request.QUERY_STRING print request.get('argClsRecId') return printed
Request URL: http://localhost:8080/scripts/actAddSubjectReport?argClsRecId=159&argStuRecI...
Output: argClsRecId=159&argStuRecId=2288 None
But if you try this script:
request = container.REQUEST response = request.RESPONSE for x in request.items(): print x[0], x[1] return printed
argClsRecId and argStuRecId are there (along with all the other things).
Looks like you call the first script via POST form method. If sent with POST, only form values are respected, the QUERY_STRING arguments are not. You would have to parse yourself (there is support for parsing in the libs, however) Regards Tino Wildenhain