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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Put lookup field in html page

(0) ShareShare
ReportReport
Posted on by

Hi ,

I want to put lookup field in my html page.

At present I have put drop down list of supplier which is comes from supplier module.

so now i want to put lookup field for supplier selection.

Can i put lookup field here?if yes then please guid me

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi,

    Refer this, but this for CRM 2011:

    lakshmanindian.wordpress.com/.../open-crm-2011-lookup-window-in-a-custom-html-page

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    There is no way to put CRM lookup control over html page, but you can replicate similar behavior in your html web resource by develop a custom dialog with similar functionality and adding icon similar to lookup field.

    Or you could use like this: blog.sonomapartners.com/.../simple-dynamics-crm-lookup-using-kendo-ui.html

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi - SparkleXRM.com has a built in lookup control - see www.SparkleXRM.com.

  • Suggested answer
    Jeeva Ganeshan Profile Picture
    395 on at

    You have to do in custom way only

    For Example,

    <table>

    <tr>

    <td><texbox><imagebutton></td>

    </tr>

    </table>

    In that ImageButton u have to use CRM Lookup icons image and u can get it from SDK itself.

    while click on ImageButton u can onclick method to Open CRM Lookup window in a custom html page

    For CRM 2013,2015,

       var CurrentId = window.parent.Xrm.Page.data.entity.getId();

               var url = window.parent.Xrm.Page.context.getClientUrl() + "/_controls/lookup/lookupinfo.aspx?AllowFilterOff=0&DefaultType=1024&DefaultViewId=%7b8BA625B2-6A2A-4735-BAB2-0C74AE8442A4%7d&DisableQuickFind=0&DisableViewPicker=0&LookupStyle=single&ShowNewButton=1&ShowPropButton=1&browse=0&currentid=" + CurrentId + "&objecttypes=1024";

               // var url = "/_controls/lookup/lookupinfo.aspx?AllowFilterOff=0&DefaultType=1024&DefaultViewId=%7b8BA625B2-6A2A-4735-BAB2-0C74AE8442A4%7d&DisableQuickFind=0&DisableViewPicker=0&LookupStyle=single&ShowNewButton=1&ShowPropButton=1&browse=0&currentid=" + CurrentId + "&objecttypes=1024";

               var features = "dialogWidth:600px;dialogHeight:600px;help:no;status:yes;scroll:no;center:yes;resizable:yes;";

               // var src = <Relative_Url_of_the_Webresource>;

               var DialogOptions = new Xrm.DialogOptions();

               DialogOptions.width = 600;

               DialogOptions.height = 600;

               Xrm.Internal.openDialog(url, DialogOptions, null, null, CallbackFunction);

               function CallbackFunction(returnValue) {

                   debugger;

                   var selectedValues = returnValue;

                   // Mscrm.Utilities.setReturnValue(result);

                   //try {

                   //    closeWindow(true); //Close the dialog box

                   //}

                   //catch (e) { }

                   if (selectedValues != null) {

                       //  debugger;

                       var SelectedValueArray = selectedValues;

                       if (SelectedValueArray.items.length > 0) {

    //Ur Code

                }}

    }

    But Xrm.Internal is not Recommend Method

    In CRM 2011,we used Window.ShowmodelDialog but it is not working in 2015 update1

    If this answer is useful kindly verify the answer

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    You may refer this,

    blog.sonomapartners.com/.../simple-dynamics-crm-lookup-using-kendo-ui.html

    Kind Regards,

    Hasintha

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi please refer below Link for you solution

    aspsolutionkirit.blogspot.com/.../how-to-create-custom-lookup-control.html

    please also check other Dynamic 365 Demos also available here

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans