[Solved]Defining Compound Key
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>
Tagged:
0
Answers
-
Hi Arian,
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,
Nils0 -
Hi Nils ,
Thanks , it works , sorry for the delay ,
Arian0 -
Oh , I forgot to answer your question ,
I needed it because I wanted to have a compound key ,
Arian0