bug dynamicklink task not yet accepted

Certified Senior Developer

Hello,

I have seen that if you use a dynamiclinks in a form, users can interact with them even if a form is assigned to a group and the user doesn't has accepeted it.

I think that this is a major bug because dynamic link is used also in gridlayout to add/remove rows.

Is Appian working to solve this bug or has someone find a workaround?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Vinay Katta

    Yes you are right, it works.

    I have a similar use case where the bug still remain (if you use an a!deleteFromDataStoreEntities or a!writetoDatastoreEntity in the a!save of a dynamicLink) but I will open another discussion

  • Hi,

    I just ran into this same issue as you, where a dynamic link is active before a task is accepted and was planning to use a a!writeToDataStoreEntity.   I suppose I could refactor my design to persist the data differently however wanted to leverage same user interface expression in other contexts which don't need the extra complexity.

    Curios if you had entered an Appian support ticker for this?

  • 0
    Certified Lead Developer
    in reply to Robert Travis

    I believe the solution to this use case is rather simple.  Create a rule input i.e. ri!taskOwner, and in the user input task configuration, configure that input to accept tp!owner, which will not populate until a user accepts the task.

    Then, in the local variables definition, set up a chain of variables (depending on how robust you need/want it to be) - i would suggest starting with local!isAccepted: not(isnull(ri!taskOwner)), followed at least by local!enableDynamicLinks: and( local!isAccepted, local!otherConditions /* etc */ ), and then for all dynamic links on the form, use (or at least include) local!enableDynamicLinks to set whether the links show up at all.