How to create a GUI for inserting input values to data function using R in spotfire

I am trying to make it easy for a user to input parameters for a data funciton ( without opening Edit,Data Fucntion Properties, Edit Parameters). I am thinking of two ways to do it:

1) create a table in which the columns header shows the input parameteres that user can modify the values and run the data function. 

2) Write a gui program in R that create a graphic user interface (GUI)  that open a window.User can see all the parameters in this window, and can insert values for all parameteres.


I am new in Spotfire , I would be grateful if i could have your thoughts.


(1) Answer