Quintiq file version 2.0
#parent: #root
Method ShowWarning (
UnitOfMeasure_MP newuom
) id:Method_DialogCreateEditPISPSpecification_ShowWarning
{
#keys: '[136682.1.462060655]'
Body:
[*
isshown := false;
if ( not isnull( DataHolderDialogData.Data().WrappedInstance() ) )
{
data := select( DataHolderDialogDatas.Data(), Elements, pisp, pisp.UnitOfMeasure_MP() <> newuom );
isshown := not isnull( data );
if( not isnull( data ) )
{
//Need to format the text from \n to
warning := "" + data.GetUpdateUOMWarningMessage() + "";
strings := warning.Tokenize( "\n");
ButtonWarning.Tooltip( strings.ToString( "
" ) );
}
}
ButtonWarning.Visible( isshown );
*]
}