Solved

Deleting rown in an embedded view

Posted on 2000-02-24
2
290 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now