|
| Iniciado por guest, 04,ene. 2016 15:58 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 04,enero 2016 - 15:58 |
Hi
I was trying out the dashboard features and I looked at that at the great video's that our amarican friends post ( uncle pete). So I started and It workes easy but then I got an odd error. I want to save the dashboard settings in my db so I can load up several dashboards. Uncle pete mentions the saving so I went on creating a table witch holds a settings string.
I Did that with a simple procedure:
PROCEDURE oplaan_dashboard(sDashboardnaam is string, sBuffer is Buffer) IF HReadSeekFirst(Dashboard,Dashboard.Dashboardnaam,sDashboardnaam) THEN
Dashboard.Dashboardnaam = sDashboardnaam Dashboard.DashInstellingen = sBuffer HModify(Dashboard)
END
The odd thing is it will notsave the buffer? The "Dashboard.DashInstellingen " is defined as a string in my analysis.
If I debug then alle goes fine accept for this the Dashboard.DashInstellingen takes one character. I made it a big string in the analyses 10000.
Anybody an Idea why this goed wrong
Link to the great video
regards Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,enero 2016 - 16:16 |
Hi Allard,
Why are you using a buffer and not a string?
Shouldn't it be : IF HReadSeekFirst(Dashboard,Dashboardnaam,sDashboardnaam) THEN
Kind regards,
Joris. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,enero 2016 - 18:19 |
Hi,
Yes you are right. did change that.
The solotion for anyone who is interested:
The config not in a buffer but in a string Then save the config when leaving the dashboard screen again. For saving when a widget is removed. Other changes work fine in the procedures of the screen + remember to not save config automaticly by the control.
That is it
regards
Allard |
| |
| |
| | | |
|
| | | | |
| | |
|