How to set task attribute?

Former Member
Former Member

Hello,

 

My question is the following:

  • We are getting files from a DB which have defined values such as product name
  • When we are pulling those files, we are getting the values associated

I know there is an auto action (Set Task Attribute) that can do that but I do not know what to put in the two fields from this auto action. Any idea?

 

Screenshot of Trados Studio's Set Task Attribute window with empty fields for Task Attribute Name and Attribute Value.



Generated Image Alt-Text
[edited by: Trados AI at 3:45 AM (GMT 0) on 5 Mar 2024]
emoji
Parents
  • Hi Francois,

    This automatic action is just simply to set any static value to a custom task attribute.
    For example, if you specify as below,
    Task Attribute Name: MyTaskAtt
    Attribute Value: ABC
    this AA sets the value ABC to the current task's attribute MyTaskAtt.

    If you want to set any value dynamically, like a product name from a database or a file content, the AA should be customized.

    Best,
    Taiki
Reply
  • Hi Francois,

    This automatic action is just simply to set any static value to a custom task attribute.
    For example, if you specify as below,
    Task Attribute Name: MyTaskAtt
    Attribute Value: ABC
    this AA sets the value ABC to the current task's attribute MyTaskAtt.

    If you want to set any value dynamically, like a product name from a database or a file content, the AA should be customized.

    Best,
    Taiki
Children
  • Former Member
    0 Former Member in reply to Taiki Takada
    Thanks Taiki, we want this to be dynamically filled by a value from a database so we could use that value in one of our report. The only think I have no clue about is how to link both the value from the database (which is pulled by an auto action) and the data/value we should put into the field so it calls the value from the auto action...
  • Hi Francois,

    As Taiki mentioned, you will need a custom auto action for this purpose. Basically, this custom auto action can read your database file to get the value, then set it to the Task Attribute that you would like the value to be. The "Set Task Attribute" auto action can be used as a baseline of the custom auto action. You can check out the WS SDK if you have an engineer internally. If you need help developing this custom auto action, please feel free to reach out.

    Daniel