Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everybody,
I have a QV application that will be displayed on a TV. So I need the application to change tabs automatically from time to time.
I've tried to make a macro that does that but with no success.
*************************
code exemplo:
Sub automatic_tab
qtd_total = ActiveDocument.NoOfSheets
num_planilha = 0
aux_tempo = 1000
For num_planilha = 0 To qtd_total-1
ActiveDocument.NextTab()
ActiveDocument.GetApplication.Sleep aux_tempo
Next
End Sub
Instead of switching tabs you can show just one according to yours condition. You can find a sample in attachment.
Instead of switching tabs you can show just one according to yours condition. You can find a sample in attachment.
Great idea.
I'll think about that.
The only problem now is to find how to apply this to QV if more than 2 tabs.
This one in particular as already 5 tabs.
Regards,
Leandra Scordamaglia
It's not about number of sheets. It's all about proper conditions for them. Check an example for 5 sheets in attachment.
Here's a template where you can just enter the number of seconds for each tab in an inline table. Then each tab just needs a conditional show expression of $(vShow(tabnumber)), like $(vShow(1)) for tab 1. Might take a little of the work out of setting up the conditions for each tab, and gives you a common expression and maintenance point.
Edit: Forgot to mention - one of the main advantages of using this sort of approach instead of a macro approach (assuming you could get it to work) is performance. Macros drop any buffered data, like charts. On a TV display, nobody is going to be making selections, so the charts are likely static. If a chart takes 3 seconds to calculate, with the macro approach, it will take those same 3 seconds every time you switch to that tab. With the conditional display approach, it should only take those 3 seconds the very first time, and from then on should display the pre-calculated chart.
Just perfect ! ! !
It's working wonderfully.
Lots of thanks.
This works fine when I have it in Qlikview Desktop but when I push it up to the server and run it from accesspoint. it does not work unless I click somewhere on the sheet. The seconds counter counts when you have it open in desktop but does not when you open it in accesspoint.
Are there some settings I am missing?