Tree widget child query navigations appearing to ignore declared repository

11 views
Skip to first unread message

Peter Lawrence

unread,
Oct 13, 2017, 8:08:28 AM10/13/17
to Information Workbench Discussions
I have a tree widget within which I declare a repository.
The tree displays correctly, and whenever I navigate from a root query branch the repository is included on the URL
However the tree has a first level child query, and that has a recursive second level query.
Whenever I try to navigate from one of these branches the URL does not include the &repository=

Is there a workaround to include the repository, the default repository being irrelevant in this case? Im using version 8.0.1.3211

thanks

Andreas Schwarte

unread,
Oct 16, 2017, 2:44:49 AM10/16/17
to iwb-dis...@googlegroups.com

Hello Peter,

 

looks like you have stumbled into a bug, I also tracked this internally for improvement in one of the next versions.

 

Unfortunately there is no out-of-box workaround, however, you can apply a custom value resolver [1] (requires minimal coding, possibly as groovy script).

 

The following snippet shows exactly what you want for the “config” repo, you can replace the repository ID in the code to your application configuration.

 

static class DefaultWithConfigRepoValueResolver extends ValueResolver

{

public DefaultWithConfigRepoValueResolver()

                {

                               super(DEFAULT_CONFIGREPOSITORY);

                }

 

                @Override

                public String handle(Value value)

                {

                               final String configRepoId = PlatformRepositoryResolver.getConfigRepositoryName();

                               return LinkBuilder.createDefault(value).withLabelRepository(configRepoId).withRepository(configRepoId).build();

                }

}

 

Hope this helps,

Andreas

 

 

[1] http://help.fluidops.com/resource/Help:ValueResolverExtensions#Value_resolver_extensions

--
You received this message because you are subscribed to the Google Groups "Information Workbench Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iwb-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages