camac / Swiper

Swiper Metadata Filter for Domino Designer Source Control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting errors in database after using swiper

xpagedeveloper opened this issue · comments

Javascript needs a value is showing up on forms and subforms in the database after filtering using swiper.
Anybody seen this?
image

Hi @xpagedeveloper,
It may be similar problem to #20. Could you please post a before and after of the DXL?

My screen shots were taken from Notepad++ where there is a clear representation of line spacing and carriage returns.

I have not had time to try what I suggested to @camac given the procedure for setting up eclipse to dev and test a client plugin I found very complex. With very little online examples I got it working once under FP6, but then it broke under FP8, and seems to need to be re-done for every FP release.

Have you also seen the problems I'm refering to that it starts to export and right after reimport the code back due to the fact that swiper has filtered the code?

I found that this code
<code event='jsheader' for='web'><javascript> </javascript></code>

becomes this after using swiper
<code event="jsheader" for="web"> <javascript/> </code>

It seams like the designer can't import that

@xpagedeveloper, if you use the option of custom xsl file and add the line
<xsl:preserve-space elements="n:javascript"/>
imediately after the strip-space the specific problem will be resolved. Else don't have a space in the javascript element.

@sladeswan Do you have an example of a custom xsl file

I have used the default from within the Swiper repo itself. The “swipe” is just a xsl transform on the dxl. Please note there are are other issues as noted in #20 that need to be addressed for traditional notes design elements.