I have a screen that shows a image retrieved from the IFS.
What I intend to achieve is the following:
1.- Access a folder, scroll and display on the previous screen each of the possible images that are with previous or next button. That is, directly display the first one already on the screen without previous selection and go showing the successive ones if any.
How can I do it in an easy way ?.
Thanks
Process show images IFS folder
-
- Profound User
- Posts: 54
- Joined: Fri Dec 19, 2014 12:24 pm
- First Name: Juan
- Last Name: Perez Garcia
- Company Name: NISA
- State / Province: Outside Canada/USA
- Country: Spain
- Contact:
- Glenn
- Profound Logic Staff Member
- Posts: 124
- Joined: Mon Apr 14, 2014 4:08 pm
- First Name: Glenn
- Last Name: Hopwood
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Process show images IFS folder
I'm not sure I understand...
Do you want a screen that shows an image from an IFS folder and allows you to show the next or previous image using buttons? Would it look something like below?
Do you want a screen that shows an image from an IFS folder and allows you to show the next or previous image using buttons? Would it look something like below?
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Process show images IFS folder
I would create a screen like the one Glenn shows. I would have the RPG program read the IFS directory and put all of the filenames into a big string, (maybe in JSON format? Or just comma-separated, or whatever...) the string would be in a hidden variable on the display. Javascript code in the screen would change the image source property of the image widget to the next/previous image in the list when you click the buttons.
Should be very easy. Biggest problem would be the limit to the size of the string. You could overcome that by using AJAX to get the list rather than a hidden field, but of course that adds complexity. Maybe start with what's easy (hidden field) and switch to the more complex option (AJAX) if it's a problem.
Just my opinion
Should be very easy. Biggest problem would be the limit to the size of the string. You could overcome that by using AJAX to get the list rather than a hidden field, but of course that adds complexity. Maybe start with what's easy (hidden field) and switch to the more complex option (AJAX) if it's a problem.
Just my opinion
-
- Profound User
- Posts: 54
- Joined: Fri Dec 19, 2014 12:24 pm
- First Name: Juan
- Last Name: Perez Garcia
- Company Name: NISA
- State / Province: Outside Canada/USA
- Country: Spain
- Contact:
Re: Process show images IFS folder
Yes. The screen is just as Glenn says.
And the idea of Scott seems viable. I go to it.
Thank you.
And the idea of Scott seems viable. I go to it.
Thank you.
-
- Profound User
- Posts: 76
- Joined: Fri Jan 11, 2013 6:11 pm
- First Name: Sean
- Last Name: Tyree
- Company Name: US HealthWorks
- State / Province: California
- Zip / Postal Code: 91355
- Country: United States
- Contact:
Re: Process show images IFS folder
Another option would be a hidden subfile grid. You could then have each subfile record contain an image filename and iterate through the rows of the subfile.
-
- Profound User
- Posts: 54
- Joined: Fri Dec 19, 2014 12:24 pm
- First Name: Juan
- Last Name: Perez Garcia
- Company Name: NISA
- State / Province: Outside Canada/USA
- Country: Spain
- Contact:
Who is online
Users browsing this forum: Bing [Bot] and 2 guests