/ Forums / Advansys Formativ / Creating Solutions with Formativ / Find out Groupwise language + Problem with appointment export

  • Creator
    Topic
  • #4241
    griesserag
    Participant

    Hello

    I’ve got a few problems. First of all I’d like to know with which language the current groupwise-session is running. How can I find this out with formativ?

    The next problem is a bit more complicated. I wrote a script in formativ which exports appointments (depending on some criteria) into a textfile. Everything works well except when I create an appointment and send it to myself (not a posted appointment). In this case the appointment will be exported twice. Where could be the problem? See the following code:

    Set messagesList = calendar.FindMessages(“(APPOINTMENT AND ACCEPTED AND START_DATE >= TODAY AND START_DATE < TODAY + 2)”)

    Thanks for your answer.

    Regards

  • Author
    Replies
  • #7571
    Support 3
    Participant

    quote:


    Originally posted by griesserag:
    First of all I’d like to know with which language the current groupwise-session is running. How can I find this out with formativ?


    Unfortunately no Groupwise token or Object API command available to check the language. You need to read the following registry key value to check the language. You can use ‘utilities.Registry’ to access the Windows registry. See the ‘Formativ Language Guide’ for more information.

    HKEY_CURRENT_USERSoftwareNovellGroupWiseInterface Language

    quote:


    The next problem is a bit more complicated. I wrote a script in formativ which exports appointments (depending on some criteria) into a textfile. Everything works well except when I create an appointment and send it to myself (not a posted appointment). In this case the appointment will be exported twice. Where could be the problem? See the following code:

    Set messagesList = calendar.FindMessages(“(APPOINTMENT AND ACCEPTED AND START_DATE >= TODAY AND START_DATE < TODAY + 2)”)


    You need to exclude sent items messages from the filter expression. See below the updated filter expression:

    Set messagesList = groupwise.account.calendar.FindMessages(“(APPOINTMENT) AND (BOX_TYPE = INCOMING OR BOX_TYPE = PERSONAL) AND (ACCEPTED) AND (START_DATE >= TODAY) AND (START_DATE < TODAY + 2)”)

    Hope this helps.

    Regards,
    Advansys Support

    #7572
    griesserag
    Participant

    Thanks. The new filter expression works. But what’s exactly the difference between BOX_TYPE Incoming and personal?

    #7573
    griesserag
    Participant

    I found it out. Personal is necessary for posted appointments.

    #7574
    Support 2
    Moderator

    Thanks for the update.

    Regards,

    Advansys Support

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