All Answers

0 votes

Hi Ewan

I presume you mean a Google Maps error. Errors can have different origins:

  • GoogleMaps itself
  • GoogleMaps API
  • Wisej.Web.Ext.GoogleMaps
  • application itself

To exclude error origins, there are a number of things you can do.

First of all, are you checking Geocodes[0].IsError on your application?

Next thing, try to use these “certain locations” on GoogleMaps web page and on our GoogleMaps example on GitHub repository

 

  • Tiago (ITG) answered Aug 22, 2018 - 9:33 am
  • last active Aug 22, 2018 - 9:35 am
0 votes

Hi Tiago

I am getting the attached error, but only in certain locations

Any ideas?

Ewan

0 votes

Dear Tiago,

Using appearance for the whole DataGidView does not help us. I have been hoping that it is possible to use the same methodes as here:
https://github.com/iceteagroup/wisej-examples/tree/master/ComponentMixin,
but I’m not an expert in mixin, I hope you can solve this problem.
At the moment I just need it for the “Totals” row. It is very easily to add this row, but formating is not so simple, especially if you use “odd” and “even” rows, which apply to the whole row, not to exact cells. Sometime the Totals row is “odd” and sometime is “even”.
My second question here:
https://wisej.com/support/question/non-selectable-datagridviewrow-is-it-possible
is also about the Totals row. User does not have to have possibility to select it at all.
Kind regards,
Dmitry

  • Dmitry answered Aug 21, 2018 - 10:10 pm
0 votes

Hi Tim,

we´re working on sample for this, but need to tweak a few things in Wisej core and the filters first.
I´ll post it here once the new new dev build including the modifications is available.

Best regards
Frank

0 votes
In reply to: IT consult

I’ve found the issue to be in my module that was calling application.Update(me) after the dialog is closed.

once i’ve removed that line, it’s working.

thanks

  • michelle hobbs answered Aug 20, 2018 - 5:29 pm
  • last active Aug 20, 2018 - 5:45 pm
0 votes
In reply to: Master-detail View

Hi Weitian Lou,

I think you can do it using DGV. Please have a look at the sample Luca attached in the thread DataGridView Cell Merge

HTH

  • Tiago (ITG) answered Aug 20, 2018 - 12:20 am
  • last active Aug 20, 2018 - 12:21 am
0 votes
In reply to: TextBox autosize bug

Hi Marian,

I could reproduce the problem as described below

(…) when you enter a long text into the textbox and then resize the window horizontally. The TextBox will grow and shrink vertically even though the text stays the same.

[Edit]

It also happens with ComboBox. Logged as WJ-9147

  • Tiago (ITG) answered Aug 19, 2018 - 11:49 pm
  • last active Aug 20, 2018 - 12:09 am
0 votes
In reply to: IT consult

Hi Michelle,

thanks for reporting this. Could you please setup a small test case for us so we can get a better understanding of that issue ?

Thanks in Advance.

Best regards
Frank

0 votes

Hi Tiago,

Thanks for your answer. It is VERY strange though, I just went to try it again so I send you the sample and it now WORKS!! It’s a pity I didn’t at least take a screenshot with the error, but the description was as in my original post. The only place I found “Wisej.Core.IWisejControl” was in the Wisej.Core.xml file in my bin folder, don’t know if this tells you something.

If I come across the error again I’ll let you know. However, I suspect that even if I send you a sample, it will work at your end….

Thanks again,
Alex

0 votes

Hi Andrew,

1. Where to place a  Application.HashChanged event in a singular location? In Program.vb?
You can put it wherever you prefer. Program.vb is as good as any other file.
As you can see in the DeepLinking example in GitHub, the event is setup and handled in Window1.cs
2. How can I identify the active form? Would it by checking the “last” hash? I.e, if the previous has was “#editissue=123” then we know it is frmEditIssue that needs closing.
You can get a list of all open Forms using Application.OpenForms. There is no concept of “active Form” since you can open several modeless forms at the same time. You must “design” your own way of storing it. You can use a session variable to store something unique about the “active form”. To get the form instance, you can iterate Application.OpenForms to find the relevant form.
3. Then could I use something like Application.OpenForms(frmEditIssue).BackButtonCode() to simulate the back button? (public method on each form)
Once you iterate Application.OpenForms and find the relevant form instance, you can call internal or pubic (Friend or Public in VB) methods, provided you cast your form to the appropriate base class or interface.
As you can see in the DeepLinking example in GitHub, there is no need to simulate the Back button
For the remaining points, please refer to the DeepLinking example in GitHub.
HTH
  • Tiago (ITG) answered Aug 19, 2018 - 4:28 pm
  • last active Aug 19, 2018 - 5:51 pm
