1

(3 replies, posted in General)

teco049 wrote:

The problem is Next time i create another form (another ID etc...) the Changes on these buttons are still present.


Are you really creating a form for each record or do you mean simply storing the current record and reopen a form with clear fields?


Anyway, make a second procedure with the "Start setting" of the buttons and call it with the "on show" property of your form. To be sure, call it additional from the script or button (in this case maybe the on Click propery) when you store a record.


It is easier as the idea from CDB.

No, when i say create a new form i really only mean a new entry on the SQL Database, what i mean is whenever i create a newrecord or showrecord  that form that had been subjected to the changed made by the button is not "reseted" to their original values, but instead still hold the values that were true when i pressed the button

2

(3 replies, posted in General)

Dear Everyone:

I have a procedure: example:

procedure Button_Recebido_tecnico_onClick (Sender: TObject; var Cancel: boolean);
begin
   ShowPainelTecnico;
   frm_assistencia.Button_Panel_Tecnico_Seguinte.Caption := 'Alterar';
   frm_assistencia.Button_Panel_Tecnico_Cancel.visible := false;
   frm_assistencia.Button_Panel_Tecnico_fechar.Visible := true;


end;

This will change the caption of a button , and hide / show two other buttons.
The problem is Next time i create another form (another ID etc...) the Changes on these buttons are still present.
The only wayt i can counter this is by manualy inserting a syntax like this:

   frm_assistencia.Button_Panel_Tecnico_Seguinte.Caption := 'Seguinte'; (THe default label on the button)
   frm_assistencia.Button_Panel_Tecnico_Cancel.visible := true; (the default visible status on the button)
   frm_assistencia.Button_Panel_Tecnico_fechar.Visible := false; (the default visible status on the button).

This is easy with just 3 components, but once you have a million things changing things start to become chaotic.

Is there a way to state something liike:

"Do Once per DB" or "Do once per trigger" ?

Hi, this is a stupid question but i just want to be sure.
Cascade delete is only used when you have a Table that it's record is only used for 1 subject?
for example: if i have a Person and i have a table "Phone number"
I can add many phone numbers to the table, but only one phone number is associated to one person.
this means that in this case i can use cascade delete because if i delete a person i will automaticly delete it's phone number right? Not useful for tables wher eyou have:

Brand: Opel
Type: Car

In this case, table Type is used in many Brands, cascade delete is not useful in this situation.

Is this it?

4

(3 replies, posted in General)

can i have a script that detects if i have a "@" and a "." ?

Hey guys, i want to know a easy way to generate a popup "form"

I have a solution, but i want to know if there's a dialogbox that i can create

My solution is to create a new form , resize it to make it really small, and when i want the popup to appear i would just "show form"
but i want to know if there's an easier way to do it?

6

(4 replies, posted in Script)

Hi Dmitry, like i stated, i think the problem is with old SSL and TLS libraries.
Disabling TLS would in some emails solve the problem, in my case i never was able to get gmail to work properly and i couldn't figure out why, but i had a domain email server that was working until last month, after disabling tls manually i was able to get it working again

7

(3 replies, posted in General)

Hey guys, can anyone help me make a mask that allows me to use emails only? being  @ and a . after the @ mandatory for example...
many thanks

8

(187 replies, posted in General)

Thanks! For now i am able to use sendemail function with another email (other than gmail).
In the meanwhile don't forget to check about OpelSSL libraries , they might need updating.

Many thanks again!

9

(187 replies, posted in General)

Hi Dmitry
After taking a few hours exploring the problem i think i know what the problem is.

SSL and TLS are being updated from time to time, gmail for example only likes SSL V3 or at least TLS V1, unfortunately that i found is that Tidsmtp TLS is not function correctly and SSL V3 is not working either.
I Suspect this is a problem with the libaries (open SSL) , if you can please update the libaries with the latest instalments.


also:
how can i send attachments with tidsmtp?

i am trying adding:

Sfile: TStringList on function sendemail
on var: Attachment: TIdAttachment;
and on code:
Attachment := TIdAttachmentfile.Create(IdMessage1.MessageParts, (sfile));
But it returns an error stating tidattachmentfile is not an declared identifier.

