Write the code in PeopleCode Action:
&FileName =
&ret = GetAttachment("RECORD://CSGC_CSHT_ATACH", &FileName, "/" | &FileName, "PS_SERVDIR", True);
&PS_SERVDIR = (GetEnv("PS_SERVDIR")) | "/";
&FilePath = &PS_SERVDIR | &FileName;
If &ret = %Attachment_Success And
FileExists(&FilePath, %FilePath_Absolute) Then
&TxtFile = (GetFile(&FilePath, "R", %FilePath_Absolute));
While &TxtFile.ReadLine(&Input)
&Input = LTrim(RTrim(&Input, " "), " ");
End-While;
End-If;
&TxtFile.Close();
Title | Under | Posted on |
---|---|---|
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
Search Results | PeopleSoft Technical | 11/15/2017 - 10:24am |
PS Query - Need Dependency and Prunable examples | PeopleSoft Technical | 10/19/2017 - 11:28am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
Comments
Post new comment