Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2006-06-20
4
Medium Priority
?
602 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
[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
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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

618 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