Is there a way to show the events in the list view grouped by resources, just like it can be done on the timeline view?
Related
I'm trying to use a gantt control in D365 FO as a way to visualize appointments in rooms.
Therefore, the rooms are loaded as summaries and the appointments are linked as activities to the rooms.
The user is able to select an appointment from a grid.
As this happens, the view range shall be changed to show the interval [begin-12, end+12] and the appointments together with their rooms shall be added to the gantt.
The code looks somewhat like that:
// changes FromDateTime, ToDateTime in gantt control
this.setViewRange();
// adds rooms and appointments to a list
// and adds them to the gantt by calling parmActivities(theList) on the gantt control
this.addAppointments();
// standard method to refresh the gantt
ganttControl.refresh();
For some reason, the gantt does only adapt to the view changes for the appointment selected when the form is loaded.
Any further attempts to change the view range by changing the selection fail and the gantt does not react in any way to the change.
When moving the gantt to a separate form the view range is set as expected for initialization.
Is there anything I'm missing when dealing with gantts?
For some reason, the GanttControl does not allow to be changed directly after initialization by calling
ganttControl.parmConfiguration().parmFromDateTime(foo);
Instead you need to create a GanttControlConfiguration object first.
The following code solves the problem:
GanttControlConfiguration configuration = ganttControl.parmConfiguration();
configuration.parmAllowMultiChange(true);
configuration.parmFromDateTime(foo);
configuration.parmToDateTime(bar);
ganttControl.parmConfiguration(configuration);
We have tables in app maker that shows data in list view and it will add default features like sorting, paging. We want filters on top of each column in
that table, drop down control acts as filter that will list all the distinct values on its configured column. When I select a value in dropdown it should
filter the value from datasource and load in the list view.
If two filters or more filters is applied at the same time, the filters should act as AND condition that will bring values satisfied with all filters.
There is no such type of table in App Maker at this time (but you can always file feature request here)
Meanwhile you can put some effort and implement it on your own. You just need to add input widgets, layout them and bind to filters(_equals, _in, _notIt, _startsWith...):
#datasource.query.filters.FieldName._equals
There are some relevant apps with this functionality:
Project List
Project Tracker
I have a Drupal website where I post tournament results.
I have created a content-type where i write the result for 1 person in the tournament. So the fields are like: Date of tournament, player name, final position.
If 10 people played in the tournament, I create this content for each player.
Now, I would like to create a table with views, to list all the players in the tournament, and the various info, like player name/final position. I can do that pretty easy by adding the fields and sorting criteria in views. But my problem is, what I should do next time we have a tournament. I would like to just use the same view settings, but without having to clone the previous view, just to change the date filter-criteria.
So, I need the user to be able to view tournament page, and then see the results for that specific tournament. Then if the user go to see a different page from another tournament, then only those results will show up.
And I wish to do it in a clean way, where I don't have to clone the view and just change date.
You can achieve this by making a view with a contextual filter. The contextual filter will handle a taxonomy or node reference so that you can use only 1 dynamic view. But in order to make this work, you might want to adjust your content type a little so that it's easier for your view to filter them:
Your current content type has all the information of a contestant/player (Date of tournament, player name, final position), so it would be better to name that content type Contestant.
Then create a new taxonomy or content type: Tournament which will handle the information of a Tournament. Keeping these separated is a better approach.
So let's say you have a taxonomy: Tournament taxonomy with all your tournaments set up. Then you can add this as a term reference field in your content type: Contestant.
(Add a new term reference field: "Tournament" with widget: select list.)
Create your view:
Filter criteria -> Content:Type (=Contestant)
Page settings -> Path: /tournaments/%
Contextual filter -> Content: Has taxonomy term ID
Override title -> %1
For each taxonomy term (Tournament) you have this view now has a page. So when for example you go to http://yourdrupal/tournaments/1 it will filter your view only for that tournament.
I attached an image so that you can see how I configurated my view
I want to generate fields in a content from the values of other content.
Specifically, I have a list of "players" stored as a content type, and a separate content type called "Events". Events list the rank of each player that participated. On the "player" content, I'd like to be able to display the players wins by searching all the "events" content. Is this possible?
Also, in Views, is it possible to generate a list of all the events a player has won, as well as how many?
1) Yes it is possible with views "Advanced > Contextual Filters". Before that you have to Create a Relationship ("Advanced > Relationships") with the field of the event that contains the Player information.
2) In this case you have to set the "Advanced > Use aggregation:Yes" and then use the "Count (Distinct)" aggregation in any field in the results.
If your Drupal level is not too high with views module better start with some learning tutorials like these from here: https://drupal.stackexchange.com/questions/5684/where-can-i-find-a-good-tutorial-on-drupal-7-views
In a mobile Flex game I have a View listing a weekly top of players.
It works well enough :-) On the top I have a search field. Also when you click a player name in the list, another View is pushed - displaying more info for that user:
I have 2 annoyances: when I pop the player details View and return back to the View shown in the above screenshot -
The search field is empty
The List ist scrolled all the way up again
Any advice please on how to save/restore those 2 values best?
UPDATE: I save those values as static variables for now...
I also used static variables for this, another way would be the create a value object for your view. What I mostly do is:
Suppose my view is called ScoreListView, I create a VO called ScoreListViewData and it contains a viewData property (of type Object) and then I create properties for other things related to the view and not it's data. You can add cachedListPosition and currentSearchString to it and before deactivating the view (in the viewDeactivate event) you can save those values so you have them in your data object of the view when it is activated again.
Works for me ;-)