Highlighted
Honored Contributor.
Honored Contributor.
412 views

How to get the system dtae and time using scripts

Jump to solution

Hi Experts,

 

My requirement is to add open time field in rfc Implementation table.

Which will take the system date as open time.

Could you help me to implement this in script library.

It's flow is like when a change is moved from approval to implementation the open time field should get update by system time. The script we have to write in WPOPT_PopulatingData.

 

Following is the script I have tried and the error I got.

wpoptFile.open_time=tod();

ERROR ReferenceError: tod is not defined at char 1

 

Any Suggestions are appreciated.

 

Thanks & Regards,

Sandhu Mol

0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: How to get the system dtae and time using scripts

Jump to solution
wpoptFile.open_time=tod();

ERROR ReferenceError: tod is not defined at char 1


Should instead be:

wpoptFile.open_time = system.functions.tod();

🙂

View solution in original post

2 Replies
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: How to get the system dtae and time using scripts

Jump to solution
wpoptFile.open_time=tod();

ERROR ReferenceError: tod is not defined at char 1


Should instead be:

wpoptFile.open_time = system.functions.tod();

🙂

View solution in original post

Highlighted
Honored Contributor.
Honored Contributor.

Re: How to get the system date and time using scripts

Jump to solution

It Worked..

Thank you... 🙂

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.