ZingChart keeps on loading when I add step:minute - datetime

I have date-time axis vs integer. Whenever I set step: minute, the chart can't be seen, it just keeps on loading, while when I delete it, I can see the chart then. This does not allow me to use the step feature. You can view it on http://alnnovative.com/zingdemo.php Is there any solution to it?

You have a reference error in your page that says hour is not defined.
The "step" attribute accepts a numeric or string value.
Change "step":hour to "step":"hour"

Related

CraueFormFlow start in a given step

I have a Symfony 3.4 application with Craue Form Flow and I need to be able to start the flow (in some cases) on a given step (not step 1).
is there a way to do that? I have dynamic step navigation enabled.
thanks
EDIT:
When using the dynamic navigation I noticed the change in the URL.
It includes the instance code and the step number, something like this:
MY_URL/MY_PAGE&instance=7yCRU0UkfM&step=4
I was able to get the Instance code with
$_POST['flow_createProposal_instance'];
and then recreated the route and did a redirectToRoute but it starts on step 1.
I managed to do it by adding the data to the currentRequest, saving the form and then going to the next step
$currentRequest = $this->requestStack->getCurrentRequest();
$currentRequest->request->set('Step1', $step1Data);
$this->flow->saveCurrentStepData($form);
$this->flow->nextStep();
I repeat this for each step i need to "skip".
The $step1Data variable is simply an associative array with the values I need to save per step.

Trying to figure out what this line of code means

This code is from a program I use to enter and track information. Numbers are entered as work orders (WO) to track clients. But one of the tables is duplicating the WO information. So I was trying to figure out a general outline of what this code is saying so that the problem can be fixed.
Here is the original line:
wc.dll?x3~emproc~datarecord~&ACTION=DISPLAY&TABLE+WORK&KEYVALUE=<%work.wo%&KEYFIELD=WO
What I think I understand of it so far, and I could be very wrong, is:
wc.dll?x3~emproc~datarecord~&ACTION
//No clue because don't know ~ means or using & (connects?Action)
=DISPLAY&TABLE+WORK&KEYVALUE
//Display of contents(what makes it pretty) and the value inside the table at that slot
=<work.wo%&KEYFIELD
//Calling the work from the WO object
=WO
//is Assigning whatever was placed into the WO field into the left side of the statement
I'll do my best to interpret the statement, with the limited information you've provided:
wc.dll is an instruction to invoke a DLL
? is introducing a list of parameters (like a query string in HTTP)
x3~emproc~datarecord~ seems like a reference to a function in the dll
& parameter separator
ACTION=DISPLAY set the ACTION parameter to the value DISPLAY
TABLE+WORK perhaps sets a couple of flags
KEYVALUE=<%work.wo% set the KEYVALUE parameter to the value of <%work.wo%
KEYFIELD=WO set the KEYFIELD parameter to the value WO
Hope that helps.

How to refresh after changing ValueNumericOptions.Format?

I'm using the DevExpress xtraChart to display some data. In the CustomDrawSeries event, I'm checking the series name and changing SeriesTemplate.Label.PointOptions.ValueNumericOptions.Format. It works... partially.
The idea is to change ValueNumericOptions.Format from NumericFormat.FixedPoint to NumericFormat.Percent and vice versa based on the name. The problem is the change is not displayed immediately. In order to see the change, the user must select another cell and then the change is visible immediately.
How can I force a refresh to the series and see the changes immediately without needing to select another cell?
Update -
After the change is made via code, I inspected Format and it is being set correctly. This confirms, in my mind anyway, this is a refresh issue.
I do not know what the real cause of the problem, but your approach seems to be not quite optimal. You modify the global settings (template) while your goal is just to change settings for a certain series.
What you want to achieve can be done during the ChartControl initialization, without having to handle events. The following code can be used to apply a percent format to a certain series:
DevExpress.XtraChartsPointOptions pointOptions = new DevExpress.XtraChartsPointOptions();
pointOptions.ValueNumericOptions.Format = DevExpress.XtraCharts.NumericFormat.Percent;
DevExpress.XtraCharts.SideBySideBarSeriesLabel label = new DeveExpress.XtraCharts.SideBySideBarSeriesLabel();
label.PointOptions = pointOptions;
DevExpressXtraChartsSeries series = xtraChart1.Series["Series Name"];
series.Label = label;
series.LabelsVisibility = DevExpress.Utils.DefaultBoolean.True;
By the sounds of it you are registering to the Refresh event of the view controller which will change the format of the chart on refresh, assign your code also in the OnViewControlsCreated event to initialize your code upon first creating the view.

how to use QTable::editCell()

I don't understand how QTable::editCell() should be used. I am trying to do some error checking based on entries made by user in a QTable as mentioned in my another question.
I would like to give user an opportunity to re-edit the cell which has error. For example, if name column entry has some special characters such as '(', the user should be prompted for the error and the control should go back to same cell in edit mode. I tried using QTable::editCell() in my code as shown below.
Table->editCell(row, 0, TRUE);
name = Table->text(row, 0);
However, this doesn't work as expected. The control doesn't stay in the cell at all and obviously the name is not correctly collected. So, my question is how to ensure from within code that a cell of QTable can be edited so that the edited contents can be accessed immediately in next statement (as shown in above code).
Note: I am working with qt 3.3.8 only.
I don't think you can do that. You'll have to go back to the event loop, and wait for one of the signals (like valueChanged(row,col)) to be fired to re-validate the data.
A blocking wait on a GUI object is often not a good approach (except for modal dialogs).
I know I'm a little late here but you should use the following connect statement with your own custom function to do your specific needs such as below. You can also use this method to disable users from entering in special characters within you custom function. That way they wont ever have to correct undesirable characters.
connect(ui->tableWidget, SIGNAL(cellChanged(int,int)), this, SLOT(customFunction(int,int)));
void updateTable
{
//remove invalid characters
}

Navigaton strategy - drilldown on children - does not retain ordering in icCube

In the icCube Web Reporting you can set a graph and chart to respond on a click row/column/cell event and inidcate what must be done when the widget receives a click.
In this particular case I have the rows ordered based on a parameter.
But when I click on the row in the graph, the children are displayed without any order.
I found the following workaround, but it helps only with a named measure not a parameter:
use navigation strategy MDX iso children and use:
ORDER ($member.children, [measures].[amount], BASC)
the following gives an MDX error:
ORDER ($member.children, #{PARAMETER}, BASC)
The cause for the error is that it does not replace the #{PARAMETER} with the actual value.
Is there any other way/workaround to get this working in icCube?
A live working example explaining the questiuon can be found here
Sorry, it's a limitation - bug - in the current version : http://issues.iccube.com/issue/ic3pub-165
Will be fixed in 5.1.2

Resources