Loading...
 

Dynamic items list 


Basic documentation 


Function: Dynamically updates a selection list based on linked data from another tracker.
Usage: trackerId,filterFieldIdThere,filterFieldIdHere,listFieldIdThere,statusThere
Description:

trackerId is the ID of the tracker to link with;
filterFieldIdThere is the field you want to link with in that tracker;
filterFieldIdHere is the field you want to link with in the current tracker;
listFieldIdThere is the field ID you wish to pull the selection list from, based on the value selected in fiterFieldIdHere matching field(s) in filterFieldIdThere;
statusThere restricts values appearing in the list to those coming from records in the other tracker that meet specified statuses of [o|p|c] or in combination (op, opc);

multiple options must appear in the order specified, separated by commas.

to be tested filterFieldHere can be an item link, a user selector, a group selector, a country selector, a dynamic list

Tutorial 


With Tiki's trackers, you can create dynamic forms, in which field options change automatically, depending on other selections.

In this tutorial, you will create a dynamic tracker that users will complete to enter their operating system and version number. Depending on the operating system that they choose (Windows or Solaris), different version options will appear.

You will actually need to build two trackers: an "internal" tracker to hold the dynamic options, and an "external" tracker from which the user will make their selections.

Step 1: Build the "internal" tracker for the selectable options 

  1. Create a new tracker.
    In this example, since the selectable options are for an "operating system", we will name the tracker Operating System.
    Record the ID number for this tracker. We'll refer to this tracker as the Option Tracker ID.
    In this example, the ID is 6.
    Image
  2. Create a field with the name OS, of type drop down, with the options Windows,Solaris.
    Record the ID number for this field. We'll refer to this field as the Option Tracker Choices ID. In this example, the ID is 8.
  3. Create a field with the name Version of type text for this tracker.
    Record the ID number for this field. We'll refer to this field as the Option Tracker Versions ID. In this example, the ID is 9.
    Image


Step 2: Populate the "internal" tracker. 

Now that you've built the tracker to hold the options, you need to populate the tracker with the valid choices.

  1. From the Trackers listing page, click the Option Tracker tracker that you just created.
  2. Click Insert new Item.
  3. Populate the valid OS versions.
    In the OS field, select Windows.
    In the Version field, type Vista.
    Image
  4. Repeat these steps to enter all of the valid combinations that to allow (for example: Windows XP, Solaris 2.9, and so on.
    Image


Step 3: Create the "external" user tracker 

Now you need to create the actual tracker the will contain the selectable options that you defined.

  1. Create a new tracker.
    In this example, we will name the tracker User Profile.
  2. Create a field with the name Operating System, of type item link with the options: Option Tracker ID,Option Tracker Choices ID
    You created these IDs in Step 1. In this example, the options are: 6 , 8.
    This is the selector from which the users will select their operating system (Windows or Solaris).
    Record the ID number for this field. We'll refer to this field as the User OS Choices ID. In this example, the ID is 10.
  3. Create a field with the name Version, of type dynamic items list, with the options: Option Tracker ID,Option Tracker Choices ID,User OS Choices ID,Option Tracker Versions ID
    In this example, the options are: 6 , 8 , 10 , 9 .
  4. Create a field with the name Your name, of type text.
    This will simply be a field for users to enter their names.
    Image


Test the tracker 

Now you can test the "user" tracker (named User Profile in this example).

  1. From the Trackers listing page, click the User Profile tracker that you just created.
  2. Click Insert new Item.
    Notice that the Version field is empty.
  3. In the Operating System field, select Windows.
    Notice that the Version field is now populated with the Windows options (Vista, XP, and 95).
    Image
  4. Change the Operating System field to Solaris.
    Notice that the Version field is now populated with the Solaris options (2.9 and 2.10).
    Image


Final notes 

See also 

Plugin JQuery

Backlinks: 

One page links to Dynamic items list



Alias names for this page:
Dynamic items lists | Dynamic item lists | Dynamic item list | Dynamic_items_list


Page last modified on Friday 20 September, 2019 16:21:35 GMT-0000

doc.tiki.org

Bootstrap AdminGuide UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Trackers
Transitions
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show PHP error messages