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.
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 have a QTableView based on a QSqlRelationalTableModel. Editing, adding and deleting is no problem but I would like to change a field programaticaly.
(more specific: click on a field, pop-up a QFileDialog to select a file and then filling that field with the result).
How do I do that?
Found it:
QSqlRelationalTableModel.record to get the record
QSqlRelationalTableModel.record.setvalue to change a value
QSqlRelationalTableModel.setrecord to write the record to the database
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"
Select Many Check box items to Cart :
Declare check box first column of data
Declare the command button to the above the data
Once user click the check box current row data add to the list and this list data go to the Cart page
On click the check box current row data add to the list and on submit the button the entire list data go to the Cart page.
Thanks in Advance.
You can use primefaces datatable component for select one or more rows from a table and send this information to everywhere.
Take an example of this in showcase (the datatable have many others options too).
In the relational controls sample db (xpagesjdbc.nsf) there is an example called JDBC_RowSetDatasource. This uses a view panel and has the check box turned on in the view panel to allow the user to select a document. Then there is a button to delete the selected docs using a simple action, delete selected documents. This deletes the document but until the button with the code that has jdbcData1.acceptChanges() is pressed the changes are not committed and the row shows as to be deleted (first icon column with the isRowDeleted() call to determine the icon).
I am working on a similar situation but with a repeat control. I can delete the row with #jdbcDelete but that is immediate. Looking at the data it shows the row is gone from the data even before acceptChanges() is called.
Since I can't use the simple action to delete selected documents (no view panel) what is the Java equivalent to delete the row in a similar manner? I have tried deleteRow() on both the variable for the data set and for the row but get an error in both cases.
Howard, the simple action just memorizes the primary keys of the records as to be deleted. If you want to simulate that you need to take a similar approach (using a ViewScope variable or bean) to keep track of your "deleted" records and a method that executes the actual deletion.
Smells like a case for a bean