Hello Haskell and Threepenny-GUI community,
I want to display a ListBox which has infinite scrolling support. I have a table in an SQLite database with 100k - 1000k rows. I want to display rows in a ListBox. I got help from this post threepenny-gui-reactive-in-client-server. I got the GUI working with two ListBoxes, one for the page number and the other for actual rows for that page.
Though my goal is to create a GUI that has just one display, something like a basic version but similar to this example using SlickGrid: http://mleibman.github.io/SlickGrid/examples/example4-model.html.
Related
I've used them both, but I can't seem to find any advantage to Report vs Grid.
Grid gives the developer much more options and flexibility, and I didn't find any place that really compares pros and cons for each.
Any Reason to use Report over Grid?
Thanks
I developed a set of applications in APEX from 5.1 to 19c and I'd like both, IG and Reports, however I use them in different scenarios:
Obviously if you want a IG for manipulation of data, then IG is your only option.
If you want a Report, but you want to give the user endless options with it like download the content in csv, apply filters, create rules with the data visualisation like applying colours to rows that match different criteria. Then IG is your option
If the report is static and you don't want any interaction on it, then use Report, it is much better for this scenario.
Hope it helps!
I use
reports for reporting purposes - let users view data
interactive grids to view data in a grid, along with possibility to edit existing values or add new rows right here
Although you can make both do what the "other" does (with more or less effort), their "natural" roles are as I previously said. To me, at least.
OK I found one big advantage to working with Interactive Report, when working with Files/Images.
Grid does not contain "Download BLOB" nor "Display Image" options in types, which makes it really hard to work with, and creating many compatibility problems.
I've wasted 2 days trying to work with files in Grid but still failed, while in Report I managed to do that in a couple of hours and it works.
For all other types, I guess Grid is better.
I am currently struggling to show multiple tabular forms on one page. Oracle Apex allows only one Tabular Form on a page. I tried to follow the guide from the "Planet of Apex" blog but unfortunately it didn't work.
I didn't manage to implent the iFrame Regions to set the values of the foreign keys.
<iframe src="f?p=&APP_ID.:23:&SESSION."style="width:600px;height:600px"scrolling="no" marginwidth="0" marginheight="0"frameborder="0" vspace="0" hspace="0" />
And how do I bind the variables in the URL, like this &ITEM/COLUMN.?
The guide I followed:
https://planetoftheapex.wordpress.com/2016/12/10/multiple-tabular-forms-on-a-single-page-workaround/
Have you tried Interactive Grid? You can have several Interactive Grids on a single Apex page. Check out sample packaged application Interactive Grid -- User name DEMO and password demo -- and play around with all the features. Very powerful.
When in Application Express, you can edit an existing page, and add a "Interactive Grid" region, specify the SQL query to populate the grid. Then add another "Interactive Grid" region, etc. Or using the Create Page wizard, choose "Report" as a page type, and on the next page, choose Interactive Grid.
I've tried to use Interactive Grid but unfortunately, it didn't work well. Each instance of an IG on your page will slow your page load in about 2 seconds. In my case, I had to have 5 tabular forms (or IG) on the same page and the result was unacceptable 10 seconds.
I even did a quick demo on apex.oracle.com with 5 IG's based on emp/dept tables and the result was the same: each IG slowed the page in about 2 secs.
My guess is that if I had thousands of rows to load, the IG would still take 2 seconds, so if you have tons of rows it'd be fine. But for few rows, it doesn't work well.
Answering the original question: I've created an application item to store the Foreign Key so I don't need to pass it in my URL. That may help you.
I am doing wp7 application in which i need to show data having multiple rows and columns in it.
I want to know if there is any control like grid or table view which can show data having multiple rows and column. Is there any way to show data having multiple rows and columns?
use Grid.
Here's a blog that seems reasonable : .Net Framework 3.5: Grid In WPF
Here's the official documentation: Grid Class (System.Windows.Controls)
And in general, here's a getting started guide to WP7 development: Create.msdn Windows Phone Development
Cheers
I've been working this issue for a while now and I am open to any best practices/advice.
The Example
So I created a sample Core Data application. The application is basically a mimic of the AddressBook application. I have the following Entities: Group, Contact, Address, Phone, Email, Webpage, Dates.
As you probably are guessing, a Group can have multiple Contacts, and a Contact can be in multiple groups. Contacts can also have multiple Addresses, Phones, Emails, Webpages, and Dates.
I basically imported some 600 contacts into this application from AddressBook. The user-interface is relatively simple...a Group/category list on the left and an NSCollectionView or NSTableView on the right that shows the list of contacts depending on the selected Group.(collection view or table view...as I added the ability to display either view, both of which are bound to an NSArrayController)
The Group elements I am pulling in through code as opposed to Interface Builder, becasue I wanted to playaround with a Thing's - like sidebar, and it was far easier to do it this way.
The Problem
One of the categories contains all of the contacts while the other category contains merely 2 contacts. When i select the category that has all the contacts it takes anywhere from 8-10 seconds for the information to populate the collection or tableview. However doing the same thing in AddressBook itself is very speedy, almost instant. I am using the SQLLite store type, and have tried using a number of different approaches including trying to diagnose the problem via Instruments, but nothing has worked.
I've tried setting a predicate to the defaultFetchPredicate of the Contact's array controller as opposed to setting a filter predicate, but that didn't work.
I tried preFetching and faulting but i'm not sure if I'm doing it right, and not really sure how to accomplish it if Interface Builder handles the Contact's NSArrayController.
The Other Example
I've also tried downloading a sample Core Data app...while it has a simpler relationship model than what I did(basically a Molecule has Atom objects and an Atom object has Element objects), I inserted 65,000 records and it performed like a charm.
The Question
I've basically hit a wall and I'm wondering if anyone else knows why this is happening and the best ways to fix/overcome/avoid this type of issue?
Thanks!
It turns out that it was actually the NSCollectionView that was slowing things down. I guess the creation and manipulation of views x number of collection view views adds a significant amount of overhead. IKImageBrowserView could have been used but it wasn't what I was looking for.
I ended up changing the application layout to solve this issue.
Thanks all!
I've recently started using Expression Sketchflow to prototype some user interface designs. I currently have a master datagrid at the top of the page, which I would like to allow the user when selecting a particular grid row to see a sub-datagrid below be populated with specific data relevant to that specific row of master data.
Could anyone shed some light on the subject!?
Help greatly appreciated.
I figured out how to do this by reading this article:
Expression Blend 3 – secrets of working with data.
Here's the basic steps (you already did a couple it sounds like)
Create your sample data set
Under the Data tab select the List Mode and drag your collection onto the screen, a list view of your data will be created (Master datagrid)
Now, select the Details Mode and drag and drop your collection onto the screen where you want the details to be displayed. (sub datagrid)
Tweak the fields displayed by dragging properties into the respective containers or modifying the XAML / Bindings list
If you have a child collection in your data, you may have to jump through a few more hoops.