Mobile API Reference
MicroStrategy 2019
|
#import <PromptUtils.h>
Class Methods | |
(NSString *) | + getElementPromptAnswers: |
(NSString *) | + getObjectPromptAnswers: |
(NSString *) | + getObjectPromptAnswersForOneUnit: |
(NSString *) | + getValuePromptAnswers: |
(NSString *) | + getElementPromptAnswersForUnit:elements: |
PromptUtils provides class methods in support of Prompt's.
+ (NSString*) getElementPromptAnswers: | (NSArray *) | array |
getElementPromptAnswers: generates prompt answers from an array. Use this method if you have multiple element prompts. Each item in the array represents the prompt answer for one element prompt, which can be generated using getElementPromptAnswersForUnit method.
The primary delimiter is comma. Secondary is semicolon. Third is caret.
Note: No delimiters are escaped or disallowed in the attributed IDs, element IDs and display names. Avoid ,; and ^ when choosing display names.
Example: AttrID;ElementID^DisplayName;ElementID^DisplayName;...,AttrID;ElementID^DisplayName;...
+ (NSString*) getElementPromptAnswersForUnit: | (NSString *) | unitID | |
elements: | (NSArray *) | elements | |
getElementPromptAnswersForUnit:elements: generates elements prompt answers for one element prompt, (such as attribute, custom group, etc). The parameter elements contains an array of element IDs in NSString format.
The primary delimiter is semicolon. Second is caret.
Example: unitIDStr;element1Str;element2Str;element3Str
+ (NSString*) getObjectPromptAnswers: | (NSArray *) | array |
getObjectPromptAnswers: will generate prompt answers from an array. Use this method if you have more than one object prompt. Each item in the array is either an array of ObjectInfo's, or a string that represents the prompt answers for the prompt.
The primary delimiter is caret.
Example: ElementID^DisplayName
+ (NSString*) getObjectPromptAnswersForOneUnit: | (NSArray *) | objectInfos |
getObjectPromptAnswersForOneUnit: generates prompt answers from an array of ObjectInfo's for only one object prompt.
objectInfos | contains an array of ObjectInfo's. |
The primary delimiter is ESC (0x1b). Secondary is tilde (~).
Example: objStr<ESC>objStr<ESC>objStr objID~objType~objName<ESC>objID~objType~objName
+ (NSString*) getValuePromptAnswers: | (NSArray *) | values |
getValuePromptAnswers: generates value prompt answers from an array of NSString values.
The primary delimiter is caret.
Example: value1^value2^value3