10

(9 replies, posted in FAQ)

sad

11

(9 replies, posted in FAQ)

Sibprogsistem, so... any news on how i can use phpmailer to send the export pdf files?
Sorry to bother you but i really really need this to work smile

12

(187 replies, posted in General)

Please Dmitry, check "Sendmail" funcion, some folks like me are reporting connection closed gracefully errors with gmail, and even read time out, acordingly to some folks that use TIDSmtp this is due to a bug in the TLS settings, instead of auto you should use SSL (or  TLS if you want to use port 587) this should solve the problem.

Can you allow us to change tidsmtp settings in anyway?
many thanks

13

(2 replies, posted in General)

i want to know that too if posible...

14

(9 replies, posted in FAQ)

Dmitry, another way to help me is make TidSMTP config avaiable for tweaking pleaseeee

15

(9 replies, posted in FAQ)

Hello.
I have just installed apache server running PHP Module and i can confirm your example works perfectly and you just saved my project, many thanks.
But i am still having problems using your example to print reports via PDF files and sending them to email automaticly.
Could you please please please try and make an example where you print to pdf a report and use php smtp to send that file to the destinated address? Many thanks

16

(3 replies, posted in General)

Thanks, it's an alternative, but i would prefer sendmail to work properly.
Dmitry, can you look into it and adjust TidSMTP please?

17

(9 replies, posted in FAQ)

Thank you, is there a option to add a File?

18

(4 replies, posted in Script)

i have the same problem and your project doesn't work here either:
https://i.ibb.co/sy91F8R/Sem-T-tulo.png

19

(3 replies, posted in General)

Hi Dmitry, i still can't use SendMail with Gmail so i had an SMTP relay working , but the problem is that some emails have that SMTP Server banned so i can't send them emails from this relay.
Is there any other way to implement a SendMail function ? like a script or an external SMTP mailer or something?
Is there anyway i can "mess" with the sendmail function settings? like adding SSL or TLS  or using the "allow autenthcation" option etc?
Many thanks

20

(187 replies, posted in General)

hello, is there any chance in the future, you can implement something like iframe? there's a numerous gadgets like speech to text that i might want to use, sometimes i'm writting a report where i could easily speak to the computer microphone and it types my notes

21

(3 replies, posted in Script)

thanks, a bringtofront would be useful, as i am trying to put "hidden" tables and stuff away from my work area, i just have to push them away and use .top and .left to put them into place when i turn them visible

22

(2 replies, posted in General)

only saw this one now.
Thanks

23

(3 replies, posted in Script)

Hi, is there a commant to bring to front?

24

(1 replies, posted in Script)

Hello, i want to find a way to "Update" or "Save" the record , by only saving the "new" data. to avoid empty data by mistake.
I want this because on my last database, sometimes i had a bug where saving a record will save an "empty" field where the field was filled with data... This was a bug i never got to solve, and one of the main reasons i want to restart my project.

In order to do this , i want to save only the important items on "new record" and when i get the "show records" will only save some "fields"

I could do this with "two" save buttons , and make them visible / invisible. but i prefer to have this with a script for... debuging reasons.

is this possible?
Many thanks

25

(4 replies, posted in General)

I know what's wrong.
I had the same "Frm_assistencia.TableGrid_Search_Cl.Visible := true;" on a procedure right before the procedure with:

frm_assistencia.TableGrid_Search_Cl.Visible := true;
frm_assistencia.TableGrid_Search_Cl.left := 16;
frm_assistencia.TableGrid_Search_Cl.Top := 336;

example

Procedure 1

do this, do that... and oh...
frm_assistencia.TableGrid_Search_Cl.Visible := true;
procedure2;

Procedure 2

frm_assistencia.TableGrid_Search_Cl.Visible := true;
frm_assistencia.TableGrid_Search_Cl.left := 16;
frm_assistencia.TableGrid_Search_Cl.Top := 336;

As soon as i elimintaded the double "visible" command" on the first procedure, the tablegrid started jumpiung tot he right ride.