Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 19th, 2024, 1:43 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Listbox Question
PostPosted: May 27th, 2015, 8:35 pm 
Offline

Joined: February 1st, 2010, 2:38 pm
Posts: 6
Opus: Version 9.61
OS: Windows 7
System: Intel i-5; 16GB RAM; 480 solid state drive
I am brand new to Opus.

I am making a "simple" menu windows application to open PDF's selected by the end user from a single page application which has a listbox. I am trying to keep the future maintenance to a minimum since someone else will be doing it. All of the PDF's (i.e and all files are a PDF) are in a single directory and will periodically change (i.e. new PDF files added; some PDF files deleted). What I wanted to do is use a txt file to always populate the listbox items dynamically--the txt file will contain the name of the PDF documents to choose from. When PDF files are added or deleted in the folder, the maintenance will be to update the txt file accordingly.

I was then hoping to be able to have each PDF item in the list box "linked" to its actual PDF file in the directory----but be able to update the links dynamically too. Is there anyway to use a txt file that would have the file name to populate the listbox and also contain additional information not displayed in the listbox that can "link" to the actual pdf file when the listbox item is clicked?

So for example, perhaps my txt file for two items would look like this:

Care; c:\animals\care.pdf
Feeding; c:animals\feeding.pdf


Can I use this txt file to display "care" and "feeding" as listbox items---and have Opus use the file path after the ";" to open the pdf file? This way, the maintenance would be to limited to updating the txt file with new listbox items and their associated path going forward or deleting a lisbox item and its path. The end user would never need to update the program in Opus, etc.

I thought that this application would be a good first project and was off to a decent start until the end user asked about how the menu/listbox would handle the addition and deletion of PDFs. If my "idea" won't work is there a solution to achieve the objective?


For this message Waldo has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: May 28th, 2015, 2:51 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Waldo,

I'll have a look at this problem this evening. It should be reasonable easy problem to solve. It would be helpful if you could update your profile saying:

    What version of Opus you are using?
    What operating system you are developing your program on?
    What hardware you are using?


Many thanks
Paul

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: May 28th, 2015, 4:43 pm 
Offline

Joined: February 1st, 2010, 2:38 pm
Posts: 6
Opus: Version 9.61
OS: Windows 7
System: Intel i-5; 16GB RAM; 480 solid state drive
Paul,
Thank you for your kindness to help me...very appreciated. I also updated my profile as requested--sorry about that.
Jim


For this message Waldo has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: May 29th, 2015, 12:10 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Jim

I've managed to solve the pdf listbox problem. Attached is a .zip file that should be extracted into one directory. You can then take it into Opus and see how it works. Here is a summary:

- There is a Master Page and four pages.
- The Master Page simply contains a title and exit button.
- The 'pgLogOn' page is a simple logon to direct the user to 'pgAdmin' or 'pgListBox'.
- 'pgAdmin' has a single button that has two actions attached: 1. a 'Delete File' action that removes the previous list of pdf files. 2. a 'Launch docsList.bat' action that launches a batch file. You will need to alter the file location to point to the directory containing the 'docsList.bat' file.
- 'docsList.bat' has two lines of code: '@echo OFF' stops the file listing to the screen, 'dir /B *.pdf > docsList.txt' simply creates a list of the pdf files in the directory, i.e. the filename and .pdf extention. The 'docsList.bat' file must be in the same directory as the Opus program. If the pdfs are in a different directory then you need to specify the directory name in front of the *.pdf statement.
- The 'pgListBox' page contains a list box that automatically reads the 'docsList.txt' file created by the 'docsList.bat' file. Clicking on a list item displays the document in the 'pgDocDisplay' page.
- On the 'pgDocDisplay' there is a 'DocView' and a button to return the user to the 'pgListBox' page.

The pdf files are in French. I'm learning French! You will notice that the third item on the list will not display, at least on my computer, because of the way Windows displays character sets in plain .txt files.

Hope this helps and you can make sense of what I've produced.

Paul

PS: You'll have to send me an email address as the server keeps timing out when I try to upload the file. :-(

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: May 29th, 2015, 12:16 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Tried again to upload file, but get this error from the server:

FastCGI Error

The FastCGI Handler was unable to process the request.
Error Details:

The FastCGI process exceeded configured request timeout
Error Number: 995 (0x800703e3).
Error Description: The I/O operation has been aborted because of either a thread exit or an application request.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: May 29th, 2015, 1:14 pm 
Offline

Joined: February 1st, 2010, 2:38 pm
Posts: 6
Opus: Version 9.61
OS: Windows 7
System: Intel i-5; 16GB RAM; 480 solid state drive
Paul--thank you. My e-mail address is (i.e. I put the dashes in to keep the bots from harvesting it): Jim

Edit: deleted e-mail address.


For this message Waldo has been thanked by : mackavi


Last edited by Waldo on May 29th, 2015, 4:41 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: May 29th, 2015, 2:09 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Jim,

I've sent you a link to OneDrive to download the file. You can delete your email address now. Nice touch with the dashes!

Paul

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 6th, 2015, 4:51 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Hi Guys
I have been following this post with alot of enthusiasm.
The reason is I tried to do something similiar a couple of months back.
As a newbie I did not succeed and I finally gave up.

It would really really be helpful if I could get the example you guys have been working on
...Pretty please :D
Yours
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 6th, 2015, 6:05 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Hi

No problem in helping, but please fill in your profile so that we can see what hardware, operating system and version of Opus that you are using. I am away until Wednesday, so I will send a link to the files I gave to Jim. Also, read the explanation above and if you have any questions you can post them here.

Paul

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 7th, 2015, 10:24 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Thanks Paul
Updated my profile....dont use social media but I entered Opus version and OS details.
I will go thru the instructions when you send the link on Wednesday
Cheers
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 8th, 2015, 7:13 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Hi

To receive the files I sent to Jim (above) I will need you to send me a personal message with an email address. You will download the files from my OneDrive space as the files are slightly bigger than can be sent by email or posted on the forum. Thank you.

Paul

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 11th, 2015, 10:08 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Hi Paul
Could not find the "Personal Email" button on the forum
Here is my email address mywotnot@.gmail.com
Would appreciate if you could send me your example listbox
Thanks
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 12th, 2015, 12:39 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
OK, I've sent the link to the files you need. Good luck with your Opus development and if you need any further help please leave a question on the forum.

Paul

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Listbox Question
PostPosted: June 16th, 2015, 5:47 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
this is (I Hope) a link to previous discussion on this topic if it's useful?
viewtopic.php?f=4&t=5144&hilit=+listbox
and
viewtopic.php?f=6&t=5430

_________________
Opus Pro 7.04 - win10


For this message mac has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group