inbasket Display, data.js - 'undefined' is null

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
rogowsky
Basic Member Send Private Message
Posts: 5
Basic Member
I have copied recsum.htm to make a new htm for display PO information.  We have a custom trigger for PO20 and needed a display for the inbasket. I have not been able to determine what is missing or wrong.  When I click on the inbasket item that uses my posum.htm I receive an 'undefined' is null or not an object, data.js, Line: 531 Code: 0  Char: 2 error.  Line 531 of the data.js file is referencing a data object in the DME call (lawson code). My DME call: var  logancall = new DMEObject(prodline, "POLINE")       logancall.out = "JAVASCRIPT"       logancall.field = "line-nbr;quantity;ent-buy-uom;item;description;vbuy-unit-cst;extended-amt;item-type;service-code"       logancall.index = "pliset1"       logancall.max = "25"       logancall.xida = true       logancall.key = m_Company + "=" + m_PoNumber + "=" + m_PoRelease + "=" + m_PoCode       logancall.func = "displayPoSum()"          DME(logancall, "POLINE") Any help or suggestions would be appreciated. 
sVaye
Basic Member Send Private Message
Posts: 10
Basic Member
Have you tried using Fiddler or httpWatch to try to catch the error? Your code looks fine.
Demi
Veteran Member Send Private Message
Posts: 67
Veteran Member
Check to make sure that you're actually passing a value in for m_company, etc variables.
rogowsky
Basic Member Send Private Message
Posts: 5
Basic Member
Thanks for your suggestions.  I found the trouble. I was missing a Frame Name.  The object was undefined.