tyoshikawa1106のブログ

- Force.com Developer Blog -

2014-09-06から1日間の記事一覧

SFDC:RemoteObjectsのUpsert処理を試してみました

RemoteObjectsのUpsert処理を試してみました。基本的にはUpdateの時と同じです。登録対象にIDがセットされていればUpdateが実行されます。IDがセットされていなければInsertが実行されます。 処理内容はこんな感じです。 <apex:remoteObjects > <apex:remoteObjectModel name="Account" fields="Id" /> </apex:remoteObjects><script type="text/javascript"> function upsertAccount(prmAccou…

SFDC:RemoteObjectsのUpdate処理を試してみました

RemoteObjectsのUpdate処理を試してみました。 最初に宣言するのはapex:remoteObjectsタグです。Fieldは"Id"だけ宣言しておけば処理が実行できました。SELECTで取得する必要がなければ宣言しなくても大丈夫みたいです。 <apex:remoteObjects > <apex:remoteObjectModel name="Account" fields="Id" /> </apex:remoteObjects> こんな感じで実行できました。 <script type="text/javascript"> fu…

SFDC:RemoteObjectsのDelete処理を試してみました

RemoteObjectsの削除処理ついて勉強しました。Developers Guideによるといろいろな書き方があるみたいです。RemoteObjectsの処理なので、最初にRemoteObjectsタグを宣言する必要があります。 <apex:remoteObjects > <apex:remoteObjectModel name="Account" fields="Id" /> </apex:remoteObjects>削除処理だけなら宣言するFieldは"Id"だけで問題ないみたいです…