Solved

Generate a sequencial code for Documents

Posted on 2004-03-25
3
423 Views
Last Modified: 2013-12-18
I new in all this stuff so i try to explain my best.
I  have a form where I have to enter all the information about my projects, no problem till here, but I want to creat a Code for each project, I want to inicializate de project code when I want, and I want that every time I create a new project de code incresase in 1, just when de document is new.

Other issue is that I want to export  the form to a file could be Word or Excel once i have finish it.

Anyone could help me thanks.
0
Comment
Question by:boomerman
3 Comments
 
LVL 19

Accepted Solution

by:
madheeswar earned 50 total points
Comment Utility
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
How is this project number identified for a project ?

For each given project group create a profile document or a document in view.. which will hold the current project number. Whenever another new project is created it will extract the value from the proj group and add 1 to it and update the profile doc accordingly.

Use File..Export menu or command action to MS RTF format. This is readable by MS Word

~Hemanth
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 50 total points
Comment Utility
Must they be sequential, and must they be numeric, or is the requirement really to assign any code, so long as it in unique?

If it can be any unique code, just create a field named UNIQUE_ID, make it text, and computed when composed.  The formula is really easy: @Unique

Since it is computed when composed, it will only calcuate at the time the new document is created, and stay fixed for that document thereafter.

Sequential number soluions are much more difficult, though you will find MANY examples in tis topic area (such as the one Madheeswar references).

Exportingto Excel: the easiest way is to create a view that matches what you want to see in Excel.  In R6, you can then just use "copy as table" and paste into Excel.  In any version, you can then export selected documents to 123, giving a file extension of .wk4, which Excel can open.

There are also several more sophisticated ways to export to Excel, by scripting the export to a CSV file or via OLE.  Check out the Sandbox area on notes.net.  There are also a few here, but most of them just lead you to the sandbox.

Exporting to Word would only be done for a single document, and is built-in (ppen a document, choose File->Export, Microsoft Word RTF is in the drop-down list), whereas the Excel exports are all for multiple documents being exported form a view.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

8 Experts available now in Live!

Get 1:1 Help Now