Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/20/21 in all areas

  1. Google Charts in uniGUI Hello, I have published in github my components to generate charts in uniGUI using de Google Charts API. The components support the following types: Annotation Area Bar Bubble Calendar Candlestick Column Combo Diff Donut Gantt Gauge Geo Histogram Intervals Line Organization Pie Sankey Diagram Scatter Stepped Area Table Timeline Tree Maps Trendlines Waterfall Word Trees The library includes in demos folder the GChartsDemo project with several examples that show how to build the different class charts. When running the demo you can: Display the Delphi Code used to generate the Chart Click Google Guide button to see the official documentation of Google Charts. Click on the Chart to see fired events (new) Click on Print button to print current frame with the chart/charts: You can get the source code in https://github.com/JosepPages7/Delphi-GCharts Please, if you use or like Delphi GCharts, "Star" this project in GitHub!
    4 points
  2. You can get it on "OnZoomEnd" event and store it.
    1 point
  3. hello @Norm I made my own procedure for ended sessions: TUniServerModule.UniGUIServerModuleBeforeInit urlMessage := '<html>' + '<style>' + '.button {' + ' border: none;' + ' color: white;' + ' padding: 16px 32px;' + ' text-align: center;' + ' text-decoration: none;' + ' display: inline-block;' + ' font-size: 16px;' + ' margin: 4px 2px;' + ' transition-duration: 0.4s;' + ' cursor: pointer;' + ' border-radius: 12px;' + ' box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);' + ' margin: 0;' + ' position: absolute;' + ' top: 10%;' + ' left: 50%;' + ' -ms-transform: translate(-50%, -50%);' + ' transform: translate(-50%, -50%);' + '}' + '.button1 {' + ' background-color: white;' + ' color: black;' //+ ' border: 2px solid #4CAF50;' + '}' + '.button1:hover {' + ' background-color: #4CAF50;' + ' color: white;' + '}' + '</style>' //reload page + '<script>' + 'function redirect() {location.href = window.location.href;}' + '</script>' + '<body bgcolor="#dfe8f6">' + '<p style="text-align:center;color:#0000A0">[###message###]</p>' + '<button class="button button1" type="button" onclick=redirect()>Restart application</button>' + '</body>' + '</html> ; ServerMessages.ExceptionTemplate.Text := urlMessage; ServerMessages.InvalidSessionTemplate.Text := urlMessage; ServerMessages.TerminateTemplate.Text := urlMessage; here is result: So i make too: 1. Short sessions timeout - 30 minutes 2. uniTimer to check user activite and close session (Browser closed or no user activities) 3. I have no Timer on login form (session expired after 30 minutes), but after login: Timer is activated and this keep session alive forever. That make me to create: 3.1 every 15 min i ask from user to confirm if is there . Wait 15 second answer from user and close session if not answer. 3.2 Wait 30 minutes for user activities and close session if no activities. This is solution if user close browser, stop internet or is passive (no activities) All this is in file with user settings. Points 3.1 and 3.2 make the same (close session if no user activities), so one of them is enough. I allow with user settings to choose how the application works.
    1 point
  4. @Farshad Mohajeri you surprise us every day, it takes unigui to another level. week ending....
    1 point
  5. after 35 years i went back to university and just got 1st Class degree in computer science at the age of 56 it was hard studying with 19 year olds, whom are younger than my youngest son
    1 point
×
×
  • Create New...