<API Request> Batch Task API: Please provide IProject and TaskFiles for SettingsGroup

AbstractFileLevelAutomaticTask

and

AbstractFileContentProcessingAutomaticTask

both provide Project and TaskFiles properties, but I want to access the TaskFiles Property on my settings page,

so I would like to have this property exposed on the SettingsGroup class.


Use case: I want to dynamically generate settings based on the selected files.

Parents
  • SettingsGroup class is the foundation class for working with settings in Studio. Being the foundation also means that the class itself is agnostic to any higher level concepts like project, files, translation memories or terminology. Based on this adding the 2 properties suggested by you the class will become project specific which is not good for places where it's used for different things. The solution is to either work directly with it or to inherit and create your custom typed settings (actually this is exactly what we did in our sample app for the batch task api). 

    If you need project information in your settings page you can use the integration api to obtain the current project from there the files that are part of the project. The implement your custom settings that would hold the information your want.

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

  • Hi Romulus,

    Thanks for the answer. I've already inherited from SettingsGroup and created my custom settings.
    I just need the TaskFiles to generate document structure information (from the sdlxliff) that can be selected in my settings page.
    I will try acquiring a ProjectsController and getting the information from there. I always appreciate the help!
Reply Children