I want to create an EPG for tvOS along with pagination - tvos

I am trying to create EPG in tvOS, in which I have created collectionView flow layout successfully for a first set of data i.e. 24 channels and 4 hours programs.
I have created such thing in iOS in which user can scroll and once the user scrolls to a particular timeslot for which data is not available locally, it's fetched from the server and collection view is than populated.
For example, data for 22 channels and 4 hours from 4 pm to 8 pm is fetched, and then when user scrolls till 9 pm scale, data from 8 pm to 12 pm is fetched from server and collection view is populated.
In tvOS, a user is not allowed to scroll beyond the last cell, since there is not focusable view further.
I need help how to achieve behavior like iOS EPG in tvOS ?

tvOS will only allow you to move the focus among focusable cells. So you can not base the fetch logic in moving the focus to a position without cells.
On the other hand, to fetch the data for the next or previous page you could check if a cell close to the edge was selected, and proceed with the fetch of the new data.

Related

Business Object WEBI report splitting into multiple pages (not tabs)

I'm trying to create a WEBI report. The specs are a little tricky to figure out, hopefully one of ya'll help me get this resolved.
I have data that looks similar to this:
Name Port Amount
Apple APL 100
Google GOOG 500
Apple APL 50
Netflix NFLX 500
Netflix NFLX 100
What I am trying to do in my WEBI report is to have a separate PAGE (not tab) for each specific Port.
User would open report and see all the data on Page 1 with APL like so...
Name Port Amount
Apple APL 100
Apple APL 50
Total 150
Now user would click
And this would take him to Page 2, showing the same breakout for GOOG, and Page 3 would have a breakout for NFLX.
How am I able to accomplish something like this?
I see two possibilities. You could create a break on Port and then in the Manage Breaks pop-up box check the "Start on a new page" checkbox.
You could also set your Port as a section and then in the Format Section pop-up box check the "Start on a new page" checkbox.
I generally use breaks more than sections, but either one should work for you.

Microsoft Access 2013 - Windows 10 - PopUp Window disappears

we are using Microsfot Access 2013 on Windows 10 system and when we open the application to run a query which outputs data to a table, the button which creates the popup form / window to enter the date range somehow just disappears.
Other systems using the same tool do not have this problem, and the tool was working just fine yesterday.
Any one have an ideas?
If the database was used on a multi-monitor setup it's possible the forms position has been stored "off screen".
Open the pop up in design view (It should appear!), and set AutoCentre property to true, and resave the pop up. It then should always appear in the middle of the current screen.

JMeter GUI - Can't drag and drop to last element in hierarchy

JMeter GUI (Swing) has drag and drop abilities,
The problem is that sometimes I need to drag component to last of the hierarchy (e.g. last request in Thread Group)
and the GUI seems to allow it but when releasing the mouse key nothing happens.
For example below I can't drop Request 3 to its location as the last component, I must make 2 drag and drop requests: Request 1 and 2 to make the order 1,2,3.
Is it a swing limitation or JMeter have a reason to disable it?
I experienced same problem many times. I think that it is a Swing problem. Just drop component to parent element. The component will be dropped as the last. In your example drop Request 3 to Thread group.

Adobe Flex : how to have data shared between 3 tabs on a TabNavigator

