Solved

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

Posted on 2006-06-20
4
583 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

13 Experts available now in Live!

Get 1:1 Help Now