質問

I was wondering, In a RemoteAction function in an apex class can or should this be able to access the current force.com site page? I would like to access and write to cookie parameters from within my static remote method but I'm guessing this may not be possible? If not, any suggestions on how to get around this would be useful.

Thanks in advance.

役に立ちましたか?

解決

Remote Action method runs in an.asynchronous mode.Hence accessing values from url parameter will get you null values.If you need any static values for your apex class to process use the parameters.pass from page to your apex method using parameter .

There is one way that i recently discovered to do this

Pass them in from the script on the page using {!$currentpage.parameters.something}

You still need to check for nulls in the code because it might legitimately be null

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top