Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to return values from a callServer
Huan
Hello all,
Using TeamSite 6.5 sol. What I want to achieve is to save the DCR automatically for the user in a subdirectory in the data folder which has less 500 DCRs under it. The subdirectories under data were created before. The structure is as follows (the numbers inside the parenthesis are the number of files under the subdirectories):
data
data1 (502)
data2 (504)
data3 (388)
data4 (0)
data5 (0)
data6 (0)
data7 (0)
data8 (0)
In this case, I want to save the created DCRs to data3.
My approach is to use a callServer and a server-side script to get the desired subdirectory’s name in the onSaveDone handler. Then I can use this subdirectory’s name to set the DCR’s name (IWDCRInfo.setDCRName(dcrName)). However, the callServer doesn’t return any value and besides the DCR is not constructed yet and I cannot set any value for this DCR.
Is there any way to pass the subdirectory's name to the javascript? Can I set the DCR's name in my callServer function? Please help.
Find more posts tagged with
Comments
There are no comments yet