Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Lotus Quickr Forum

Lotus Quickr Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Jim Nord 22.Jan.12 03:28 PM a Web browser
Application development 8.5.1 (Lotus Domino) Windows


I have a customer who would like to send an email to a group of users when a document is created via Save and Check In. I decided to build this for them by making a call to a back end agent at the very end of the Save and Check In process.

To track this down I set qwidgets enabled="false" in the qpconfig.xml and restarted the server. I was able to walk through the code and into the submit handler function in page\_base.js. I then extended the code at the end of the process to invoke the agent and everything works beautifully. That is, until I set qwidgets enabled back to "true". After doing that the my extending page\_base.js no longer functions and does not appear to be loaded. This is with cache clearing and on both IE and FireFox.

Two questions here:

1. Why does the Quickr server function differently with qwidgets enabled="false" than qwidgets enabled="true". Or, did I do something wrong in my modification - please see example below.

2. If I didn't do anything wrong then, Is there another way to accomplish this customer request that will work with qwidgets enabled="true"?

I will outline a very simple example that exhibits the problem.

First copy widgets\page\_base.js to a folder on the machine where the extensions live. In my case that is skins\qext\page\_base.js.

Modify the copied _base.js as follows:

dojo.provide("qext.page._base");

dojo.require("quickr.widgets.page._base");

dojo.require("quickr.widgets._transformer");
dojo.require("quickr.widgets._event");
dojo.require("quickr.widgets.widgetRegistry");
dojo.require("quickr.widgets.actionBar.basePageActionBar");

dojo.declare("qext.page._base",
[quickr.widgets._transformer, quickr.widgets._event, quickr.widgets.widgetRegistry],
{
..... I left the code unchanged until line 869 of original file
.... or actually 872 since I added a few lines for the
.... dojo.require("quickr.widgets.page._base") line and added

prompt("In Base JS at end of Save and Check IN");

..... no other changes in the file.

I then edited the widgetRegistryConfig_ext.js file and added this to the end:
{
type: 'GLOBALREPLACE',
source: "quickr.widgets.page._base",
use: "qext.page._base"
}

and Yes the line above it does have a }, on it for the prior widget load.

I am running Quickr version 8.5.1 so _base.js line 869 is where I made the modification. To put it into context I copied the whole block here so that you can see where I am adding it.

else{
if(typeof frm["CMI_notifyMembers"] != "undefined" && frm["CMI_notifyMembers"] != null && frm"CMI_notifyMembers"].checked){
var resourceId = id;
var resourceTitle = title;
var args = {
resId: resourceId,
resTitle: resourceTitle,
sendType: "document",
notifySender: (typeof frm"CMI_notifySender"] != "undefined" && frm["CMI_notifySender"] != null) ? frm["CMI_notifySender"].value : false,
target: oWidget,
successfullHandler: handler,
failedHandler: handler,
cancelHandler: handler,
creator: creator,
createdDate: createdDate,
enableConnectorLinks: false };
oWidget.publishEvent(oWidget.ACTION.SENDNOTIFICATION.OPEN, args);
} else if ( wfComment ) { // need to send workflow notification
q_CustomFormUtils.workflow.sendNotification(oWidget.id, id, "submit", wfComment, title);
handler.call(oWidget);
} else {
prompt("In Base JS at end of Save and Check IN");
handler.call(oWidget);
}
}


Essentially all I am doing here is extending the _base.js and adding a prompt in which will occur when a user selects Save and Check In when creating a brand new document.

This works when qwidgets enabled="false" and does not work when qwidgets enabled="true".

I can toggle this setting in my qpconfig.xml, restart the server, clear my cache and see different behavior.

How do I get around this?????

Thanks






code works when qwidgets enabled="f... (Jim Nord 22.Jan.12)
. . RE: code works when qwidgets enable... (Albert wang 4.Feb.12)
. . . . RE: code works when qwidgets enable... (Jim Nord 6.Feb.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow