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)
Attach files from a workflow screen
abhishek_gupta
Hi,
In my workflow screen, I have provided a hyperlink which says attach files. It should actually open up a browser window from which I could select my file and attach it to my workflow.
I was trying something with -
anchors =>
[
html => "</td></tr><tr><td colspan=2><br><br>",
label => "</td></tr><tr><td colspan=2 align=center>" .
"<A HREF=/iw-bin/iw_cgi_wrapper.cgi/att_files3.cgi?area=$area_vpath&sessid=$id&userid=$userid2&viewp=true target=_new>Click to attach files</a>",
valid_input => '1',
is_required => 'false',
],
This doesnt work though. It gives an internal server error.
Has anyone done this kinda thing before.
Do help ou!
Thanks,
Abhi
Find more posts tagged with
Comments
rollo
There's a period instead of a comma after your label, although I don't know how relevant that is. Does the CGI work outside of the workflow? If it does, it's probably something to do with permissions.
abhishek_gupta
No, it should be a period as its concatenating the 2 lines. I changed it to a comma and the WF gives an error.
The cgi file gives an error outside too. It says -
TeamSite : Wrapper\nError: Internal Error: Could not determine program name since PATH_INFO is NULL.
Thanks
Abhi
rollo
Okay, yeah I see the period - I don't know why you'd need it though.
Try running it without the wrapper (/iw-bin/att_files3.cgi?...). But you may still need to supply parameters to make it work. Presumably you wrote the CGI or can see the code, and know that it does actually work.
Adam Stoller
As was suggested - I'd try doing it without the iw_cgi_wrapper.cgi, I'd also try to keep things as simple as possible without all the other hooplah you got there, and I'd make sure that even though basic HTML doesn't care about matching tags, I'd still match my 'A' and '/a' tags to use the same case - so perhaps something like:
anchors => [
html => "<input type='text'>",
label => "(<a href="att_files3.cgi?area=$area_vpath&sessid=$id&userid\$userid2&viewp=true target='_new'>Click to attach files</a>)",
is_required => 'false',
],
I might go even further and suggest you create that URL in its own variable and add some debugging to verify the value of the URL at the time it is being used (it will probably be executed 2 or 3 times with various parameters existing).
then - clarify "doesn't work" by - does the prompt show up in the workflow instantiation form or does it error out before rendering the instantiation form? If it makes it to the instantiation form - does it error out only when you click on the link - or only when you attempt to set values back to the associated field (which you didn't seem to have previously)?
--fish
(Interwoven Senior Technical Consultant)
rollo
Just nit-picking, but to avoid complicating matters there's a couple of typos in the label line - it should be:
label => "(<a href='att_files3.cgi?area=$area_vpath&sessid=$id&userid=$userid2&viewp=true' target='_new'>Click to attach files</a>)",