Dynamically Determine the color of graphic

Hi Experts,
Can u plz explain the code how to determine the color of the graphic dynamically.I want black and white graphic on first page and color one on the next page and this must continue
till the last page.....

upload two graphics to sap.
one is black and white and other is color.
declare a variable for count type i in global declaration.
before graphic declaration just
declare program lines i.e. move sfsy-page to count.
count the no of pages using sfsy-page.
insert 2 graphic
make 2 graphic as conditional.
i.e. in the condition tab of graphic1 -
> count = 1.
then the black and white image will print.
for the graphic 2 declare ---> count > 1 .
then the color image will print.
or u can directly maintain condition for both graphics.
in the condition tab sfsy-page = 1. block and while
for second image sfsy-page > 1. color image
it will work .
with Regards,
Kiran.G

Similar Messages

  • Is there a way to dynamically determine the number of out parameters for a server side procedure?

    Hi,
    Below is a helper method used for calling a server-side function which loops through the inbound bindVars parameter to populate the function's IN parameters. Is there a way to dynamically determine the IN/OUT parameters based on the procedure name in the stmt parameter? No members of the CallableStatement class seemed promising, but the getParameterMetaData() method in the PreparedStatement class seemed like it could be helpful lead. However, I have not found any detailed descriptions (yet) of how to use it.
    protected Object callStoredFunction(int sqlReturnType, String stmt,
      Object[] bindVars) {
      CallableStatement st = null;
      try {
      // 1. Create a JDBC CallabledStatement 
      st = getDBTransaction().createCallableStatement(
      "begin ? := "+stmt+";end;",0);
      // 2. Register the first bind variable for the return value
      st.registerOutParameter(1, sqlReturnType);
      if (bindVars != null) {
      // 3. Loop over values for the bind variables passed in, if any
      for (int z = 0; z < bindVars.length; z++) {
      // 4. Set the value of user-supplied bind vars in the stmt
      st.setObject(z + 2, bindVars[z]);
      // 5. Set the value of user-supplied bind vars in the stmt
      st.executeUpdate();
      // 6. Return the value of the first bind variable
      return st.getObject(1);
      catch (SQLException e) {
      throw new JboException(e);
      finally {
      if (st != null) {
      try {
      // 7. Close the statement
      st.close();
      catch (SQLException e) {}
    James

    The PreparedStatement.getParameterMetaData() object is exactly what you need for this task.
    Once you have the ParameterMetaData you can ask it how many parameters are present and which mode they are. The parameters are numbered from 1 to n and you can use ParameterMetaData.getParameterMode(1); to get the mode of the 1st parameter. The modes are defined as static values in the ParameterMetaData object. Check out the doc at http://docs.oracle.com/javase/7/docs/api/java/sql/ParameterMetaData.html
    Timo

  • Dynamically setting the color of the title in a Panel

    Hello, I know I can set the color & font of the title in a Panel using the titleStyleName in a stylesheet.  How can I dynamically change the color though?  I have a component:
             <mx:Panel id="myPanel"borderColor="{this.color1}" />
    where this.color1 is a value that changes dynamically, and thus changes the border color.  How do I do this for the color of the text in the title?

    Hi,
    Try this
    var css:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".myPanelTitle");
    css.setStyle("color",0x00FF00);

  • Dynamically changing the color of nodes in a JTree

    I have created a JTree and want to dynamically change the color of some of the TreeNodes as my program runs. The JTree is displayed in a JPanel. There is an algorithm built into which identifies the nodes whose color I need to change. No user actions is performed (everythign is internal to the program).
    It seems that in the TreeCellRender only kicks in when the tree is first displayed. How do I get it to re-render the tree when the TreeModel changes? It seems that the Listeners are only looking for external user interactions.
    Any help would be greatly appreciated.
    Thanks!

    I think I was a bit too vague in my question. Let me try again...
    I have changed an attribute in a node in a JTree. This attribute is changed after the tree was initially rendered, but while the program is still running. I want to tell the TreeCellRenderer to look again at this node since that attribute that was changed will effect how the node should be renderered. I tried using the nodeChanged() method, but it did not work (the colot of the node did not change). Any advise how I can do this?
    Thanks!

  • Dynamically determining the port number of a deployed application

              Hi
              How do I dynamically determine the port number of a deployed web application ?
              I know HttpRequest.RequestURL() returns us the entire URL but I wanted to just
              know the port number .
              Is there any API do that ??
              Thanks
              Kar
              

    kar piyush wrote:
              > Hi
              >
              > How do I dynamically determine the port number of a deployed web application ?
              > I know HttpRequest.RequestURL() returns us the entire URL but I wanted to just
              > know the port number .
              >
              > Is there any API do that ??
              >
              kar,
              Here's what I do under WL 7 SP2:
              import javax.management.AttributeNotFoundException;
              import javax.management.DynamicMBean;
              import javax.management.MBeanException;
              import javax.management.ReflectionException;
              import javax.naming.Context;
              import javax.naming.NamingException;
              import weblogic.jndi.Environment;
              import weblogic.management.MBeanHome;
              String domainName,
              serverName,
              serverPort,
              serverUrl;
              // Getting the initial context
              Environment env = new Environment();
              try
              Context ctx = env.getInitialContext();
              if (ctx == null)
              // unable to retrieve a JNDI context
              return;
              // Retrieving the server-specific MBeanHome interface
              MBeanHome home =
              (MBeanHome) ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);
              if (home == null)
              // unable to retrieve the local server MBean
              return;
              // Get the domain & server name
              domainName = home.getDomainName();
              serverName = home.getMBeanServer().getServerName();
              // The server port and address are a little trickier to extract...
              Object mbeanArray[] =
              home.getMBeansByType("ServerConfig").toArray();
              DynamicMBean mbean = (DynamicMBean) mbeanArray[0];
              try
              serverPort =
              Integer.parseInt(
              mbean.getAttribute("ListenPort").toString());
              serverUrl =
              mbean.getAttribute("ListenAddress").toString();
              catch (AttributeNotFoundException thrown)
              // caught a AttributeNotFoundException
              catch (MBeanException thrown)
              // caught a MBeanException
              catch (NullPointerException thrown)
              // caught a NullPointerException
              catch (ReflectionException thrown)
              // caught a ReflectionException
              catch (NamingException thrown)
              log.debug("caught a NamingException", thrown);
              

  • Dynamically determining the number of cols in Select stmt

    Hi,
    I was wondering if it is possible to dynamically determine the number of cols in Select stmt.
    For example:
    If it had:
    Select empno, lname from emp where empno = 32
    then I'd like it to return 2.
    Thanks in advance.
    Sincerely,
    Nikhil Kulkarni

    Hi,
    I was wondering if it is possible to dynamically determine the number of cols in Select stmt.
    For example:
    If it had:
    Select empno, lname from emp where empno = 32
    then I'd like it to return 2.
    Thanks in advance.
    Sincerely,
    Nikhil Kulkarni

  • How can i dynamically vary the color of one graph line

    I was looking on the developer zone and noticed several people are looking for a way to change the color of one graph line. Simplest case I would like to know: a graph is running, then you press a button and from that point on the color of the graph changes, but doesnt change the old data line color. THis way the line will consist of different colors.
    The property node changes the whole line, and the line is always just one color. It should be possible to make the line consist of different color sections, anyone know how?

    The application is actually not as slow as it seemed, i had some settings set wrong (anti aliasing in plot, and some functions in advanced, when you right click on the graph)
    Especially unchecking the anti-aliasing makes it much faster
    Also, just plotting point and not a line, or alternatively, changing the interpolation makes it faster.
    Anyway, the attached files do not rely on processor so much anymore, see for yourself
    Attachments:
    multicolor_looking_plot.vi ‏99 KB
    multicolor_looking_plot_2.vi ‏105 KB
    multicolor_looking_plot_3_truncated_array.vi ‏99 KB

  • How to determine the color of any image sent to me

    Hi All,
    I was sent a gif image to work on and use the color of the image (RGB) to apply themes to the website.
    But I don't know the RGB code of the color used in creating the image. How can I find the color in Photoshop CS4?
    Thanks

    … and color code is available from the color picker, or the window/color panel (web color sliders)

  • Dynamically Determine the level of approval in OIM

    Hi All,
    I have a requirement in which the level of approval has to be determined dynamically based on the requested resource. We have two levels of approval (first& second) and my customer wants second level approval only for certain resources and these details defined in a csv file. e.g., (resource1,first_app,second_app). So if the file contains second level approver data then 2nd level is required otherwise not required. Also the second level approval task should be intiated after the first level approver approves the request.
    e.g., When the user request for a resource , the request should go to first level approvar. Once the first level approver approves the request it should validate whether second level approval is requred or not for the requested resource. If required then second level otherwise it should provision the resource to the user. Is it possibe to do that in OIM?
    I have created 3 task , First one is for first level approval (unconditonal) . Second task is for second level approval (conditonal) and I have created another task (conditional)is just to validate whether second level approval is requred or not. With this task have attached an adapter and passing the requested resource as an argmuent from the object data , this adapter invokes a java and will return TRUE if second level required or FALSE if not required.
    FIRST LEVEL -- Response Tab - For Approve -- Task to Generate -- I have mpped IS SEOND LEVEL task.
    IS SECOND LEVEL -- Response Tab -- For TRUE - Task to Generate -- I have mapped SECOND LEVEL task (Status C).
    IS SECOND LEVEL -- Response Tab -- For FALSE - Task to Generate -- nothing (Status R).
    if IS SECOND LEVEL returns FALSE the approval ends with Rejected status. If IS SECOND LEVEL returns TRUE it immediately execute the provisioning process and then assigns the request to SECOND LEVEL approver. Am I missing anything?
    Can you suggest me how to process with this?
    Thanks in advance,
    INIYA

    Hey the only basic problem I can see with that is already written over there.
    IS SECOND LEVEL -- Response Tab -- For FALSE - Task to Generate -- nothing (Status R).
    So you have defined that with 'FALSE' response status you are rejecting your task, and if you are rejecting your task then your approval is finished. What you need to modify over here is just change the Status to 'C' which will let your workflow know that now there is no second level required and the approval stands completed.
    I think you will not be able to change the response to 'C' for this because you have already used this 'Task Response' for some tasks. What you can do for this is -
    1) Eitgher go and update the database for this mapping.
    2) Send some other response from the file in place of FALSE. eg Send NO and then mark it as completed- 'C'
    You should be done.
    Thanks
    Sunny

  • Dynamically determine the height of Top-of-page of an ALV report

    Hi all,
    I wanted to know if there is a way to determine and set the height of an HTML-TOP-OF-PAGE based on it contents?
    Thanks in advance
    Shabir

    this is the final option for you. try with this..
    REPORT  ZTEST_ALV_001.
    TYPE-POOLS: SLIS.
    data: it_sort type  SLIS_T_SORTINFO_ALV,
          wa_sort like line of it_sort.
    data: it_flight type standard table of sflight.
    DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          WA_FCAT LIKE LINE OF IT_FIELDCAT.
    data: o_grid TYPE REF TO cl_gui_alv_grid.
    start-of-selection.
    select * from sflight
    into table it_flight
    up to 20 rows.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = SY-REPID
       I_STRUCTURE_NAME             = 'SFLIGHT'
      CHANGING
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    IF sy-subrc NE 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-REPID
       I_CALLBACK_html_TOP_OF_PAGE       = 'TOP_OF_PAGE'
       I_STRUCTURE_NAME                  = 'SFLIGHT'
       IT_FIELDCAT                       = IT_FIELDCAT
      TABLES
        t_outtab                          = IT_FLIGHT
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF sy-subrc NE 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM top_of_page USING header TYPE REF TO cl_dd_document.
    DATA: ls_text TYPE sdydo_text_element,
          meth(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
    if o_grid is initial.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    e_grid = o_grid.
    CALL METHOD o_grid->parent->parent->(meth)
    EXPORTING
    id = 3
    height = 14.  "<-----set the height here..
    "using the add_text method you can show the texts
    "in the top of page
    ls_text = 'Top of page:'.
    CALL METHOD header->add_text
    EXPORTING
    text = ls_text
    sap_emphasis = 'strong'.
    "for new lines
    CALL METHOD header->new_line.
    CALL METHOD header->new_line.
    endif.
    break-point.
    ENDFORM.

  • What determines the color of menu headings?

    I would like to change the heading color, and possibly the font. Is this possible. I am using the same template for all my pages, but I need to change the header color.

    This topic may help....
    http://discussions.apple.com/thread.jspa?messageID=10437874&#10437874

  • How to dynamically determine Receivers within BPM

    I’m trying to design a way to determine my receivers within my BPM process during runtime.   My Scenario is as follows:
    SAP IDOC
        V
      XI
                 XI uses JAVA Mapping MT1 to determine vendors and if customer receives PIDX
                             JAVA Mapping MT2 to creates the PIDX output file if required
      V
    SENDs to required Vendor (PIDX if required otherwise email)
    My problem is how to dynamically determine the appropriate receiving vendor for my PIDX.
    I can not use the condition editor on the standard Receiver Determination because the output message (PIDX) doesn't have specific enough information to determine the vendor.
    Other than the customer number there are no other values and we don't want to use customer number because each vendor can have multiple customer numbers (hundreds).
    I've tried various attempts but none seem to work.  This could also be because I have limited knowledge of BPMs and this is my first complex development.  Below are the different attempts I've made at dynamically determining the receiver.  Any input would be appreciated.
    Receiver Scenario 1 
      I developed an interface mapping with MT1 as input and the SAP Receiver Determination as output.  The problem is for me to use this, the interface mapping had to reference the PIDX output (MT2 instead of MT1) which has no data that I can use to determine the receiver.
    Receiver Scenario 2
    I added a receiver step right before my send step and used the receiver list.  This appears to send the PIDX to everyone in the list and there is no way to evaluate or eliminate a name from the list. 
    Receiver Scenario 3
    I created a context object in the Integration Builder and assigned it to a field in MT1.  I then added a switch step with a branch for each vendor.  Within each specific branch there is a Send step that has the context object name I created in the "Send Context" field.  However, on the configuration side I’m unable to access the context object which I created on the design side.  Whenever I open the condition editor and select the radiobutton for "Context Object" the list  does not include the context object I created in the Integration Builder.

    Hi,
    Try using the enhaced receiver determination concept.
    Maybe based on certain field values you can write a UDF which calculates the receiver.
    Try this Blog out
    Link : [
    http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm]
    Regards,
    Abhishek
    Award if helpful.

  • How can i find out the color of ipod nano from serial number

    apple is shiping my new nano that has been replaced from 1st gen. nano  How can I determine the color from the serial number as I need to order the watchband asap.  thanks in advance

    So far all 6g replacments appear to be silver I have not heard any exceptions. Do not know if you can work out colour from serial

  • Dynamic determination of IDOC

    Hi,
    I have a scenario wherein based on a particular KeyField, I need to dynamically determine the IDOC.  I haven't used BPM before and I don't know whether this scenario is feasible using BPM.
    My approach is creating a data type for the source which will have common fields of both the IDOCs.  This data type will hold the data sent by the sender system.  Thereafter, I would create 2 message interfaces for each IDOC.  Subsequent Message Mapping and Interface Mapping will also be done.  In BPM based on the KeyField, I will determine the Message Interface dynamically and post it to the target system.
    Kindly advice whether the above approach is right.  Is this scenario possible without using BPM.  If so, kindly suggest how to proceed.
    Thanks in advance.
    Bala

    Hi Kumar,
    Is there any possibilites of coming both the idoc data ? If so, you can do as following.
    As you are going to execute 1:N mapping, it is required to have BPM here. (and one more reason is Idoc adapter is not a part of J2EE engine.)
    <i>Is this scenario possible without using BPM</i>
    >>>If it is not of above case, then you can make use of conditional Interface determination , you can try without BPM
    Hope this helps,
    Regards,
    Moorthy

  • Dynamic Determination of Logical System- Transaction Launcher

    Hi Friends,
    Need your suggestions and inputs on how to dynamically determine the logical system for the transaction launcher.
    Our system landscape is like this.
    We have one CRM connected to mulitple back end ECC Boxes. Currently, we have created separate TL's fo VA01 ( One each for each back end application ) and provided the same in logical link and controlled the same via business role.
    For eg: BROLE1 - LLINK1  having (TL VA01) pointing to ECC System1
    BROLE2 - LLINK2  having (TL VA01) pointing to ECC System2
    BROLE3 - LLINK3  having (TL VA01) pointing to ECC System3
    The above procedure is working fine. But what we are trying to do is, when the end user clicks on the TL link in WEB UI, Based on the assigned business role, it should dynamically determine the back end system and open the VA01 Screen in that system.
    I have activated indicator multiple systems in the customizing of mapped logical systems.
    In debugging mode, i have tried changing the LOGSYS value @ run time in the handler class.
    Any pointers on this would be of great help.
    Thanks,
    Madhu

    Hi,
    Try this..
    To maintain RFC destination in each business role, there is one functional profile  "ERP_SALES_ORDER" where in you can maintain respective rfc destination.
    Create z-functional profile's for "ERP_SALES_ORDER" and maintain corresponding rfc destination, later assign these erp sales order function profiles in respective business roles trxn (CRMC_UI_PROFILE).
    you can use the below statement to fetch rfc destination whcih assigned to business role via functional profile.
      If gv_rfc is INITIAL.
        gv_rfc = CL_CRM_IC_ERP_SERVICE=>GS_ERPPROF-RFCDEST.
      ENDIF.
    Hope this helps.
    Cheers,
    Sumit Mittal

Maybe you are looking for

  • SQL Insert Error Error in allocating a connection. Cause: No PasswordCreden

    Friends, While testing my connection in the Sun java Application Server , I get the following error . "SQL Insert Error Error in allocating a connection. Cause: No PasswordCredential found " Can somebody please guide ? regards Dhiraj

  • Blurry/fuzzy fonts on external display (Dell 2209WA)

    Hi, I recently bought a Dell 2209WA and I'm not too happy with how the fonts are displayed on it. All the fonts seems blurry/fuzzy/jagged. I have tried to change the sharpness of the display as well as the font smoothing style(I get best results on M

  • Nokia N91 Themes created by Theme studio 3.0 not w...

    Hi All, I created few themes from Theme studio 3.0 for Nokia N91 series60 3rd edition. It was correctly installed. When i get into themes and preview it, it previews. And then when i click Apply, it sets the theme. Then when i click exit and go to th

  • Internet slow - how can I test if Time Machine vs something else?

    Just set up my new Time Machine (excellent!), but my internet connection has been painfully slow (not excellent!). I'm wondering if there is an easy way to tell if the Time Capsule is slowing things down, or if it is simply my internet provider. Is t

  • IE problem

    On my web site there are a couple of pages that do not diplay properly in IE although they look OK in FIrefox, Opera, Chrome etc. There is a large blank space after the header. One of the pages is http://www.canadianrallyo.ca/events_trials_listing.sh