No scrolling/paging of entries in Name Picker (Ext.Lib) - lotus-notes

When using the Ext.Lib Name Picker control connected to the NAB, the default is to view the first 50 entries from selected view (depending on whether groups/Persons is selected in property).
But there are no scroll/paging buttons on the dialog.
If I want to pick an entry from the NABPicker and the entry is after the first 50 I must use the Search button to find it.
Is this working as designed or a feature not yet added?
/Mike

You might be interested in using the viewpicklist control from openntf instead, link
It is very felxable, just set it to use the names.nsf and whichever view you need.

As far as I know this is working as designed. The server only returns a set number of entries so that the amount of data transfered when opening the Name Picker dialog box is kept nice and small, this way the dialog box opens faster.
You can increase the number of entries returned by increasing the maximum limits in the server document and internet site document and then increasing the maxRowCount attribute on the picker but you will seriously affect the performance of your application and it is not recommended.
Hopefully in a future release of the control they will add some sort of ajax based scroll similar to the inbox scroll in iNotes.

Mike:
I think the answer is "both". Working as designed and feature not added yet...
The Ext Lib is a open source initiative designed to support the simplistic Discussion, Team Room, and Document Library applications. The designers have limited experience with more complex applications and clearly limited exposure to large address books in their development arena.
The NAB pickers are a source a major disapointment to those of us trying to build larger scale applications. Perhaps at some point it will become a usable component but is is only marginally usable at this point.
/Newbs

Related

Hide fields in Lotus iNotes

