Link-Button in ActionableResult Widget

5 views
Skip to first unread message

christia...@student.uni-luebeck.de

unread,
Mar 12, 2018, 8:57:09 AM3/12/18
to Information Workbench Discussions
Hi there,

is it possible to implement a button in the ActionableResult widget that opens a new tab with the provided URL for the button?
I wrote a query where ?Link represents the Link to e.g. https://www.ncbi.nlm.nih.gov/pubmed/?term=Malignant%20neoplasm%20of%20breast
and now I want to just click on the button and want get on this page. I could not find a suitable method in the Help:CodeExecution section.

My current code of the widget looks like this:

| rowActions = {{ 
      {{ clazz = 'com.fluidops.iwb.widget.ActionableResultWidget'
       | method = 'helloWorld'
       | passContext = true
       | render = 'btn'
       | label = 'PubMedLink'
       | args = {{ '?:PubMedLink' | 'someConst' }}
      }} }}
 | selectedRowActions = {{  }}
}}

Regrads
Christian

Andreas Schwarte

unread,
Mar 12, 2018, 12:09:09 PM3/12/18
to iwb-dis...@googlegroups.com

Hi Christian,

 

We have a built-in method for opening a page in a new browser window / tab:

 

{{#widget: com.fluidops.iwb.widget.CodeExecutionWidget

             | label = 'Click Me'

             | render = 'link'

             | clazz = 'com.fluidops.iwb.service.CodeExecution'

             | method = 'linkTo'

             | args = {{ 'http://www.google.de' | true }}

             | passContext = true

             | onFinish = none

       }}

 

The second argument indicates whether the page is opened in the same browser tab or in a new one.

 

Note that this example can be transferred to the ActionableResultWidget.

 

Best,

Andreas

--
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