after working a while with the latest beta, I have a few minor glitches to report:
“Duplicate method” in editor: forms are not sorted
When debugging, methods are now displayed in a light grey (probably to emphasize that you are editing, which is kind of nice), but are also “untouchable”. The bad part about that is that you cannot copy things from a method for example to paste it to “Evaluate”.
Refreshing problems after deleting global variables, global methods and form methods: When you delete those, you still see them although they are gone. When you do a refresh you see that they are gone. This is a little dangerous, because you might delete something else.
There seem to be changes to the way forms are loaded. I have seen some strange things happening when deleting a related record in a tab panel. All of a sudden all kinds of things are loaded for the first time, sort of messing things up quite a bit. I know this is quite unspecific, but even after playing with that for one hour I didn’t fully understand of what is going on. I will try to investigate this further, but maybe somebody else experiences something like this.
I also have a question: What does application.getUserProperty (or set…) do? I couldn’t figure it out…
another one, probably due to the changes in value lists:
I have a value list that shows text and returns numbers. OnShow of a form I manually (by method) set one of the numbers in the value list in the field. 2.1 showed the correct choice, 2.2 shows the number.
Import Image from solution: In the media dialog, you can comfortably import images from other solutions. You can, however, do that only once. When you import an image and then click on “import from solution” again, you’re dead. You have to force quit Servoy.
When adding a new global method it is not visible under the “Methods” node until you do a refresh.
Since I upgraded, selected nodes are highlighted in a very dark blue, and you can’t read what’s highlighted. Sort of like highlighting with a black magic marker.
This may be just me. Can someone else who’s using this bean verify that this is changed with 2.2?
When starting with a new Solution, after selecting the fields for the first form and then pressing the OK button, you just get a grey screen, instead of the form in design view. Need to quit Servoy and start again, then all works fine (doesn’t happen all the time )
Toolbars don’t stick on the line and in the order that you set them, between two different sessions in Developer (this was an issue in previous versions as well, though thought it was fixed in 2.1.2)
“Duplicate method” in editor: forms are not sorted
will be fixed in beta2, we forgot the sort flag indeed
patrick:
2. When debugging, methods are now displayed in a light grey (probably to emphasize that you are editing, which is kind of nice), but are also “untouchable”. The bad part about that is that you cannot copy things from a method for example to paste it to “Evaluate”.
We will think about a solution for this
patrick:
3. Refreshing problems after deleting global variables, global methods and form methods: When you delete those, you still see them although they are gone. When you do a refresh you see that they are gone. This is a little dangerous, because you might delete something else.
will be validated
patrick:
4. There seem to be changes to the way forms are loaded. I have seen some strange things happening when deleting a related record in a tab panel. All of a sudden all kinds of things are loaded for the first time, sort of messing things up quite a bit. I know this is quite unspecific, but even after playing with that for one hour I didn’t fully understand of what is going on. I will try to investigate this further, but maybe somebody else experiences something like this.
Ohter than loading/combining multiple(module) repository solution element trees, and visual difference in the editor, there has be no change in displaying forms.
patrick:
I also have a question: What does application.getUserProperty (or set…) do? I couldn’t figure it out…
Get/Set a persistent property for later retrieval on the client PC
Import Image from solution: In the media dialog, you can comfortably import images from other solutions. You can, however, do that only once. When you import an image and then click on “import from solution” again, you’re dead. You have to force quit Servoy.
Unable to reproduce
patrick:
2. When adding a new global method it is not visible under the “Methods” node until you do a refresh.
Cain:
I’m using the dbtreeview bean. Since I upgraded, selected nodes are highlighted in a very dark blue, and you can’t read what’s highlighted. Sort of like highlighting with a black magic marker.
check your fg/bg color properties from the bean, you likely entered a color in the past which was not shown before the update
When starting with a new Solution, after selecting the fields for the first form and then pressing the OK button, you just get a grey screen, instead of the form in design view. Need to quit Servoy and start again, then all works fine (doesn’t happen all the time
When this happens pls sent us your .log.txt file
pbakker:
Toolbars don’t stick on the line and in the order that you set them, between two different sessions in Developer (this was an issue in previous versions as well, though thought it was fixed in 2.1.2)
There has been no change in toolbar location persistence, since fixed in 2.1.2, did you correctly exit developer when you noticed this? (location info is stored when exiting developer)
I also have a question: What does application.getUserProperty (or set…) do? I couldn’t figure it out…
Get/Set a persistent property for later retrieval on the client PC
Sorry, I still don’t get it. What is a persistent property?
patrick wrote:
Import Image from solution: In the media dialog, you can comfortably import images from other solutions. You can, however, do that only once. When you import an image and then click on “import from solution” again, you’re dead. You have to force quit Servoy.
Unable to reproduce
Just managed to get “lost” again. The solution I am importing from has quite a few images. I can do this to produce the problem:
go to designer
click on the “add image” button
click “import from solution”
immediately you see the solution selection dialog
If your solution has lots of images, it takes a while leaving a grey box from the solution selection dialog; CPU goes up to the top for a moment
Choose an image, click OK
click “import from solution” again
choose the same solution
CPU doesn’t move at all, the grey shadow from the solution selection dialog stays and image list never appears.
A user property is something to store a user preference in, for example a user never wants to see a element or item, you can set for example:
application.setUserProperty(“alwayshideChart”,“true”);
and in form onload test for this property(get) and hide a bean for example
Those setting are remembered each time you start Servoy and are user specific
on which platform are you running? is there maybe a dialog behind something else? (waiting for input) ,we fail to reproduce this.
I am running on Windows XP. I am not touching anything except the steps described, so I cannot push the dialog to the back somehow. Afterall, this is not a major problem once you know it.
Cain wrote:
I’m using the dbtreeview bean. Since I upgraded, selected nodes are highlighted in a very dark blue, and you can’t read what’s highlighted. Sort of like highlighting with a black magic marker.
Jan Blok wrote:
check your fg/bg color properties from the bean, you likely entered a color in the past which was not shown before the update
globals (scripts and methods) are synched again when new/delete.
I can’t reproduce the valuelist problem (id/value)
I have a textfield (build on a global) that holds an id
I gave that textfield a custom valuelist of a view text|id entries
in the onShow of the form i do this:
globals.maininteger = 2
but it displays the right textvalue.
Then i changed the textfield to a combobox and it also displayed the right textvalue.
that global method creates a value list (name/ID) using a query
after creating that value list, in the onShow method one of those values is set by hand (I know that at least this one is part of the query result)
The idea is this: in every table view I have a search field/search value in the header. The search field is a popup. That popup is populated with fields based on a query (the global method). This way I can use one method for all kind of forms, I only need to know the underlaying table. I can also easily add more search fields… I then set the default field manually (globals.searchfield = 1234).
At first (onShow) that doesn’t work, it just shows the ID. When you click on another record, the value is shown correctly.
The whole thing might be a bit more difficult since the table view that has the field in the header is nested in a tab panel.
You are using combos for this i take?
Something is changed there yes. The combo can now show a value that is not in the list anymore. So if you set xxx = YYYY and YYYY is not in the list of the non editable combo then you still see YYYY selected but it is not an option anymore.
But it seems that when you are setting the value to the global. Then the combo somehow doesn’t have the valuelist with that value yet. So it displays the realvalue. Afther you change a record the value is reset and then it does have the right value in the valuelist so it can display the text for that id.
Can you play with it a bit more now you have this info?
I think i need to have a testcase for this to really dig into this.
About the toolBars not sticking on position between sessions: It’s very reproducable and driving me nuts when having to close and restart Servoy many times while developing…
Just add/remove some of the toolbars that are not visible when you first install Servoy. Alter their positions a bit, quit Servoy (though the menu, though the close button in top right corner..) and restart Developer.
I’ve had this problem in all installations of Servoy, happening right after a fresh install as well.
Hope you can fix it, because it’s really driving me nuts…