String Dictionary

Stable Version 1.0.0 (OutSystems 10)
Published on 27 November 2016 by 
Created on 27 November 2016
This .Net only extension implements a dictionary whose values are persisted in a Text attribute.
Read More

This .Net only extension implements a List<KeyValuePair<string,string>> but operates more like a dictionary, because the keys have to be unique.  The value of the dictionary is maintained in a text field, and each action takes in the text field, processes your action, and returns a revised text field.

It uses delimiters to split up the text field.  For example:


| splits up entries
Within an entry, ~ splits the key from the value
Within a value, @ splits individual values

Implements 21 functions and actions:

DictionaryNew - Creates a string that represents a new dictionary.  (Or "" works too.)  Exists for future compatibility for revisions to the implementation.

DictionaryAdd - Adds a key to the dictionary.  If the key already exists, the value is updated.

DictionaryCount - Counts the number of entries in the dictionary

DictionaryFindByValue - Finds the index of the first entry matching the value.  -1 if not found.

DictionaryFindKey - Finds the index of the first entry matching the key.  -1 if not found.

DictionaryGetByIndex - Gets the value at the given index or "" if index isn't in the dictionary.

DictionaryGetByKey - Gets the value for the given key or "" if key isn't in the dictionary.

DictionaryRemoveByIndex - Removes the entry for the dictionary index found at the INDEX.  DictionaryIn = DictionaryOut if Index is outside isn't inside the dictionary.

DictionaryRemoveByKey - Removes a entry from the dictionary.  DictionaryIn = DictionaryOut if Key is not found.

DictionaryReplaceByIndex - Replaces an entry in the dictionary by it's index.  If the index < 0 or greater than the length, DictionaryIn = DictionayOut

DictionaryReplaceByKey - Replaces the value for the dictionary index found at the INDEX.  DictionaryIn = DictionaryOut if key is not found.

DictionarySortByKey - Sorts the dictionary according to the key

DictionarySortByValue - Sorts the dictionary according to the value

DictionaryMakeValue# - Assembles # (2-5) parts into a dictionary value using @ to separate them

DictionarySplitValue# - Splits a dictionary value into # (2-5) parts using @ as the delimiter.

Reviews (0)
Components, Libraries
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Ian Johnstone who created this component.
String Dictionary has no dependencies.
Component Consumers
No consumers yet.
Weekly Downloads 
Related Components
Silk UI Web
OutSystems R&D
A fully responsive and beautiful UI framework that works within the OutSystems Platform. Build amazing looking applications, in a fraction of the time, which work perfectly across devices. Learn how to start using Silk UI and see the examples at . Obtain assistance on using Silk UI in our forums .
Multiple File Upload
Multi Uploaders
Allow you to upload multiple files in one upload form or using drag and drop functionality.
OutSystems UI Mobile
OutSystems R&D
Create amazing native mobile applications using this fully integrated UI framework for OutSystems, with dozens of UI patterns ready to use.
More from Ian Johnstone
Help Field
Ian Johnstone
This implements a simple webblock, table, and the Feedback Message mechanism to display context sensitive help.