ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Captain
Captain
985 views

Expand Request Type Section when Opening requests

Hi All,

 

We have noticed that when we open a request  some of the section is collapse while some are expanded.

 

How can we make it consistent that when we open a request make all the section expanded by default.

 

Please advise.

 

Thanks.

 

Catherine

0 Likes
5 Replies
Absent Member.. Absent Member..
Absent Member..

Hi Catherine,

 

When we collapse/expand any section in the request type in the browser and then save it...

 

Next time when we open the same request type then it opens in the same condition as it was saved last in..

 

If you want that all the sections should be expanded and just open the requet , expand all sections and then save it...

 

Thanks!!

Mohit Agrawal

 

Absent Member.. Absent Member..
Absent Member..

Hello Catherine,

 

This is related with user settings – if I user makes them expanded/collapsed they will stay like that for the same user next time he logs. However that will not affect any other user or request. They cannot be pre-defined to be expanded/collapsed for a user or a request.

 

I guess cleaning the cache may help to reset such settings.

 

Regards

Oscar Pereira

Commander Commander
Commander

Hi Catherine,

You can use a UI rule to expand or collapse the sections in a request type.

Following is what other customer has added to their RequestRulesUserLibrary.js file.

function expandCollapseSection(sectionName) {
if (isSectionExpanded(sectionName)) {
collapseSection(sectionName);
} else {
expandSection(sectionName);
}
}

function collapseSection(sectionName) {
if (!isSectionExpanded(sectionName)) {
return;
}
}

function expandSection(sectionName) {
if (isSectionExpanded(sectionName)) {
return;
}
}

function isSectionExpanded(sectionName) {
result = false;
var imageElement = document.getElementById('IMAGE_' + sectionName);
if (imageElement != null) {
result = (imageElement.src== collapseImg.src);
}
return result;
}

To use the above UI Rule, you just need to know which section you want to expand or collapse, and enter its value.

Below is an example where we are expanding one section and collapsing three others:

expandSection('EC_SUBSECTION_EC_REQUEST_DETAILS_4'); collapseSection('EC_SUBSECTION_EC_REQUEST_DETAILS_3'); collapseSection('EC_SUBSECTION_EC_REQUEST_DETAILS_2'); collapseSection('EC_SUBSECTION_EC_REQUEST_DETAILS_1');

You can also check these threads for further information:

http://h30499.www3.hp.com/t5/Project-and-Portfolio-Management/Can-we-have-all-sections-in-the-Request-be-expanded-rather-than/m-p/4185955#M554
http://h30499.www3.hp.com/t5/Project-and-Portfolio-Management/Hide-a-section-with-rules/m-p/5365655#M14997

Hope this helps!

Regards,
Jonathan
Commander Commander
Commander

Hi Catherine,

Did the tips above help you in your question?

Please remember to mark the post as solved and provide kudos to the solutions that worked for you.

Regards,
Jonathan
0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Hello, Catherine.

 

Actually, you can, all you need- is to update few *.jsp files, two java-classes, and create one table in database.

Best Regards,
Ieroglif.
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.