web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to add a lookup field in HTML Webresource?

(1) ShareShare
ReportReport
Posted on by 445

Hi,


I've added a html webresource in a custom entity. Within the HTML I need to add a Lookup field which will point to a custom entity.

How to achieve this? Or How to create a Text field similar to CRM Lookup field in HTML Webresource.

Thanks!!!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    Hi Elangamban

    I assume you are expecting Lookup field like CRM and you want to search and select. It uses CRM internal function to open the Lookup as OpenModeldialog is no longer supported by chrome. You can design your own lookup control. You can add textbox and Image. On click on image button you can generate URL and open CRM custom lookup.

    function OpenLookup() {

    //set entity choice

    var objectCode = “1084”;

    //prepare lookup url

    var url = “/_controls/lookup/lookupsingle.aspx?objecttypes=” + objectCode;

    Best Wishes, Raz

  • Elangamban Profile Picture
    445 on at

    Hi Raz,

    Thanks for the Idea. Is there any guideline available for that. I'm new to this.

    Thanks!!!

  • nilesh karale Profile Picture
    132 on at

    Please review this link

    crmpolataydin.wordpress.com/.../crm-20112013-open-lookup-as-dialog-in-custom-html

  • Elangamban Profile Picture
    445 on at

    Hi Raz,

    Thanks for your response. I used the code and I used XRM toolbox to find my custom entity object code.

    Thanks again.

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    I created a complete Lookup control to be used in web resource, having same look n feel of Dynamic CRM.

    Please find the code here.

    http://vjcity.blogspot.co.za/2016/09/how-to-create-custom-lookup-control-to.html

  • Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Elangamban

    Can you, please share How can you fulfill your requirement ? I am also having same requirement.

    Thank you

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    Hi,

    I have written an article about how to create a custom Look up Control on a web resource.

    You can view article by referring to following link.

    http://vjcity.blogspot.co.za/2016/09/how-to-create-custom-lookup-control-to.html

  • Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Vipin Jaiswal

    Thank you very much for the response.

    Thank you

  • Vipin J Profile Picture
    1,603 on at

    Welcome Abdul.

    Please mark my answer as yes if its correct.

  • Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Vipin Jaiswal

    Question is not created by me. It is answered as verified. It is created by Elangamban.

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans