New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Auto-Populate ProjectID and ProjectName on Request Creation

We have a Request Type that gets associated with a specific project via population of a Project Name field.  We have also configured a Project Summary portlet to display requests of this type associated with that project.  In that portlet, we have added a button created with the following HTML to enable Users to create a new request directly from the portlet, with the intention to auto-populate the field project name (so that the User does not need to re-select):

'<html><body><input type="button" class="sec-btn" value="Proposal Tollgate" id="createProposalTollgate" onclick = "'||'''../web/knta/crt/RequestCreate.jsp?REQUEST_TYPE_CREATE=5.27.'||(SELECT REQUEST_TYPE_ID FROM KCRT_REQUEST_TYPES WHERE REQUEST_TYPE_NAME = 'EPPIC PLC-Proposal Tollgate')||'.EPPIC+PLC-Proposal+Tollgate&loggingIssue=true&projectId='||'[P.ENTITY_INFO]'||'&projectName='||REPLACE(PP.PROJECT_NAME,' ','+')||''')"></body></html>'

This however does not work, as the "Create" request opens with the Project Name blank.

1 Reply
Fleet Admiral
Fleet Admiral

Where is PP.PROJECT_NAME coming from? Is that the portlet's query? Does it work with a static value?

Any way to debug with everything resolved...SQL, tokens, etc such that you can see what URL is actually being created at run time?

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.