The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[Solved]Defining Compound Key
aryan_hosseinza
Member Posts: 74 Contributor II
in Help
Hi,
I want to have 2 attributes as IDs (compound key) but when I set roles for 2 Attribute as ids one of them disappears , how can I keep both of them as ids ?
Thanks ,
Arian
I want to have 2 attributes as IDs (compound key) but when I set roles for 2 Attribute as ids one of them disappears , how can I keep both of them as ids ?
Thanks ,
Arian
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.2.008">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.2.008" expanded="true" name="Process">
<process expanded="true" height="631" width="1094">
<operator activated="true" class="generate_nominal_data" compatibility="5.2.008" expanded="true" height="60" name="Generate Nominal Data" width="90" x="45" y="30"/>
<operator activated="true" class="set_role" compatibility="5.2.008" expanded="true" height="76" name="Set Role" width="90" x="246" y="30">
<parameter key="name" value="att1"/>
<parameter key="target_role" value="id"/>
<list key="set_additional_roles">
<parameter key="att2" value="id"/>
</list>
</operator>
<connect from_op="Generate Nominal Data" from_port="output" to_op="Set Role" to_port="example set input"/>
<connect from_op="Set Role" from_port="example set output" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>
0
Answers
the role ID can only be assigned once. But you can define roles on your own. Just type in the name of the role you want.
What are you planning to do with your compound key?
Best,
Nils
Thanks , it works , sorry for the delay ,
Arian
I needed it because I wanted to have a compound key ,
Arian