
NoOffice CRM - Working DE8 Showcase Sample
This is the first of the official Samples that will be shipped with DE8 Classic. The fun thing with our new samples, is that we will keep updating the samples as well as the product. This sample will be further enhanced as we progress, but it should be more than enough to catch up with already.
Traditionally the samples has been rather poor, but this too have changed. We want our samples to be useful and inspire. The old "main" sample Club ParaDEASE is well over 20 years old so we thought it was high time to retire it and we promise that you will never see it again!
In this NoOffice CRM sample we showcase almost all the new functionality like ExecDQL(), the entire MemoClass, FileClass, SetClass etc.
We do a lot of "magic" that DataEase have never been able to do before, but don't worry it is not as hard as it looks.
To access the code (design mode): Username: high Password: high
To log in as a user: user/user or email/email - These logins are the same for all our samples except email which is unique for this app.
UPDATE 05/08/13
We have updated the sample to reflect the renaming of the functions Set/GetGlobal() to Set/GetVar(). Please download the sample again if you downloaded it prior to today's date.
This is the first of the official Samples that will be shipped with DE8 Classic. The fun thing with our new samples, is that we will keep updating the samples as well as the product. This sample will be further enhanced as we progress, but it should be more than enough to catch up with already.
Traditionally the samples has been rather poor, but this too have changed. We want our samples to be useful and inspire. The old "main" sample Club ParaDEASE is well over 20 years old so we thought it was high time to retire it and we promise that you will never see it again!
In this NoOffice CRM sample we showcase almost all the new functionality like ExecDQL(), the entire MemoClass, FileClass, SetClass etc.
We do a lot of "magic" that DataEase have never been able to do before, but don't worry it is not as hard as it looks. The DQL that send the group emails only look like this:
define "retval" text .<br>define "varEmail" text .<br>define "msgstatus" text .<br>retval:= SetState("ResponseBox",1)+SetState("ResponseMessage",1) + SetLabelText("ResponseMessage","Sending emails.....") .<br>retval:= Wait(0.1) .<br>for Documents with DocumentGroupID = data-entry field1 ;<br>varEmail := any Customers named "CusRel" with CustomerNr = Documents CustomerNr Email .<br>if varEmail not=blank then<br>retval := send(concat("blat -to ",varEmail ," -html -subject ", chr(34) ,heading,chr(34) ," -bodyf ",chr(34),concat(getcurrent("AppPath"),"\mail\", customerNr ,".html"),chr(34) )) .<br>msgStatus := concat("Sent: ", current date, " - ", current time) .<br>else<br>msgStatus := "No email address on recipient! Message not sent!" .<br>end <br>modify records<br>status := msgStatus .<br>retval := wait(0.1) .<br>retval := SetLabelText("ResponseMessage",concat("Message sent to: ", any CusRel CustomerName)) .<br>end<br>retval := SetLabelText("ResponseMessage","All emails sent!") .<br>retval := wait(3) .<br>retval:= SetState("ResponseBox",0)+SetState("ResponseMessage",0) .
And a lot of it is just to give feedback to the form so you see the progress etc.
Published: 29/07/13 - 12:50:08 (Ulrik Jacob Hoegh-Krohn)
Related Articles