OA_MEDIA variable in rtf doc

Just wondering why won't the OA_MEDIA not resolve in the rtf doc, like this
<?import: ${OA_MEDIA}/TEMPLATE/template_header.rtf?>
Here I am hoping that the OA_MEDIA would get replaced with the web address, but its not. What am I doing wrong?

Just wondering is the OA_MEDIA variable available in the rtf doc.
If so how can I access it?

Similar Messages

  • Variables in RTF template?

    Variables in RTF template?
    I am battling with variables in RTF template.
    (1) I need to declare and set a variable.
    (2) I like to print it out - check for value
    (3) then I need to make some conditional formatting IF-THEN-ELSE depending on variable value
    THIS DON'T WORK AT ALL (1,2,3):
    (1) declare a variable
    <xsl:variable name="MYCOUNT" select="count(LINE_LOCATIONS/LINE_LOCATIONS_ROW/SHIPMENT_NUM)"/>
    (2) print-out-a-value
    <xsl:value-of select="$MYCOUNT"/>
    (3) IF-THEN-ELSE statement
    <xsl:if test="$MYCOUNT > 1"><xsl:value-of select="concat('mo','re')"/></xsl:if>
    <?if:MYCOUNT="1"?><xsl:value-of select="concat('o','ne')"/><?end if?>
    THIS WORK (1,2) BUT (3) don't work in any way !!!
    (1) declare a variable
    <?xdoxslt:set_variable($_XDOCTX, MYCOUNT, count(LINE_LOCATIONS/LINE_LOCATIONS_ROW/SHIPMENT_NUM))?>
    (2) print-out-a-value
    <?xdoxslt:get_variable($_XDOCTX, MYCOUNT)?>
    (3) IF-THEN-ELSE statement
    <?xdofx:if MYCOUNT=1 then 'one' else 'more' end if?>
    <?xdofx:if $MYCOUNT=1 then 'one' else 'more' end if?>
    <?xdofx:if xdoxslt:get_variable($_XDOCTX, MYCOUNT)=1 then 'one' else 'more' end if?>
    Can someone help me haw to compare a value of variable with constant or another variable or node-value ?
    thx.

    <?xdoxslt:set_variable($_XDOCTX, ‘COUNT’,’YY’)?>
    <?xdoxslt:get_variable($_XDOCTX, ‘COUNT’)?>
    <?if:(xdoxslt:get_variable($_XDOCTX, ’COUNT’)) = ‘YY’?> YEss<?end if?>
    <?if:(xdoxslt:get_variable($_XDOCTX, ‘COUNT’)) = ‘HH’?> Helooo<?end if?>
    <?xdoxslt:set_variable($_XDOCTX, ’YY’, 15)?>
    <?xdoxslt:get_variable($_XDOCTX, ’YY’)?>
    <?if: (xdoxslt:get_variable($_XDOCTX, ’YY’))=15?>Yes Yes<?end if?>
    Variable name is 'COUNT'

  • How to download and convert RTF/DOC file in DMS into PDF file

    Hello.
    We're on ECC6.0. We have a requirement to get the *.doc or *.rtf file checked in DMS, convert it to pdf format and download it as *.pdf file. The document data is stored in DRAO-ORBLK (LRAW data type). Has anyone programmatically done this? What is the process to achieve this? I've read in the forum that you should first convert RTF(.doc) data to OTF format using CONVERT_RTF_TO_ITF and then you will get the script format from rtf data. Generate the spool using the script data. Convert the spool to PDF using CONVERT_OTFSPOOLJOB_2_PDF. However, the fm CONVERT_RTF_TO_ITF uses RAW data type. There's also fm CONVERT_OTF_2_PDF but I don't know how to implement this for my purpose.
    Also, if Adobe Distiller is installed on the SAP application server, can it be used from an ABAP pgm?
    Thanks in advance for your inputs.

    Hi Maria,
    I realize this a rather old post, but was wondering if you managed to do this as I am having a similar requirement. Appreciate if you could share any solution or findings.
    Thanks,
    Lashan

  • Multiply 2 variables in RTF templates

    Hi,
    I am trying to multiply a variable with a calculated field-->
    <?xdoxslt:get_variable($_XDOCTX,'baseline')*(xdoxslt:maximum(current-group/TRGT_RATIO))?>
    where "Baseline"=xdoxslt:div(sum(current-group()/NMRTR),sum(currnet-group()/DNMTR))
    But this gives me an error.
    Please let me know what is wrong in here............................
    Thanks
    Edited by: 883026 on Nov 23, 2011 7:10 AM

    I am trying to subtract dates in an RTF template
    <?xdofx:if substr(EXP1_3,1,10) - substr(INVOICE_DT,1,10) >= 91 then (PYMNT_GROSS_AMT) end if?>
    I don't get any error messages or anything, but it is inconsistent at best,
    My EXP1_3 value is 05/31/2012 and one of my INVOICE_DT values is 04/12/2012,, in which case this statement should NOT be true and it should not return the value of PYMNT_GROSS_AMT,,but it does ?

  • Subtrating variables in RTF templates

    Hi,
    I am trying to subtract two variables, but it seems something is wrong.Please help me out.
    Here's my code:
    <?choose:?>
    <?when:xdoxslt:get_variable($_XDOCTX,'Var2')=(xdoxslt:get_variable($_XDOCTX,'Var1'))?>-<?end when?>
    <?otherwise:?><?xdoxslt:div((xdoxslt:get_variable($_XDOCTX,'Var2')-xdoxslt:get_variable($_XDOCTX,'Var1')),xdoxslt:get_variable($_XDOCTX,'Var1'))?><?end otherwise?>
    <?end choose?>

    I am trying to subtract dates in an RTF template
    <?xdofx:if substr(EXP1_3,1,10) - substr(INVOICE_DT,1,10) >= 91 then (PYMNT_GROSS_AMT) end if?>
    I don't get any error messages or anything, but it is inconsistent at best,
    My EXP1_3 value is 05/31/2012 and one of my INVOICE_DT values is 04/12/2012,, in which case this statement should NOT be true and it should not return the value of PYMNT_GROSS_AMT,,but it does ?

  • How Can I apply a RTF Function on a variable in RTF Template in XML Publisher Report

    Hi Everyone,
    I am developing a RTF Template of XML Publisher Report, I have a variable lv_counter which I can declare using below syntax
    <?xdoxslt: set_variable($_XDOCTX, 'lv_counter',0)?>
    I can access this variable in the template as <?xdoxslt: get_variable($_XDOCTX,'lv_counter')?>
    My need is to print the variable in words in the RTF Template. I am using <?xdofx: to_check_number(xdoxslt: get_variable($_XDOCTX,'lv_counter'))?>
    But this is not working. any help will be appreciated thanks in advance
    The XML Publisher Desktop version which I am using is 10.1.3.3.0
    Please let me know where I can post this question, if this is not the appropriate discussion forum.
    Thanks in Advance.

    Hi,
    Can you elaborate your requirement little bit clear with some example like what is your expected output.
    And you can post you BI related question in the BI publisher forum
    https://forums.oracle.com/community/developer/english/business_intelligence/business_intelligence_foundation/bi_publisher/content?filterID=contentstatus[published]~objecttype~objecttype[thread]
    Regards
    Sri

  • Inserting image in rtf doc

    Hi all,
    i am trying to make my own rtf editor , I've read the most of the toppics in this forum on this issue,
    but I'm stucked on inserting the hex Data into the document.
    Do I actually need to override ImageView?
    I found a method in RTFReader (instantiated from read(InputStream in,...)) handleBinaryBlob(byte[] data).
    RTFReader is private, so I cannot override this method. Should I override the read method in
    RTFEditorKit and then call the read method in DefaultEditorKit, or I could just use the doc.insertString(...) with the binary data inside of the overriden RTFEditorKit read method? I will lose the functionallity of the RTFParser this way.
    I know I should override read and write methods but how?
    So could somebody help me on this?
    The code for creating the binary data from buffered image and creating the Icon from StanislavL follows:
    ImageIcon icon=(ImageIcon)StyleConstants.getIcon(attr);
    if (icon!=null) {
    int w=StyleConstants.getIcon(attr).getIconWidth();
    int h=StyleConstants.getIcon(attr).getIconHeight();
    ByteArrayOutputStream os=new ByteArrayOutputStream();
    PNGCodec p=new PNGCodec();
    ImageEncoder pe=p.createImageEncoder("PNG",os,null);
    BufferedImage bi=new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
    bi.getGraphics().drawImage(icon.getImage(),0,0,null);
    pe.encode(bi);
    byte[] ba=os.toByteArray();
    int len=ba.length,i;
    StringBuffer sb=new StringBuffer(len*2);
    for (i=0;i<len;i++) {
    String sByte=Integer.toHexString((int)ba & 0xFF);
    if (sByte.length()<2)
    sb.append('0'+sByte);
    else
    sb.append(sByte);
    String s=sb.toString();
    out.write("{\\pict\\pngblip ");
    out.write(s);
    out.write("}");
    extracting image
    String content; //<- image representation
    int len=content.length();
    //converts to binary representation
    byte[] buf=new byte[len/2];
    for (int j=0; j<len/2 ;j++) {
    String c1=content.substring(j*2,j*2+1);
    String c2=content.substring(j*2+1,j*2+2);
    byte b1=Byte.parseByte(c1,16);
    byte b2=Byte.parseByte(c2,16);
    buf[j]=(byte)(b1*16+b2);
    //creates image from binary
    Image img = Toolkit.getDefaultToolkit().createImage(buf);
    ImageIcon icon=new ImageIcon();
    icon.setImage(img);
    if ((icon.getIconHeight()<0) || (icon.getIconWidth()<0))
    return;
    MutableAttributeSet attr=new SimpleAttributeSet();
    StyleConstants.setIcon(attr,icon);
    //inserts image in the document
    document.insertString(currentOffset," ",attr);
    currentOffset++;
    I guess these two functions must be implied into the overriden EditKit write and read methods.
    Could somebody give me a start idea?
    regards
    rumpi

    Thanks for reply.
    It did't helped me a lot or I'dont really understand your idea.
    What you say in your postings is build my own reader and writer.
    For example to open a rtf file in my jeditorpane I must read from
    the input stream each byte and reimplementing AbstractFilter, RTFParser and RTFReader
    I could get all headers like \par or \pic and then rtfDoc.insertString(pos, "the label content", attr) with the attributes extracted from header.
    When that is the only way I am asking myself what are the swing people for?!?!
    I'll try to do that myself, so I'm not asking for code but I would appreciate
    some detailed info about it. For example when I dont use RTFReader anymore
    I loose everything what I've got untill now. So I should read every byte opening a file
    and check like in RTFParser if the first character is "\", then the next couple of bytes
    untill I get the header. Then I should check which labels(text) is this header for(until the next header), so
    I could insert a string with the according attribute set? For Icon when I get the
    \pic header I read the byte sequence and build the picture just like you wrote.
    My Editor is an applet so I've hoped I wouldn't send too much code to the client
    so reimplementing RTFParser, Reader... would slow it down, but whatever.
    Thats really a lot of work only because the given classes are not extendable, grrrr.
    Viravan, thanks for the fast reply , but like I said , I 've already read all relevant
    postings in this forum and didnt found something really helpful. I already read all
    tutorials and articles from sun about this issue and I still have the feeling I'm a freshman
    in this area.
    I'm still angry with the swing team about it, this bug is noted since 2001 I think. grrr
    regards
    rumpi

  • How to assign a calculation to a variable in RTF file ?

    Hello,
    I am performing a series of  if-end if statements to calculate the "Days_Late" --
    <?if:DAYS_LATE < 0?> <?xdoxslt:round((sum(if:DAYS_LATE ) div count(PAYMENT)),0)?> <?end if?>
    <?if:DAYS_LATE = 0?>***<?end if?>
    <?if:DAYS_LATE >= 0?> <?xdoxslt:round((sum(if:DAYS_LATE ) div count(PAYMENT)),0)?><?end if?>
    I would like to assign the above code to a variable and use that variable in the following logic <?xdoxslt:ifelse(VARIABLE>0,round(VARIABLE),-1*round(xdoxslt:abs(VARIABLE)))?>
    to perform a round_up function ("Symmetric" rounding). Oracle doesn't have a function for this yet ..
    How can I make this assignment directly in the .rtf file ?
    Thanks,
    ATP

    Hello all,
    I did not want to change the data (sql).
    Also, I did try to make it run using the xdoxslt:set_variable () function and xdoxslt:get_variable() function. However, this was not required and was making it more complex than required.
    It is now solved using a formula for symmetric rounding (rounding away from 0) :
    <?xdoxslt:ifelse(VARIABLE),-1*round(xdoxslt:abs(VARIABLE))?>
    I substituted the VARIABLE with my calculation : (sum(DAYS_LATE ) div count(PAYMENT))
    Thanks a lot for the answers and offers to help

  • WebI report in rtf/doc format using BO XI R3

    Hi,
       Is it possible to generate webi/deski reports in rtf/word doc using Report Engine SDK(Java). I am able to generate pdf and xls using OutputFormatType.PDF and  OutputFormatType.XLS like below.
    binaryView = (BinaryView)documentInstance.getView(OutputFormatType.XLS);
    binaryView = (BinaryView)documentInstance.getView(OutputFormatType.PDF);
    I think i can generate XML too using the above method. But i would like to generate word/rtf and if possible TXT too.
       I am using BO XI 3.1.
    Thanks in advance
    Shameer
    Edited by: Shameertaj on May 18, 2009 8:26 AM
    Edited by: Shameertaj on May 18, 2009 8:30 AM

    Hi Shameer,
    Unfortunately, RTF or Word is not a valid format with WebI or DeskI documents.
    Please kindly refer to the SupportedViews Interface documentation of the API Reference for the Report Engine Java SDK.
    The Report Engine Java SDK API Reference for XI 3.x is can be downloaded from the following link:
    [http://help.sap.com/businessobject/product_guides/boexir31/en/resdk_java_apiRef_12_en.zip]
    Hope this helps.
    Regards,
    Dan

  • Convert SmartForm to RTF/DOC

    Hello,
    I am wondering if it is possible to convert a smartform to RTF or Doc. I can convert to PDF just fine, but i need it in RTF or DOC
    Thanks.
    Regards,
    Leandro Fonseca

    Thanks for the reply.
    But still, i am not able to get the smartform in ITF format, only OTF, any help?
    So for I have only seen solutions to create PDF documents, and this, I already can do. I need to create a RTF or DOC file, in order for the smarform be editable with text after it is downloaded.
    Regards,
    Leandro Fonseca
    Edited by: Leandro Fonseca on Sep 15, 2008 6:46 PM

  • Export / save a page as pdf / rtf / doc format

    hi all,
    i've created a page that looks similar to a resume format. i used different pl/sql regions and used the htp.p package to create the page like in html format. now i need to have an option to export / save the page as rdf or doc or rtf format. is it possible to do this?
    thanks.
    allen

    Have a look at this excel-export, http://htmldb.oracle.com/pls/otn/f?p=31517:108:1573041583318845:::RP,:: by Denes Kubicek.
    Maybe that can inspire you for you needs. I don't think pdf-export is possible this way though.
    Good luck.
    /Daniel

  • Easy markup language for txt to odt/rtf/doc conversion

    Hi everyone,
    I write prose for a living and so far have only used word processors like Open Office and Abiword. I don't need about 90% of the features these programs offer, so I've started playing around with Vim, which is a lot of fun and far less distracting than OO. Only thing that keeps me from ditching a word processor now is a simple markup language for my text files so that after a conversion to doc/rtf/odt italics and bold characters are shown. The publishers I work with only accept documents that are Word compatible, so anything else is unfortunately out of the question.
    Any ideas?

    Thanks for your suggestions. Didn't see that there was already a thread with a similar question. Asciiword and txt2tags sound like something worth checking out. HTML would do, but I'd still need to convert to doc or rtf. I'll have a look at xml as well though I'm not sure that's quite the way to go as it would add more formating to my writing and not less.  We'll see. At least I have a few reference points now to get me started.

  • Dynamic Variable in RTF

    Hi,
    sample XML File is some thing like this
    <Emp_year>
    Year_G {value will be some thig like 01012010}
    Number_G{here if value is >6 then display first rows and last two rows, or if value is =6 then display first 6 rows}
    <Emp_Year/>
    draw table like this
    one column and number of rows in rtf template and in each and every row Year_G value should increase by one year.(I got this)
    Thanks,

    Hi priya,
    Actually that code is every thing is fine with that code but I need to show like 001=01012010;002-01012011 like that.

  • How to reset a variable in RTF templete.

    Need help on this.
    I have a template where i declared a variable(FORMAT_Sal) like this
    <?variable:FORMAT_Sal ;format-number(number(PRO_SAL), '###,###,###,###,###,###,##0.00')?>
    and i am calling the variable(FORMAT_Sal) as show below
    <?xdofx:truncate(ltrim($FORMAT_Sal) ||'/'||P_BASIS , 30)?>
    for the whole templete, i have only one main group <?for-each:invoice?> the variable is not getting reset for each group, it is taking the value of first group.
    <invoice>
    <PRO_SAL>32.892</PRO_SAL>
    </invoice>
    <invoice>
    <PRO_SAL>40</PRO_SAL>
    </invoice>
    <invoice>
    <PRO_SAL>59.326</PRO_SAL>
    </invoice>
    my variable is taking the 32.89 and repeating the same value for all the invoices(group).
    i tried by using variable@incontext and variable@section while declaring it, but it is throwing the variable not found error while previewing.
    thank's in advance.

    Hi Sandy,
    can you paste the entiire xml and put the for loop and the location where you use this variable

  • Maintaining manual page breaks when exporting to .doc OR .rtf

    Hi, all.
    I've tried to find solutions to this on this board, but am coming up short. Please help!
    I have inserted page breaks into my pages document. When I export to .doc or .rtf, the page breaks are gone (the separate pages now just run into each other). Any ideas?

    MVes,
    I tried to duplicate your reported behavior.
    I found that a Pages file with Page Breaks _exported to .rtf_ opens in TextEdit with NO breaks, opens in Pages with NO page breaks and opens in Word with page breaks as designed.
    I found that a Pages file with Page Breaks _exported to Word_ opens in Pages with Page Breaks as designed, opens in TextEdit with page breaks as designed and in Word with page breaks as designed.
    So it appears that the only problem is with opening an RTF doc in Pages or TextEdit. There have been other reports here that indicate that Pages support of RTF is weak on import.
    Jerry

Maybe you are looking for

  • Can't get Photoshop to run correctly.

    Hi I have a monthly CC subscription but can not update from Photoshop v14.0 which is now two updates behind. When I try to update I get a message telling me that Photoshop is up to date when it is obviously not. I also appear to be missing some featu

  • Combining movies in QT Pro - glitches appearing

    Can anyone shed light on this problem? I have four movies that I'm trying to string together into one long movie. Using Quicktime Pro, I've built up the composite by pasting each segment in turn onto the end of the growing movie. It works fine until

  • Updating video driver for my HP G6 2232EE notebook

    im having a hard time looking for an updated driver of my notebooks video driver. i cant see the driver either in hp's website. please help me out finding the right/appropriate driver for my vid. the game im playing is like a a stop dance whenever im

  • My mac freezes just for a second about every two seconds and it gets really hot really fast?

    When i am watching a video or just scrolling on a webpage, even typing, there is a small glitch ever 1-2 seconds where everything freezes just for a second. Its almost as if its lagging all the time. I have tried every utility and cant figure it out.

  • Camera probs plz help

    hi i just finished skool 2 day at last n i took alot of photos and i got home and lugged in my cam 2 my mb and....... nothink its not reading it at all any ideas how i can get it 2 wrk tyvm