Display Image(which set as behind text)   based on some condition.

hi all
I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
But i need to display the image based on some condition
for example i have a field as ORG_ID
if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
kindly help me
thanks for all in advance.

that too not working because
on image am displaying some other fields.
see i think you didn't get my point.
in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
behind this data am displaying my company logo which will capture whole page size..
if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
or
help on this how to set a dynamic image as behind the text.
Edited by: maddy on Nov 28, 2012 7:32 AM
Edited by: maddy on Nov 28, 2012 7:35 AM

Similar Messages

  • Display the particular column in the page Based on some condition.

    Hi,
    I am using J developer 11g Release 2, I have one page contains form which give the details of a user,in that form i have column called Password,that password column needs to display only when i go for adding a new user,while editing the details of the user the column needs to be disappear.
    Can you help me on this?
    Thanks in advance,
    Suganya.
    Edited by: Suganya on Feb 24, 2012 4:02 AM

    You mean you only want to see the password field if you add a new user, and after the user is stored you won't display the field again?
    Do you use the same page (or fragment) to add or edit the user? Or do you use different pages (or fragments) for this purpose?
    Anyway if you can somehow distinguish between add and edit you can use the visible property of the field (or column) and set it to true or false via an EL.
    Timo

  • Calling two table controlls based on some conditions......

    I hav a requirement in which i have two table controlls, which i want to call based on some conditions. Like if condition is satisfied the first table controll shud fill up the screen and other wise the secondtable controll shud fill the screen....

    Hello,
    In the main screen where u need to vary with the 2 table controls , create a subscreen area .
    Now create two subscreens with the required table controls respectively.
    You can dynamically call the subscreens accordingly for  the conditions.
    Hope this may help you.
    Neeraj

  • Display an exception based on some condition

    HI..
    how to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...

    Hi!
    welcome to SDN.
    create a calculated key figure which will be 1 if the sales is less then the average sales.
    create exception based on this calculated key figure.
    with regard
    ashwin
    <i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

  • Grey out a particular row in ALV based on some condition.

    Hi All,
    How can we grey out the particular row in ALV based on some condition( I am using the function modules and not OOPS).
    Regards
    Ramesh.

    Hello Ramesh
    In this case you need to add a specific field to your structure:
    TYPES: BEGIN OF ty_s_outtab.
    INLCUDE TYPE <my table or structure>.
    TYPES: CELLTAB   TYPE lvc_t_styl.  " name is arbitrary but this one is most frequently used
    TYPES: END OF ty_s_outtab.
    DATA: gt_outtab  TYPE STANDARD TABLE OF ty_s_outtab
                                 WITH DEFAULT KEY.
    You can use the fieldcatalog to make an entire column non-editable (LVC_S_FCAT-EDIT = ' ' ).
    However, in case of rows you need to inactivate all cells of this row. For sample coding please refer to thread:
    How to conditionally set ALV field as hotspot
    Regards
      Uwe

  • How to make a region mandatory based on some conditions using CO Extension?

    Dear All,
    I want to make Attachments region in a seeded page mandatory, based on some conditions. I am able to make fields mandatory using CO Extension, but i am not able to make the attachments region mandatory. Please help.
    Thanks
    Raj

    Raj,
    I have not tried but check if you could get the rowcount which shows how many attachment are upload or not. Then by checking this throw exception if the rowcount is o.
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Calling a window in sapscript based on some conditions

    Hi all,
    I want to call a window in SAPScript based on some conditions.Plz suggest how could i do that.
    Regards,
    Chinmay.

    Hi,
    Use a text element in that window.
    ie..
    /E  TEXT
    &VBAK-VBELN&
    in ur driver program
    if vbak-vbeln is not initial. ( your condition)
    call function 'write_form'
    element = 'TEXT'
    window = 'WINDOW_NAME'
    Endif.
    hope this helps
    santhosh

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • BlackBerry NOT displaying images which are from an SSI

    Hi all - hoping someone knows the answer to the following, or where I may be able to go to get the answer.
    I'm working on a website that has SSI (Server Side Includes) and CSS.....we have an SSI for the header, footer, and navigation sections of the site, and some of our images are referenced within the CSS.  Our BlackBerry is configured to read CSS as a handheld, but it doesn't seem to understand how to pull in an image which is referenced within an SSI or CSS.......is there another oprion/setting/download that we need in order for it to display the images?
    Thanks for any info you can provide!
    Steve

    ListenerAdmin is showing blank screen
    this is my command prompt when running listener
    D:\oraclexe>cd apex
    D:\oraclexe\apex>java -Dapex.home=D:/oraclexe/apex -Dapex.images=D:/oraclexe/ape
    x/apex/images -Dapex.port=8585 -jar D:/oraclexe/apex/apex.war
    INFO: Starting: D:\oraclexe\apex\apex.war
    See: 'java -jar apex.war --help' for full range of configuration options
    INFO: Extracting to: D:\oraclexe\apex
    INFO: Using classpath: file:/D:/oraclexe/apex/apex/____embedded/start.jar:file:/
    D:/oraclexe/apex/apex/WEB-INF/lib/apex.jar:file:/D:/oraclexe/apex/apex/WEB-INF/l
    ib/commons-fileupload-1.2.1.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/je-4.0.1
    03.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/ojdbc6.jar:file:/D:/oraclexe/apex
    /apex/WEB-INF/lib/ojmisc.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/poi-3.6-200
    91214.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/ucp.jar:file:/D:/oraclexe/apex
    /apex/WEB-INF/lib/xdb-11.2.0.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/xmlpars
    erv2-11.2.0.jar:
    INFO: Starting Embedded Web Container in: D:\oraclexe\apex
    Jul 22, 2011 6:48:19 PM ____bootstrap.Deployer deploy
    INFO: Will deploy application path=D:\oraclexe\apex\apex\WEB-INF\web.xml
    Jul 22, 2011 6:48:19 PM ____bootstrap.Deployer deploy
    INFO: deployed application path=D:\oraclexe\apex\apex\WEB-INF\web.xml
    Using config file: D:\oraclexe\apex\apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=1000
    APEX Listener version : 1.1.2.131.15.23
    APEX Listener server info: Grizzly/1.9.18-o
    Jul 22, 2011 6:48:44 PM com.sun.grizzly.Controller logVersion
    INFO: Starting Grizzly Framework 1.9.18-o - Fri Jul 22 18:48:44 IST 2011
    INFO: http://localhost:8585/apex started.
    Using JDBC driver: Oracle JDBC driver version: 11.2.0.2.0
    Edited by: 874343 on Jul 22, 2011 6:42 AM
    Edited by: 874343 on Jul 22, 2011 6:51 AM

  • How to display images in TextArea? and how to make some of the text clickab

    1) How do i make TextArea display images?
    (example a client program, where people chat, put :) and get a smily image)
    2) For example if text is http://www.something.com in textArea, a person can click it, and my custom dialog will apear saying something about this link.......

    This has been discussed very many times! It is solvable. Search the forum!
    one way is to make a custom textarea extending Canvas, and painting the text in the paint() method. You need a paint method with drawString and drawImage calles to make it the way you describe it. You also need to add a MouseListener for detection of clicking.

  • How can i end the Process chain based on some condition

    HI All,
    I have a scenario where i have a main pc chain which call  the  new chain at the end which in turn again call pc1. So its more like a closed loop .
    pc1-->pc2->pc1
    What main chain does is it reads some field value from a dso and assign that to some variable and set some flag to identify that value has been used. My second chain just run the report using the same variables assign by first chain. Now i have to design the main chain such that when all the values have been read from the dso, it should exit and should not trigger 2nd chain. How can i achieve this scenario.
    Thanks
    Prashant

    Hi,
    For this try using Process Type-"Decision between multiple Alternatives" in your main chain.It helps you the set condieion based on some formulas
    Pls refer links
    Decision Between Multiple Alternatives
    thanks
    nilesh
    Edited by: npathak on Aug 11, 2010 1:16 PM

  • Insert data in same table based on some condition

    Hi. I am new to this forum.
    I have to write a stored procedure to Insert Data into a table say MYTABLE ,having structure as:
    Col1 Col2 Col3 ................ TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data as it is in the same table(MYTABLE) except changing some fields on basis of some conditions:
    1. if PaidAmount>0 && CurrentInstallment<TotalInstallment then
    CurrentInstallment=CurrentInstallment+1
    2. In the MonthYear field I am having data in formate(month/year)ex. 01/2012, 11/2012 ....
    So I have to insert data by incrementing month and year. for example:
    if currentdata is 11/2012 then next data will be 12/2012
    But next will be 01/2013
    I have to select all the records which belongs to previous month(through MonthYear field ) and put checking & changes on each record of the selected data and then insert them into same table(MYTABLE).
    How to achive that?
    Thanks.

    978184 wrote:
    Every thing is working fine but some strange result as:
    when i run my Procedure TRANSFERDATATONEXTMONTH
    1. by Passing Value as : CUSTOMERID_var ='ABX101' and MONTHYEAR_var='12/2012' it insurts 5 rows
    which is correct , since I have 5 records where CUSTOMERID='ABX101' and MONTHYEAR='12/2012' and
    new 5 rows has CUSTOMERID='ABX101' and MONTHYEAR='01/2013' (all other values are as expected)
    2. now when i again run by passing values: CUSTOMERID='ABX101' and MONTHYEAR='01/2013' it inserts 10 records(just double )
    and new records has value CUSTOMERID='ABX101' and MONTHYEAR='02/2013' (while on the basis of condition CUSTOMERID='ABX101' and MONTHYEAR='01/2013' i have in my table only 5 records)
    and all records are duplicate. Some times it inserts three times , while on condition basis it should no. What is happening?Probably, meanwhile you were trying to Insert the First time and the second time, someone did run the procedure that Inserted 5 More records for 01/2013. And, hence your Second run inserted 10 records instead of 5.
    >
    Why it is inserting double of records while i have only 5 records on given condition? Am I missing some thing?Yes, you are. You are missing your Tables, Your Dummy/Sample Data, Working Procedure/Function that can be replicated.
    Without this, we cannot simply believe on assertions that Oracle is behaving incorrectly.
    In addition to this, the GetMonthYear function, should be scrapped. It is un-necessary, when the same logic can be achieved using Oracle ADD_MONTHS function (See my previous post). And you are storing the MonthYear in a Varchar field, which ideally should be a Date field. This eradicates the un-wanted need to cast from VARCHAR - DATE - VARCHAR.
    Please do make some time to read {message:id=9360002} and mentioned relevant details.
    And notice, the code difference in my previous post and in your code.
    Please use
    {noformat}
    (exactly as shown) above and below your code, that indents the code properly for better readability.
    {noformat}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • In my output fianl int. table how to display 'X' based on some conditions

    Hi,
    can somebody tell me
    how to populate the value in my fianl table as 'X'.This is my requirement.How to do???
    In the LOOP on lt_stpox, if lb_recursive is set to X, then populate gs_output-rekri = X for all components for material.
    this is my coading.
    *Panthom item check
       IF  p_phant = c_x .
          DELETE lt_stpox WHERE dumps = c_y.
        ENDIF.
        CLEAR lb_recursive.
        READ TABLE lt_stpox TRANSPORTING NO FIELDS WITH KEY rekri = 'x'.
        IF sy-subrc EQ 0.
          lb_recursive = 'X'.
        ENDIF.
        DELETE lt_stpox WHERE rekri = c_y.
        LOOP AT  lt_stpox INTO ls_stpox.
    *Move header data to final table.
          MOVE-CORRESPONDING ls_topmat TO gs_output.
    *move comonent data to final table.
          MOVE ls_stpox-ojtxp TO gs_output-maktx1.
          MOVE ls_stpox-idnrk TO gs_output-idnrk.
          MOVE ls_stpox-mngko TO gs_output-menge.
          MOVE ls_stpox-rekri TO gs_output-rekri.
          MOVE ls_stpox-meins TO gs_output-meins.
          MOVE ls_stpox-stufe TO gs_output-dglvl.
          APPEND gs_output TO gt_output.
        ENDLOOP.
        CLEAR: gs_output,ls_stpox,ls_topmat.
      ENDLOOP.
    ENDFORM.                    " BUILD_OUTPUT

    Hi,
    As per my understanding of your question, You are checking whether lt_stpox-rekri = 'X'  in below code and then you are setting lb_recursive as 'X' accordingly.
    CLEAR lb_recursive.
    READ TABLE lt_stpox TRANSPORTING NO FIELDS WITH KEY rekri = 'x'.
    IF sy-subrc EQ 0.
    lb_recursive = 'X'.
    ENDIF.
    DELETE lt_stpox WHERE rekri = c_y.
    And after that you are looping at lt_stpox to populate final internal table.
    So, instead of doing this, you can directly loop at table lt_stpox and in loop check if  lt_stpox-rekri = 'X', if yes then gs_output-rekri = X.
    Refer below code.
    LOOP AT lt_stpox INTO ls_stpox.
    If ls_stpox-rekri eq 'X'.
    gs_output-rekri = X.
    Endif.
    *Move header data to final table.
    MOVE-CORRESPONDING ls_topmat TO gs_output.
    *move comonent data to final table.
    MOVE ls_stpox-ojtxp TO gs_output-maktx1.
    MOVE ls_stpox-idnrk TO gs_output-idnrk.
    MOVE ls_stpox-mngko TO gs_output-menge.
    MOVE ls_stpox-rekri TO gs_output-rekri.
    MOVE ls_stpox-meins TO gs_output-meins.
    MOVE ls_stpox-stufe TO gs_output-dglvl.
    APPEND gs_output TO gt_output.
    ENDLOOP.
    CLEAR: gs_output,ls_stpox,ls_topmat.
    ENDLOOP.
    Hope it helps.
    Thanks,
    Archana
    Edited by: Archana Pawar on Feb 1, 2010 11:43 AM

  • Change X, Y position of a text frame based on some conditions

    Hi All,
    I am trying to re-position the Y position alone of all text frames in a documennt if that text frame has certain Y position. Here is the code I tried.
    It works, but, it place all the text frames in to the given myTextFrame.move ( ["216.425 pt","54 pt"] ); one on another. Whereas, I need to change Y position of only the text frames with the following conditions.
    The conditions are:
    If X="216.425 pt" AND Y="103.89 pt", change to X="216.425 pt" and Y="54 pt"   OR
    If X="216.425 pt" AND Y="78.945 pt", change to X="216.425 pt" and Y="54 pt"    OR
    If X="216.425 pt" AND Y="79.157 pt", change to X="216.425 pt" and Y="54 pt"    OR
    If X="213.425 pt" AND Y="486.647 pt", change to X="216.425 pt" and Y="54 pt"    OR
    If X="213.425 pt" AND Y="74.409 pt", change to X="216.425 pt" and Y="54 pt"   
    Please help me on this to add the above conditions into the following code and reposition only the text frames has the above said XY positions.  Is there anyother way other than "move" statement?
    var myDocument=app.activeDocument;
    var myPages=myDocument.pages;
        for(p=0;p<myPages.length;p++) {
        var allTextFrames=myPages[p].textFrames;
            for (s=0; s<allTextFrames.length; s++) {
                        var myTextFrame = allTextFrames[s];
                        var myTextFrameBounds =  myTextFrame.geometricBounds;
                        var properly_aligned = "54 pt";
                            if ((myTextFrameBounds[0] = "103.89 pt") && (myTextFrameBounds[1] ="216.425 pt")) {
                                myTextFrame.move ( ["216.425 pt","54 pt"] );

    Hi Jongware,
    Thanks for your reply.
    I have modified the code little bit after referring one of the post. Here is the updated code. It is working fine for the whole number (var oldposition1) as input value and does not work for decimal values (var oldposition2, var oldposition3, var oldposition4 and var oldposition5). However, it repositions the frames with decimal values (newposition1, newposition2 and newposition3). I am facing problem with the decimal input values for original position of text frames. Is there any other way to give decimal values as input as my document comes with these decimal values as X, Y position.
    var oldposition1 = [216, 103] // original position, upper left corner
    var oldposition2 = [216.425, 78.945] // original position, upper left corner
    var oldposition3 = [216.425, 79.157] // original position, upper left corner
    var oldposition4 = [213.425, 74.409] // original position, upper left corner
    var oldposition5 = [213.425, 486.647] // original position, upper left corner
    var newposition1 = [216.425, 54] // new position, upper left corner
    var newposition2 = [36, 54] // new position, upper left corner
    var newposition3 = [216.425, 437.4] // new position, upper left corner
    var myObjects = app.activeDocument.pageItems.everyItem().getElements();
    for (var i=0; i<myObjects.length; i++){
        if (Math.round(myObjects[i].geometricBounds[1])==oldposition1[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition1[1]){
            myObjects[i].move(newposition1);
        else if (Math.round(myObjects[i].geometricBounds[1])==oldposition2[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition2[1]){
            myObjects[i].move(newposition1);
        else if (Math.round(myObjects[i].geometricBounds[1])==oldposition3[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition3[1]){
            myObjects[i].move(newposition1);
        else if (Math.round(myObjects[i].geometricBounds[1])==oldposition4[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition4[1]){
            myObjects[i].move(newposition1);
        else if (Math.round(myObjects[i].geometricBounds[1])==oldposition5[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition5[1]){
            myObjects[i].move(newposition3);

  • Changing Label text color based on some conditions

    Hi,
    I have these labels and I would like to change the text color IF the text has some specific value (coming from an XML created by a program); for example the default text color is red, but if the text value is "Yes", the text color should be green.
    Any helps much appreciatted, as usual...
    Thanks.

    unsure, but you might be able to get away with something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                public function changeColor(value:String):uint
                    if(value == "Yes")
                        return 0x007F00;
                    else
                        return 0x7F0000;
            ]]>
        </mx:Script>
        <mx:Panel x="343" y="199" width="250" height="200" layout="absolute">
            <mx:Label id="lbl1" text="Yes" color="{changeColor(lbl1.text)}" x="102.5" y="10"/>
            <mx:Label id="lbl2" text="BlahhhhhBlahhhh" color="{changeColor(lbl2.text)}" x="97" y="36"/>
            <mx:Label id="lbl3" text="Exampleeeeeeee"  color="{changeColor(lbl3.text)}" x="97" y="62"/>
        </mx:Panel>
    </mx:Application>
    using a single label in an item renderer, passing across the 'data.text' value

Maybe you are looking for

  • An unexpected error has occurred.  Please quit and reopen Keynote.

    I am suddenly unable to duplicate slides after duplicating 115 of them and am receiving the above message.  This makes me so sad.  I am going to have to tell a client that I couldn't finish his presentation.  Perhaps there has been too much emphasis

  • Hooking iPad to HDMI TV, no video, just audio. Any tips?

    Original iPad. Keynote presentations show up. Just no video. TIA

  • MBA - Video display & resolution concerns

    Hello! My parents currently own an aging, first-generation white MacBook. I want to help them migrate to a newer laptop, possibly a MacBook Air aka MBA), within the next several months. I used to own a 15-inch MacBook Pro (2007 vintage, IIRC) but it

  • [urgent] deleted dbf.file

    Hello! I have deleted the .dbf file. now oracle cannot start anymore. I do not want to restore the datbase. the data ist not important. how can i make oracle run again. please mail me. thanks in advance mario

  • SSDT Schema Compare keeps showing the same objects as different..

    Hi,  When comparing a database to my project using Visual Studio 2012 SSDT I get several stored procedures marked as changed. The body of the procedures is identical, but two properties are highlighted as different when expanding the object: IsSelf (