OK Bruce thank you for your response.
The situation is :
Spinner and LOC:Year both fields of the netwebform
In the ValidateValue Routine of LOC:Year ... Start, the following code
p_web.SetSessionValue(LYear,LOC:Year)
In the generate form 1.Start
p_web.setsessionvalue(LOC:Year,YEAR(TODAY()))
p_web.setsessionvalue('LOC:Year',YEAR(TODAY()))
If i comment the second line, the value of LOC:Year don't appear in the control in the screen. Why ?
In the NetWebBrowse Procedure Setup
LYear = p_web.GetSessionValue(LOC:Year)
Cargar_IMBuques(p_Web,LYear)
Cargar_IMBuques is a Source procedure that contains the Query for loading the inmemory that i use in the netwebbrowse
Then in the Client-side of LOC:Year in the NetWebForm i included in the Reset List Cargar_Buque and tick Value
Cargar_IMBuques Proc
p_web and pyear : parameters
p_web._trace('Loading from Firebird : ' & PYear) ! Here PYear is well received when i change the value in the spinner
DO OpenFiles
CLEAR(SQL)
LOC:Query = 'SELECT NROORDEN,CODPUERTO,BUQUE,VIAJE,SIGLA,TEMPORADA FROM BUQUES WHERE TEMPORADA = ' & PYear
SQL{PROP:SQL} = LOC:Query
IF FILEERRORCODE()
SETCLIPBOARD(LOC:Query)
MESSAGE('ATENCION !!! : ERROR de Lectura. ' & FILEERROR(),'ERROR',ICON:HAND,BUTTON:OK)
MESSAGE(LOC:Query)
ELSE
LOOP UNTIL ACCESS:SQL.NEXT()
IMBUQ:NROSESSIONID = p_Web.SessionID
IMBUQ:NROORDEN = DEFORMAT(SQL:C1)
IMBUQ:CODPUERTO = SQL:C2
IMBUQ:BUQUE = SQL:C3
IMBUQ:VIAJE = SQL:C4
IMBUQ:SIGLA = SQL:C5
IMBUQ:TEMPORADA = DEFORMAT(SQL:C6)
Access:IMBUQUES.Insert()
END
END
DO CloseFiles
Cheers
Ruben