D2 Smart View SDK Challenge (Dragon's Den)
This category is meant for collaboration for everyone who want to discuss the D2 Smart View SDK. It also is a location for discussions for the current SDK hack-a-thon or challenge for Partners. In 2024, we will include customers in this challenge. But the discussions are for everyone.
-
How to identify the menu and menu items to map while adding a new custom menu
So in order to find the reference between the reference between the menu ids used in adding the custom menus through plugin and the default OOTB D2 menus.. Please do find the the below mapping as PDF
-
Retrieve the widget config information without using shortcut tile
Using the new feature from the hotfix, I am able to declare a custom widget type, params. Modify it in D2-config, and retrieve the widget config information using the "RestResources.getWigetConfigs()". However it needs to be a shortcut tile and it has to be in the Smartview landing page. Is there a way to retrieve the…
-
How to modify the D2-REST controller boilerplate?
Can you give me an example that will return a string 'Helloworld'? I keep getting 500 error when modifying. Eventually the goal is to call D2 rest endpoint, and the code will call another api inside the rest code and return json.
-
Is there a d2-apis that allow us run a method?
Is there a d2-api that allow us run a method?
-
ResourceViewBinding
(this was a question sent into the SDK email alias for D2 Smart View SDK partner challenge. It might help others, so I am reposting) … I was wondering if you could explain me a bit how to use the @ResourceViewBinding. I understand the concept of it. (Deserializing the return object to the JSON structure required ?) But I…
-
23.2 hotfix 2 question - Smartview is not starting after HF2
(this was a question sent into the SDK email alias for D2 Smart View SDK partner challenge. It might help others, so I am reposting) Smartview is not starting any more due to a java.lang.UnsupportedOperationException: Unknown server method name: IsSuperUser error any advice?
-
Custom shortcut type in D2
(this was a question sent into the SDK email alias for D2 Smart View SDK partner challenge. It might help others, so I am reposting) I am trying to add a custom tile to the SmartView landing page. I’m following the explanation in the documentation (/sdk/general/howto/1_03_custom.widget.type) I created a…
-
mandatory REST Services return
(this was a question sent into the SDK email alias for D2 Smart View SDK partner challenge. It might help others, so I am reposting) What is the minimal the REST services need to return for D2SV UI component to work? Let me explain a bit futher. I want to trigger a run of a report. That returns the basic information: {…
-
D2FS services extension
Hi there, I'm not sure if that qualifies as a SDK challenge question but since it's in my Smartview plugin, I thought I'd give it a try…. In my plugin, I extend the Destry service I declared my class as: public class D2DestroyServicePlugin extends D2DestroyService implements ID2fsPlugin In the destroy method, I do some…
-
Adding own functionality to the header
We would like to add own functionality to the header. Currently it´s possible to access favorites by the header. Is there any way to add a custom functionality by the D2SV SDK which is accessible by the header?
-
Only one plugin for U4Landing.properties will work
For example if i have plugin1 and plugin2, in plugin1 i declare shortcut_types=custom1, in plugin2 i declare shortcut_types=custom2,custom3 If i add only plugin1 to D2-config, i can make a shortcut with type custom1. But if i add both plugin1 and plugin2 into D2-config, where plugin2 is added at last, only the type custom2…
-
Confusing menu handling
I'm confused with the menu handling in a Smartview plugin (generated with the SDK). Here is my config: in my ..\src\main\resources\xml\unitymenu\MenuContextDelta.xml file, I added: <insert position-before="menuToolsMassUpdate"> <menuitem id="myMenu" src="MyMenu" label="My Menu" /> </insert> Then I created…
-
Junit Test example
Hi, Using the WorkspaceAssistant, i added REST controller and boiler plate code to the project. Controller, DFC, model and view where created. Can you provide an example how to run JUNIT tests (junit 4 or 5) to test the DFC methods, providing a session? Kind Regards, Karel
-
Syntax error cause by automatic parentheses removal
Hi, I'm encountering an issue when I integrate the main.js file into my plugin and attempt to debug using D2-Smartview Debug mode. The following is the error: Uncaught SyntaxError: Unexpected token '??' (at main.js:4:20) When i check the source from Chrome F12, I've noticed the parentheses have disappear. This removal of…
-
Required knowledge for D2SV
This question was recently asked: Required knowledge for D2SV Answer (this was from the partner D2 SV SDK Challenge, going on thru Oct 2023):
-
Looking for ways to use folder and document metadata in new dialogs
If a user imports a document via D2 Smart View client, it is possible to designate a destination folder. We want to access and make use of the following metadata in the new properties dialog: Metadata of all super folders (e.g. Names, Project Number, Area, Category, Building, etc.) Metadata of the imported document if…
-
How to load custom perspective with custom menu context?
For example if you click properties on a document, the page will go to url '…/nodes/id/metadata/navigator'. on the top of the screen it also shows the correct breadcrumb Is there a way we can click on custom menu on a document, and the page will go to '…/nodes/id/custom'.
-
How we can make a widget is configurable
Hi, Like perpspectivemgr in OpenText Content server, is there any way we can configure the widget, so that we can use the same widget in different places using it's configuration. If a widget is using a REST Endpoint, that will change customer to customer, how we can pass it in smart view sdk. Regards Sagar
-
Is there a way to extend existing D2-Smartview "widgets"
One of the limitation with D2 classic widgets was that we couldn't extend the existing standard widgets to meet some specific requirements - so we would have to do something fully custom, making it more complex (and less integrated) For example, we might want to extend the Doclist to add additional information (graphics…
-
Is there a way to extend or replace the landing page?
We would like the ability to extend or override the landing page, for example we might want to have something more than just a list of tiles and shortcuts, or we might want to open directly in a custom perspective (maybe depending on the user profile). It might also be interesting for us to allow the user to switch to a…