Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Expand Request Type Section when Opening requests

Highlighted
cat_gon
Super Collector

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

5 REPLIES
Mohit_Agrawal
Frequent Visitor

Re: Expand Request Type Section when Opening requests

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

 

Oscar_Pereira
Frequent Visitor

Re: Expand Request Type Section when Opening requests

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

jsalass
Frequent Visitor

Re: Expand Request Type Section when Opening requests

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
jsalass
Frequent Visitor

Re: Expand Request Type Section when Opening requests

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
ieroglif
Super Collector

Re: Expand Request Type Section when Opening requests

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.
//Add this to "OnDomLoad" event