|
Post by AMI_Mani on Mar 8, 2021 19:58:17 GMT
Hi, I'm trying to understand relation between MapToAttribute, DependencyFor attributes in AttributeRegistry schema MapToAttribute, DependencyFor attributes will have same value like EmbeddedSata, Whichever value needs to evaluate(changes required) needs to be mentioned in DependencyFor, MapToAttribute as value(EmbeddedSata). Please confirm whether MapToAttribute, DependencyFor attributes will have same value or different values, if different values means please explain the use case
"Dependencies": [ { "Dependency": { "MapFrom": [ { "MapFromAttribute": "BootMode", "MapFromCondition": "EQU", "MapFromProperty": "CurrentValue", " MapFromValue": "LegacyBios" } ], "MapToAttribute": "EmbeddedSata", "MapToProperty": "ReadOnly", "MapToValue": true
}, "DependencyFor": "EmbeddedSata", "Type": "Map" } ]
Thanks, Mani
|
|
|
Post by belaamg on Mar 9, 2021 16:43:19 GMT
"DependencyFor" This property shall contain the AttributeName of the attribute whose change triggers the evaluation of this dependency expression. It triggers the evaluation when the user selects, displays, or attempts to change the attribute mentioned in "DependencyFor". in the case above, when the user, for example, selects or changes "EmbeddedSata", we check the "Dependency" and find that its state changes. It is also possible that when "DependencyFor" Dependency is checked, we find that it causes the change of another attribute:
{ "Dependency": { "MapFrom": [ { "MapFromAttribute": "PowerProfile", "MapFromCondition": "EQU", "MapFromProperty": "CurrentValue", "MapFromValue": "MaxPerf" } ], "MapToAttribute": "MinProcIdlePower", "MapToProperty": "CurrentValue", "MapToValue": "NoCStates" }, "DependencyFor": "PowerProfile", "Type": "Map" }
the above example: If ( user selects PowerProfile) { If (PowerProfile.CurrentValue == MaxPerf) { MinProcIdlePower.CurrentValue= NoCStates } }
|
|