Customize Error Message

This public forum is for user-to-user discussions of ASPMaker. Note that this is not support forum.

Customize Error Message

Postby ntokozo » Tue Jan 10, 2017 8:03 pm

Hi,

In my database I have a unique field so if one try to add same data as in my database it shows Server Message and I wish to override or customize it on ASP Maker application 2017 according to how I wish it should look like.

How can I do this?

Thanks
ntokozo
 
Posts: 63
Joined: Fri May 06, 2016 4:46 pm

Re: Error Message

Postby motfs » Wed Jan 11, 2017 4:31 pm

> shows Server Message

If you mean Success Message/Error Message after you insert/update a record, read Server Events and Client Scripts -> Row_Inserted (Example) in help file for more details.
motfs
 
Posts: 619
Joined: Tue Sep 08, 2015 4:55 pm

Re: Error Message

Postby ntokozo » Wed Jan 11, 2017 4:43 pm

Hi,

No,
This is the message: Duplicate value '62967690' for unique index 'Persal number.

So since this is Server message I believe so I want to customize it.

Thanx
ntokozo
 
Posts: 63
Joined: Fri May 06, 2016 4:46 pm

Re: Error Message

Postby motfs » Thu Jan 12, 2017 11:54 am

Use the Language_Load server event to change. The ID for this phrase is "dupindex". Read Server Events and Client Scripts -> Language_Load in help file for more details. Or change the value in language file by searching the ID value.
motfs
 
Posts: 619
Joined: Tue Sep 08, 2015 4:55 pm

Re: Error Message

Postby ntokozo » Thu Jan 12, 2017 4:20 pm

Hi,

Yes it worked as I wanted.

Thanx
ntokozo
 
Posts: 63
Joined: Fri May 06, 2016 4:46 pm


Return to General Discussion (ASPMaker)