Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Respected Contributor.. Mark Siple Respected Contributor..
Respected Contributor..
175 views

Create functionality to pull next sequential number on demand

I'm trying to come up with a solution to provide the next sequential number on demand and would welcome ideas on how to accomplish this.  At a high level, what I'd like to do is have a button in a form reading "Get Next Number" and have the next sequential number entered into a field after the button is clicked.

I've done some research and have gotten the sequential number to appear in the form field, but it either increments every time the form (in this case for Configuration Items) is opened, or it does nothing.

So, to repeat - how can I use the sequential number functionality, but only on user demand, rather than it automatically populating?

0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

Betreff: Create functionality to pull next sequential number on demand

Which SM Version are you using ? What exactly did you implement to get the "sequential number to appear in the form field, but it either increments every time the form"? There are two ways to implement that: - rtecall("getnumber") function - RAD routine: getnumb.fc
Thank you for using the MicroFocus ServiceManager Support and News Forum. If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Micro Focus Expert
Micro Focus Expert

Betreff: Create functionality to pull next sequential number on demand

In the OOB (Out of the box) system you could review this example: RuleSet rm.init.id.delay It calls "Set number via JavaScript" with script value=lib.RequestSetting.getNumberForRequest();
Thank you for using the MicroFocus ServiceManager Support and News Forum. If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
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.