lucidworks / connectors-sdk-resources

Fusion Connector SDK documentation, examples and related resources
16 stars 11 forks source link

How to use code/JavaScript fields? #133

Open bookin opened 3 years ago

bookin commented 3 years ago

I want to use JavaScript code in my Datasource/Connector but I am faced with two problems:

@Property(
            name = "someJsCode",
            title = "Some Script",
            description = "Some js function ",
            hints = {UIHints.CODE, UIHints.JAVASCRIPT}
    )
    @SchemaAnnotations.StringSchema
    String beforeRequestJSCode();

Do you have examples/explanations on how to use code fields? Thanks

LucidWorks: 5.4.1 SDK: 4.0.0

bookin commented 3 years ago

2) New fields saves almost only if remove plugin and re-upload (sometimes works with an update, sometimes no)