You are viewing limited content. For full access, please sign in.

Question

Question

Why is the Folder Browser button disabled on my custom activity property

asked on December 6, 2023

I have a property in my custom activity that accepts a Laserfiche folder path. In the Activity Proxy Generator I selected the "Support browsing to a Laserfiche folder" option for this property. The attribute is present in the proxy class file:

[DisplayNameAttribute("Destination Path")]
[SortIndexAttribute(11)]
[TextboxWithFolderBrowserAttribute(true, CustomTokenType.DefaultExcludedFromMenus, CustomTokenType.None, 1, 32767)]
public string DestinationPath
{
  get
  {
    return this.destinationPath;
  }
  set
  {
    if (this.destinationPath != value)
      {
        string old = this.destinationPath;
        this.destinationPath = value;
        this.OnPropertyChanged(DestinationPathPropertyName, old, value);
      }
   }
}

But the button is disabled:

Any suggestions? Thanks!

0 0

Replies

replied on December 8, 2023 Show version history

TextboxWithFolderBrowserAttribute makes the property use the BrowseForFolderEditor property editor, which has an IsEnabled function that determines the state of that button.  The IsEnabled function returns false under two conditions:
1) if the activity does not implement the IConnectionProfile interface
2) if the activity's ConnectionProfile property is null

 

Without seeing the rest of your class and how it's being used in the workflow, I can only guess that either:
1) Your custom activity proxy isn't derived from one of the classes that implements the IConnectionProfile interface (CustomProfileActivityProxy, CustomSingleEntryActivityProxy, CustomDoubleEntryActivityProxy, or CustomCompositeProfileActivityProxy)

Note that this is typically determined by the Include a connection to Laserfiche option in Step 3 of the Activity Proxy Generator (Documentation).

2) You haven't selected a connection profile (the Connection Profile property) for your activity in the workflow yet

0 0
replied on December 9, 2023

Thank you, I changed the class that the custom activity proxy is derived from and it's working now.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.