1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| Quintiq file version 2.0
| #parent: #root
| Method GetParameterAsString (String channelName_i, String parameterName_i, output Strings feedbacks_o) declarative as String
| {
| Description: 'Get a parameter value as a string'
| TextBody:
| [*
| // Jacky C Oct-6-2015 (created)
| type := "String";
| value := "";
| row := this.GetParameterValue( channelName_i, parameterName_i, type );
|
| if( not isnull( row ) )
| {
| value := row.ParameterValue();
| }
| else
| {
| // register the parameter name as invalid (not found)
| feedback := this.CommunicationChannel().GetCommunicationChannelRoot().GetTranslation( 'DM_ChannelParameters_NotFound' );
| feedbacks_o.Add( this.ConstructInvalidParameter( channelName_i, parameterName_i, feedback ) );
| }
|
| return value;
| *]
| }
|
|