PSDS Labeling and attributes

Hi

we are customising our Design Series XM and we want to have the attribute Spec automatically selected by the program according to the process system. For that we wrote in the pipattr_EDS the following:

PIPE,XXXX,,,,\
 SPEC,\
  "Piping class:",31,"#",\
     "QUERY DISTINCT JobSpec using system,contract order by 1",\
 Y,,USER

Where JobSpec is the table name and system and contract are the names of the table fields and at the same time the name of the attributes given before. XXXX is the name of the piping component.( such as PIPE; PELB; PELX, etc.)

We have the problem that when we change the system the spec is not automatically changed in the attribute  window allthough only one value results from the query. The window shows the old value. In order to update it we have to click on the value and select the only one possibility. If we do not so the old value remains and you have chosen the wrong speb.

W4e have set the value of the variable DS_EDIT_ATTRIBUTE_AUTOMATICALLY_SET_DEPENDENT to 1, but it also did not work.

In order to avoid that we changed the property override_allowed from Y to N. In this case the attribute Spec is automatically changed when we change the system, but when we select the command "place pipe on IL" we receive an error message which makes reference to a rule. No element is placed on the IL.

Can anyboby help us with this problem and tell us what we are doing wrong?

 

Thanks

Leon