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

Make a field INVISIBLE !! Help

Highlighted
RRK_19
Regular Collector

Make a field INVISIBLE !! Help

Hi,

 

We are having a field called URL. Now our requirement states that this field is no more needed , so asking us to make it invisible. Additionally it is required that even after making this field invisible,in the OLD requests this field should be visible but not the new requests.

 

Anyone knows how this can be achieved?

 

Also can we make a field visible / invisible based on a condition, for eg: creation date > xx/xx/xxxx that we don’t show these fields?

 

Thanks,

Roopesh Kumar

6 REPLIES
Mohit_Agrawal
Frequent Visitor

Re: Make a field INVISIBLE !! Help

Hi Roopesh,

 

If you make the field Invisible by setting "Display = No" in the field property then it wont be visible any request (old & new).

 

And yes you can make field visible based on any condition. You need to create 4 rules for this UI logic.

 

1) "Apply on field Change"
IF A < B ; setFieldVisible(true)

 

2) "Apply on field Change"
IF A !< B ; setFieldVisible(False)  ( Use A is not less than B, rather than A>B)

 

3) "Apply on page load"
IF A < B ; setFieldVisible(true)

 

 4)  "Apply on page load" 
IF A !< B ;setFieldVisible(false)

 

More about UI rules can be found in Demand_mgmt_config guide provided by HP...


Thanks!!
Mohit Agrawal
::Click KUDOS if you like the answer...

Mohit_Agrawal
Frequent Visitor

Re: Make a field INVISIBLE !! Help

Hi Roopesh,

 

If your requirement is to make the field invisible only in the new requests created then it's not possible to make this change in the FIeld property. However this can be achieved in one way..

 

there should certainly be a field "Created On" in your request type. .Suppose you need to make this change from today onwards. Then what you can do is: create UI rules:

one UI rule on Page Load and another on "Apply at creation"....

If Created_On > 11-09-2012

then SetFieldVisible(false)

else

setFielfVisible(true)

 

Hope this helps!!

 

Thanks!!

Mohit Agrawal
::Click KUDOS if you like the answer...

 

RRK_19
Regular Collector

Re: Make a field INVISIBLE !! Help

HI,

Thanks for ur reply. Yes, there is field named 'Created on:'.
But im not used UI rules at all.
Can you please share the details how we need to write the UI rule?

Do the condition go into 'Logic' section of rule?

And do we need to give the field name in 'Result fields'?

 

 

kr,

Roopesh Kumar

Mohit_Agrawal
Frequent Visitor

Re: Make a field INVISIBLE !! Help

Hi..

 

Please refer to attached snapshot on UI rule...and create rules on Page Load and "At creation" as suggested above..

 

Hope this helps!!

 

Thanks!!

Mohit

Remeber to mark KUDOS if you like it..

RRK_19
Regular Collector

Re: Make a field INVISIBLE !! Help

I tried, but im geetting the following error message:
"Invalid function name. The function entered should be defined in either RequestRulesSystemLibrary.js or RequestRulesUserLibrary.js file."

Thanks.
Mohit_Agrawal
Frequent Visitor

Re: Make a field INVISIBLE !! Help

The files RequestRulesSystemLibrary.js or RequestRulesUserLibrary.js file are located at <PPM_Home>/ server/<PPM_ServerName>/deploy/itg.war/web/knta/crt/js.

 

Just go to this path and check the function should be in the file..

When we first created this rule then we also got the same error and since it was our DEV server, we just restarted the server and then tried once..and it worked well

 

So you can try after restarting the server once if this is possible..

 

Thanks!!

Mohit Agrawal

//Add this to "OnDomLoad" event