Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
5 subscribers
Views
919 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi All, I am creating a smart service. The smart service has a input
chetany
A Score Level 1
over 9 years ago
Hi All,
I am creating a smart service. The smart service has a input of type Folder.
The user can browse and select a folder as input parameter. I want to restrict the user to be able to browse folders from a particular root folder only.
Specifically, I want the user to be able to browse the folders from the Rules/Constants root-hierarchy only.
How can I implement this? I have gone through the Appian's Java API but could not find anything relevant.
Let me know if anyone has implemented such functionality.
The relevant code in my Smart Service is as follows:
@Input(required = Required.ALWAYS)
@Name("parentFolder")
@FolderDataType
public void setParentFolder(Long val){
this.parentFolder = val;
}
OriginalPostID-179778
OriginalPostID-179778
Discussion posts and replies are publicly visible
0
Lakshmi Meyyappan
over 9 years ago
It sounds like you're implementing the same functionality as the out-of-the-box folder picker:
forum.appian.com/.../SAIL_Components.html
The folder picker allows you to pass in a root folder in the "folderFilter" parameter and select a folder from within that root folder only.
Appian doesn't normally show you the ID of rules and constants folders, but a work-around is to add the relevant rules and constants folder to an application and export it, then open the .zip file and open contents to see the uuid. Then run getcontentdetailsbyuuid() on the uuid to get the folder ID.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel