All Answers

0 votes

DateTime.Parse() is not specific to VWG – it’s a .NET class that works the same in any framework. If you get a format error it means that the string you are passing is not a valid date according to the culture.

The problem may be that the string you are passing is not valid for “es-MX”. VWG failed to restore the culture so you may have been parsing a en-US (or invariant – which is the same) string. In fact when you specify es-MX you get the error. Try with InvariantCulture. Also check the value of “hf”, without knowing what is the string it’s impossible to know if you are passing the wrong value or using the wrong culture.

As I said, this is all related to .NET, it’s not a Wisej or VWG specific issue other than that Wisej preserves the culture setting.

Best,

Luca

 

  • Luca answered Jan 23, 2017 - 7:13 pm
0 votes

 

 

No? any idea?

  • Mark Villela answered Jan 23, 2017 - 5:03 pm
0 votes

This is the problem:

‘Dim d As DateTime = hf

I tried also this…

‘Dim d As DateTime = Date.Parse(hf, CultureInfo.CreateSpecificCulture(“es-MX”))

 

Some idea?

 

In the VWG is the same code and i don’t have this error (‘Dim d As DateTime = hf ‘ this line work in VWG).

 

 

If DateDiff(DateInterval.Day, d, Fu.getServerDateTime) > 2 Then
j.ImageSource = “/icons/attentionh.png”
End If

 

 

  • Mark Villela answered Jan 23, 2017 - 5:03 pm
0 votes

 

This is my Json file.

The text that giving this error.. I don’t know.. is very big coding in my app.. I only see this error message: “String was not recognized as a valid DateTime” in a modal message box.

 

 

  • Mark Villela answered Jan 23, 2017 - 3:36 pm
  • last active Jan 23, 2017 - 3:37 pm
0 votes
In reply to: Address Lookup

Hi Luca

Did you ever find time to post a version using an HTML box?

Thanks for all you do

Ewan

0 votes

Hi Marian,

we have checked in more detail and found that in fact it´s not a bug.

When changing the data source the focus cell is reset which causes the selection to be cleared. Works the same in WinForms. In fact in WinForms it’s impossible to change the selected rows right after changing the data source.

With Wisej it is possible thanks to its asynchronous nature. Change the sample code to:

BeginInvoke(newAction(() =>

{

// Restore selection.

foreach (DataGridViewRow row inthis.dataGridView1.Rows)

{

if (selectedItems.Contains(row.DataBoundItem))

{

row.Selected = true;

Debug.WriteLine($”{row.DataBoundItem} selected.”);

}

else

{

row.Selected = false;

}

}

}));

BeginInvoke() in Wisej is executed within the same request and on the same thread but *after* the entire request has been completed. It’s basically a post-process callback. It allows an application to execute code asynchronously. Which is different from Application.StartTask().

Hope that helps.

Best regards
Frank

0 votes

Hi Ser,

we have build a sample that contains such a search box:

http://wisej.s3.amazonaws.com/support/attachments/Wisej.SearchBox.zip

Best regards
Frank

0 votes
In reply to: button styles

You can set the AppearanceKey on most controls to change which “branch” of the theme to use. The Button control is set to “button” by default. You can change it to “button-alert” or “button-ok”, or “button-info” or “button-cancel”. These are the built-in additional button appearances. However, you can add additional custom appearances. You could add, for example, “confirm-button” or “large-button” and decide what they should look like in a custom theme or  a theme mixin, then set the AppearanceKey to your new appearance name.

When using the ThemeBuilder, you can always see the actual key name in the status bar. Click on the Info button, for example, and the status bar will show “button-info” or “button-info/label” since the click most likely landed on the internal “label” widget. See screenshot below.

  • Luca answered Jan 21, 2017 - 9:22 pm
  • last active Jan 22, 2017 - 8:01 pm
0 votes

 

Hi

?????

  • Mark Villela answered Jan 22, 2017 - 2:36 pm
0 votes
In reply to: button styles

Just perfect!

thanks a lot

Best regards

