Page 1 of 1

Servoy developer enum undefined

PostPosted: Thu Sep 05, 2013 1:10 pm
by deezzub
I created the following enum.:

Code: Select all
/**
* Represents the payment status.
*
* @enum {Number}
* @public
*/
var PAYMENT_STATUS = {
   UNPAID: 0,
   PAID: 1
}


I recognised after output:

Code: Select all
application.output( PAYMENT_STATUS.UNPAID + ' ' + PAYMENT_STATUS.PAID );


that the properties are "undefinded". After I'm closing Servoy Developer Version: 7.2.0 - build 2013, that enum works like intended.

Re: Servoy developer enum undefined

PostPosted: Tue Sep 17, 2013 12:32 pm
by jcompagner
i guess you already has a client open?
Just close/reopen the solution, then it should work, not all stuff that you change or add in the developer will work right away in a running client

Re: Servoy developer enum undefined

PostPosted: Mon Sep 23, 2013 8:01 am
by deezzub
jcompagner wrote:i guess you already has a client open?
Just close/reopen the solution, then it should work, not all stuff that you change or add in the developer will work right away in a running client

I closed the client, but that doesn't solved the problem. I had to close the Servoy Developer.

Re: Servoy developer enum undefined

PostPosted: Mon Sep 23, 2013 11:28 am
by jcompagner
if you can reproduce this that a close solution in the client doesn't help then make a case

What client are you talking about? how do you close the client? Is that a webclient or smartclient?
You can always try to kill the client on the admin page.