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



Oct 10, 2011, 12:21 PM
31 Posts

How to exchange information between XPiNC and notes client ?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
Hi all !
 
I have been using the notes.ini file to pass simple information (ids, lookup keys etc) between XPiNC and standard notes client applications.
 
For example we have a button in a XPiNC application to create a new document in a standard notes client app.
We use window.open with a notes:// link. This works fine. The new document form opens in a new notes tab,
 
The problem is that sometimes the writing of the notes.ini parameters takes to long to finish.. So, when the form opens, the notes.ini parameters are not there (yet..)
I'm using : session.setEnvironmentVar("<key>";"<value>") in SSJS to write parameters to notes.ini from XPiNC.
 
Question 1:
Is it possible to write to notes.ini client side ? Without a roundtrip to the server and without any refreshes ?
 
It works 9 out of 10 times, but that's not good enought..
 
I tested if adding query_string parameters to the notes:// link (e.g notes://<databasepath>/product?openform&customerid=12345) worked, but I could not get a hold of the querystring from the form (using LS)
 
Question 2:
Are there any other mechanisms for exchanging data (simple, string based data) between XPiNC and a standard notes app ? Access to scoped variables ? etc ?
 
Any tips would be greatly appreciated !! Thanks !
 
Best regards,
Petter Kjeilen
 
 
Oct 10, 2011, 12:35 PM
53 Posts
Re: How to exchange information between XPiNC and notes client ?
As an alternative option, why not create the document using SSJS, set relevant fields (or just a single field with the relevant details in it) and then open the document directly. You'll have to have saved the doc, so if the user wants to cancel then delete it again - you could use another isnewdoc flag field and delete these if they're never saved (update that field in the querysave of the doc)
Oct 12, 2011, 11:57 AM
31 Posts
Re: How to exchange information between XPiNC and notes client ?
Hi Dan,
 
Thanks for your feedback :-)
 
Yes, I understand that I can create the document using SSJS.
Today I have a function where I pass in info about database, form + notes.ini parameters to set, and it will open the requested form in the database. In the database I have a function which reads some settings from the notes.ini.
 
Today I have 10--15 different forms and databases that I need to open (more will come), and the mechanism so far has been to write settings to notes.ini. 
 
Your suggestion might be a better alternative, but it will take me some time to write SSJS for each of these forms to open..
 
I was wondering if there are other ways of exchanging data between XPiNC and standard notes applications.
 
I remember reading about getting to the scoped variables using java, but I can't remember where..
 
I also remember that when using composite applications you had the property broker.
 
Best regards,
Petter
 
Oct 13, 2011, 10:23 AM
53 Posts
Re: How to exchange information between XPiNC and notes client ?
HI Petter
 
I'm pretty sure scoped variables won't work, they only work within the specific application
 
Composite apps might work, but to be honest I don't know enough about these
 
Dan

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