Selecting a specified amount of chars form a field
Posted: Tue Dec 10, 2013 2:56 pm
I'm trying to retrieve and display images on a screen in Genie. I'm already doing this on one screen using the following instruction.
script: '/profoundui/userdata/images/ttg/trailers/' + get('D_2_9') +'-d' + '.jpg'
This works because Im using the entire value of D_2_9 . I have another file to display images. I have groups of items (t-shirts) that have the exact same part # plus an additional suffix (t-shirt size). an example below.
XXXXXXXXX - S
XXXXXXXXX - XS
XXXXXXXXX - LG
XXXXXXXXX - XLG
The image for these 4 part #s are the same. We don't want to store 4 duplicate images. Is there a way to modify a script similar to the one above to only use the first 9 characters of this part # to retrieve an image?
Thanks in advance.
script: '/profoundui/userdata/images/ttg/trailers/' + get('D_2_9') +'-d' + '.jpg'
This works because Im using the entire value of D_2_9 . I have another file to display images. I have groups of items (t-shirts) that have the exact same part # plus an additional suffix (t-shirt size). an example below.
XXXXXXXXX - S
XXXXXXXXX - XS
XXXXXXXXX - LG
XXXXXXXXX - XLG
The image for these 4 part #s are the same. We don't want to store 4 duplicate images. Is there a way to modify a script similar to the one above to only use the first 9 characters of this part # to retrieve an image?
Thanks in advance.