Menu

Problem with attribute attributeexternalkey

kpelaz
2024-02-27
2024-02-27
  • kpelaz

    kpelaz - 2024-02-27

    Hello, I have a problem. I would like to have the possibility that in the request tickets I can choose the locations that I decide to create. And by adding my attribute I was able to go as far as opening a new ticket but when I put create it gives me this error.
    Did I forget anything?
    Thanks for the help

     
  • kpelaz

    kpelaz - 2024-02-27

    lieu_id is the name I put for the location attribute

     
  • Jedi Star

    Jedi Star - 2024-02-27

    You have to set Location in <target_class> not UserRequest. Do you change Location class? As I know there is no "ref" attribute in Location class.

    <field id="lieu_id" xsi:type="AttributeExternalKey">
        <!--        Your filter            -->
        <filter><![CDATA[SELECT Location]]></filter>
        <dependencies/>
        <sql>lieu_id</sql>
        <target_class>Location</target_class>
        <is_null_allowed>true</is_null_allowed>
        <on_target_delete>DEL_MANUAL</on_target_delete>
    </field>
    <field id="lieu_name" xsi:type="AttributeExternalField">
        <extkey_attcode>lieu_id</extkey_attcode>
        <target_attcode>name</target_attcode>
    </field>
    
     
    • kpelaz

      kpelaz - 2024-02-27

      do you know how to make the location information appear in the additional information of the itop portal user ?

       
  • kpelaz

    kpelaz - 2024-02-27

    thank you very much it helped me

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.