0 votes
In reply to: TextBox autosize bug

Hi Tiago,

yes, I know that the Anchor is Top, Left and Right. I believe I need it like this for my layout to work correctly.

About the sample project: If you clear the text in the TextBox, it looks like this:

That’s correct and how I would expect it to look – it has the height of one line of text. Now if I start typing some text into it, it will at some point grow vertically as if to fit the (word-wrapped) text:

If I continue to type text into it, it will grow even larger:

I just noticed that this sometimes does not happen immediately. Sometimes you have to re-open the designer for the height to adjust, which is also a bit strange.

My guess is that the TextBox grows so that – if the long line would have been word-wrapped – it would fit into the box. But the text does not wrap. It doesn’t matter whether I set “WordWrap” to true or false. I thought the point of the “WordWrap” property is to wrap long lines so that you can see it all at once without having to scroll inside the TextBox, and the “Multiline” property is just to allow/disallow entering new-lines into the TextBox, e.g. by pressing Enter.

How else would I be able to disallow new-lines in the text but at the same time wrap long lines? I mean, word wrapping does not insert new-lines (i.e. it does not actually make the “Text” property multiple lines), it’s just a visual thing, so I believe “Multiline” should have no effect on it.

To give a bit more context: We are using this kind of layout in a questionnaire. It’s basically a TableLayoutPanel with 2 columns (the question on the left, and a TextBox for the answer on the right), and as many rows as there are questions. Now if a user needs more space for his answer, I would like the row of that question/answer pair to grow as soon as the user’s text doesn’t fit anymore. It should not be possible for the user to enter multiple lines, but the text should wrap nonetheless. I could of course filter out new-lines after the fact, but that’s more of a workaround than a fix for the problem.

Edit:
You can actually see the problem much better when you enter a long text into the textbox and then resize the window horizontally. The TextBox will grow and shrink vertically even though the text stays the same.

Regards,
Marian

  • Marian Ryt answered Aug 19, 2018 - 5:41 pm
  • last active Aug 19, 2018 - 5:46 pm
0 votes
In reply to: Master-detail View

Hi Tiago, to be more clear, attached please find the sample screenshot from our old VWG project. You can  click the “Edit” button to show the subpanel. You could have other way to do that. Please let us know.

Thanks.

0 votes
In reply to: Master-detail View

Hi Weitian Lou,

Wisej can do master-detail just like you do it in WinForms. If you want to use a DataGridView, there is the interesting Microsoft blog. DGV is well suited to master-detail because it’s a data bound control – it supports advanced data binding.

Your question is about ListView and this control it’s not a data bound control, neither on WinForms nor on Wisej. So, yes you can do it in both platforms, but it’s a lot easier to use DGV. So examples are scarse or non existant because no-one uses ListView for this purpose.

  • Tiago (ITG) answered Aug 19, 2018 - 4:49 pm
  • last active Aug 19, 2018 - 4:49 pm
0 votes

Hi Alex,

Can you attach a sample?

0 votes
In reply to: TextBox autosize bug

Hi Marian,

In the sample you sent, the textBox1 is Anchor Top, Left and Right. So it grows or shrinks horizontally, when the windows grows or shrinks horizontally. That’s the standard behaviour. If you don’t want it to grow or shrink horizontally, you can’t Anchor it both Left and Right.

I don’t understand what you mean by “enabling WordWrap”.  If you want textbox1 to show text in several lines you must

Snippet

this.textBox1.Multiline = true;

just like as in WinForms.

HTH

  • Tiago (ITG) answered Aug 19, 2018 - 3:45 pm
  • last active Aug 19, 2018 - 3:49 pm
1 vote

So far this fix seems to work.

0 votes

I get the wrong year. Logged as WJ-9143.

The quick workaround is to add this in default.html

<script>

Wisej.onLoad = function(){

qx.util.format.DateFormat.prototype.__getCalendarYearGap = function(){return 0;}

}

</script>

  • Luca answered Aug 18, 2018 - 12:53 am
0 votes

Hi Sergio,

You should use what you wrote previously

var keys = await Application.Browser.LocalStorage.GetKeysAsync();

0 votes

It’s ok now.
But a new question, next code is supported (because it doesn’t work, try with empty localstorage)?

var task = Application.Browser.LocalStorage.GetKeysAsync();
var res = task.Result;

Thanks in advance!

  • Ser Gar answered Aug 17, 2018 - 8:26 pm
0 votes

Hi Eric,

thanks. Looks like a leftover from when they were not fully implemented.
It´s logged as WJ–9141.

Best regards
Frank

Showing 6901 - 6920 of 11k results