On a B4XPage I want to use a Dialog to request a piece of data, but I get an error.
Am I doing something wrong?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			Am I doing something wrong?
			
				Private Sub B4XPage_Created (Root1 As B4XView):
			
		
		
		Dialog.Initialize(Root)
	
			
				B4X:
			
		
		
		    InputTemplate.Initialize
    InputTemplate.lblTitle.Text = "Introduzca el código"
    Wait For (Dialog.ShowTemplate(InputTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
    If Result <> xui.DialogResponse_Positive Then
        Return
    End If
    Log(InputTemplate.Text)
	Application_Active
Unexpected event (missing RaisesSynchronousEvents): b4ipage_keyboardstatechanged:
Error occurred on line: 301 (B4XPagesManager)
Expected: UIViewController, object type: NSNull
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
B4i Example -[B4IObjectWrapper setObject:] + 362
B4i Example -[b4i_b4xpagesmanager _b4ipage_keyboardstatechanged::] + 790
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1790
B4i Example -[B4IShell runMethod:] + 588
B4i Example -[B4IShell raiseEventImpl:method:args::] + 1908
B4i Example __40-[B4IShell raiseEventImpl:method:args::]_block_invoke + 42
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 1524
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1574
CoreFoundation CFRunLoopRunSpecific + 520
CoreFoundation CFRunLoopRunInMode + 108
GraphicsServices GSEventRunModal + 160