Process show images IFS folder

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
JPG
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:

Process show images IFS folder

Post by JPG »

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
User avatar
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

Post by Glenn »

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?
browse.png
browse.png (47.45 KiB) Viewed 512 times
Scott Klement
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

Post by Scott Klement »

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
JPG
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

Post by JPG »

Yes. The screen is just as Glenn says.
And the idea of Scott seems viable. I go to it.
Thank you.
SeanTyree
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

Post by SeanTyree »

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.
JPG
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

Post by JPG »

Tks
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests