Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Upload error

    Upload example given on https://www.smartclient.com/smartcli...ase/?id=upload..
    I have used similar approach, but on call of saveData() the file field is not getting updated to show error ! mark with error tooltip on hover. Like file size exceeds allowed value or trying to upload blank file.

    #2
    So far you've just said that a feature that clearly works isn't working for you, with absolutely no other information.

    Please see the FAQ and the Debugging topic to understand the information you need to include to make it possible to help you.

    Comment


      #3
      With this on .saveData() the UI field is getting highlighted with bold text. But the error message tooltip not showing up.

      Code:
      {
          name: "file",
          required: true,
          hint: i18n['hintMessage']    
      }
      and JS -

      Code:
      form.saveData(function(dsResponse, data) {
           if (dsResponse.status == 0) {
               // to something
           } else {
                 var errorMsg = i18n['nfcErrorMesage'];
                 self.somInstance.status.setContents(errorMsg);
                 self.somInstance.status.setIcon('[SKIN]/actions/cancel.png');
                 self.somInstance.layout.expandSection(0);
                 return;
           }
      });

      Comment


        #4
        No really, please read the FAQ and the Debugging overview.

        You haven't even told us what product you're using. We have absolutely no information that would make it possible to help you.

        Comment

        Working...
        X