I need to hide/disable certain fields in iNotes address book (Internet's directory). When authenticated users try to browse other user's details from address book (New Message --> TO --> Select addresses --> Details) I want to hide/disable Details button. Browser page source inspection of that button led me to iNotes/Forms9.nsf database but when I opened Forms9.nsf in Designer didn't find any form or view that associates with any button/field in address book. Also tried in Designer to hide/disable certain fields which relate to people document in names.nsf ($PersonInheritableSchema) but without success. Is there any way to hide these fields/buttons?
Customizing iNotes is quite complicated. There are no classical design elements to be manipulated: you need to create a new "forms9_x.nsf" database and manipulate the javascript source code there... unfortunately it is highly obfuscated and minified so that every change is quite painful.
There once have been presentations about how to do it, but by searching for "inotes customization" I could only find one that is not completely valid anymore as the structure in forms changed significantly since then. You could start with your research on this HCL help page, but I promise it will be a long and painful way to go.

KiCAD associate components with footprints using CvPcb

Queston: Is there a way in KiCAD to associate components with their respective footprints in a sane manner using CvPcb?
The CvPcb displays three columns that feels comfortable at the first moment but when the component doesn't have the proper value it is very difficult to find the right footprint. I was manually scanning the libraries.
Is there a "search" option hidden somewhere? Is it fine to define specific phrases as the value of the component (since it seems to be the only way to filter)?
No, there is not a search option or function in KiCAD to do this. A thing you can do, is use the filter buttons at the top of the CvPCB window. These buttons help you to find by pin number, description, and library. However, sometimes the footprint is not found when the pin count does not match. For example, if you have a 4 pin push button, you wont find the footprint but you can use the 2 pin footprint. Also, you can create your own footprints using the Footprint editor, then use the Library manager to import your custom library.
For more information, you can look at: https://docs.kicad.org/5.1/en/cvpcb/cvpcb.html#_cvpcb_commands
Best regards.
In more recent versions of Kicad (looking at 5.1 here), there is a 'filter by name' selector and a search box where you can search for footprint names.
You could enter, for example TO-92 in the box which will return a series of THT footprints suitable for a TO-92 device. You need to ensure that none of the other three selector buttons (limit by symbol keyword, library or pincount) are active. You can only search by package name not by device name in CvPCB i.e. you can search for a 'TO-92' footprint but not for a BC548 (a transistor in a TO-92) package.

Xpages: is it possible to allow user to select multiple values and display dynamic result depends on user’s selection in Domino Designer 9.0.1?

I would like to ask is it possible to allow user to select multiple values and display dynamic result depends on user’s selection in Domino Designer 9.0.1?
We are required to develop a web application using xpages.
Here is is the background of web application:
Each member has a current group
Each group are required to join some specific activities
Member can choose future group and check the activity is joined or not join
That means use member in current group’s latest activity status (joined or not join) to compare the future group (find which activity is joined or not join)
The sample pictures about the application will be like the following
For user's selection: the user can choose multiple members with related current group and the user can choose the future group for each member for the comparison.
After click the Submit button, the result shows to the user
Here is the question: is it possible to do this in Domino Designer 9.0.1?
The reason we ask is we haven't find similar sample on the internet yet and we don't know whether it is possible to do in the Domino Designer 9.0.1.
Grateful if someone can provide advice on this issue please. Thank you very much.
Update:
We apologize for our misleading question. We are absolutely not asking someone to write code for us.
We are not able to upgrade to Domino 9 at the moment and we are currently writing some code using 8.5.2.
However we have a concern that if we write a lot of complex code in the application, it will be a trouble for our colleagues to do the maintenance for program.
Also assume we write a lot of complex code in the application and the program works, what about if the user has new requirements base on the current function for the program? We believe the code will be much complex and hard for someone who handle this task to understand the logic of the program.
Thus, for the future development and the program maintenance. Is the latest version more flexible to develop and maintain or just not much difference to accomplish.
Sorry for the inconvenience we have made.
Thank you for your time.
Update 2
For the coding of the program, we have the following experiment.
Option Public
Option Declare
Sub Initialize
Print |Content-Type:application/text/html|
Print "<tr><td>Result<br></td></tr>"
Print "<br>"
Print "<br>"
Print "<table border = 1><tr><th>Member</th><th>Test 001</th><th>Test 002</th><th>Test 003</th></tr></table>"
Print "<table border = 1><tr><th>Activity</th><th>Joined</th><th>Joined</th><th>Joined</th></tr>"
Print "<tr><td>Activity 1</td><td>No</td><td>Yes</td><td>No</td></tr>"
Print"<tr><td>Activity 2</td><td>No</td><td>Yes</td><td>No</td></tr>"
Print "<tr><td>Activity 3</td><td>Yes</td><td>No</td><td>No</td></tr>"
Print "<tr><td>Activity 4</td><td>No</td><td>No</td><td>Yes</td></tr>"
Print "<tr><td>Activity 5</td><td>Yes</td><td>No</td><td>No</td></tr>"
Print "<tr><td>Activity 6</td><td>No</td><td>No</td><td>Yes</td></tr></table>"
End Sub
Those code just hard code only, it will open in html format.
Due to the data will change depends on user's selection, we cannot guarantee the size of the table and hard to define data to locate in which cell.
We are currently studying how to make those code dynamically, make it more flexible.
Thank you.
The tool you need in XPages are custom objects either in JavaScript or Java (that's way less scary than it sounds) and one repeat control for the rows. If the number of columns are dynamic too, then you need 2 repeat controls.
The layout reminds me a lot of the table walker example (I wrote) as part of IBM's original XPages 8.5.0 training exercises. You need to check them out.
In particular look at Exercise 23. The data source, multi value fields might not fit your case, but the dynamic table does.
Good luck and let us know how it goes.

Is there a clever way how to share custom controls among Xpages applications?

For our Xpages application stack we have to create cca. 100 controls that will cover our new UI parts/helpers and some additional services. These controls are meant to be very general and have to be used by many Xpages applications. Now question is how to share these controls among applications(databases). Controls need some managed beans to work, also some CSS, JS and images. To copy the whole stuff into each application and maintain it somehow is not the way (even design inheritance doesnt help here). What's more ... mixing these 100 controls among application specific controls is real hell as controls doesn't support any namespaces or some packages grouping (like java in Package Explorer), so at the end we have very long list of controls in DDE which is nightmare to navigate and work with.
We tried to use Extension Library approach and followed this tutorial
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Master_Table_of_Contents_for_XPages_Extensibility_APIs_Developer_Guide
... but honestly I tried 3 times on my computer from scratch and even example project from tutorial didn't work properly and still caused some errors in update site project. My colleague also tried this on his computer with no luck. And entire process as described in the article above is set of many java classes, XML and configuration files even for small control (eclipse plugin project -> feature project -> updated site project and then you have to install this update site test it and when bug occurs you have to run another cycle ...). Comparing to e.g. this http://tapestry.apache.org/component-classes.html its extremely heavy weight approach in Xpages.
So my question is, is there any other approach that can help us in this area to share controls among applications? Or is there any update expected in this area for upcoming Notes release e.g. R9.1 ?
the most efficient way to share controls is an extension library. It does come with a learning curve. You could use Nathan's XSP Starter Kit to ease your pain. Alternatively you can use the import/export plug-in from OpenNTF to move controls (and their supporting files) around.
In any case: XPages custom controls do support name spaces and grouping -> just have a look at the property panel of a control. You can define:
the namespace (defaults to xc, but you are free to design your own)
the group it should appear in
icons
how it looks at design time (to hide the inner workings)
So step 1 is to group and clean and then think about the distribution. Extlib definitely would be best.
There is good ol' method for sharing design elements in NSF: templates. You can make your database a template, and then inherit just specific design elements by copy/pasting them at designer level. In design element's properties view, Design tab, look for "Inherit from the design template" property. It contains template name from which you copied the element. Watch out for the property "Prohibit design refresh or replace to modify", it should be off.
This has some consequences when deploying the application to production, though, so please, read the documentation/help about template inheritance. Especially combination with XPages/custom controls requires the template to be built and signed.
We use it to share custom controls like application layout and picklists with no problems.

locate forms into view directory folder lotus notes

I created a form to display a specific report instead of a view. iwant the form to locate into the directory folder in which views located. for eg I have a view at 1. Reports\a. Quarterly Reports, I want the reports be to located at 1. Reports\b. No of Request per Country(this is the form). So that when I view the reports they are only in one location. Is this possible?
Ken has good points about the design of the solution. If you need more direct assistance, then I can offer the following solution.
As you're now using a variety of design elements. You need to unify it using a frameset and an outline. Framesets in Notes are the generally the same as their web counterpart. The great thing with Notes is that you can easily add this to your current design.
I would recommend the following order of tasks.
Create the outline. Instructions here
Create the frameset and connect the outline to it. Instructions here.
Set the database launch properties so the frameset loads up when people open the database. Instructions here.
Even though the links point to Lotus Notes version 6, the functionality is still applicable in version 7 and 8. The only other point I would make is that when you click on an outline element it needs to know where the target location to display the data. You define this on the frames in the framesets. Just look at the menu option "Frames" and select "Frame properties" or "Frameset properties" respectively.
You can use a Notes Outline to manage this. Set one up for your database, if you haven't already, and use it as your left-hand navigation in your frameset. If you aren't sure what I'm talking about, try creating a new database based on the Document Library template and take a look at the design. It'll have a frameset, and on the left frame it'll have a Notes Outline.
Once you have your database setup like that, you can control what the user sees in that outline by creating hierarchical outline entries. You can link views, pages, and forms to your outline entries and that way you can have your 1. Reports\a. Quarterly Reports view showing next to your 1. Reports\b.No of Request Per Country form (report).
Even better, you can use different names. Since an Outline manages its order, you don't need to name your entries 1., 2., etc to get them to show in a certain order. You can name them whatever you like and rearrange them in the Outline design screen.

Resources