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



Feb 17, 2014, 9:53 PM
10 Posts

Create a response document within a dialog box

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 7

Hello - I would like to create a response document and have it open as a dialog box.  I was looking at the post I linked below but not sure if that's the right directtion to go.  I would like to use dojo as I am not able to use the extension library.  I know this can be downloaded on the server but I have no say in whether the extension library can be downloaded.  Any pointers woudl be appreicated.

http://www-10.lotus.com/ldd/xpagesforum.nsf/xpTopicThread.xsp?documentId=A641654FA5EF1445852579D10044CDCA#4C0613ED921FF2BE852579D10062276D

Thanks in advance!

Feb 18, 2014, 6:50 PM
586 Posts
my thoughts

To work in XPages without either Upgrade Pack 1 for 8.5.3 or the Ext. library severely handicaps your development capabilities.  I would strongly recommend you go to the powers that be and say you at least need the IBM supported Upgrade Pack 1 for your domino 8.5.3 servers.  IBM provides it and "supports" it.  That really should be good enough for the typical pain in the butt Admin.

however - Even though the Ext. library is "not supported" - in fact it has better support because it gets bug fixes where the upgrade pack did not. Those fixes are done by the core xpages dev team so to me, the "unsupported" Ext. Library has much better support overall then the "supported" Upgrade pack.

Domino 9 and 9.01 has the ext. library built it so that would be the preferred solution for you though even there you should use the Ext. library for the improved mobile features.

I just don't get companies that tell you to develop but then are unwilling to provide the tools to allow you do do the developing.

Anyway... enough about that...

I can use Dojo to make a dialogbox but dojo will move the box outside of the form tags i believe.  So it then can't be submitted back to the server.  The "ZetaOne" code was done by Jeremy Hodge and that's designed to move it back inside the form tags.  I guess that post you linked to is heading in the right direction...  I don't remember all the custom controls...  I remember a function in a script library that just needed to be called....  but that was a while ago and I might not be remembering it right.

 

good luck!!!

 

Dave

Feb 19, 2014, 4:34 PM
10 Posts
Dialog Control from the Extension Library

Thanks for your thoughts, David.  The good news i that I was told that my company is upgrading our servers so we can use the extension library.  I would like to use the Dialog Control from the Extension Library.  The main doc information is in a custom control.  In order to allow users to create a response document directly from the main document, should I put the Dialog Control in the "main doc" custom control?  If so, how do I have the response document created within the dialog control?

I've done some research such as, http://www.dominoguru.com/pages/xpages_popupdialogforms_from_views.html, but not sure if it's what I'm looking for since I"m not using a view.

Again, I appreicate any pointers you can give me and thanks in advance.

Feb 21, 2014, 5:40 PM
37 Posts
Form in dialog

Hi Carolyn, I do this all the time. Not sure if your question is more about how to create response documents or how to do it in a dialog. But let me share what I know.

You need to have two datasources on the page. I don't think it matters if the two are different custom controls or not. Make sure on the second datasource that you set ignorerequestparms="true" and change the scope "request" http://stackoverflow.com/questions/18088771/xpage-xedialog-box-is-edit-previous-create-document

Then you put all of your fields in the dialog. Those fields are all mapped to the response document.

I don't know if you need some code examples, but this is the code I put in an action button to show a dialog. Change show to hide to hide it on a button in the dialog.

 var c= getComponent('dialog1');
 
c.show();

If you need some more code examples let me know.

Feb 24, 2014, 3:54 PM
10 Posts
check box and uploadFile controls in a dialog control

Thanks, Pat, for your suggestions.  I was able to create the response document but am not able to get the checkbox value and the attachment that I uploaded.  I'm creating the response document on the Web and viewing the response documents in the client.  Is there a way I can capture the values of the checkbox and uploadFile controls?  I had mapped all fields to the response document so I am not sure what else I should be doing.

Thanks for your help in advance.

Feb 24, 2014, 8:32 PM
10 Posts
Doc is being saved

Yes, the document is saved as I was able to verify that in Notes (I am using dominoDoc.save() method using SSJS).  Additionally, the text field does contain a value but checkbox field and the rich text field is left blank. 

FYI - my apologies for the duplicate posts.  I tried deleting them but the site wouldn't let me.


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