I'm trying to automate selecting a file (e.g. an install) from a list based on its name (variable) and modified date(variable).
For instance with the following list (Name and Date are different columns):
Name Date
A 2.2 _ES_X_.exe 01/02/2013 13:59
A 2.2 _EN_X_.exe 01/02/2013 11:52
A 2.1 _EN_X_.exe 27/01/2013 05:07
If I want to access the version of file where:
langcode = "EN"
statuscode = "X"
currentdate = "01/02/2013" (will be calculated in UserCode).
The name will eventually follow this structure where the variables represent a language code and status code:
Hopefully this is correct?and the date will be a variable based on the current date:Code: Select all
[@text~'ABC.* \_('+$langcode+')\_('+$statuscode+')\.exe']
the text attributes would look something like this after processing:Code: Select all
[@text~'('+$currentdate+').*']
Code: Select all
/list/listitem/text[@text~'A.*(\_EN\_X\_\.exe'] /list/listitem/text[@text~'01/02/2013.*']
How would I then use that to select the list item that corresponded to that?
Example from 'Sample Pictures' folder Win7 - set to view 'Details'.
List item Path:
Code: Select all
/form[@title='Sample Pictures']/..LongPath../list/listitem[@accessiblename='Lighthouse.jpg']
Code: Select all
/form[@title='Sample Pictures']/..LongPath../list/listitem[@accessiblename='Lighthouse.jpg']/text[@accessiblename='Name']
Code: Select all
/form[@title='Sample Pictures']/..LongPath../list/listitem[@accessiblename='Lighthouse.jpg']/text[@accessiblename='Date']
Chris