Difference between revisions of "Data 1 0"
From ADF Docs
Line 14: | Line 14: | ||
== Functions == | == Functions == | ||
− | :[[Data_1_0-ArrayConcat|ArrayConcat]] | + | <div id='library-api'> |
− | + | :[[Data_1_0-ArrayConcat|ArrayConcat]] ( array a1, array a2 ) | |
− | + | :[[Data_1_0-arraydeletearray|arraydeletearray]] ( array baseArray, array deleteArray ) | |
− | + | :[[Data_1_0-arrayOfStructsSort|arrayOfStructsSort]] ( array aOfS, string key, string sortOrder, string sortType, string delim ) | |
− | :[[Data_1_0-arraydeletearray|arraydeletearray]] | + | :[[Data_1_0-arrayOfStructuresToQuery|arrayOfStructuresToQuery]] ( array theArray ) |
− | + | :[[Data_1_0-ArraySort2D|ArraySort2D]] ( array arrayToSort, numeric sortColumn, string type, string delim, string sortOrder ) | |
− | + | :[[Data_1_0-capFirst|capFirst]] ( string str ) | |
− | :[[Data_1_0-arrayOfStructsSort|arrayOfStructsSort]] | + | :[[Data_1_0-cfRssFeed|cfRssFeed]] ( string feedUrl ) |
− | + | :[[Data_1_0-CSVToArray|CSVToArray]] ( string File, string CSV, string Delimiter, boolean Trim ) | |
− | |||
− | :[[Data_1_0-arrayOfStructuresToQuery|arrayOfStructuresToQuery]] | ||
− | |||
− | |||
− | :[[Data_1_0-ArraySort2D|ArraySort2D]] | ||
− | |||
− | |||
− | :[[Data_1_0-capFirst|capFirst]] | ||
− | |||
− | |||
− | :[[Data_1_0-cfRssFeed|cfRssFeed]] | ||
− | |||
− | |||
− | :[[Data_1_0-CSVToArray|CSVToArray]] | ||
::Takes a CSV file or CSV data value and converts it to an array of arrays based on the given field delimiter. Line delimiter is assumed to be new line / carriage return related. | ::Takes a CSV file or CSV data value and converts it to an array of arrays based on the given field delimiter. Line delimiter is assumed to be new line / carriage return related. | ||
− | + | :[[Data_1_0-csvToQuery|csvToQuery]] ( string csvString, string rowDelim, string colDelim ) | |
− | |||
− | :[[Data_1_0-csvToQuery|csvToQuery]] | ||
::Converts a CSV file into a Query | ::Converts a CSV file into a Query | ||
− | + | :[[Data_1_0-decimalRound|decimalRound]] ( numeric numberToRound, numeric numberOfPlaces ) | |
− | + | :[[Data_1_0-deleteFromList|deleteFromList]] ( string list, string listValue ) | |
− | :[[Data_1_0-decimalRound|decimalRound]] | ||
− | |||
− | |||
− | |||
− | :[[Data_1_0-deleteFromList|deleteFromList]] | ||
::Removes a value from a list | ::Removes a value from a list | ||
− | + | :[[Data_1_0-formatUUID|formatUUID]] ( string uuid ) | |
− | + | :[[Data_1_0-getBinaryDocFile|getBinaryDocFile]] ( string filePath ) | |
− | :[[Data_1_0-formatUUID|formatUUID]] | + | :[[Data_1_0-getTagAttribute|getTagAttribute]] ( string tag, string attribute ) |
− | |||
− | |||
− | |||
− | :[[Data_1_0-getBinaryDocFile|getBinaryDocFile]] | ||
− | |||
− | |||
− | :[[Data_1_0-getTagAttribute|getTagAttribute]] | ||
::Returns the value for the html tag attribute | ::Returns the value for the html tag attribute | ||
− | + | :[[Data_1_0-isCFUUID|isCFUUID]] ( string inStr ) | |
− | + | :[[Data_1_0-ListInCommon|ListInCommon]] ( String list1, String list2 ) | |
− | :[[Data_1_0-isCFUUID|isCFUUID]] | + | :[[Data_1_0-listRemoveDuplicates|listRemoveDuplicates]] ( string lst ) |
− | + | :[[Data_1_0-queryColumnsToStruct|queryColumnsToStruct]] ( query query, string keyColumn, string valueColumn, boolean reverse ) | |
− | + | :[[Data_1_0-queryConcat|queryConcat]] ( query q1, query q2 ) | |
− | :[[Data_1_0-ListInCommon|ListInCommon]] | ||
− | |||
− | |||
− | :[[Data_1_0-listRemoveDuplicates|listRemoveDuplicates]] | ||
− | |||
− | |||
− | |||
− | :[[Data_1_0-queryColumnsToStruct|queryColumnsToStruct]] | ||
− | |||
− | |||
− | |||
− | :[[Data_1_0-queryConcat|queryConcat]] | ||
::Concatenate two queries together | ::Concatenate two queries together | ||
− | + | :[[Data_1_0-queryStringToStruct|queryStringToStruct]] ( String inString ) | |
− | + | :[[Data_1_0-queryToArrayOfStructures|queryToArrayOfStructures]] ( query queryData ) | |
− | :[[Data_1_0-queryStringToStruct|queryStringToStruct]] | ||
− | |||
− | |||
− | :[[Data_1_0-queryToArrayOfStructures|queryToArrayOfStructures]] | ||
::Converts a query to an array of structures | ::Converts a query to an array of structures | ||
− | + | :[[Data_1_0-queryToCSV|queryToCSV]] ( query data, string headers, string cols ) | |
− | |||
− | :[[Data_1_0-queryToCSV|queryToCSV]] | ||
::Converts a CF Query into a CSV string | ::Converts a CF Query into a CSV string | ||
− | + | :[[Data_1_0-QueryToXML|QueryToXML]] ( query query, string rootElementName, string rowName ) | |
− | + | :[[Data_1_0-sortArrayByIDList|sortArrayByIDList]] ( array arrayOfStructs, string idFieldName, string idList ) | |
− | :[[Data_1_0-QueryToXML|QueryToXML]] | + | :[[Data_1_0-structFindRecurse|structFindRecurse]] ( struct dataStruct, string keyList ) |
− | |||
− | |||
− | :[[Data_1_0-sortArrayByIDList|sortArrayByIDList]] | ||
− | |||
− | |||
− | :[[Data_1_0-structFindRecurse|structFindRecurse]] | ||
::Returns the struct key value for the struct key that matches the keylist param. | ::Returns the struct key value for the struct key that matches the keylist param. | ||
− | + | :[[Data_1_0-structMerge|structMerge]] ( struct struct1, struct struct2 ) | |
− | |||
− | :[[Data_1_0-structMerge|structMerge]] | ||
::Merge two simple or complex structures in one. | ::Merge two simple or complex structures in one. | ||
− | + | :[[Data_1_0-StructToQueryString|StructToQueryString]] ( struct struct ) | |
− | + | :[[Data_1_0-trimStringByWordCount|trimStringByWordCount]] ( string str, numeric words, boolean useEllipsis ) | |
− | :[[Data_1_0-StructToQueryString|StructToQueryString]] | ||
− | |||
− | |||
− | |||
− | :[[Data_1_0-trimStringByWordCount|trimStringByWordCount]] | ||
::Shortens a string without cutting words in half and appends '...' to the end. | ::Shortens a string without cutting words in half and appends '...' to the end. | ||
+ | </div> |
Latest revision as of 12:44, 9 April 2010
Attention: Do not change any text in the description, properties, and functions sections.
Return to Library (API)
Description
Data Utils component functions for the ADF Library
Properties
- version = 1_0_0
- wikiTitle = Data_1_0
- type = singleton
Functions
- ArrayConcat ( array a1, array a2 )
- arraydeletearray ( array baseArray, array deleteArray )
- arrayOfStructsSort ( array aOfS, string key, string sortOrder, string sortType, string delim )
- arrayOfStructuresToQuery ( array theArray )
- ArraySort2D ( array arrayToSort, numeric sortColumn, string type, string delim, string sortOrder )
- capFirst ( string str )
- cfRssFeed ( string feedUrl )
- CSVToArray ( string File, string CSV, string Delimiter, boolean Trim )
- Takes a CSV file or CSV data value and converts it to an array of arrays based on the given field delimiter. Line delimiter is assumed to be new line / carriage return related.
- csvToQuery ( string csvString, string rowDelim, string colDelim )
- Converts a CSV file into a Query
- decimalRound ( numeric numberToRound, numeric numberOfPlaces )
- deleteFromList ( string list, string listValue )
- Removes a value from a list
- formatUUID ( string uuid )
- getBinaryDocFile ( string filePath )
- getTagAttribute ( string tag, string attribute )
- Returns the value for the html tag attribute
- isCFUUID ( string inStr )
- ListInCommon ( String list1, String list2 )
- listRemoveDuplicates ( string lst )
- queryColumnsToStruct ( query query, string keyColumn, string valueColumn, boolean reverse )
- queryConcat ( query q1, query q2 )
- Concatenate two queries together
- queryStringToStruct ( String inString )
- queryToArrayOfStructures ( query queryData )
- Converts a query to an array of structures
- queryToCSV ( query data, string headers, string cols )
- Converts a CF Query into a CSV string
- QueryToXML ( query query, string rootElementName, string rowName )
- sortArrayByIDList ( array arrayOfStructs, string idFieldName, string idList )
- structFindRecurse ( struct dataStruct, string keyList )
- Returns the struct key value for the struct key that matches the keylist param.
- structMerge ( struct struct1, struct struct2 )
- Merge two simple or complex structures in one.
- StructToQueryString ( struct struct )
- trimStringByWordCount ( string str, numeric words, boolean useEllipsis )
- Shortens a string without cutting words in half and appends '...' to the end.