B4J Question [Solved] Custom Views

Daestrum

Expert
Licensed User
Longtime User
In the #DesignerProperty: does DefaultValue: None have special meaning?
I am trying to set a String property to the literal None and I get effectively null as the default.
 

Daestrum

Expert
Licensed User
Longtime User
Unfortunately I actually want it to say None
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
#DesignerProperty: Key: StringExample, DisplayName: String Example, FieldType: String, DefaultValue: "None"

??
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I've tried double quotes, single quotes , no quotes but it still won't show in designer, the int fields are fine they show the value I specified as defaults.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Found the problem, you can't have a key: name the same as a variable defined in the app. When I renamed the private variables in Class_Globals, the None shows in the designer.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Correct it was your second point that solved it. (but I was keeping quiet so I didn't look silly :) )
 
Upvote 0
Top