How to use NJX:DOCUMENTLINK

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

Hi Hermann,

there is an example in the njxdemos:

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

Best Regards,
Christine

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
NJX_SAMVALUEPROP := ‘Many news’

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

BR,
Hermann

Hi Hermann,

the DOCUMENTLINK supports to render a link to NJX:OBJECT data.
For links like ‘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.

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

Hi Christine,

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

BR,
Hermann