|
|
It is currently Sat May 25, 2013 3:48 pm
|
View unanswered posts | View active topics
 |
|
 |
|
| Author |
Message |
|
rdflesher
|
Post subject: New Employee Screen - Random  Posted: Tue Mar 06, 2012 1:01 pm |
| Valued Contributor |
 |
Joined: Thu Dec 01, 2011 3:43 pm Posts: 22
|
|
I have created a page that is using a database connection to an Excel file. In that file are a new employee's first name, last name, their department and new position, as well as the name of a digital photo of them. I originally set it up so it would use "Dynamic Page Creation" to present multiple page, one at a time, if there happened to be multiple employees. Worked just fine but as I was testing, it occurred to me that if I had several new employees that screen would get boring because it would scroll through all of the dynamic pages before going on to the next slide.
Is there a way to just have it pull a random employee each time that page executes? That way we're still introducing new employees but not all 10 in a row.
|
|
|
|
 |
|
Sergey K
|
Post subject: Re: New Employee Screen - Random  Posted: Fri Mar 09, 2012 10:16 am |
| Noventri Support Specialist |
 |
Joined: Wed Sep 15, 2010 1:41 pm Posts: 26 Location: Maryland, USA
|
Hello rdflesher, Sorry for the delay, we are currently looking for an answer to your question. For this to work we will need to create an advanced select statement to randomly pull an entry from the excel file. It appears that the Rand() function does not work with the excel driver as expected so we are looking for a work around. For reference, here is a post discussing randomizing images in an SQL environment that may help while we look into this further. http://www.noventri.com/forum/viewtopic.php?f=6&t=77
_________________ Sergey Kravchenko Technical Support Engineer Specialized Communications Corp. / Noventri 20940 Twin Springs Dr. Smithsburg, MD 21783-1510 USA Office: (301)790-0103 Fax: (301)790-0173 http://www.noventri.com
|
|
|
|
 |
|
Sergey K
|
Post subject: Re: New Employee Screen - Random  Posted: Fri Mar 09, 2012 6:40 pm |
| Noventri Support Specialist |
 |
Joined: Wed Sep 15, 2010 1:41 pm Posts: 26 Location: Maryland, USA
|
|
Hello rdflesher,
After looking over Microsoft limited documentation, we are unaware of any way to achieve this with excel due to the limit's of Microsoft's Excel driver. However, it can be attained using a more robust database such as SQL or MYSQL as refferenced in the previously mentioned post.
Kind Regards, Sergey
_________________ Sergey Kravchenko Technical Support Engineer Specialized Communications Corp. / Noventri 20940 Twin Springs Dr. Smithsburg, MD 21783-1510 USA Office: (301)790-0103 Fax: (301)790-0173 http://www.noventri.com
|
|
|
|
 |
|
rdflesher
|
Post subject: Re: New Employee Screen - Random  Posted: Mon Mar 12, 2012 9:53 am |
| Valued Contributor |
 |
Joined: Thu Dec 01, 2011 3:43 pm Posts: 22
|
|
Thank you - Could it be accomplished with Access? Or is the trouble with MS products, in general?
|
|
|
|
 |
|
Tim R
|
Post subject: Re: New Employee Screen - Random  Posted: Mon Mar 12, 2012 10:41 am |
| Noventri Digital Signage Expert |
 |
 |
Joined: Thu Dec 10, 2009 1:50 pm Posts: 10
|
|
Hello rdflesher,
Microsoft Access seems to have the same limitation with the Rand() function. While Microsoft's documentation claims this function is supported, their driver returns, "Undefined Function" when used.
However, you could use the following SELECT statement in either Excel or Access as a workaround:
SELECT * FROM [TableName] ORDER BY Rnd(ColumnName)
This will cause a randomly ordered result set to appear each time the "Update Interval" has been reached. Therefore, you will want to set your project to use the database formatters "[1:Colname]". Then, each time you press the "Refresh Now" button in the Noventri Suite, you will see a random row from the table.
NOTE: You will want to keep the "Update Interval" set to something reasonable so that we don't overload the Server with never-ending updates. Depending on the length of your sequence you may want to aim for a 5 minute update interval. It is also recommended that you turn off "Secure Sockets Mode" and "Decompress Content" on the SF-100e using this project for faster updates.
Kind Regards,
_________________ Tim Rollins Executive Director of Operations Noventri 20940 Twin Springs Dr. Smithsburg, MD 21783-1510 USA 301-790-0103 Fax: 301-790-0173 http://www.noventri.com
|
|
|
|
 |
|
Tim R
|
Post subject: Re: New Employee Screen - Random  Posted: Mon Mar 12, 2012 11:42 am |
| Noventri Digital Signage Expert |
 |
 |
Joined: Thu Dec 10, 2009 1:50 pm Posts: 10
|
One thing I left out: The column used in the Rnd( ColumnName) function will need to be numbered IDs. For example:  The Rnd() function requires integer values to compare against. Kind Regards,
_________________ Tim Rollins Executive Director of Operations Noventri 20940 Twin Springs Dr. Smithsburg, MD 21783-1510 USA 301-790-0103 Fax: 301-790-0173 http://www.noventri.com
|
|
|
|
 |
|
rdflesher
|
Post subject: Re: New Employee Screen - Random  Posted: Mon Mar 12, 2012 12:15 pm |
| Valued Contributor |
 |
Joined: Thu Dec 01, 2011 3:43 pm Posts: 22
|
|
Hmmm - when I do the above (I'm using Access), it seems to randomize the order but everytime I hit Refresh, that order is the same. For giggles, I set the refresh to 1 minute and uploaded it to the server. Still the same result - Only one of the four records shows, the same one.
|
|
|
|
 |
|
Trent S
|
Post subject: Re: New Employee Screen - Random  Posted: Mon Mar 12, 2012 5:56 pm |
| Noventri Digital Signage Expert |
 |
 |
Joined: Thu Dec 10, 2009 1:51 pm Posts: 98 Location: Maryland, USA
|
Hello rdflesher, Would you be able to supply us with a copy of your example database? You can e-mail it directly to me at trents@noventri.com. Thanks, -Trent
_________________ Trent Semler Art Director Specialized Communications Corp. / Noventri 20940 Twin Springs Dr. Smithsburg, MD 21783-1510 USA 301-790-0103 Digital Information Display Menu Display Flight Board
|
|
|
|
 |
|
|
 |
|
 |
|
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
|
|