|
Get help or share ideas and techniques for creating applications and reports with WebReports and WebReports Extenstions for Workflow. To receive notifications when new posts are created, please choose the "Alert Me" option from the Actions menu below. (Actions > Alert Me)
Edited: 1/26/2010 9:18 AM | |
|  | WebReports JavaScript Requests library - problems in use Hello,
I have a problem starting to use WebReports JavaScript Requests library.
I have imported XML well in necessary directory, when i create new webreport including:
-------------------------------------
[LL_WEBREPORT_SUBWEBREPORT NODEID:[LL_REPTAG_$REQLIB /] /]
script
var form1 = new formObject(120926, 121366);
form1.addFormField(2, 'Yes');
/script
--------------------------------------
there is JavaScript error: formObject is not defined, Also [LL_REPTAG_$REQLIB /] returns nothing.
Ideas what can be wrong?
Thanks  |  |
Posted: 1/26/2010 10:01 AM | |
|  | Hi Ugis,
I think you are getting the JavaScript error because the Request Library is not including properly in your WebReport. I was able to import the Requests Library successfully and didn't see any problems on my end.
A couple of things you can check. Can you ensure you got the Requests Library xml from WebReports Documents > LiveAction Library folder? There is also a pdf file in there which gives installation instructions and how to import the xml file to your Livelink instance. When you import the xml to your Livelink instance it should create a Livelink Requests Library folder which contains 4 sub-items. In a new WebReport if you use the following command:
[LL_WEBREPORT_SUBWEBREPORT NODEID:[LL_REPTAG_$REQLIB /] /]
You need to have a constant called 'REQLIB' defined in the Constants tab of your WebReport. This should be a LivelinkObject constant type and point to the RequestsLibrary.js WebReport. If you specify: [LL_REPTAG_$REQLIB /] on its own it should resolve to the objectId of the RequestsLibrary.js WebReport when you run the new WebReport. Once this is working ok, the library should be included and you should be able to create a new formObject.
Please let me know how this goes. If you are still having problems can you send me some info on your setup? (Ie. Livelink version, WebReport version, browser used, Windows or Unix?)
Thanks,
Stephen  |  |
|
|
|
|