Using a concatenated string to identify a repo item
Posted: Mon Aug 20, 2012 10:12 am
Hi
I have to write a script which runs through all the items in a ribbon bar validating the user's access for each one. There are 140 in all
The data is held in a csv and the heading matches the name of the icon. So what I have done is to write some code which uses the commonality as a hard coded string and then concatenate it with the variable part of the name.I've checked the output at this point and it displays as Upper and Lower case
I then try to use the concatenation as the repo item and here is where it goes wrong
The output from the concatenation is in Upper and Lower case which matches what the repo item should be but when the script fails the error shows the search is being carried out using a string which is all lower case and therefore the item is not found
What am I doing wrong?
Thank you
K
I have to write a script which runs through all the items in a ribbon bar validating the user's access for each one. There are 140 in all
The data is held in a csv and the heading matches the name of the icon. So what I have done is to write some code which uses the commonality as a hard coded string and then concatenate it with the variable part of the name.I've checked the output at this point and it displays as Upper and Lower case
I then try to use the concatenation as the repo item and here is where it goes wrong
The output from the concatenation is in Upper and Lower case which matches what the repo item should be but when the script fails the error shows the search is being carried out using a string which is all lower case and therefore the item is not found
What am I doing wrong?
Thank you
K