Duration / Downtime field type advice and how duration fields works in terms of UI policies

jas101
Tera Expert

Hi guys, on our CHG form we currently ask a yes/no question if there is to be 'Downtime?' - we want to change this so rather than asking yes/no, we ask 'Duration of downtime'?

What is the best way (field type) to force consistency of answers. Ideally we'd like them to specify in quarter/hundred intervals so 01.25 would be 1hr 15mins.

Logically I guess the 'Duration' field type makes most sense but I'm not familiar with this and when trying it am struggling to get a UI policy to work so that e.g. if the Downtime duration is anything other than 00:00:00:00 or >0 another field 'Downtime details' shows?

Any advice much appreciated. Thanks,
DS

13 REPLIES 13

Turns out this is a known problem... "PRB1206015 - UI policy using condition (duration field) < (some amount of time) does not seem to be working correctly in H and I"

Recommended solution... upgrade to Jakarta (no workaround annoyingly).

jas101
Tera Expert

Hi, thanks. Just in terms of B) for now...

On my Duration (u_duration) field on the CHG form, under Dictionary/Attributes I see the below (see screenshot).

I.e. it looks like I have to specify an Attribute and a Value. But the Attribute is a reference field and nothing relating to 'Max unit' or 'Unit' is in the list for me to select. Any ideas?

 

find_real_file.png

It looks like you need to change the field type to "Duration", that message of "The Reference field specifies what table this field displays values from" seems to indicate this field is currently "Reference" type:

find_real_file.png

Unfortunately the field type is 'Duration' already, check it out in Default view (below), the prior screenshot was in 'Advanced' view.

The reference field look-up I refer to is when I go to the Attributes tab, click New and then 'Attribute' is a reference look-up field.

 

find_real_file.png

OK, Not the attributes tab.

See my image the Attributes field that shows up when you are in Advanced view, above the form sections and tabs, that is where you put the max_units value.