Blob Adapter configuration for multiple Blob filed in one controller

Dear Cot,

Unlimited edition, version 8.5.8, Desktop UI

I would like to store multiple blob field in one controller, filesystem. Does current Blob Adapter configuration can support that? If not, what is the work around.

Please help,

Controller,

PKField
Field1
Field2
Field3
Attachment1
Attachment2
Attachment3
1 person has
this question
+1
Reply
  • Zakaria,

    Unfortunately the default implementation does not explicitly support multiple blob configs in the same controller. I will post a bug report about this issue.

    However, there is a potential workaround. Please create a code file under ~/App_Code with the following contents. The following code is an example.

    namespace MyCompany.Handlers
    {
    public partial class BlobAdapterFactory
    {
    protected override BlobAdapterArguments ParseAdapterConfig(string fieldName, string config)
    {
    switch (fieldName) {
    case "MyFirstBlobField":
    BlobAdapterArguments args = new BlobAdapterArguments();
    // note that name of param is lower cased
    args.Add("storage-system", "file");
    args.Add("path-template", "C:\\Northwind\\{OrderID}");
    return args;
    default:
    return base.ParseAdapterConfig(fieldName, config);

    }
    }
    }
    }
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • I was wonder if this is still the best approach to accomplish this? I have 1 controller that I need to link 2 different blobs to.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated