Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<AvailabilitySettings>
	<AvailabilityLevelSettings>
		<!-- Use this setting if part’s availability should determine icon -->
		<PartQuantity>0</PartQuantity>
		<!-- Use this setting if part’s level setting should determine icon -->
		<LevelValue>0</LevelValue>
		<!-- Ensure to add this for the first level -->
		<LevelType>NotAvailable</LevelType>
		<!-- Key text to use -->
		<KeyText>NotAvailable</KeyText>
		<!-- Icon may be ok (a check mark) or remove (an X) -->
		<IconName>remove</IconName>
	</AvailabilityLevelSettings>
	<AvailabilityLevelSettings>
		<PartQuantity>1</PartQuantity>
		<LevelValue>1</LevelValue>
		<LevelType>Available</LevelType>
		<KeyText>Available</KeyText>
		<IconName>ok</IconName>
	</AvailabilityLevelSettings>
</AvailabilitySettings>

Version 5.1 and later

TBP

 In version 5.1 and later the availability setting is moved to reside inside the OrderManager. It is possible to define several availability levels and how they should behave.

Attribute

Usage

Options

level-value

Trigger. Use level value as a trigger for this setting. If level value of the availability is this value, this setting will be used.

Typically used as 0 = not available, 1 as low availability and 2 as high availability. Level-value can be returned by the availability provider.

int

part-quantity

Trigger. Use part’s availability as a trigger for this setting. If availability of the part is equal to or lower than part-quantity this setting will be used.

int

class

Css class which will be applied to the availability so that it can be styled by css rules.

text

icon

Which icon should be used, or if no icon should be used. If icon not added as attribute no icon will show.

https://signifikant.atlassian.net/wiki/spaces/ASKB/pages/704675841/Technical+documentation+-+Icons?src=search

key-text

The text that will display for this stock level. If key-text not added as attribute no text will show.

text

level-type

Available, NotAvailable

Code Block
languagexml
<OrderManager>
  <OrderManager>
    <AvailabilitySettings>
      <AvailabilityLevelSettings level-value="0" level-type="NotAvailable" key-text="NoneAvailable" class="red" icon="remove" />
      <AvailabilityLevelSettings part-quantity="1" level-value="1" level-type="Available" key-text="Available" class="green" icon="ok" />
    </AvailabilitySettings>
  </OrderManager>
</OrderManager>

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1ecd09
showSpacefalse
sortmodified
typepage
reversetrue
labelsavailability icon settings options
cqllabel in ( "settings" , "options" , "icon" , "availability" ) and type = "page" and space = "ASKB"

...