<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>forcecom</author_name>
  <author_url>https://blog.hatena.ne.jp/forcecom/</author_url>
  <blog_title>逆引きForce.com</blog_title>
  <blog_url>https://forcecom.hatenadiary.org/</blog_url>
  <categories>
    <anon>visualforce</anon>
  </categories>
  <description>目的 Visualforceのページが表示されたタイミングでデータの更新処理を行いたい ポイント 一見、Controllerのコンストラクタに、更新(update/insert)処理をいれればよいように思われるが、Visualforceの制約で、コンストラクタに更新処理をいれても、正常に更新されない。 pageタグのaction属性で、更新処理を行うメソッドを指定すれば、ページ読み込み時に更新処理が実行される サンプル・コード ページが表示されたタイミングで、既読フラグをtrueに設定する &lt;apex:page showHeader=&quot;false&quot; controller=&quot;TestContro…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fforcecom.hatenadiary.org%2Fentry%2F20090623%2Fpageaction&quot; title=&quot; ページ表示時にデータ更新を行いたい - 逆引きForce.com&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-06-23 00:00:00</published>
  <title> ページ表示時にデータ更新を行いたい</title>
  <type>rich</type>
  <url>https://forcecom.hatenadiary.org/entry/20090623/pageaction</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
