History: Execute on List
Preview of version: 2
- «
- »
Profile to demonstrate the usage of plugin List Execute, among other features in Tiki 15 LTS and higher versions.
To be continued (of course)
This page will be created:
https://profiles.tiki.org/Profile_Execute_Actions_page
This will include: Profile_Voting_System_voting_page
To be continued (of course)
This page will be created:
https://profiles.tiki.org/Profile_Execute_Actions_page
Copy to clipboard
preferences: feature_trackers: y feature_wiki_argvariable: y useGroupHome: y limitedGoGroupHome: y trackerfield_autoincrement: y trackerfield_dropdownother: y wikiplugin_remarksbox: y wikiplugin_tracker: y instructions: Profile_Execute_Actions_page objects: - type: tracker ref: trade_approval data: name: Trade Approval description: > Keep record of trade requests, and approvals sort_default_order: desc list_default_status: opc modification_status: pending email: monitoring@example.com show: - creation_date - modification_date - status - status_admin_only - type: tracker_field ref: trade_approval_trAppID data: name: ID permname: trAppID tracker: $profileobject:trade_approval$ options: start: 1 itemId: itemId type: auto_increment order: 0 flags: - link - list - searchable - public - mandatory - type: tracker_field ref: trade_approval_trAppEmail data: name: Email permname: trAppEmail tracker: $profileobject:trade_approval$ options: type: email order: 10 flags: - list - searchable - public - mandatory - type: tracker_field ref: trade_approval_trAppFullName data: name: Full Name permname: trAppFullName tracker: $profileobject:trade_approval$ options: samerow: 1 autocomplete: n exact: n type: text_field order: 20 flags: - list - searchable - public - mandatory - type: tracker_field ref: trade_approval_trAppAcceptTerms data: name: Accept terms permname: trAppAcceptTerms tracker: $profileobject:trade_approval$ options: type: checkbox order: 50 flags: - public - mandatory - type: tracker_field ref: trade_approval_trAppLastReviewerUserName data: name: Last Reviewer permname: trAppLastReviewerUserName tracker: $profileobject:trade_approval$ options: autoassign: 2 groupIds: - 0 canChangeGroupIds: - 0 type: user order: 60 flags: - searchable - public - type: tracker_field ref: trade_approval_trAppGCPreApprovalDate data: name: GC Pre-Approval Date permname: trAppGCPreApprovalDate tracker: $profileobject:trade_approval$ options: type: calendar order: 70 description: General Counsel Pre-Approval Date flags: - list - searchable - public - type: tracker_field ref: trade_approval_trAppCEOPreApprovalDate data: name: CEO Pre-Approval Date permname: trAppCEOPreApprovalDate tracker: $profileobject:trade_approval$ options: type: calendar order: 80 flags: - list - searchable - public - type: tracker_field ref: trade_approval_trAppYouCanTradeUntil data: name: You can trade until... permname: trAppYouCanTradeUntil tracker: $profileobject:trade_approval$ options: datetime: dt type: calendar order: 90 flags: - list - searchable - public - type: tracker_field ref: trade_approval_trAppTradingPeriodEndDate data: name: Trading Period End Date permname: trAppTradingPeriodEndDate tracker: $profileobject:trade_approval$ options: samerow: 1 autocomplete: n exact: n type: text_field order: 100 flags: - list - searchable - public - type: tracker_field ref: trade_approval_trAppApprovalStatus data: name: Approval Status permname: trAppApprovalStatus tracker: $profileobject:trade_approval$ options: parentId: $unknownobject:57c56885df645$ inputtype: d recategorize: save type: category order: 110 flags: - list - searchable - public - type: tracker_field ref: trade_approval_trAppApprovalDate data: name: Approval Date permname: trAppApprovalDate tracker: $profileobject:trade_approval$ options: calculation: | (if (IsEmpty (and trAppGCPreApprovalDate trAppCEOPreApprovalDate)) "-" (if (more-than trAppGCPreApprovalDate trAppCEOPreApprovalDate) (date (str Y-m-d H:i) trAppGCPreApprovalDate) (date (str Y-m-d H:i) trAppCEOPreApprovalDate) ) ) recalculate: index type: math order: 120 flags: - list - searchable - public - type: tracker_option ref: trade_approval_sort_default_field data: tracker: $profileobject:trade_approval$ name: sort_default_field value: modification
Groups
Create a group "group1" which has permission to cast a vote in the Voting system. The other group "group2" can't add items to that tracker (therefore, its members can't vote).Copy to clipboard
permissions: Group1: home: $profileobject:voting_page$ description: Members of the organization allowed to cast a vote in the Voting System allow: - create_tracker_items - list_trackers - view_trackers include: [ Registered ] objects: - type: tracker id: $profileobject:Voting_System$ allow: - create_tracker_items - list_trackers - view_trackers Group2: description: Other registered users to the site, that are not allowed to cast a vote in the Voting System allow: - create_tracker_items - list_trackers - view_trackers include: [ Registered ] objects: - type: tracker id: $profileobject:Voting_System$ deny: - create_tracker_items - list_trackers - view_trackers
Users
Add a user to the group MembersCopy to clipboard
objects: - type: user data: name: user1 pass: user1 email: user1@example.com change: n groups: [ Group1 ] - type: user data: name: user2 pass: user2 email: user2@example.com change: n groups: [ Group2 ]
Sample vote from user1
Copy to clipboard
objects: - type: tracker_item ref: vote_001 data: tracker: $Voting_System status: values: - [ $voting_presidente, Mr Bean ] - [ $voting_vicepresidente, Armando Bronca PhD. ] - [ $voting_secretariado, Blank vote ] - [ $voting_tesorerA, Robin Hood Jr. ] - [ $voting_vocalA_1, Null vote ] - [ $voting_vocalA_2, foo ] - [ $voting_vocalA_3, Perico Los Palotes ] - [ $voting_vocalA_4, Aytor Tilladepa Tatas ] - [ $voting_usuario, user1 ] - [ $voting_voto, 1 ]
Add a form to add a vote and show the results from the voting
This will include: Profile_Voting_System_voting_page
Copy to clipboard
instructions: Voting preferences: enable: [ feature_wiki ] objects: - type: wiki_page ref: voting_page data: name: Voting description: The Voting System lang: en content: wikicontent:Profile_Voting_System_voting_page