Solved

Deleting rown in an embedded view

Posted on 2000-02-24
2
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

734 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