Error Message with substitute variables

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Alanjr
New User
Posts: 4
Joined: Tue Mar 11, 2014 12:01 pm
First Name: Alan
Last Name: Baldwin
Company Name: TMW Systems
Contact:

Error Message with substitute variables

Post by Alanjr »

We use error messages with substitute variables as in the following:
RPG CODE
Message ID  Severity  Message Text          
 BC00017        0     &1 cannot be blank
Is it possible to display error messages using the error messages property with substitute text? When I try and enter an error message ID with substitute text I get the error "Message Text and Message Id are mutually exclusive. You may not select them both".

Thanks,
Alan
robhathome2
Profound User
Posts: 42
Joined: Mon Jun 27, 2011 9:11 am
First Name: Rob
Last Name: Horton
Company Name: Design Group Plc
Contact:

Re: Error Message with substitute variables

Post by robhathome2 »

Random guess - should you not use the 'Replacement Data' field and bind it to your field?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Error Message with substitute variables

Post by Scott Klement »

That's correct... use Message ID, Message File, Library & Replacement data.

"Message Text" is designed for applications that do not want to use message files, but instead want to just pass a string from their programs. "Replacement Data" is for filling in the substitution data in a message description.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests