How to set lookup properly in javascript

edited April 2017 in Problems
Hi I'm creating a new data row in javascript.

   contactRatingsModel.createRow({
                   
                    additionalConditions:[
                       
                        {Item__c: row.Id},
                        {Contact__c: contactModel.data[0].Id}
                        ]
                   
                });

The contact__c and contact__r.Name are set properly I can see them in the developer console by displaying model.data. I think that's because the contactModel has the name information.

But Item__c is empty. I do have a model for Item__c. Can you please advise how to set this properly? row.Id has the right value in console.log.

Comments

Sign In or Register to comment.