Difference between revisions of "Changing the Status from a Web Page View"

From SmartWiki
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
You can change the status of the associated item on a [[Web Page View Field|Web Page View]] using the following script:
+
You can change the [[status]] of the associated item on a [[Web Page View Field|Web Page View]] using the following [[JavaScript|script]]:
  
At Level One:
+
At {{l1}}:
<pre>
 
document.getElementById("obj.fd_stageid").value = "8885";
 
</pre>
 
  
At Level Two:
+
<pre>document.getElementById("obj.fd_stageid").value = "8885"; </pre>
<pre>
 
document.getElementById("obj.fd_statusid").value = "8885";
 
</pre>
 
  
Where 8885 is the value associated with the status you wish to select.
+
At {{l2}}:
  
 +
<pre>document.getElementById("obj.fd_statusid").value = "8885";</pre>
  
[[Category:System Management]][[Category:JavaScript Examples]]
+
Where ''8885'' is the ID associated with the status you wish to select.
 +
 
 +
 
 +
==See Also==
 +
* [[Updateable Web Page View Fields]]
 +
* [[Determining the statusid]]
 +
 
 +
[[Category:System Management]][[Category:JavaScript]]

Latest revision as of 08:47, 25 June 2013

You can change the status of the associated item on a Web Page View using the following script:

At Level 1:

document.getElementById("obj.fd_stageid").value = "8885"; 

At Level 2:

document.getElementById("obj.fd_statusid").value = "8885";

Where 8885 is the ID associated with the status you wish to select.


See Also