This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 30, 2015, 12:13 PM
5 Posts

iNotes customization

  • Category: iNotes
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: dialog
  • Replies: 4

A question to all the iNotes customization gurus out here

I want to implement a dialog to be poped up upen creation of a new mail in order to select one of multiple siganture. I created am action class which can be sucessfully launched (for debuggung/testing purposes) via an inserted action in "Custom_Scene_Actions_Lite" function of custom_JS_Lite subform.

How do I call my dialog fom "Custom_Scene_PostLoad_Lite" in same subform?? According to wiki articale on "Manipulating data" this should be possible by calling "ELU" . So I included

    if (s_SceneName == 'e-mailoutline-container:EGw') {
        alert('Mail view initialization complete.');
    }else {if (s_SceneName.toLowerCase() == 'memo' && bInEditMode)
        alert('Mail edit scene initialization complete.');
        debugger;
        ELU(null, null, 'com_ibm_dwa_ui_actionMultiSignature', null);
    }

into the function. I do get the alerts, but not my dialog. What am I missing?

 

Thx for any hints,

Manfred

 

 

Jul 31, 2015, 9:14 AM
8 Posts
ELU = com_ibm_dwa_ui_invokeAction
ELU just invokes your com_ibm_dwa_ui_actionMultiSignature action.  It depends on what's in com_ibm_dwa_ui_actionMultiSignature.  Look at the section titled "Implement an iNotes Lite action to launch a dialog widget with a date picker widget inside" for an example of using the dialog widget to display a dialog.
Jul 31, 2015, 12:57 PM
5 Posts
Wiki was not clear to me

Hi Eric

thanks for the response. I did folow the example in the wiki and assumed a simplete call to "ELU" (with 4 parameters) would be, what I need. After some more code reading I tried to use a call to "AAA.DSq.ELU" with 3 parameters from my "l_MailMemoEditCode_Gecko" subform. This worked out pretty good and easy.

A generic example on how to define and call dialogs would be really benefitial.

Manfred

Jul 31, 2015, 3:33 PM
5 Posts
hmmm ... the dialog is not modal

in finishing my work, I recognized, that my calling code runs on while the Dialog is displayed, so the result of the Dialog selection does not get feed in to further computation. Can the Dialog be made modal and hold execution of the calling code?

Thx for comments,

Manfred

Sep 2, 2015, 9:33 AM
5 Posts
add logic to the dialog prototype function

when designing the dialog, you will sepcify a prototype function, will be called upon confirming the dialog. This function is to hold the business logic, which you would normally have called, if the dialog would be modal.

This approch deals with the asyncronous execution of js code.

Manfred


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal