Difference between revisions of "Get a View ID"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
To get the ID for a view:
To get the ID for [[View]] of Object records:
# Go to '''Workspace > {object}'''
:1. Go to '''Workspace > {object}'''
# Use your browser's page-inspection tools to retrieve the ID of the view. For example, assume that the view you want is called "Open Orders". Then:
:2. Use your browser's page-inspection tools to retrieve the ID of the view. For example, assume that the view you want is called "Open Orders". Then:
#:
 
#* In Chrome:
::* In Chrome:
#*# Click the dropdown next to the '''View:''' label (just above the list of records, in the left corner).<br>The dropdown list is now open.
::*# Click the dropdown next to the '''View:''' label (just above the list of records, in the left corner).<br>The dropdown list is now open.
#*# Right click the view label and choose ''Inspect Element''.  
::*# Right click the view label and choose ''Inspect Element''.  
#:
 
#* In FireFox, using the FireBug plugin:  
::* In FireFox, using the FireBug plugin:  
#*# Right click and choose Inspect Element.<br>The FireBug panel opens.
::*# Right click and choose Inspect Element.<br>The FireBug panel opens.
#*# Click the dropdown next to the '''View:''' label (just above the list of records, in the left corner).<br>The dropdown list is now open.
::*# Click the dropdown next to the '''View:''' label (just above the list of records, in the left corner).<br>The dropdown list is now open.
#*# At the top of the FireBug panel, click the ''Inspect Element'' icon at left.<br>(You have to use that one. The right-click option won't work, in this case.)
::*# At the top of the FireBug panel, click the ''Inspect Element'' icon at left.<br>(You have to use that one. The right-click option won't work, in this case.)
#*# Move the mouse over the name of the view ("Open Orders")
::*# Move the mouse over the name of the view ("Open Orders")
#:
 
#* In all browsers, display the page source and search for the name of the view ("Open Orders").   
::* In all browsers, display the page source and search for the name of the view ("Open Orders").   
#:
 
# You are now displaying a call that looks like this:
:3. You are now displaying a call that looks like this:
#:<tt><nowiki><a href=​"javascript:​lj_changeCurrentTabView('Service?s=1139&a=...&id=...</nowiki></tt>
<blockquote>
#:'''<tt>&show_layout={form_id}</tt>'''<tt>&object_id=...')​;​" ...>Open Orders​</a>​</tt>
<tt><nowiki><a href=​"javascript:​lj_changeCurrentTabView('Service?s=1139&a=...&id=...</nowiki></tt><br>
#:
'''<tt>&show_layout={form_id}</tt>'''<tt>&object_id=...')​;​" ...>Open Orders​</a>​</tt>
# Extract value of the form ID from the <tt>show_layout</tt> parameter.
</blockquote>
 
:4. Extract value of the form ID from the <tt>show_layout</tt> parameter.
<noinclude>
 
[[Category:Development]]
</noinclude>

Latest revision as of 23:29, 29 December 2011

To get the ID for View of Object records:

1. Go to Workspace > {object}
2. Use your browser's page-inspection tools to retrieve the ID of the view. For example, assume that the view you want is called "Open Orders". Then:
  • In Chrome:
    1. Click the dropdown next to the View: label (just above the list of records, in the left corner).
      The dropdown list is now open.
    2. Right click the view label and choose Inspect Element.
  • In FireFox, using the FireBug plugin:
    1. Right click and choose Inspect Element.
      The FireBug panel opens.
    2. Click the dropdown next to the View: label (just above the list of records, in the left corner).
      The dropdown list is now open.
    3. At the top of the FireBug panel, click the Inspect Element icon at left.
      (You have to use that one. The right-click option won't work, in this case.)
    4. Move the mouse over the name of the view ("Open Orders")
  • In all browsers, display the page source and search for the name of the view ("Open Orders").
3. You are now displaying a call that looks like this:

<a href=​"javascript:​lj_changeCurrentTabView('Service?s=1139&a=...&id=...
&show_layout={form_id}&object_id=...')​;​" ...>Open Orders​</a>​

4. Extract value of the form ID from the show_layout parameter.