g_form.getDisplayBox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 01:49 AM
hi All,
We use g_form.getDisplayBox at a lot of places. It seems to work fine everywhere except for 'opened_by' field. Can anyone explain why ?? And/Or suggest a workaround.
I know getReference, But just thinking if there is anything that can be done on the client side only.
This is how i am using it
g_form.getDisplayBox('opened_by').value;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 02:05 AM
Hi Anurag,
I have verified your code it works for me and it showing display value of opened by.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 06:29 AM
Hi Subhajit,
This is the HTML rendered for this element
For this its not working...
<tr id="element.pm_project.opened_by">
<td id="label.pm_project.opened_by" class="label label_spacing" nowrap="true" type="reference" choice="0" data-type="label" title="">
<label dir="ltr" onclick="return labelClicked(this);" for="sys_display.pm_project.opened_by"> … </label>
</td>
<td class="input_controls" nowrap="true">
<input id="sys_original.pm_project.opened_by" type="hidden" name="sys_original.pm_project.opened_by" value="593yda0e2df22f33445411bfe9481ef1"></input>
<input id="pm_project.opened_by_label" class="disabled" name="pm_project.opened_by_label" readonly="readonly" style="direction:ltr;" value="Abel Tutor"></input>
<a data-ref="pm_project.opened_by" data-table="pm_project" data-ref-key="null" name="" data-view="default" data-type="reference_popup" data-form="sys_user.do"> … </a>
<input id="pm_project.opened_by" style="visibility: hidden; width: 1px;" name="pm_project.opened_by" value="593yda0e2df22f33445411bfe9481ef1"></input>
</td>
</tr>
==============================================
Another readonly field on the same form - project manager - its working fine for this
<td class="input_controls" nowrap="true">
<input id="sys_original.pm_project.project_manager" type="hidden" name="sys_original.pm_project.project_manager" value="77958ecc0a0a3c9200926f6a71415275"></input>
<span style="width: 1px"> … </span>
</td>
===========================================
Both the fields have ID like sys_original.pm_project.XXXX , i am not sure what am i missing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 04:19 AM
Anurag , the example you gave me had the field disabled using access control. Does it have something to do in this ??????