I have a tabbed dialog that has 4 tabs. The parent component is an mx:TabNavigator and each of the tab's views are custom MXML components inside an s:NavigatorContent. The data for 3 of the tabs has to be sent as one unit to a back end service. I'm trying to work out the best way to have the 3 tabs access the data that's to be sent down as one unit. I currently have one .mxml file that defines the top level mx:TabNavigator with each of the 4 tabs representing the s:NavigatorContent defined in it's own separate.mxml file to keep the file sizes fairly short. My current approach is to have each of the tabs load their data from the back end service in their creationComplete handlers and store it in a common class for the data model shared by the 3 tabs. This solution is OK except:
The creation complete handler for the first tab is called on application startup even though it's not the first visible component (i.e. there are other parts of the UI that the user sees first). I'd prefer to have true lazy loading where the data is not loaded until the tab becomes visible to the user.
If the user edits data on the first tab, then navigates to the second tab for the first time without hitting the apply button, changes made in the first tab are lost, because the creation complete handler of the 2nd tab will load the data model shared by the 3 tabs.
What I ideally want is:
True lazy loading; data is not loaded until the user clicks on a tab and it becomes visible.
Have it so that when the user hits apply on any of the 3 tabs the current entries on each of the 3 tabs is sent down to the back end service.
Thanks very much if anyone can advise on this. I can explain in further detail if needed.
I'm trying to work out the best way to have the 3 tabs access the data
that's to be sent down as one unit.
Best is always subjective. The easiest way is going to be to create a single variable for your shared data, and pass that instance into each relevant tab.
In some cases you may store the data in some central location, and the use Dependency Injection to inject that data into the relevant tab components that need it. Dependency Injection is implemented by a bunch of Flex frameworks, such as RobotLegs or Swiz.
An alternate option is to use a Singleton approach or static variables on a class to share the data between your multiple tabs.
My current approach is to have each of the tabs load their data from
the back end service in their creationComplete handlers
Why use creationComplete? The creationComplete event is fired after the component has completed it's layout routines and layout routines of it's children, and then everything is ready to use. I assume the act of loading more data, will force a lot of your components to have to go through their rendering process again. You may consider moving this into an earlier spot during the lifecycle, such as initialize or preinitialize.
1) The creation complete handler for the first tab is called on
application startup even though it's not the first visible component
(i.e. there are other parts of the UI that the user sees first). I'd
prefer to have true lazy loading where the data is not loaded until
the tab becomes visible to the user.
This would be expected behavior, based on the way that TabNavigators initialize. You can look at creationPolicy for more information. You can rewrite your 'load data' method to operate on the show method of the component, perhaps?
2) If the user edits data on the first tab, then navigates to the
second tab for the first time without hitting the apply button,
changes made in the first tab are lost, because the creation complete
handler of the 2nd tab will load the data model shared by the 3 tabs.
You can force a save of the data on the hide event of the component. Or possibly on the change event o the TabNavigator.

First page of MS Access Report does not seem to call On Page Event

I have coded a MS Access 2000 report that displays a calendar with one month per page and projects added to particular days. The only data in the underlying record source is a list of months. The structure is created via the On Page event, which also reads in other data.
When this report is opened, I've noticed that the On Page event does not seem to be triggered for the first page. (I attribute this to the fact that On Page in reports is activated when a page is cached rather than when a page is displayed, such as On Current for Access forms.)
When the report is displayed my work around is to use the On Activate event to force the On Page subroutine to run even though that event has not been called. However when the report is exported it does not trigger the On Activate event and the first page of the export is in one of two formats:
1) if the report was open in Access (ie On Activate had been triggered previously) the first page is identical to either the page after the one being displayed or the last page, except with the correct month (which comes from the underlying record source)
2) if the report was not open in Access the first page contains just the structure within the report design view (ie lots of empty boxes)
My best workaround is to force a (otherwise pointless) cover page to ensure the first page contains nothing that needs code to run, but this is far from ideal. Can I force the code to run for the first page of an export? Or maybe I'm misunderstanding how On Page works and I need to restructure my code? (I've also noticed that On Page seems to run twice for the last page).
I would recommend restructuring your code so that you build your data in one query, multiple queries, or in VBA, and then open the report with the new datasource. I might still have Access 2000 at home to check, but at work I can test both 2003 and 2007, and in both versions, the OnPage event fired before each page was displayed. If you are experiencing different behavior, I suspect it's because Access isn't sure how to handle what you are asking it to do.
Typically a report like the one you are describing would be designed the other way around: the datasource for the report would contain all the project information. Is there something about the data you're trying to display that prevents you from building a query that would contain all of it?
Have you considered the Format event for the various sections, especially the Detail section? Format or Print are a more usual events for manipulating reports.