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 19, 2016, 9:31 AM
2 Posts

Dynamic fields in Notes client application

  • Category: Application Development
  • Platform: All Platforms
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 3

I have a requirement that I need to develop an Notes CLIENT application to connect with a CRM and display records of CRM eg: to View and Edit a CRM contact within Notes Application. I know I can achieve this by Creating a java plugin and display the record in a sidebar. I also have a middle ware server to configure which fields needs to be shown on the side bar like First,name,last name etc.
Java could be used to draw fields in UI.

To make it further clear, what i need is to read the fields,labels from the middleware server and draw
the form and fields in Notes Application or Sidebar and When user edit/save the record, sent the field
values to middleware server which in turn would sent record to CRM

What i want to know is is it possible to achieve the same either using Lotus Script or using Xpages?
Does Xpages require forms and UI fields for each edit box shown in the xpages?

In Notes form we cannot create fields dynamically during run time which is the problem currently I am facing.(using DXL import to create form and fields is not a solution for my project)

Feb 20, 2016, 9:53 AM
43 Posts
AFAIK you cannot dynamically create a form, however

There is no reason why you must have a form that have every fields on the document. With some careful engineering it is possible to create a form to display and edit documents from various data sources. Of course you would need to take care of the mapping (what fields on the form display / save what data in the back end).

So basically your form layout and fields are predefined but you can choose what data is to be displayed or saved. The drawback of this method is that you need to create temporary document for the form to pull its data from.

Feb 20, 2016, 11:35 PM
90 Posts
You could do this with XPages easily
I assume the CRM is accessible with JDBC. You could easily do this with XPages in the Notes client. There is no need to create a form with the fields. You could use a Java bean to get the data using the relational controls in the Extension Library from OpenNTF and then display the information.


Howard
Feb 26, 2016, 11:13 AM
2 Posts
Thanks

Thanks Tinus and Howard for the reply. I will get the fields of CRM in the JSON format from a middleware server.

 

Tinus , That's a good idea to have predefined forms and fields and map the fields with the one received from the Server.

How ever one drawback would be we cannot change the position of the fields to match with the ones received from server

example - If you want to show a keyword field between two text fields that cannot be done if we do this way or change the keyword

field position to the bottom

 

 

Howard, I cannot use JDBC. Data is received from a middleware server in JSON format.  Will Xpages need forms with fields if I get the data as JSON format? 

Thanks for the help!

 


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