I am new in lotus notes.
In an existing application i want to create a new view. So i created the new view and put it in the main -Views folder. i copied from blank. The formula selection is SELECT #all. Then in the design of the view i placed 2 columns with 2 fields(updateDate and updateText) these are from a new form that i made. But now if i save and preview my View it takes a long time to index and when done i see 0 documents but i can click on every row. And if i click on a random row then it will open a random document which is in the database.. as if the view populates the whole database. And i don't get the form document where i got the fields updateDate and updateText..
How come?
Since the view selection formula SELECT #all, the view selects alle documents from the database.
So you need to change the view selection formula to for instance select documents based on the form used to create them:
SELECT Form="MyNewForm"
Related
I recently just constructed a new view for a Lotus Notes Application and tested it to be fine.
It was supposed to get field data from 2 nearly identical forms and display into the view. The fields on both forms share the same name.
The formula used in View Selection is
SELECT ContactName; CompanyName; ContactNumber; CarNo; RequestDate
--comment: These are the names used in both forms --
This worked fine yesterday. Also I made sure that each column has selected the correct field to display and I did not change any settings. However, today when I went back to check, the view is all empty.
What seems to be the cause of this?
Your selection formula for the view is not correct. You use the name of the forms in the select statement and then add your fields as column in the view. If we assume that the forms are called FormA and FormB, then your selection formula for the view can look like this:
SELECT Form="FormA":"FormB"
I am using a Dynamic View Panel and would like to create a "Favorites" column in the view. The underlying view has a "Favorites" multivalue names field that contains all users that have flagged the document as a favorite. What I would like to do is to handle this conversion in a "Customizer" bean where I can compare the current user with the stored vales in the "Favorites" column and see if they are in the list. If they are I would present a "Green Star" icon (not a standard Notes icon) else I would present an empty star icon. I would also like to make the star icon live so if you click on the star it would toggle the favorite value in the database on/off.
How do I implement such a feature?
What are the DominoViewCustomizer methods I need to override? (looking at afterCreateColumn)
How do I get and set the column values? (really lost here)
How do I get the column to display a Notes resource image (my stars) or do I need to store it in a directory on server?
How do I make the star icon clickable?
How do I capture that click event?
Using Domino v9.0.1
If you don't have to use a dynamic view panel here's a way of doing it that will work with a view panel, repeat, or data table...
Use a "favorites" document for each user. Have it contain one multi-value item to store the Note IDs of all the documents the user favorited.
When the user logs on read the contents of the multi-value field into a sessionScope variable. Then in your view column all you need to do is check if the NoteID of the current row is in your sessionScope variable and display the appropriate icon.
For the part when a user clicks on a star you would have an event handler on that column that does a lookup to the user's favorites document (create it if it doesn't exist) and add or remove the NoteID then do a partial refresh on the view.
You can probably still do this with a dynamic view panel but I can't speak to the particulars of it since I don't use it much.
Ok,I have a situation where I need to display a view that contains field value from two forms which is connected via a "CVNo" field. At first I thought it was simple and dived in. I added the form names in the view selection formula of the notes view and then created columns and assigned their respective values, but what happened was the output I got from doing so is a very jumbled and cluttered view. Based on my understanding the notes view displayed the column values from each form differently. I don't know how to do this or if this possible in notes view. All help and suggestions and are very appreciated.
In Lotus Notes view you cannot display documents connected to each other by a custom field. The only connection which can be displayed in Lotus Notes view is parent->response document hierarchy.
And please note that you do not create view that displays values from forms. You create view to display field values from documents, which are filtered to be shown in this view.
If you have documents, with field Form, one Form1 and another Form2, then create a view with selection formula:
SELECT Form = "Form1" | Form = "Form2"
Every row in the view represents a document (either with Form1 or Form2 value in the Form field).
And every column may contain a field name or #-formula to evaluate with every shown document to display a value in this column.
Is there any Lotus formula which can be used on an action in a view , for deleting / erasing some specified view' rows? Thank you
You can add a button that uses the Simple Action called Delete from database. It will delete selected documents.
I am trying to create a new Lotus Notes Database (classic, not using XPages) using the Domino designer which will be used to manage customers and orders.
As orders belong to customers, I implemented orders as responses to customers (this seems to be the only way to create a hierarchy).
Now, the form representing the customer should contain a view displaying all the orders which belong to the customer.
However, I don't know how to implement this view:
First, every embedded view based on a formula (I tried SELECT (Form = "Order")) creates an error message: "Unable to launch at this time".
Second, I have absolutely no idea how to restrict the result to responses to the current Form (in my case: Showing only the orders belonging to the current customer and not all orders in the database).
To embed the view in the 'customer form', open that form, place the cursor on the place you want the embedded view, and from the menu select: Create -> Embedded Element -> View...
Select the view you want to embed, and click 'Ok'.
Now, to show only orders for current customer, you will see in the Objects tree list 'Embedded View' with 2 option, select the second 'Show single category'. There you can specify with formula only the current customer. For example, to show entries only for the current logged user I would put:
#Name([CN]; #UserName)
Hopefully, this info will help solve the problem.