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);
Related
I am in the process of creating a order tracker using Wordpress, ACF, and a yet to be decided form plugin for use on the front-end.
The back-end is working just fine but now I'm working on the front-end. What I am trying to accomplish is a visual progress bar for the user (Author) to view status on individual orders (posts).
In my field groups I have 6 stages. To open the next stage a option (radio) must be ticked to conditionally open the next stage.
These stages are what I want to represent on the front end.
Example: Order 123 is a new order. On the back end the new order information would be added (create New Post). Creating the new post would trigger the first step, or a 1, on the front end visual progress bar. When an employee saves step 2 (Edit post) the progress bar would reflect step 2, or a 2. And so on through to completed.
A little more clarity; I realize that Edit Post won't create the next step or the next progress. What I meant was that in the post form the post would be edited and the next tick, or trigger, would conditionally open the next status level or stage (i.e. Step 3, or a 3).
I am not sure if I need to somehow turn a word (label|value) into a number, make the Label=Step 1|Value=1?
I've tried a number of sliders, event trackers, range plugins but they all seem to want a numeric value and I can't connect and acf field to them. Any idea on how to either pass a radio/select/checkbox text value as a number and how to turn that step/value into a visual representation?
Or, any suggestions for plugins, or scripts, that might work for this?
Optimally, I would like each step to be a gradient color from the next. But, of course that's after I figure out the progress bar.
Thank you so much.
You can use PHP intval to change a string to a number, so your ACF data will always be a number you can work with. Then create a <progress> bar (or your progress bar of choice) with that ACF field because you know the number of steps will always be 6, and your returned ACF field will be a number between 1-6.
<label for="post_step">Post Step:</label>
<progress id="post_step" value="2" max="6"> 2 </progress>
Good Afternoon,
So I have built a State Map in Report builder that is separated into Counties. I have been pretty successful, however there is one thing I cannot figure out. When I click on the county, is it possible to pass the county name that I clicked to a chart on the same report. I can pass it to another report via go to report, but I would like to have it on the same document.I also kept getting a Subreport not found when I attempted that method. Any help is greatly appreciated.
Thanks!
A basic rule of SSRS is that with very few exceptions, you cannot change the content of a report unless you refresh the report.
Bearing this in mind, you have a couple of options..
Call the same report again as a subreport.
Assuming you only want your map and a single dynamic chart.
Add a parameter to the report that defaults to specific value such as 'none'. Then you can decide what do show in your chart when the parameter = 'none' or you could choose the hide the chart if the parameter is 'none'.
In your map go to the map's polygon properties and assign an action.
Set the action to be Go to Report
Choose your report (so we get the report to call itself)
Add a parameter, choose the parameter you added a few steps earlier as the name and select the field that contains the state name or ID etc as the value.
Your Chart's dataset can then be updated to use the new parameter in the dataset query.
Create a chart for every State
The other option is to create a chart for every state, you can do this using a table or list control and a subreport containing your chart, so you design will not have to have lots of charts individually placed.
Each Chart can have a bookmark set (most objects have a bookmark property) that is the name or ID of the state it represents.
Then in your map, set the action properties in the polygon properties to 'Go to bookmark' and then use the state name or ID as the bookmark expression to go to.
I am trying to put together a mock up for a data collection app for a local nonprofit using GSuite's AppMaker. So far I really like the tool.
One thing I need to be able to do is streamline the data entry for the site representatives. In my app, I display a list of students in a table, where one of the columns is a boolean value which represents attendance. The desired result is for the teachers to be able to input the date field one time using the date input button at the bottom of the page. Then they can quickly point and click down the Present column to log attendance.
My question is: how would I link the date selector dropdown so that the date field pre-populates with the selected date from the input field? I don't want them to have to enter the field over an over again since its the same for each row and I don't want the user experience to feel clunky.
Screenshot of the App for reference:
Using client script, you can add the following to the onValueEdit event handler of the date widget at the bottom.
var items = widget.root.descendants.<YourTable>.datasource.items;
items.forEach(function(item){
item.<DateField> = newValue;
});
The only thing to take into account is that when using client scripting, you will only update the records loaded in the table at the moment; i.e, if your table has paging, it will only update the current page. If you are using paging, then you will need to add the following code to the onPreviousClick and the onNextClick event handlers of the pager widget:
var selectedDate = widget.root.descendants.<YourDatePicker>.value;
var items = widget.root.descendants.<YourTable>.datasource.items;
items.forEach(function(item){
item.<DateField> = selectedDate;
});
Can i create a new appointment inside rad Scheduler based on a single date(select only one day without the need of selecting start date and end date)
For example if we have an occasion like birthday the user should have only one date picker to select the day of the birthday without the need of selecting start day and end day.
Please review the attached picture to help you understand more what i need.
enter image description here
Telerik supports creating custom Scheduler Edit form Templates. See any of the links below for sample code:
http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/customize-the-advanced-form-template
http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx
It should also be possible to intercept the client-side event when the edit form is being shown and hide the control you want hidden at that time.
http://blogs.msmvps.com/bmains/2010/08/15/telerik-radscheduler-client-side-capabilities-part-2-the-advanced-form/
I would really like to understand how to use the "count" property of the IconTabFilter for SAPUI5 to dynamically show the count of the result set of a table.
I have the following code -
<IconTabFilter
count="{DataSet/$count}">
<Table items="{DataSet}">
But the count is not filled automatically.
I am using an oData model that is bound on the view level. I do not want to make another backend request just for the counts. What am I doing wrong here? Is there a different mechanism that can be used?
I also tried using the updateFinished event on the table to then get the count and set it via JS but the event is triggered only on DOM placement of the table. In my case the table is hidden behind the IconTab and is not placed into the DOM till the first time the user clicks the tab so its useless.
Really would appreciate some insight into how to use this!
Thanks!
Okay, so what I did was I bound my information to a local model and did an oData $expand query to fetch the entire pages information in one call.
This worked out for me because I had several sets of data to be fetched. Before they were bound individually to tables, now they are all in one query.
In the .done() method of the call I just used the setCount method of the IconTabFilter to set the count as per the return data set.