AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.12.2017, 03:21   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1044: Display lookups as hyperlinks in portal entity list
Источник: https://crmtipoftheday.com/1044/disp...l-entity-list/
==============

Entity lists in the Dynamics 365 portals do not have any special handling for the lookups – they just render the display names. Fair enough, after all, how is the rendering code supposed to know what page to link to?

If you are comfortable with liquid in portals then the task is relatively easy. Just use the entity list advanced sample and modify it to render lookups as hyperlinks. (If you find that someone butchered a copy-pasting of Adxstudio documentation, go to the nicely formatted source while it’s still available).

If you prefer standard entity list rendered by one of the built-in templates, then a bit of JQuery magic will do the job. Use the sample script as a starting point and just wrap the content of the lookup column using tag. For example, the following code will convert any quote lookup it comes across in the entity list into a link to “/quote/?id=” page.

$(document).ready(function (){ $(".entitylist.entity-grid").on("loaded", function () { $(this).children(".view-grid").find("td[data-attribute='quote']").each(function(){ $(this).wrapInner("
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
saurav-nav: NAV 2018 - Lots of New Objects! Blog bot NAV: Blogs 0 04.12.2017 10:11
crmtipoftheday: Tip #1030: Video Guide to Portal Content Wizard Blog bot Dynamics CRM: Blogs 0 24.11.2017 03:22
crmtipoftheday: Tip #1024: Make an entity regarding available from Outlook App Blog bot Dynamics CRM: Blogs 0 16.11.2017 20:11
crmtipoftheday: Tip #1023: Go directly to any entity in Dynamics 365 Blog bot Dynamics CRM: Blogs 0 15.11.2017 05:14
stoneridgesoftware: How to Set Up an Entity Through Portal Security in Dynamics 365 CRM Blog bot DAX Blogs 0 20.09.2017 08:12
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 04:30.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.