Solved

Deleting rown in an embedded view

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

24 Experts available now in Live!

Get 1:1 Help Now