Variable passing from kernel to form in GUI toolkit implementation

Hi all,

I am trying to implement the following operation in Abaqus GUI toolkit, but I cannot figure the procedure. 

In a simple GUI as shown below (from the left to the right, txt file, File slection DB and GUI DB), 

1. In File Selection DB, after selecting the *.txt file, press the OK button,
2. Pass the selected file name to the kernel. 
3. Perform some algebraic operations in the kernel (e.g. 2+3=5)
4. Print out the input values (2, 3) and output value (5) in the GUI DB 

Actually, I have no idea how to implement step 4. That is, how can I print out the passed values in the main DB from kernel? 

Regards,