/ Forums / Advansys Formativ / Creating Solutions with Formativ / Controlling fields in ItemSaveMessageDlg()

  • Creator
    Topic
  • #4372
    aw
    Participant

      Hi. Is it possible to programmatically change the filename field of the default Save As dialog box (called via GroupWise.ItemSaveMessageDlg) instead of using the subject line as filename? My problem is the default Save As function does everything I wanted correctly (attachments, non-unicode characters etc) except for the filename, so I’m not sure if I should write an applet from ground-up. Thanks!

    • Author
      Replies
    • #7974
      Support 3
      Participant

        Unfortunately, you can not change the default file name. ItemSaveMessageDlg() does not expose any parameters (it should).

        FYI, see the post below to save the message:
        http://www.advansyscorp.com/forums/topic/4811046061/

        Regards,
        Advansys Support

        #7969
        aw
        Participant

          quote:


          Originally posted by Support 3:
          Unfortunately, you can not change the default file name. ItemSaveMessageDlg() does not expose any parameters (it should).

          FYI, see the post below to save the message:
          http://www.advansyscorp.com/forums/topic/4811046061/

          Regards,
          Advansys Support


          Thanks. I followed the post and used ItemSaveMessage() with Mime type. But the attachments were not saved, and formatting of the mail contents were not retained. Are there other things that I should do before calling the method?

          #7975
          Support 3
          Participant

            If you save to “Mime” format then it should save the attachments. We test the sample code and it works fine (i.e. attachments saved). We are running the GroupWise client 7.0.3 (08/03/2008). If you are running the earlier version then you may need to upgrade the client.

            Regards,
            Advansys Support

            #7976
            aw
            Participant

              Hi. 7.0.3 did the trick. Thanks!

              #7972
              Support 3
              Participant

                Thanks for the confirmation.

                Regards,
                Advansys support

                #7971
                aw
                Participant

                  quote:


                  Originally posted by Support 3:
                  Thanks for the confirmation.

                  Regards,
                  Advansys support


                  Just did some further tests. If the mail’s subject is in unicode characters, the subject appears scrambled when re-opened. Also, attachments with filenames in unicode characters also have this problem.

                  #7970
                  Support 3
                  Participant

                    It may be a bug in Novell API on encoding and decoding the unicode characters. You may need to report to Novell API forum. Here are some links:

                    http://forums.novell.com/novell-product-support-forums/groupwise/groupwise-7x/

                    Regards,
                    Advansys Support

                    #7968
                    aw
                    Participant

                      quote:


                      Originally posted by Support 3:
                      It may be a bug in Novell API on encoding and decoding the unicode characters. You may need to report to Novell API forum. Here are some links:

                      http://forums.novell.com/novell-product-support-forums/groupwise/groupwise-7x/

                      Regards,
                      Advansys Support


                      Thanks. Is ItemSaveMessage() a native GW API call or is it a Formativ function calling to some other GW APIs?

                      #7973
                      Support 3
                      Participant

                        Its a native GroupWise Token, you can see a full list at: http://developer.novell.com/documentation/gwtoken/index.html?gwtokens/data/hj8ej8g5.html

                        To make easier for the developer, Formativ wrap most of the token. For example, you can call
                        GroupWise.ItemSaveMessage()

                        Formativ also provide option to call directly the token using the ThrowToken() method.

                         
                        msgbox groupwise.throwtoken("ItemSaveMessage(""" & iMessageID  & """;""c:temptest.eml"";900)", iRetunVal)   
                        

                        Hope this helps.

                        Regards,
                        Advansys Support

                      Viewing 9 replies - 1 through 9 (of 9 total)
                      • You must be logged in to reply to this topic.