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
13 replies
Subscribers
6 subscribers
Views
4518 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Are there plugins to create user group during run-time?
sudhak
over 8 years ago
Are there plugins to create user group during run-time?
OriginalPostID-224415
OriginalPostID-224415
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 8 years ago
@sudhak, The solution given by Sikhivahans is a good one. It will get the job done. However, if you are looking for a function like a!createCustomGroup which is there in Appian 16.2, then I have created a plugin. I have created an expression function which can be used with bind(). It creates a custom group at runtime. Please find the attached zip file. you can go through the code - it works but is not perfect. I have not added validations for the different parameters the function takes. My expression function also has the name createcustomgroup().
SAIL example to use the plugin function created:
load(
local!grpName: fn!bind({}, createcustomgroup(
name: _,
description: "New group",
delegatedCreation: true,
membershipPolicy: "AUTOMATIC",
securityType: "PUBLIC",
groupPrivacy: "LOW"
)) ,
a!formLayout(
label: "Test group Add",
firstColumnContents: {
a!textField(
label: "Group Name",
value: local!grpName,
saveInto: local!grpName
)
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 8 years ago
@sudhak, The solution given by Sikhivahans is a good one. It will get the job done. However, if you are looking for a function like a!createCustomGroup which is there in Appian 16.2, then I have created a plugin. I have created an expression function which can be used with bind(). It creates a custom group at runtime. Please find the attached zip file. you can go through the code - it works but is not perfect. I have not added validations for the different parameters the function takes. My expression function also has the name createcustomgroup().
SAIL example to use the plugin function created:
load(
local!grpName: fn!bind({}, createcustomgroup(
name: _,
description: "New group",
delegatedCreation: true,
membershipPolicy: "AUTOMATIC",
securityType: "PUBLIC",
groupPrivacy: "LOW"
)) ,
a!formLayout(
label: "Test group Add",
firstColumnContents: {
a!textField(
label: "Group Name",
value: local!grpName,
saveInto: local!grpName
)
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data