Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

AddCustomView gives XML reference error

$
0
0

Hi, i want to addcustomview to my look up field. But its give me XML reference error. Could you tell me where is the mistake within my code:

Fetch XML:

"<fetch>"+
"<entity name='lnkt_damage' >"+
"<attribute name='lnkt_damageid' alias='DamageId' />"+
"<attribute name='lnkt_name' alias='DamageName' />"+
"<attribute name='lnkt_subdevicename' alias='SubDeviceName' />"+
"<attribute name='lnkt_device' alias='DeviceName' />"+
"<attribute name='createdon' alias='CreatedOn' />"+
"<filter>"+
"<condition attribute='lnkt_device' operator='eq' value='"+device_id+"' />"+
"<condition attribute='lnkt_subdevicename' operator='eq' value='"+subdevice_id+"' />"+
"</filter>"+
"</entity></fetch>"

Layout XML:

"<grid name='resultset' "+"object='1' " + "jump='lnkt_name' " + "select='1' " + "icon='1' " + "preview='2'>" +
"<row name='result' " + "id='lnkt_damageid'>" +
"<cell name='lnkt_name' " + "width='150' />" +
"<cell name='lnkt_subdevicename'" + "width='150' />" +
"<cell name='lnkt_device'" + "width='150' />" +
"<cell name='createdon' " + "width='100' />" + "</row>" +"</grid>"

i have make sure that the fetch XML working fine through FetchXMLBuilder


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images