Quintiq file version 2.0 #parent: #root Method ResponseOpensDialog (ModeledResponseQuillImplementation impl, output Boolean menuopensdialog, output String dialogdatabinding) id:Method_GlobalStateTestGenerator_ResponseOpensDialog { #keys: '[142876.9.501684863]' Body: [* value := impl.Body(); value := value.ReplaceAll( ' ', '' ); constructtext := 'construct('; start := value.FindString( constructtext, 0 ); if( start >= 0 ) { end := value.FindString( ')', start ); text := value.SubString( start + constructtext.Length(), end - start - constructtext.Length() ); try { x := construct( Dialog, text ); menuopensdialog := not isnull( x ); dialogorder := select( ApplicationScope.Project().ComponentRegistry().GetAllComponents(), Elements, mcd, mcd.Name() = text ); dialogdatabinding := dialogorder.DataBinding().DataBinding(); } onerror { } } *] }