Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

ReferenceError: Database is not defined

Avatar

Level 3

Is the following syntax correct?

Database.ExecSQL("INSERT INTO CRF (TodayDate, SubmittedBy, Region, Market, DoorDepartment, ProjectEvent, ProjectType, RenderingsDue, FinalArtworkDue, EventDate, EventDays) VALUES ('" + TodayDate.rawValue + "', '" + SubmittedBy.rawValue + "', '" + Region.rawValue + "', '" + Market.rawValue + "', '" + DoorDepartment.rawValue + "', '" + ProjectEvent.rawValue + "', '" + ProjectType.rawValue + "', '" + RenderingsDue.rawValue + "', '" + FinalArtworkDue.rawValue + "', '" + EventDate.rawValue + "', '" + EventDays.rawValue + "');");

TodayDate.rawValue = ""; // clear after inserting comment

Why do I receive the Database is not defined error?

I have used an SQL statement to select the table fields for the data connection.

Please any help is appreciated...

0 Replies