All Answers

0 votes

Hi,

Can you attach a sample? If not, please modify Download example to fit your use case and attach it.

0 votes

Hi Masafumi,

Chrome, Firefox and Opera handle the filename correctly. The filename is corrupted only on Internet Explorer and Edge.

Logged #1628 as Workaround for Edge and IE corrupt Japanese filenames on Application.Download

  • Tiago (ITG) answered Nov 1, 2018 - 3:06 pm
  • last active Nov 2, 2018 - 9:14 am
0 votes

Hi Tiago,

I tried the example. I attach the result.

Thank you.

 

0 votes

Hi Masafumi,

I cannot reproduce.

Using the Download example project, edited Page1.cs file as attached. Ran the project, clicked on 3. Download PDF with FileStream and received the attached file ダウンロード.pdf

  • Tiago (ITG) answered Nov 1, 2018 - 10:23 am
  • last active Nov 1, 2018 - 10:24 am
0 votes

Hi Matthew,

It turns out iOS tablets and phones (even with Chrome) support an older ECMAScript that cannot parse local dates and always assumes the serialized JSON string is UTC

Logged #1627 as Date values in browsers with older javascript support (i.e. Safari) may be shifted by the time zone of the browser.

 

0 votes
In reply to: Wisej Trial

If this is web.config it cannot work, you removed the wisej configuration.

I moved Default.html and Default.json to the folder /wisej_app.

http://interserver.wisej.net/wisej_app

Still works.

  • Luca answered Oct 31, 2018 - 8:46 pm
0 votes
In reply to: Wisej Trial

Thank you Luca

My Web.Config:

<configuration>
 <system.webServer>
 <rewrite>
 <rules>
 <rule name="WordPress: https://mysite.com" patternSyntax="Wildcard">
 <match url="*"/>
 <conditions>
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
 </conditions>
 <action type="Rewrite" url="index.php"/>
 </rule></rules>
 </rewrite>
 </system.webServer>
</configuration>

My main page is WordPress with Jetpack and standard Theme, I use a free SSL provided by Interserver, Wisej app is in another folder, please reproduce these conditions in your hosting provider.


            
0 votes
In reply to: Wisej Trial

Thank you Luca, but if I add this line to my Web.Config file I get a 500 error:

<add input=”{REQUEST_FILENAME}” pattern=”*.wx” negate=”true” />

I do not understand why  Standard Asp.Net WebForms works and Asp.Net Core works and WiseJ does not.

  • costureiro jdg answered Oct 31, 2018 - 3:45 pm
  • last active Oct 31, 2018 - 3:46 pm
0 votes
In reply to: ChartJS and VB

Hi Gareth,

I presume you are familiar with ChartJS example in the GitHub repository. Didn’t it help you?

 

[Edit]

Please note also the https://wisej.com/support/question/chartjs-data-set-is-not-displayed-in-the-new-project thread and how the issue was solved.

  • Tiago (ITG) answered Oct 31, 2018 - 9:47 am
  • last active Oct 31, 2018 - 11:02 am
0 votes

Hi Masafumi,

  1. Opens in designer view, go to the Properties panel and select the non-working chart.
  2. Under Misc, unfold Options, then Scales.
  3. Now click on the ellipsis to edit xAxes in a popup (or unfold xAxes until you see the Type property).
  4. The Type is Linear; just change it to Category.

As soon as you close the popup, the x axe will show the months you set in the Labels property. Run the sample and everything is as expected.

  • Tiago (ITG) answered Oct 31, 2018 - 10:59 am
  • last active Oct 31, 2018 - 11:00 am
0 votes
In reply to: ChartJS and VB

Hi Tiago

Yes that’s about right.

I’ve got the majority working and have run chartjs before in a html panel in similar software to wisej (visual web gui) but wisej has an inbuilt control that would be neater to use.

The main issue is the syntax for the data, label and background color functionality.

I woild be grateful for any sample code or examples as it doesn’t seem to follow standard syntax

Thanks again.

0 votes

Hi Tiago.

Thank you for the sample code. But the problem is not solved.

My explanation was not enough. I write below what I tried.

1. Create a new project and add Empty Page.
2. In the designer, drag and drop ChartJS from Wisej Extentions in the tool box to Page.
3. Change ChartType to Bar.
4. Write sample code.

The results are as per the sample project (ChartJS 1).

On the other hand, ChartJS 2 copied from GitHub’s sample project (ChartJS.sln) will be displayed without problems.

Also, the problem I wrote (data label remains, the “. Text” property is not reflected) is also in this project.

Thank you.

0 votes

Hi Masafumi,

Concerning  step 3 of Wisej-Example-ChartJS.docx, datasets created in the designer are no longer serialized. So for all purposes, you must follow another path: create the DataSet and add it to the ChartJS widget DataSets collection on the code behind file, say on the Load event handler. Populate the DataSet on initial page load and whenever you want to change the chart data.

Example for BarDataSet

