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)
Browse for datapath should not allow files to get selected
MSinghSolanki
In the current scenario when we select the xml path or data path in a DCT, the user is able to select a file ,due to which ,when the user tries to generate the dct , the user is getting a pt error. So can there be a way that if the user selects a file instead of an folder , the user should be validated and given a message that the path is invalid.
ie. while browsing path for datapath a file named "myteam" can be selected using browse button
/templatedata/bac_enterprise/Team_Members/data/en_US/myteam
But is there any way to restrict this to
/templatedata/bac_enterprise/Team_Members/data/en_US
Please help!
Find more posts tagged with
Comments
Adam Stoller
Well, you could create your own browser UI which could prevent users from selecting files (perhaps based on a flag passed in, so that the code can be more generally used) or you can add validation code to your DCT, which will probably have to make a callServer() call to validate the path on the file system (either in Perl or Java or whatever).