Can I have a VBCS array that is indexed with a string?
Content
Let's say I have a page with 20 input text components on it, and I have a need to do 3 things on each component:
- color the label of the textbox based on some array lookup
- put an icon (i.e. ?) next to each label based on some array lookup
- add custom messages below each textbox based on some array lookup
Currently, in my page code, I am doing something like:
- To color the label, I am calling a function using:style.color="[[ $application.functions.showChangesColor($application.variables.varChangeLog, 'oj-input-text-1813279182-3', 'info') ]]"
- To put the icon, I am calling another function using :style.visibility="[[ $application.functions.isEmpty($application.functions.returnLookupArray($application.variables.varChangeLog, 'element_id', 'oj-input-text-1813279182-3')) == true ? 'hidden' : 'visible' ]]"
0