BarDataSet barDataSet1 = new BarDataSet();
barDataSet1.BackgroundColor = new[]
{
    Color.FromArgb(49, 255, 0, 0),
    Color.FromArgb(58, 102, 255, 0),
    Color.FromArgb(52, 0, 183, 255),
    Color.FromArgb(53, 247, 0, 255),
    Color.FromArgb(52, 191, 123, 63),
    Color.FromArgb(53, 191, 63, 86),
    Color.FromArgb(104, 255, 0, 118),
    Color.FromArgb(237, 130, 237),
    Color.FromArgb(88, 64, 224, 208),
    Color.FromArgb(84, 255, 98, 70),
    Color.FromArgb(60, 41, 69, 70),
    Color.FromArgb(98, 0, 0, 128)
};
barDataSet1.BorderColor = null;
barDataSet1.Data = new object[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
barDataSet1.HoverBackgroundColor = null;
barDataSet1.Label = "Data Set";
chartJS2.DataSets.Add(barDataSet1);
  • Tiago (ITG) answered Oct 30, 2018 - 8:12 pm
  • last active Oct 30, 2018 - 11:36 pm
0 votes
In reply to: ChartJS and VB

Hi Gareth,

I presume you have a sample that “almost” works but is missing some bits. What is the precise issue?

0 votes
In reply to: Wisej Trial

ASP.NET pages are configured in the base web.config that you don’t have access to. IIS inherits web.config settings. By rewriting

<match url=”*”/>

All URLs it’s preventing any http handler to work. You should try with a default ASP.NET installation. In our test we simply uploaded the standard files you’d need with any ASP.NET that is not just a page (i.e. needs /bin) and it worked normally. If you exclude *.wx from the wordpress rewrite filter it should work.

<add input=”{REQUEST_FILENAME}” pattern=”*.wx” negate=”true” />

  • Luca answered Oct 30, 2018 - 3:40 pm
0 votes
In reply to: Wisej Trial

Thank you Luca, My web site uses a special web.config for the main page because the main page is a Wordpress site and it uses some special configurations to work properly with ssl, for example the 404 page is a Wordpress page, maybe it is what is causing Wisej malfunction, but standard Asp.Net works properly.

My web.config for the main page of my site:

<configuration>
 <system.webServer>
 <rewrite>
 <rules>
 <rule name="WordPress: https://mysite.com" patternSyntax="Wildcard">
 <match url="*"/>
 <conditions>
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
 </conditions>
 <action type="Rewrite" url="index.php"/>
 </rule></rules>
 </rewrite>
 </system.webServer>
</configuration>
0 votes

Can confirm on my end.  Emailed about this on Oct 19.

 

0 votes
In reply to: Wisej Trial

I have made another test app, changed nothing, just uploaded via FTP in Visual Studio, same behavior: blank page with just app title and no error messages.

Please see the web.config below (this site is not allowing post in zip format):

 

<?xml version="1.0" encoding="utf-8"?>
<!--
 For more information on how to configure your ASP.NET application, please visit
 http://go.microsoft.com/fwlink/?LinkId=169433
 -->
<configuration>
 <appSettings>
 <add key="Wisej.LicenseKey" value="" />
 <add key="Wisej.DefaultTheme" value="Blue-1" />
 </appSettings>
 <system.web>
 <httpRuntime targetFramework="4.5" maxRequestLength="1048576" />
 <compilation>
 <assemblies>
 <!--
 Add additional components here:
 <add assembly="Wisej.Web.Ext.JustGage"/>
 -->
 </assemblies>
 </compilation>
 </system.web>
 <system.webServer>
 <modules>
 <add name="Wisej" type="Wisej.Core.HttpModule, Wisej.Core" />
 </modules>
 <handlers>
 <add name="json" verb="*" path="*.json" type="System.Web.HttpForbiddenHandler" />
 <add name="wisej" verb="*" path="*.wx" type="Wisej.Core.HttpHandler, Wisej.Core" />
 </handlers>
 <security>
 <requestFiltering>
 <requestLimits maxAllowedContentLength="1073741824" />
 </requestFiltering>
 </security>
 <defaultDocument enabled="true">
 <files>
 <add value="Default.html" />
 </files>
 </defaultDocument>
 </system.webServer>
 <!--<system.diagnostics>
 <trace autoflush="true" indentsize="4">
 <listeners>
 <remove name="Default" />
 <add name="Default" type="System.Diagnostics.TextWriterTraceListener" initializeData="Trace.log" />
 </listeners>
 </trace>
 </system.diagnostics>-->
</configuration>

0 votes

Hi Johann,

I typed http://demo.wisej.com/Pannellum and both Chrome and Firefox show the demo and don’t add any trailing slash.

Please run the HtmlJsonAndMain example and try the MultiHtml project that plays a lot with URLs, but never uses a trailing slash.

  • Tiago (ITG) answered Oct 25, 2018 - 5:07 pm
  • last active Oct 29, 2018 - 6:42 pm
Showing 6601 - 6620 of 11k results