Showing posts with label people tools. Show all posts
Showing posts with label people tools. Show all posts

PeopleTools Tables related to BI/XML Publisher

PeopleTools Tables related to BI/XML Publisher

  • PSXPDATASRC - Data Source definition table for BI Publisher
  • PSXPRPTCAT - Report Category table, which controls author access to the report definition
  • PSXPRPTCATAUTH - Authorization definition for report categories.
  • PSXPPRTDEFN - Report definition table for BI Publisher
  • PSXPPRTOUTFMT - Defines output format allowed and default output format for each report definition
  • PSXPRPTSCOPEFLD - Stores information required for bursting
  • PSXPRPTSRCHKEYS - This table defines extra search keys available in BIP report manager after report output is published.
  • PSXPRPTTTMPL - Defines association between report definition and template definition.
  • PSXPRPTTMPLCTRL - This table defines values that control template selection at report runtime.
  • PSXPRPTVIEWER - Defines per-report viewer access
  • PSXPSCHEMAFLMN - Schema files
  • PSXPSMPLDTMN - Sample XML data
  • PSXPTMPLDEFN  - This table stores template (including sub-template) definition for BI Publisher. Template definition has effective-dated template files as a child object.
  • PSXPTMPLFIELDEF - This table stores template file definition.
  • PSXPTMPLOUTFMT - This table stores the output formats for templates
  • PSXPTMPLTRINFO - Manage information associated with transaction files (XLIFF) for templates
  • PSXPTMPLTYPE - This table stores template types. The output type for each template type is stored in a child table: PSXPTMPLOUTTYPE
  • PSXP_FILEURL - Stores the URLs of XMLP output files
  • PSXP_RATTR_TBL - Report attributes table to store Name Value pairs of a report. Used in report folder implementations
  • PSFILEDEFN - Stores template file information
  • PSFILEDATA - Stores template file information
  • XPQRYRUNCNTL -Run control table for Query-based XMLP reports
  • XPQRYRUNPARM - XMLP Query run control parameters


How to restrict FileTypes (extensions) from URL Object Properties When Adding Attachments Part II

So, as I mentioned in  How to restrict File Types (extensions) from URL Object Properties When Adding Attachments Part I post, I have tested this particular configuration when adding attachments.
The good news is it worked :-)
So, how did it exactly work?
Well, assuming that you have configured a File Extension list and added a list of accepted or rejected file types to that list as per my previous post. Once done you are ready to go and check whether it is working.
As per AddAttachment PeopleCode function, once the file is uploaded you can check the return code which is either an integer or a constant value. Then you can check the return code "21" which is to check the File Extension from the File Extension list that you have configured.

So basically you can try out a code similar to,
/*check the Return code for file extension validation*/
/*Retrun code 21 - "File transfer failed because the file extension is not allowed*/
&RETCODE = AddAttachment("URL.MYTESTRECORD", &ATTACHSYSFILENAME, "", &ATTACHUSERFILE, 0);
   If &RETCODE = 21 Then
      Error MsgGet(12345, 5, "File transfer failed because the file extension is not allowed");
Else
/*Do something*/
End-if;

How to restrict File Types (extensions) from URL Object Properties When Adding Attachments Part I

First of all, I haven't tested this yet but I'm going to pretty soon :-). However, if someone wants to give it a go. Here it is.
You may have already know that, when attaching files using AddAttachement PeopleCode function, sometime we need to restrict certain file types that we don't want end-users to attach to our Peoplesoft system. Normal scenario we think that AddAttachement function will provide this for us. But guess what, even though AddAttachement function has a parameter names FileType, The function will not validate the FileTypes at all. In PeopleBooks it says;


In order to restrict certain file types obviously, we have to do something like this
&RETCODE = AddAttachment("RECORD://SOME_RECORD", &ATTACHSYSFILENAME, "", &ATTACHUSERFILE, 0);

If &RETCODE = 0 Then/* Returns Zero, when user clicks on OK with the valid File Path */
/* Then Check the file extension, if not throw an error msg and delete the file */
If Lower(Right(&ATTACHUSERFILE, 4)) <> ".txt" Then
MessageBox(0,"",0,0,"Your Message",0); /* You can only upload .txt files. */
&RETCODE1 = DeleteAttachment("RECORD://SOME_RECORD", &ATTACHUSERFILE); /* Delete file */
End-If;
But there is another way you can do this
Navigate to PeopleTools, Utilities, Administration, File Extension List page
Here you can set up list of file types, by file extensions which either can accept or reject when you do file attachments to your system. Once you have set up file extension list you have to specify FILE_EXT_LIST property in URL object using the URL maintenance page (PeopleTools, Utilities, Administration, URLs).

"You can restrict the file types that can be uploaded to or downloaded from your PeopleSoft system. The file type restrictions apply to the AddAttachment, DetachAttachment, MAddAttachment, and ViewAttachment functions. Allowable or disallowed file extensions are managed through a file extension list and through the FILE_EXT_LIST property of the URL object."

"This enables you to only upload the appropriate file types at runtime, and reject those file types you think may be suspicious, potentially harmful, or not appropriate for a particular call to a file-processing built-in PeopleCode function"

The most wanted Extension List Types are Inactive and Absolute, If you want to know more about the list types please follow the link http://docs.oracle.com/cd/E57990_01/pt853pbh2/eng/pt/tsvt/task_UsingAdministrationUtilities-07109c.html#ue3f0f90c-23f1-4110-aed1-29af14eff645
Hope this will help for you next implementation of file attachments. feel free to send any comments or suggestions.

How to enable PeopleCode Auto-Complete feature in App Designer for PeopleTools 8.54

How to enable PeopleCode Auto-Complete feature in App Designer for PeopleTools 8.54
Yes! you heard it correctly!. PeopleTools 8.54 comes with long waiting feature in App Designer, Auto Complete. Lot of IDEs in today's market provide code auto completion feature for any programming language of your choice such as java, C#, php. However, PeopleSoft App Designer lacks this feature until PeopleTools 8.54.
According to PeopleBooks, it says

"The PeopleCode Editor provides an auto-complete feature for PeopleCode application classes, built-in classes, built-in functions, system variables and constants. The auto-complete feature displays the possible options when you insert a period (.) or dot after an object.
The auto-complete feature also supports the display of a tool tip when you hover the mouse over the selected list item. The tool tip displays the method name, parameter type, and the return type.
The auto-complete feature is not applicable for objects that are declared as automatic variable and objects that get resolved at run-time."

How to setup Auto-Complete Feature

"To use the auto-complete feature, you must enable the Auto-completion for PeopleCode option on the Editors tab of the Options dialog box."
This example illustrates the fields for the auto-complete feature.
Options page - PeopleCode Editor group box
for more info visit;