Forum Discussion

angela's avatar
angela
Catalyst II
4 months ago

How can I disable a file picker in a relationship grid?

Hi community,

does anyone know if it´s possible to deactivate a file picker in the relationship grid?  Users can link existing items to the relationship, but the file is linked later. As the file is added automatically, users shall not be able to add/edit the file manually.

For regular relationship properties we can use "Grid Cell Edit Only". But this one doesn´t work for the file picker. Maybe custom Permissions would work, but I wonder if there is a more elegant solution?

 

Any ideas? Thanks for your help!

5 Replies

  • Update: I tried using a custom permission for the relationship. It helps prevent files from being added later in the process, but the first time a user adds a new relationship, they can still add a file before the initial save.

    The file picker is always visible like an invitation to upload something. I would prefer the file picker to be disabled. It has to be possible somehow?!? What do I miss?

     

    Off topic: Thanks, Aras, for creatively re-inventing the forum sorting once again. I know it´s just the unavoidable side effect of a fix. But if you ever wanted to experience what an Aras upgrade for your customers really feels like...this is it! You test and prepare 95% of everything, and the remaining 5% makes sure life never gets boring and ensure you will get all kind of not very helpful jokes from your users. Enjoy the authentic experience!😅

  • What currently works: An onBeforeAdd/Update Method that prevents that users with out the required special permission can upload file items. The needed permission are granted on demand only for my automation. I think this a quite reliable solution to prevent the overall upload of files.

    But if we still could visibly disable the file picker in the UI it would be the cherry on the top!

     

    • angela's avatar
      angela
      Catalyst II

      I right now ended up in follow double combination:

      onAfterAdd/Update prevents server side upload of files (if we don´t come from the right automation context).
      onEditStart prevents that user upload something on client side. It simply throws an error message and resets the file property to nothing.

      The file picker itself is still visible. I was able to make it "disappear", but it´s empty shell was still clickable. So I simply gave up and rely on the two Methods above.

  • Hi Angela,

    I have a couple follow up questions.

    • Do you need this property visible from the relationships grid? Could you get away with simply hiding that column?
    • What version of Innovator are you currently on? I'm going to take a quick poke around a local instance to see if I can track this down, but frontend logic like this tends to be version specific. 

    - Chris

    • angela's avatar
      angela
      Catalyst II

      Didn´t I answer this post? I don´t see my last answer anymore. It contained a screenshot.

      I use 12SP7 and I definitely need the property in the relationship grid. :). The file is added automatically. User shall see the value, but never be able to add/edit it manually. 

      But I already found a solution with a couple of Methods.