• Creator
    Topic
  • #4096
    CLKurutz
    Participant

    I have created a custom appointment view in GroupWise 6.5 using the view designer. I have now created an applet in Formativ. The applet contains a form with a drop down field. The drop down field is used to pick a room setup and then after a room setup is selected, a graphic image of the room setup appears. Now, what I would like to do is combine the two. I would like to use my custom appointment view with the new applet form. Is this possible?

    Any thoughts would be appreciated.

  • Author
    Replies
  • #7088
    Support 1a
    Participant

    Could you please explain what you mean by using the custom appointment view with the applet form?

    You can physically combine the two. However, you could add a button to the appointment toolbar that displayed your form, or you could replace the custom appointment view altogether with an applet form. It really depends on what your final objective is. Please provide more information and I should be able to point you in the right direction.

    Regards,

    Advansys Support

    #7085
    CLKurutz
    Participant

    Thanks for your reply. I will try to explain in greater detail.

    I have created a custom appointment view with the GW view designer (not Advansys). Basically took a regular appointment view and added fields (group, number of people expected, setup, linens, food, equipment). It is set up to automatically fill in the resource room in the “TO” field. Has the normal fields (From, BC, CC, Start Date, Message area).

    Now, I want to add the ability to have a drop down field when after chosen will insert an image in an image box. This is not possible with the view designer. I have created an applet form for the drop down and image and it is working. BUT now, I don’t know how to combine the two. I thought of redoing the whole appointment view in an applet but I didn’t know how to go about doing that either. Where are the normal To, Message area, etc. fields? Where do you get the send, etc. buttons?

    I also didn’t know if I could add an empty image field on the custom view and have the applet insert the graphic from the applet form into the custom view form.

    I hope this makes more sense. If you have any other questions, please let me know. I appreciate your help.

    Another question, I had typed in applet coding “GroupWise.NewAppointment” which generated a new appointment. Is there any way to call a custom view? My view is named ResActivity.vew.

    Thanks again.

    #7087
    Support 1a
    Participant

    Thank you for the additional information.

    Basically, you can’t combine the two. The View Designer is more or less a closed system.

    Depending on the nature of the appointment item, I would consider creating the entire view using Formativ, and defining a custom message type to handle the message. This gives you complete control over the behavour of the message. You would write an applet that included event handlers for the OnOpen event that discarded the standard GroupWise behavour and displayed your form instead. You can use the Name completion control (on the GroupWise tab in the component palette) to handle the recipient fields. You would have to use memo controls, etc, to handle the body field, etc.

    This approach means you have to implement your own send processing. i.e. you supply a send button, and when it’s pressed, you write code that creates a draft appointment, assigns the appropriate properties, then finally sends the message. This is much easier than it actually sounds! Let me know if you are not really sure about how to go down this path and I’ll see if I can dig up an example.

    To open a named view, you can do something like this:

    Call GroupWise.ViewOpenFile(“C:NovellGroupWiseOFVIEWSWINusml_p.vew”, “”, “”)

    I hope this helps.

    Advansys Support

    #7090
    CLKurutz
    Participant

    Hello. Thank you for your reply. I am not sure how to go down the path of creating the whole appointment view in an applet. If you have an example, that would be wonderful.

    Thank you for all your help.

    #7084
    Support 1a
    Participant

    I have posted a very simple example at:

    http://www.advansyscorp.com/demo/custom_appointment.vbf

    You may need to right mouse click this link and select ‘Save As’ to save the applet. Copy it to your local applets folder and restart your GroupWise client (Restarting is very important).

    On restarting, you should see a new calendar icon on the main GroupWise toolbar. Pressing this button brings up a custom appointment dialog. Start to enter your name in the recipient field, which should expand to automatically enter your ID (this is the GroupWise name completion control). Enter a subject and body text, then press send.

    A custom appointment then appears in your mailbox. It should have a rose as its icon. Open it as you normally would. Instead of the standard GroupWise appointment view, the custom view will appear again.

    The applet defines a custom message type: GW.MESSAGE.APPOINTMENT.CUSTOM. If you have a look at the integrations tab, you’ll see this context listed among the other supported type. Notice the applet has completely overridden the ‘OnOpen’ event. In other words, when a user open an instance of this message type, the applet runs instead of GroupWise simply opening the message. The applet then accesses the underlying GroupWise message in order to extract the subject, body, etc.

    Examine the source code to get a feel for how it works. This example contains no error checking, and is very simple. You would need to expand it to offer all the features you require. Hopefully it will give you a good understanding of how to create a custom message.

    Good luck!

    Advansys Support

    #7086
    CLKurutz
    Participant

    Thank you for the example. I am going to use that to try to recreate the appointment I had done with the view designer. Is there a resource (manual) for the coding used? For example, I want to include a drop down field and I need to write the option chosen out to some variable so when the custom view is received, the choice is still visible. I am assuming the following line does that for the text fields:

    CustomAppointment.eSubject.Text = Client.ClientState.CommandMessage.Subject.Plaintext

    I do appreciate your help. Thanks again.

    quote:


    Originally posted by Support 1:
    I have posted a very simple example at:

    http://www.advansyscorp.com/demo/custom_appointment.vbf

    You may need to right mouse click this link and select ‘Save As’ to save the applet. Copy it to your local applets folder and restart your GroupWise client (Restarting is very important).

    On restarting, you should see a new calendar icon on the main GroupWise toolbar. Pressing this button brings up a custom appointment dialog. Start to enter your name in the recipient field, which should expand to automatically enter your ID (this is the GroupWise name completion control). Enter a subject and body text, then press send.

    A custom appointment then appears in your mailbox. It should have a rose as its icon. Open it as you normally would. Instead of the standard GroupWise appointment view, the custom view will appear again.

    The applet defines a custom message type: GW.MESSAGE.APPOINTMENT.CUSTOM. If you have a look at the integrations tab, you’ll see this context listed among the other supported type. Notice the applet has completely overridden the ‘OnOpen’ event. In other words, when a user open an instance of this message type, the applet runs instead of GroupWise simply opening the message. The applet then accesses the underlying GroupWise message in order to extract the subject, body, etc.

    Examine the source code to get a feel for how it works. This example contains no error checking, and is very simple. You would need to expand it to offer all the features you require. Hopefully it will give you a good understanding of how to create a custom message.

    Good luck!

    Advansys Support


    #7089
    Support 1a
    Participant

    The best resources are the Developers Guide (installed with Formativ Creator and Studio), and the Novell Object API documentation (linked from the FormativCentral Help menu item).

    You’ll also find links to where you can access documentation for the components in the Creator and Studio Readme files.

    I hope this helps,

    Advansys Support

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