Skip to main content
Ricardo Vargas ha fatto una domanda in #Visualforce

Hi all!

I'm having an issue executing this code on IE 11:

if({!contact != null}){

        contactId = '{!contact.id}';

        var accountName = '⌗' + accountFieldId + '_ileinner';                    

        $(accountName).parent().dblclick();

        lookupPick('null', accountFieldId + '_lkid', accountFieldId,'','{!account.id}','{!account.name}','null','');false);

}

The error I get back from it is:

        TypeError: Unable to get property 'target' of undefined or null reference

        at getEventTarget (https://natinst--dev--c.cs15.visual.force.com/jslibrary/1424969980000/sfdc/main.js:20:72)

        at ApexDetailPage.prototype.dblClickField (https://natinst--dev--c.cs15.visual.force.com/jslibrary/1424969980000/sfdc/main.js:1565:88)

I realized a couple of things here:

I tried to execute

dblclickField function directly for testing but only got lots of errors back... by the way this isn't a good practice as the header of the main.js

file says:

"This code is for Internal Salesforce use only, and subject to change without notice.

 Customers shouldn't reference this file in any web pages."

How can I make it work ? is it a Salesforce bug ?

Thanks and regards!
1 risposta
0/9000