Tm1-ui-process to use ng-model as tm1-name


#1

Hi all

Can i use ng-model {{XX}} to be value of tm1-name inside a tm1-ui-process?

I wrote below code but getting error that tm1-name cannot be empty, i have confirmed that {{loadProcessName}} is not empty and is a valid process name.

      <div ng-if="loadProcessName!==''">
        <tm1-ui-process
          tm1-instance="FileUpload"
          tm1-name={{loadProcessName}}
          tm1-parameter-pParam={{title01}}
          tm1-parameter-pModule={{moduleSelected}}
          tm1-parameter-pFilePath={{path}}
          tm1-display-name="Load to HOTEL ENTRY"
          tm1-message-running="Process Running."
          tm1-message-success="Process completed successfully."
          tm1-message-error="Process failed."
          tm1-show-dialog="false"
          >
        </tm1-ui-process>
      </div>

#2

Hi @twu,

Try

ng-if="loadProcessName.length > 0"


Paul


#3

Hi @plim

Thanks changing to length worked.