Make reference icon available for read only fields on form

Krischan
Giga Guru

can someone advice me how I can achive this? I got a form with several read only fields but i want to make use of the reference Icon. Is there a way to get this done?

 

regards

 

Christian

1 ACCEPTED SOLUTION

Hi Christian,



Check for the system property and make it true



glide.ui.reference.readonly.clickthrough



This will enable the hover icon for readonly reference fields.


View solution in original post

10 REPLIES 10

Andrew69
Tera Contributor

You can have reference icon without set glide.ui.reference.readonly.clickthrough to true.

Siply add to reference field an ui macro with this code:

UI Macro name: get_user

<span name="incident.caller_id.ui_policy_sensitive"><a id="view.incident.caller_id" name="view.incident.caller_id" style="" class="btn btn-default btn-ref icon icon-info" data-type="reference_popup" data-table="incident" data-form="sys_user.do" data-ref="incident.caller_id" data-ref-key="null" data-view="" tabindex="-1" aria-expanded="false"><span class="sr-only">User Information</span></a></span>

 

For example this UI Macro is linked to Caller ID Field on Incident Table, get information from sys_user(data-form).

you can change information in bold according to your needs.

after add attribute to the field ref_contributions=get_user(name of yuor UI Macro)