I was trying to get the text in my Pdf output using watermark, but i can able to achieve it.
This is the tag i am using now and it was provide in some example.
<xsl:variable name="flow_status_code" select="xdoxslt:ifelse(.//FLOW_STATUS_CODE=ENTERED,'ENTERED','CANCELLED')"/>
My requirement is when the Order Flow_status_code is Entered then in the back of the page Entered need to printed when it is cancelled then cancelled need to printed, But now its printing Entered in all the pages.
The variable what i declared is not updating correctly, Can any one please tell me how to change the text,any update need to write to change the variable.
Thanks & Regards
I am facing the same watermark Issue in my scenaruio.
Can you please send me the details to my id firstname.lastname@example.org or
please post the solution how to get the watermark dynamically.........
Thanks in advance
I too am having trouble with displaying watermarks in RTF templates. I can get the variable assignment working (it has to be inside a form field) but how do you display the watermark dynamically? Thanks.
I am having trouble getting the dynamic watermark to work correctly
The code i am using is:
So i basically want to show the text "sample" as a watermark (I will add an if statement later on which I know how to do)
I then in the format -> background -> printed watermark menu, select the "text watermark" radio button
In the text field I enter <?$test?>
This does not work
I have also tried inserting the set variable code in a form field and this does not work. I have also tried <?test?> (instead of <?$test?>
I am running Word 2003
Can you provide any assistance? Thanks in advance - Simon
When you use updateable variables (via use of set_variable function) you can not just use <?$test?>
You have to use the get_variable function to extract/output the variable value.
Use <?xdoxslt:get_variable($_XDOCTX, ‘test’)?>
I have tried inserting the get_variable into the format -> background -> printed watermark menu but it still did not work
I have emailed my RTF template to you at the address email@example.com (if this is not correct, please advise. The email is from Simon Tropeano, Attachment = Watermark.rtf)
The watermark should simply be "tttt"
Could you advise please? Thank you
Ok here is my revised logic
Get environment value from xml
<?xdoxslt:set_variable($_XDOCTX, ‘Environment', /R5643500/Properties/Environment)?>
Initialise Flag to 2
<?xdoxslt:set_variable($_XDOCTX, ‘Flag’, ‘2’)?>
If environment contains PD900, then set a variable called Flag to true(1). No display happens here at all
<?if:contains((xdoxslt:get_variable($_XDOCTX, 'Environment')),'PD900')?> <?xdoxslt:set_variable($_XDOCTX, ‘Flag', ‘1’)?>
If the flag is not true, it means it doesn’t contain PD900 and is therefore a test environment. I place the below line into menu format -> background -> printed watermark - > text watermark -> text field. Then set font and size.
<?if:not(xdoxslt:get_variable($_XDOCTX, 'Flag')) = '1'?>SAMPLE<?end if?>
It seems that it prints the SAMPLE watermark when the above line is both true and false so it looks like it is not evaluating the if properly. Any ideas anyone?