Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deleting rown in an embedded view

Posted on 2000-02-24
2
Medium Priority
?
299 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 300 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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.
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

972 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