Documentation Details :: How to append custom error message to unival error messages

This thread was displayed: 213 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
esphera
05-03-2006 17:02:13 GMT +2

Hello, i would like to know the way to append any custom error message to the Unival Error Messages.

I put this code in  a custom before trigger (Kollection 2.8.4):

if (($_FILES["jeu_demo"]["size"]/1024) > 150) $err = "Please upload a Demo < 150 kb !<br>".$tNG->connection->ErrorMsg();

I try to append ErrorMsg(); to my message but it doesn't work.

The custom messages are displayed, but in place of other unival error message.

I would like to display Unival message AND my custom messages, is it possible ?

Best regards

Laurent

Back | Reply | Quote | Top
Catalin ANASTASOAIE[InterAKT]Adobe Systems Romania staff
05-04-2006 14:08:47 GMT +2

Hello,

In order to display a custom error you can modify the resources. Just search the error that appear and change it resources in order to have the desired error.

Another way to throw an custom error is to change the If statement to this:

if (condition) return new tNG_error("Here you will type your custom error message",array(),array())

In this way when the condition isn't satisfied the custom error is thrown.

Best Regards,
Catalin Anastasoaie

Reply | Quote | Top
Catalin ANASTASOAIE[InterAKT]Adobe Systems Romania staff
05-04-2006 15:34:52 GMT +2

Hello,

Sorry, I have made a mistake. The second possibility that I have written in the previous post is not possible with MX Kollection2.( the one with if (condition) return new tNG_error("Here you will type your custom error message",array(),array())
) .

In order to change the error message you need to edit your resources files.

Best Regards,
Catalin Anastasoaie

Reply | Quote | Top
Home > Support > Forums > Documentation > Details
Adobe acquired InterAKT
InterAKT has been acquired by Adobe.
Learn more
 
© Adobe Systems Romania. All rights reserved.