# How to use NJX:DOCUMENTLINK

**URL:** <https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [July 3, 2015, 3:03pm UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635 "2015-07-03T15:03:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hermann\_Platzer](https://avatars.discourse-cdn.com/v4/letter/h/a8b319/32.png) [@Hermann\_Platzer](https://techcommunity.softwareag.com/u/Hermann_Platzer)\
**Post date:** [July 3, 2015, 3:03pm UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635/1 "2015-07-03T15:03:10Z")

</div>

Hi,

I tried to use NJX:DOCUMENTLINK for a dynamic created link which refers to a http-address  
but unfortunately it provides no clickable link.  
I’ve had also a look at METHODLINK but this is only a “button”

Can you give me a short example how NJX:DOCUMENTLINK should work

There is no examle in the demos, isn’t it?

Thanks and best regards,  
Hermann

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [July 6, 2015, 7:27am UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635/2 "2015-07-06T07:27:43Z")

</div>

Hi Hermann,

there is an example in the njxdemos:

Page layout: naturaldocument.xml  
Natural programm: NATDOC-P

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Hermann\_Platzer](https://avatars.discourse-cdn.com/v4/letter/h/a8b319/32.png) [@Hermann\_Platzer](https://techcommunity.softwareag.com/u/Hermann_Platzer)\
**Post date:** [July 6, 2015, 8:48am UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635/3 "2015-07-06T08:48:23Z")

</div>

Hi Christine,

I tried it but it doesn’t work - just for a test I filled the two variables as follows:

NJX\_SAMLINKPROP := ‘[http://news.orf.at](http://news.orf.at)’  
NJX\_SAMVALUEPROP := ‘Many news’

But neither ‘Many news’ is underlined and clickable nor any other reaction 😢

BR,  
Hermann

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [July 7, 2015, 6:35am UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635/4 "2015-07-07T06:35:27Z")

</div>

Hi Hermann,

the DOCUMENTLINK supports to render a link to NJX:OBJECT data.  
For links like ‘[http://news.orf.at](http://news.orf.at)’, which point to some general web site, the DOCUMENTLINK control is not the right control.

Here are some suggestions to integrate your link:

Solution 1) Use a METHODLINK control. When the event is triggered, open a browser popup with your [http://news.orf.at](http://news.orf.at).

Solution 2) Use a METHODLINK control and a SUBPAGE control - maybe hidden at the beginning - on the same page. When clicking on the link, apply your [http://news.orf.at](http://news.orf.at) to the valueprop field of the SUBPAGE control.

Solution 3) Use an IHTML control. I think you already experienced with this?

It depends what you want do do: Do you want to just show the web site and continue with your NJX application? Or do you want to navigate away from your NJX application, which means disconnecting from Natural?

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Hermann\_Platzer](https://avatars.discourse-cdn.com/v4/letter/h/a8b319/32.png) [@Hermann\_Platzer](https://techcommunity.softwareag.com/u/Hermann_Platzer)\
**Post date:** [July 7, 2015, 1:55pm UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635/5 "2015-07-07T13:55:35Z")

</div>

Hi Christine,

thanks for your answers - the documentation for DOCUMENTLINK sounds like it could work 🙂  
but anyway - I will use Solution 3) IHTML.

BR,  
Hermann

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:33pm UTC](https://techcommunity.softwareag.com/t/how-to-use-njx-documentlink/182635/6 "2021-04-02T15:33:44Z")

</div>


