I have this function:

this.TestReport = function(oDatabase){
            
            var oXmlWriter = Context.createXMLOutputObject("products.xml", "products"); 
            
            var models = oDatabase.Find(Constants.SEARCH_GROUP);
            
            var oProducts = [];

                       var oProductData = {    
                                                isnull:models.length
                                          }
                        oProducts.push(oProductData);
                        var oProductElem = oCXML.AddElement(oProductData,oXmlWriter.getRootElement(),"product", oXmlWriter);
            
                oXmlWriter.WriteReport();
            
        }

(oCXML is a custom object that contains a function for adding elements)

When I run this, the output reports the length of the 'models' variable as being 0 (zero). Indicating that it has not found any groups in the database. I assure you, there are groups in the database :).

This works fine in Aris Architect. What am I missing?

Thanks,

Rick Beddoe

Cargill Aris Technical Analyst

Minneapolis, MN, USA

 or register to reply.

Notify Moderator