Stephane

  • stephane answered Jan 22, 2017 - 9:55 am
0 votes

You can manage the communication errors as described in the post linked by Frank.

The Component Not Found error is thrown only when a datagrid on the client asks for data from a component that doesn’t exist on the server. It should never happen. Can you please provide more info? Wisej build, does it happen when closing a form, does the form have a datagrid or listview?

  • Luca answered Jan 21, 2017 - 9:28 pm
0 votes

That’s an error coming from the .NET DateTime parser. Can you send me the json setting you used and the text that is giving the error?

  • Luca answered Jan 21, 2017 - 9:23 pm
0 votes

Thanks Marian !

I have logged the bug as WJ-7956 and we will inform you when it is fixed.

Best regards
Frank

0 votes

Hi Ser,

I have tried to reproduce this but failed so far.

Can you share the code you are executing in the KeyPress event handler ? Or is it enough to just subscribe to it ?

Maybe you can set up a small test case and send it to frank(at)iceteagroup.com ?

Thanks in advance !

Best regards
Frank

0 votes

 

 

How can I start a new Mobile project?

Where can I select the Wisej.Mobile?

  • Poncho Ord answered Jan 21, 2017 - 3:37 am
0 votes

 

 

Maybe something like this.. see the attached pic.

In my sample, I create diferent json file for each page.

But with the same sessionId?? is possible?

 

  • Mark Villela answered Jan 21, 2017 - 3:22 am
0 votes

 

Ok, but….

I have a startup page like “default.html” or “home.html” in mi case, when I load my app in /home.html this load my Wisej Page “HomePage”… so far so good.

How can I do an other page named “contact.html” and this load the Wisej Page “ContactPage”

 

Any way to load different’s pages will be great… for example like “Facebook”.. this is a full WebSite…

Will be amazing that I can develop something like that with Wisej… Can you atach a simple sample?

 

Thanks.

  • Mark answered Jan 21, 2017 - 3:03 am
2 votes
In reply to: Deploy Wisej on Azure

You can either use Visual Studio’s deployment wizard or use the Azure’s control panel to create the application and deploy the same files you would deploy for an ASP.NET application. You can deploy using FTP or using the wizard.

See https://wisej.com/docs/html/Deployment.htm.

I have included below the sequence from Visual Studio -> Build -> Publish. All I did was to authenticate, create a new app, click Next.

You an use the same wizard to deploy to IIS on a standalone server or on Azure if you are using a virtual machine or the web site service. It’s basically the standard deployment you’d follow for any web system.

HTH

Best,

Luca

 

  • Luca answered Jan 20, 2017 - 8:26 pm
0 votes

Hi Mark,

We don’t have the extension wx to create “pages”. I think you are mixing it with visual webgui’s wgx extension. Wisej uses the Single Page Application (SPA) architecture, which is common for web applications. With Wisej you can use /Default.html or /MyPage.html or /MyApp, etc. See Configuration.

You can have sub-applications with a different page: a project in Wisej can have Default.html and it can have Accounting.html, for example. However, when you address a different URL you get a different session. Bypassing the entry point and being able to create a form from the URL was discarded because it messes up the state when refreshing and it only creates problems.

You can also use the deep linking approach (also typical of SPAs) to show different views of the application depending on the arguments in the URL. Basically we use all standard approaches for SPAs.

Best,

Luca

  • Luca answered Jan 20, 2017 - 8:13 pm
0 votes

 

This work for show the page….
Dim phome As New home

Application.MainPage = phome

 

But how can i open at the same time the phome, and contact page, and productdetails page?

For example:

Open at the same tieme:

 

/contact.wx

/home.wx

/productdetails.wx?id=12

/productdetails.wx?id=54

/aboutus.wx

/payment.wx

 

 

wx extension is just a sample.. maybe will be html i don’t know.

and the right click is important for “open this link in a new tab” or “open this link in a new window”… very used in any page.

 

 

Thanks again Luca.

 

 

 

  • Mark Villela answered Jan 20, 2017 - 6:23 pm
Showing 9741 - 9760 of 11k results