Solved

How to delete a document from a view using Formula Language?

Posted on 2006-06-20
4
584 Views
Last Modified: 2013-12-18
Dear Experts,

I am writing a Aunnal Leave System for a company.
But I have one problem.

" How can I click a button in FormA to delete a document from a viewB selected from formB?"
Do I need to get the document ID of that the form that I want to delete.?
If I want to use Formula Language to perform this action, how can I do it??

Thank you for all.

Have a nice day
0
Comment
Question by:edmondto2
4 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 16941198
Atleast you should have a key of formA doc in formB to delete that doc.

Do you have any cross reference between forms?
0
 
LVL 13

Accepted Solution

by:
CRAK earned 50 total points
ID: 16941269
In the obvious @Functions, such as @Command( [EditClear] ), you'd need to have the targeted document selected first!
It's probably easier to mark a document for deletetion and have an agent periodically do the cleanup.

If you use a document's unique id as reference, @SetDocField would offer you the best option:
@SetDocField( documentUNID ; fieldName ; newValue )

Of course you would have to change existing view selections to exclude marked (deleted) documents (using fieldName!=newValue, or !@IsAvailable(fieldName)).

For the agent, the simple action "Delete from database" will do the trick, if you apply the selection fieldName!=newValue or @IsAvailable(fieldName).
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

Suggested Solutions

Title # Comments Views Activity
Encrypted Mail message in a NSF 10 29
Email Message Background Color 4 125
Incorrect reply-to address Lotus 2 27
Domino Server 2 71
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

25 Experts available now in Live!

Get 1:1 Help Now