locked
Returning values from lookupsingle.aspx or lookupmulti.aspx in CRM 4 RRS feed

  • Question

  • Has anyone managed to return the selected GUID(s) from lookupsingle.aspx or lookupmulti.aspx in CRM4? I have tried this but it doesn't seem to work.

    <html>

    <script type="text/javascript">

    function lookup() {

    var ret = window.showModalDialog("http://ServerName/_controls/lookup/lookupmulti.aspx?class=null&objecttypes=2&browse=0");

    alert("id="+ret.items[0].id);


    }

    </script>

    <body>
    <table>

    <tr><td>
    <button type="button" onclick="javascript:lookup()">lookup</button>
    </td></tr>

    </table>

    </body>
    </html>

    Tuesday, April 7, 2009 3:56 PM

Answers

All replies