Solved

Deleting rown in an embedded view

Posted on 2000-02-24
2
293 Views
Last Modified: 2013-12-18
Hi

I have an embedded view with many rows. I want to give some user right to delete selected row with an action that i hide with users who not have right to delete.

I have tried with the action placed in the form but that marks the row for deletion but dont delete. F9 seems not available at this time.

I have tried to place an action in the view but that is hide.

The command I have used is:

@Command([EditClear]), that makes the selected documet marks for deletion.

@Command([EditCut]) that not were availble in the form.
0
Comment
Question by:seko22an
2 Comments
 

Accepted Solution

by:
fayeb earned 100 total points
ID: 2554977
If you want to remove the document from the view then select the forms you want to delete in the view in the action button place the following code:


@Command([EditClear]);
@Command([ViewRefreshFields])

This will now prompt the user with "Are you sure you want to delete n documents. When yes is select ed the documents are deleted.

If you want to remove the document using an action in the form then do the following:

     Dim Workspace As New NotesUIWorkspace
     Dim db As NotesDatabase
     Dim session As New NotesSession
     Dim uidoc As NotesUIDocument
     Dim doc As NotesDocument
     
     Set db = session.CurrentDatabase
     Set uidoc = Workspace.CurrentDocument
     Set doc = uidoc.Document
     uidocid = doc.UniversalID
     Call uidoc.save
     Call uidoc.Close
     
     Set doc = db.GetDocumentbyUNID(uidocid)
     Call doc.remove(True)

This should then remove the document

Hope this helps
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 2554998
Hi

What is the version that ur using, is it R5 ?
&
Are you opening this form on the web ?

If Yes, then use DeleteDoc command to delete the doc, and MoveToTrash command to completely remove the doc from the view.

Good Luck
Hemanth
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes to MS Exchange mailfile migration 4 60
Disable Return Receipt In Lotus Notes 15 334
Lotus Domino server 9 7 81
IBM Lotus notes 9 100
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question