Page 1 of 1

Nothwind Demo Queries (Reposted)

Posted: 2019-02-22 11:59
by urichard
Hi There

My appologies, i noticed the previous post text size was set to tiny, just reposting my topic properly

Im having a look at the nothwind demo and managed to do most of the things logged in as demo with the demo password but i cant create an invoice because i cant create an employee?

it just says at the bottom of the employee creation form


"Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\northwind_demo\combo.class.php on line 50"
"Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\northwind_demo\combo.class.php on line 52"

Also i want to know if it could be possible to get the northwind demo in the Appgini project file format (before the php code button is pressed for generation of code files)

Kind Regards
Richard

Re: Nothwind Demo Queries (Reposted)

Posted: 2019-02-27 12:51
by a.gneady
If I understand correctly, you downloaded Northwind demo app from our website from https://bigprof.com/demo/nwdemo.zip ... The downloaded zip file contains the AXP project file that you can open in AppGini. If you are seeing errors in the employee form, try unchecking the 'Required' option for the 'Reports to' field.

My guess is that you're trying the app with an empty database, and so can't continue adding an employee due to the required 'Reports to' field. You could avoid this issue if you wish by using the database dump that comes inside the zip file to populate your Northwind database.