Loading...
 

History: Execute on List

Preview of version: 3

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

YAML
preferences: feature_trackers: y feature_wiki_argvariable: y useGroupHome: y limitedGoGroupHome: y trackerfield_autoincrement: y trackerfield_dropdownother: y wikiplugin_remarksbox: y wikiplugin_tracker: y ajax_inline_edit: y feature_categories: y feature_fullscreen: y feature_jquery_tablesorter: y feature_multilingual: y feature_syntax_highlighter: y tracker_change_field_type: y trackerfield_autoincrement: y trackerfield_itemslist: y trackerfield_math: y wikiplugin_list: y wikiplugin_listexecute: y wikiplugin_memberlist: y wikiplugin_tr: y wikiplugininline_div: y wikiplugininline_img: 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).

YAML
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 Members
YAML
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 ]


Modules

YAML
objects: - type: module data: name: menupage params: pagemenu: Menu groups: - Anonymous - Registered order: 1 position: right


Sample vote from user1


YAML
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

YAML
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


History

Advanced
Information Version
Mon 24 of Apr, 2023 22:56 GMT-0000 rjsmelo Remove duplicate trackerfield_autoincrement 26
View
Sat 05 of Aug, 2017 16:46 GMT-0000 Xavier de Pedro enboxed 25
View
Sat 05 of Aug, 2017 16:46 GMT-0000 Xavier de Pedro added image 24
View
Mon 30 of Jan, 2017 00:22 GMT-0000 rjsmelo add null instead of empty value on yaml 23
View
Fri 07 of Oct, 2016 11:04 GMT-0000 Xavier de Pedro added new alias 22
View
Thu 06 of Oct, 2016 10:52 GMT-0000 Xavier de Pedro change module to the left 21
View
Tue 13 of Sep, 2016 15:39 GMT-0000 Xavier de Pedro added some perms for the templates 20
View
Tue 13 of Sep, 2016 15:32 GMT-0000 Xavier de Pedro added templates, missing still permission for template pages 19
View
Tue 13 of Sep, 2016 15:22 GMT-0000 Xavier de Pedro fixed name of menu 18
View
Tue 13 of Sep, 2016 15:21 GMT-0000 Xavier de Pedro fixed instructions name finally? 17
View
Tue 13 of Sep, 2016 15:03 GMT-0000 Xavier de Pedro renamed some pages for consistency 16
View
Tue 13 of Sep, 2016 14:59 GMT-0000 Xavier de Pedro renamed page 15
View
Tue 13 of Sep, 2016 14:54 GMT-0000 Xavi (as xavidp - admin) added aliases after renaming profile 14
View
Tue 13 of Sep, 2016 14:50 GMT-0000 Xavier de Pedro removed extra instructions page 13
View
Wed 31 of Aug, 2016 02:08 GMT-0000 Xavier de Pedro added mode: create_or_update 12
View
Wed 31 of Aug, 2016 02:06 GMT-0000 Xavier de Pedro fixed naming for the homepage for staff 11
View
Wed 31 of Aug, 2016 02:01 GMT-0000 Xavier de Pedro added Profile_listexecute_menupage_include 10
View
Wed 31 of Aug, 2016 01:18 GMT-0000 Xavier de Pedro added new missing pages 9
View
Wed 31 of Aug, 2016 01:13 GMT-0000 Xavier de Pedro typo 8
View
Wed 31 of Aug, 2016 01:13 GMT-0000 Xavier de Pedro added info about pages to be created 7
View
Wed 31 of Aug, 2016 01:01 GMT-0000 Xavier de Pedro added valid homepage references 6
View
Wed 31 of Aug, 2016 00:58 GMT-0000 Xavier de Pedro added needed (cited) wiki pages 5
View
Wed 31 of Aug, 2016 00:51 GMT-0000 Xavier de Pedro tweaked a bit more 4
View
Tue 30 of Aug, 2016 11:13 GMT-0000 Xavier de Pedro more stuff 3
View
Tue 30 of Aug, 2016 11:11 GMT-0000 Xavier de Pedro added some content from a demo profile in the works locally, plus settings to be adapted from teh voting_system profile 2
View