Warning: Table '.\dcgforum\cache_page' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache_page WHERE cid = 'http://forums.dataphor.org/index.php?q=node/10' in C:\Sites\DCGForum\includes\database.mysql.inc on line 172
Refreshing a NotebookFramePage | Dataphor Forums

Refreshing a NotebookFramePage

Is there a more elegant way of refreshing the contents of a NotebookFramePage than setting its Document property to "" and then back to its original value?

Jon, Unfortunately there

Jon,

Unfortunately there appears to be no way to unless you resort to a reflection hack to invoke the private method: UpdateFrameInterface(true).

Best,

--
Nathan Allan [DCG]

Refreshing a NotebookFramePage

Jon,

If I'm understanding what you're trying to do, you might try a ScriptAction something like this:

if (FrontPageNotebookPage.ActivePage == MyNotebookPage)
MyNotebookPage.FrameInterfaceNode.MainSource.DataView.Refresh();

Best,

Tim Harrell

Refreshing a NotebookFramePage

Thanks! Worked perfectly!


Warning: Table '.\dcgforum\watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;.\\dcgforum\\cache_page&amp;#039; is marked as crashed and should be repaired\nquery: LOCK TABLES cache_page WRITE</em> in <em>C:\\Sites\\DCGForum\\includes\\database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://forums.dataphor.org/index.php?q=node/10', '', '54.196.190.32', 1542386204) in C:\Sites\DCGForum\includes\database.mysql.inc on line 172

Warning: Table '.\dcgforum\watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;.\\dcgforum\\cache_page&amp;#039; is marked as crashed and should be repaired\nquery: UPDATE cache_page SET data = &amp;#039;\\0\\0\\0\\0\\0\\0Yn6omD:$\\rfAp$J\\&amp;quot;L\\nIxC&amp;gt;Ndϡ.#K/!;dHfrA޾{8?&amp;lt;)WɹQ&amp;lt;2!NfL9j5ZJO%\\nqdSt6M_v\\\\zCѣzaCR-Ap#XK/RBiBʋ-MRCL*\\\\*ׁWkP\\nsŗ3DƝK搨9]\\Z|L*̬2{/&amp;lt;/.bbhD!:$S,9^^J,\\&amp;#039;%ޥ[V9mւ5=Y̡B8_y^„rW8I!cf#8K6,bJ}\\&amp;quot;]4Sqy\\&amp;quot;&amp;gt;6\\&amp;quot;M\\&amp;quot;n#vH\\nZ in C:\Sites\DCGForum\includes\database.mysql.inc on line 172

Warning: Table '.\dcgforum\watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Incorrect string value: &amp;#039;\\x8B\\x08\\0\\0...&amp;#039; for column &amp;#039;session&amp;#039; at row 1\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES (&amp;#039;4vqbvsadgp0sspn3hfcmu13bs0&amp;#039;, 0, 0, &amp;#039;54.196.190.32&amp;#039;, &amp;#039;messages|a:1:{s:5:\\&amp;quot;error\\&amp;quot;;a:2:{i:0;s:195:\\&amp;quot;user warning: Table &amp;amp;#039;.\\\\dcgforum\\\\cache_page&amp;amp;#039; is marked as crashed and should be repaired\\nquery: LOCK TABLES cache_page WRITE in C:\\\\Sites\\\\DCGForum\\\\includes\\\\database.mysql.inc on line 172.\\&amp;quot;;i:1;s:2531:\\&amp;quot;user warning: Table &amp;amp;#039;.\\\\dcgforum\\\\cache_page&amp;amp;#039; is mark in C:\Sites\DCGForum\includes\database.mysql.inc on line 172