Solved

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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 is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 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