- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2016 07:38 PM
Here is the code that generates it inside the service catalog:
<span class="ref-picker-container">
<div ng-if="field.value != ''" class="add-on">
<button type="button" class="btn btn-default bg-white lookup" ng-click="openReference(field)">
<span class="fa fa-info-circle"></span>
</button>
</div>
<div class="reference">
<sp-reference-element ref-table="formModel.table" ref-id="formModel.sys_id" field="field" glide-form="getGlideForm()" sn-disabled="field.isReadonly()" record-values="getEncodedRecordValues()" sn-select-width="100%"></sp-reference-element>
</div>
</span>
I tried to play a bit with it by exploring the data stored inside the field and formModel objects, however for the moment I still have not found out how to make it works. Not sure if it is at all possible as it calls "getGlideForm()" and "getEncodedRecordValues()" which I'm not sure would make any sense to try to include outside of a service catalog.
Just a path of solution that I thought might help you.