Is there a preferred method of rolling back Servoy?
Cheers
Is there a preferred method of rolling back Servoy?
Cheers
Not as far as I know. From Beta 2.2 to 2.1, you mean? Report your bugs and you have a stable 2.2 fast
Hi Patrick.
I appreciate your comments but aren’t getting any error messages to report.
No error messages just screen refresh on my laptop.
One form in table view shows a grey screen until you start clicking when each field field will appear one by one, same in debugger if I try debugging in a method with onlost focus but it doesnt appear consistent with other forms in the same solution.
If I go back to prev version and it works then I can report it as an issue. Have reinstalled 2.1 but cant access repository but I have a backup at work.
Thank God!
do you only have that on One form that is in tableview?
If you could send me a solution where you see this.
Are you sure that nothing is in the .log.txt file?
Hi Johan,
It was only the one form in table view, it did have a combo with value list.
I had to revert back to the previous version though.
Tried it at work the form is ok but still having problem debugging this method which is attched to each fields OnFocusGained and OnFocusLost event.
Tried setting up on a different pc but still same both pcs running xp sp2.
When a user enters a field I want to change the background colour of field
code as follows for the global method:
// This method changes the background colour of a field
var namefield = application.getMethodTriggerElementName();
var nameform = application.getMethodTriggerFormName();
//set var up for correct type and change
// Check if in edit mode
if (globals.g_dailyeditflag = 1)
{
var colourbg = forms[nameform].elements[namefield].bgcolor;
//Check if white
if (colourbg = ‘#ffffff’)
{
colourbg = ‘#ffff33’;
}
else if(colourbg = ‘#ffff33’)
{
colourbg = ‘#ffffff’;
}
forms[nameform].elements[namefield].bgcolor = colourbg;
}
iI have removed the elsif as this was causing it to freeze and setup a separate procedure for lost focus but sometimes it changes the background colour and sometimes it doesn’t .
Is there a problem with application.getMethodTriggerElementName();?
Any comments/assistance much appreciated.
no you are making an error many do at first..
this method should work fine:
var namefield = application.getMethodTriggerElementName();
var nameform = application.getMethodTriggerFormName();
//set var up for correct type and change
// Check if in edit mode
if (globals.g_dailyeditflag == 1)
{
var colourbg = forms[nameform].elements[namefield].bgcolor;
//Check if white
if (colourbg == ‘#ffffff’)
{
colourbg = ‘#ffff33’;
}
else if(colourbg == ‘#ffff33’)
{
colourbg = ‘#ffffff’;
}
forms[nameform].elements[namefield].bgcolor = colourbg;
}
see the differences in the if(XXX)
the compare is not one = but a ==
one = is an assignment not a compare.
Johan,
Many thanks for response. Feel I am getting somewhere!
Have rolled back at the work. I thought I had picked up the == but will double check.
I have sorted the form in table view that was causing the funnies.
There is a drop down combo box that is linked to a valuelist.
In the beta when I double checked the properties of the value list.
It was as follows:
Database Values
Use all values from etc
Definition
Box 1
Show in Field list Checked
Fieldname
box2
Return In Dataprovider checked
fiieldname
In box1 the fieldname had lost the highlight. When I highlighted this and ran the form it was ok. But I would have had to highlight the field at the start as there appears no way to unhighlight it?
Any way, thanks again and I will keep stable version for work and beta for home