Difference between revisions of "Displaying Notes as a Horizontal Frame on a Record"

From SmartWiki
Jump to: navigation, search
Line 16: Line 16:
  
 
For other Object Type IDs, see [[Object Types]] page.
 
For other Object Type IDs, see [[Object Types]] page.
 +
 +
Alternatively, the notes can be opened within a lightbox by using the following script within an On Demand Special - Browser Script:
 +
* ''For a {{l1}} record:''
 +
<pre style="white-space: pre-wrap;
 +
white-space: -moz-pre-wrap;
 +
white-space: -pre-wrap;
 +
white-space: -o-pre-wrap;
 +
word-wrap: break-word;">openinmwin('/s_viewnotes.jsp?appid=@system.gmsID@&objecttype=100&objectid=@opportunityid@','Lightbox Title','100');</pre>
 +
The number value controls the default lightbox height. It can also be left blank if you wish for the system to autoset the height.
  
 
[[Category:Notes]]
 
[[Category:Notes]]

Revision as of 15:01, 23 August 2016

To view the Notes on a record as a frame on the record itself, create a Read Only – System Variables field that references the s.viewnotes.jsp page in an iframe.

Example Variables:

  • For Company records:
<iframe width=100% height=400 scrolling="yes" frameborder=0 src="/s_viewnotes.jsp?objecttype=30&objectid=@companyid@"></iframe>
<iframe width=100% height=400 frameborder=0 src="/s_viewnotes.jsp?appid=102564&objecttype=100&objectid=@opportunityid@"></iframe>

For other Object Type IDs, see Object Types page.

Alternatively, the notes can be opened within a lightbox by using the following script within an On Demand Special - Browser Script:

openinmwin('/s_viewnotes.jsp?appid=@system.gmsID@&objecttype=100&objectid=@opportunityid@','Lightbox Title','100');

The number value controls the default lightbox height. It can also be left blank if you wish for the system to autoset the height.