Command PV SET DOCUMENT INFO

4D View

PV SET DOCUMENT INFO

version 6.8


PV SET DOCUMENT INFO (area; title; subject; author; company; comment)

ParameterTypeDescription
areaLongint4D View area
titleStringDocument title
subjectStringDocument subject
authorStringAuthor of the document
companyStringCompany name
commentTextComment

Description

The PV SET DOCUMENT INFO command associates with the document in area information passed in the title, subject, author, company and comment parameters. This information corresponds to the info displayed in the "Information" dialog box for the document (Tools/Document information... menu command).

Example

In cases such as a 4D View area included in a form, information relative to this area is updated every time a user modifies or creates a record using this form.

   C_STRING(255;$Title)  `Title of document
   C_STRING(255;$Subject)  `Subject of document
   C_STRING(255;$Author)  `Author of document
   C_STRING(255;$Company)  `Company name
   C_TEXT($Comment)  `Comments
   C_DATE($CreationDate)  `Date of document creation
   C_TIME($CreationTime)  `Time of document creation
   C_DATE($ModificationDate)  `Date of last document modification
   C_TIME($ModificationTime)  `Time of last document modification

      `Get document related information
   PV GET DOCUMENT INFO ($1;$Title;$Subject;$Author;$Company;$Comment;$CreationDate;
                                       $CreationTime;$ModificationDate;$ModificationTime)
   $Title:=Request("What is the document title?";$Title)
   $Subject:=Request("What is the document subject?";$Subject)
   $Author:=Request("What is your name?";$Author)
   $Company:=Request("What is your company?";$Company)
   $Comment:=Request("Comments?";$Comment)

   PV SET DOCUMENT INFO(Area;$Title;$Subject;$Author;$Company;$Comment)  `Update info

See Also

PV GET DOCUMENT INFO.