Hi,I have a simple question. How can I get handle to design element Layer in Lotus Notes client. By Lotus Script, Javascript, or whatever.
I need programatically change its properties.
Thanks in advance.
Jiri Krakora
Hi,I have a simple question. How can I get handle to design element Layer in Lotus Notes client. By Lotus Script, Javascript, or whatever.
I need programatically change its properties.
Thanks in advance.
Jiri Krakora
Subject: Layers handling
You have two basic choices, unless whatever includes C and the C API. The first choices is to use DXL and export the contents, parse the XML, makes changes you want, and then re-import the DXL. There are examples of DXL processing in this forum, although probably not specific to layers, so you will need to do some investigation and testing to find what you need.
If that sounds too complex, or if you want to make changes “in place”, you would need to try out a third party product such as our Midas Rich Text LSX, which would let you change any attributes with code such as:
’ *** Assuming you have named the layer and layer_id holds the name
Set rtchunk = rtitem.Everything.FindNamedChunk(True, “Layer”, layer_id, “Exact”)
Call rtchunk.SetTargetProperties(“Layer”, |ZIndex=“|+Cstr(zindex)+|” BackgroundImage=“ActiveContent.jpg”|)
or if you just want to step through the layers one by one
’ *** Assuming you just want to step through the layers
Set rtchunk = rtitem.DefineChunk(“Layer 1”)
While rtchunk.Exists
If rtchunk.GetTargetProperties(“Layer”, “ZIndex”) = “0” Then
Call rtchunk.SetTargetProperties("Layer", |Top="30px"|)
End If
rtchunk.GetNextTarget
Wend
Subject: RE: Layers handling
Thanks.DXL seems to do the job.
Subject: *Glad to hear it. DXL is a very powerful addition to Notes.