I spent the better part of the day yesterday searching the Forum and help files for answers and never really came across anything that resolved my problem.
This should be such a simple thing, Maybe I'm just going about it all wrong.
[useing V11 Application Server]
What I need to do is read field values (dates - 30 of them) from one single indexed record in an External table.
These values then become column Labels as well as input values for multiple records in the current grid / table.
I thought I could Publish a Session Variable, then use it as an array to load the values into,
and by using a Session Variable I could access those values in javascript to set the column labels.
Can Session Variables be used as Arrays? If so, how?
I have tried multiple different ways and always come up with errors.
I also tried this : <array>.INITIALIZE_FROM_TABLE(tbl) and could not get it to work with Session variables (actually, I couldn't get it to work at all)
If anyone has some sample code they could share for a "visual" that would be great.
I read that with V11 Session Variables must be strings.
The field values I need to read into Session Variables are Dates, and need to be stored as Dates.
Can a Session Variable be used as a Date field?
As stated above, I want to use these external values as Dynamic Column Labels.
I'm familiar with the [window ] $('fullname').innerHTML= fullname; combined with <div id=.... > method to create dynamic column headers,
But my problem is passing the variable to the javascript.
I Published SESSION.WHATOFFICETERM in Grid Properties, then in onGridRender :
var myvar={grid.Object}.getSessionVariable('WHATOFFICETERM');
myvar returns "undefined" everytime, even if I set SESSION.WHATOFFICETERM = "test" in OnGridExecute (ie, just trying to force this to work)
does anyone have any suggestions as to why the getSessionVariable may not be working?
Thank you in advance,
Kim
This should be such a simple thing, Maybe I'm just going about it all wrong.
[useing V11 Application Server]
What I need to do is read field values (dates - 30 of them) from one single indexed record in an External table.
These values then become column Labels as well as input values for multiple records in the current grid / table.
I thought I could Publish a Session Variable, then use it as an array to load the values into,
and by using a Session Variable I could access those values in javascript to set the column labels.
Can Session Variables be used as Arrays? If so, how?
I have tried multiple different ways and always come up with errors.
I also tried this : <array>.INITIALIZE_FROM_TABLE(tbl) and could not get it to work with Session variables (actually, I couldn't get it to work at all)
If anyone has some sample code they could share for a "visual" that would be great.
I read that with V11 Session Variables must be strings.
The field values I need to read into Session Variables are Dates, and need to be stored as Dates.
Can a Session Variable be used as a Date field?
As stated above, I want to use these external values as Dynamic Column Labels.
I'm familiar with the [window ] $('fullname').innerHTML= fullname; combined with <div id=.... > method to create dynamic column headers,
But my problem is passing the variable to the javascript.
I Published SESSION.WHATOFFICETERM in Grid Properties, then in onGridRender :
var myvar={grid.Object}.getSessionVariable('WHATOFFICETERM');
myvar returns "undefined" everytime, even if I set SESSION.WHATOFFICETERM = "test" in OnGridExecute (ie, just trying to force this to work)
does anyone have any suggestions as to why the getSessionVariable may not be working?
Thank you in advance,
Kim
Comment