‎2009 Feb 11 2:15 PM
Hi Friends,
Regarding object dependencies i am facing one problem. My requirement is i have created one class of
type 300(variant) and inside of that class defined two characteristics one is car family and another one
car model. And under car family characteristic i have defined the values 'A' and 'B' and under car model
characteristic i have defined the values '1', '2', '3', '4' ('1' and '2' are models related to family A and '3' is the model related to family B). My requirement is while creating material i will choose the class which i created and in the classification view then two characteristics will appear one is family and another one is model. And first i will press the F4 button on family characteristic and it is showing the values 'A' and 'B'. And when i click F4 on model characteristic it is showing all the entries which i defined like '1', '2', '3', '4'. But i want to restrict the entries as per model here only '1' and '2' are related to family 'A' so while choosing F4 i want to allow only two models.
For this i have created dependency net and attached to configure material '100' and i am using the same
material for testing. The below code i have written in the dependency editor.
OBJECTS : ZTEST IS_A (300) ZTEST where A = ZTEST_FAMILY; B = ZTEST_MODEL
RESTRICTIONS:
B IN ( '1', '2' ) IF A = 'A',
B = '3' IF A = 'B'
INFERENCES:
B
In above ZTEST is the class i have defined, ZTEST_FAMILY and ZTEST_MODEL are the characteristics
for family and model.
Please let me know where is the problem? Any thanks will be highly appreciated.
Thanks a lot in advance.
‎2009 Feb 11 5:00 PM
Forget the Constraint, just use a Precondition on the Model-values 1 and 2
$Self.Model_Family = 'A'
Same thing for values 3 and 4 ... Model_Family = 'B'
A lot simpler and easier to trace for debuggin
‎2009 Feb 12 3:57 AM
Hi Hooper,
Thanks for your reply, but i have used precondition is already at characteristic level but it's not working. One more doubt you mentioned $self.model_family but it should be $self.ztest_family, please correct me if i am wrong, In ct04 for characteristic ztest_model already i have tried this option, but its not working. How can i debug?
Thanks a lot.