Hello all ,
I have question about the dashboard refresh,
I run dashboard on IIS , and i think i have a miss-understanding about the dashboard refresh.
For exemple with this grid :
$SQLwithdata = Invoke-Sqlcmd -query “USE $SQLDatabase SELECT * FROM Donnees” -ServerInstance $SQLInstance
New-UDGrid -PageSize 30 -Title "data tab " -Headers @("ID","Name","Région", "IP", "State","Action") -Properties @("ID","Name","Région", "IP", "State","Action") -Endpoint {
$tabgestionpf=@()
$listepftab=@()
$listepf=@()
$SQLconnection | % {
#Création Tableau de Port
$listepftab = New-Object PSObject
$listepftab | Add-Member -MemberType NoteProperty -Name 'ID' -Value $_.Id
$listepftab | Add-Member -MemberType NoteProperty -Name 'Name' -Value $_.Nom
$listepftab | Add-Member -MemberType NoteProperty -Name 'Région' -Value $_.Region
$listepftab | Add-Member -MemberType NoteProperty -Name 'IP' -Value $_.IP_Reseau
$listepftab | Add-Member -MemberType NoteProperty -Name 'State' -Value $_.state
$listepf+=$listepftab }
$listepf | Out-UDGridData}
The grid work good on the dashboard , but , if i make change on the data base ( call by $SQLwithdata ) , the grid refresh not work , i have to restart the dashboard to have the information refreshed.
I use the sql connection on other dashboard page and have the same issue , no refreshing data without dashboard restarting.
thanks for your help
Matthieu