Hi there...
Well searching-creating a small app (for personal use) found something like a bug ?? or may be is a question and my wrong way..
Well lets say we have a json template created from FormBuilder with 2-3 textfields...
1. lets ' pre-define them with a map... right ?
2. When run the above example - and set at form the Field1 value to "" (nothing)... after OK button - it will keep the old value... :-(
Please check it... is there a solution ???
FOUND SOLUTION - SEE HERE
Well searching-creating a small app (for personal use) found something like a bug ?? or may be is a question and my wrong way..
Well lets say we have a json template created from FormBuilder with 2-3 textfields...
1. lets ' pre-define them with a map... right ?
B4X:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private prefdialog As PreferencesDialog
...
End Sub
...
...
Dim Options1 As Map=CreateMap()
Options1.Put("Field1","FirstValue")
Options1.Put("Field2","SecondValue")
Options1.Put("Field3","ThirdValue")
Wait For (prefdialog.ShowDialog(Options1, "OK", "CANCEL")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
log(options1.get("Field2")) 'well if set Field2 to null, or ""... will give again SecondValue... if it is any other value - will be displayed....
...
end if
2. When run the above example - and set at form the Field1 value to "" (nothing)... after OK button - it will keep the old value... :-(
FOUND SOLUTION - SEE HERE
Last edited: