Script: Access Values of N:1 Lookup RRS feed

  • Question

  • In a custom entity E I have a N:1 relationship with the entity Account. The entity E also has a read-only field whose value needs to be updated with the Account Number of the related Account. For that I added the following in the OnChange event of the account lookup:

    crmForm.all.new_accountnumber.value = event.srcElement.xxx;

    It works in principle but I don't know what xxx needs to be to get the account number. What should it be?

    In general, how do I know the names of all the variables? I found crmFrom, event.srcElement in books and on the internet but somewhere there should be a reference about all the available attributes. Where can I find that?

    Friday, April 2, 2010 6:05 PM


All replies