Hi Anik,
Well, you are new to Scripts and Smartforms and hence please find some more threads to call the smartform from the program. First, learn the Smartform calling and its parameters and apply the same to your Smartform.
You need to display the data from the Program or Smartform as per your business requirement.