Dynamically changing of the Applet Label

Hello!
How could I change Applet Label dynamically
(it should depends on the one business components' field)?
Siebel 8.1
Thanks very much!

Hi,
Clone the applet. Change the Label name which you want to modify. Based on the BC field value toggle the applet and display the cloned applet(which has the different label name). This is the way you can achieve this.
Regards,
Joseph

Similar Messages

  • Problem of dynamically change components in Applet

    Hello, All,
    I need to dynamically change Applet components. For example, remove a button, and replace it with drop down list etc. I use remove and add methods to perform the task. But it does not work. Applet just become blank. And repaint does not help either. Any of you know how to solve the problem. I will really apprecation that.
    [email protected]

    /*    <applet code="AddAndRemove" width="400" height="300"></applet>
    *  use: >appletviewer AddAndRemove.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AddAndRemove extends JApplet {
      ButtonListener buttonListener = new ButtonListener();
      JButton
        addButton,
        removeButton;
      JPanel centerPanel;
      JLabel statusLabel;
      GridBagConstraints gbc;
      int buttonCount = 0;
      public void init() {
        addButton = new JButton("add");
        removeButton = new JButton("remove");
        addButton.addActionListener(buttonListener);
        removeButton.addActionListener(buttonListener);
        JPanel northPanel = new JPanel();
        northPanel.add(addButton);
        northPanel.add(removeButton);
        centerPanel = new JPanel(new GridBagLayout());
        centerPanel.setBackground(Color.yellow);
        gbc = new GridBagConstraints();
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        gbc.gridwidth = gbc.REMAINDER;
        statusLabel = new JLabel(" ", JLabel.CENTER);
        Container cp = getContentPane();
        cp.setLayout(new BorderLayout());
        cp.add(northPanel, "North");
        cp.add(new JScrollPane(centerPanel), "Center");
        cp.add(statusLabel, "South");
      private class ButtonListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {
          JButton button = (JButton)e.getSource();
          if(button == addButton) {
            centerPanel.add(new JButton("Button " + ++buttonCount), gbc);
            // JComponent method
            centerPanel.revalidate();
            Component[] components = centerPanel.getComponents();
            statusLabel.setText("Currently " + components.length + " buttons showing");
          if(button == removeButton) {
            Component[] components = centerPanel.getComponents();
            if(components.length == 0)
              return;
            centerPanel.remove(components[components.length - 1]);
            // container method
            centerPanel.validate();
            // comment this out to see what happens without it
            centerPanel.repaint();
            statusLabel.setText("Currently " + (components.length - 1) + " buttons showing");
      public static void main(String[] args) {
        JFrame f = new JFrame("Add And Remove Applet");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JApplet applet = new AddAndRemove();
        f.getContentPane().add(applet);
        f.setSize(400,300);
        f.setLocation(400,300);
        applet.init();
        applet.start();
        f.setVisible(true);
    }

  • Dynamic change in the query name based on user input

    Hi Gurus,
    In a scenario, country appears as a user input variable.When the user specifies his country, the same query displays <b>Business trends</b>' data pertaining to his own country and rest of the world(international) in two tables.The reports are developed using Web application designer.
    Can the name(description) of the query be changed  so that the user input value for country gets dynamically reflected in the query name like <b>Business trends:Selected country vs International</b>?
    Regards,
    Balaji

    Hi Bala,
      ya this can be done by text variables. create a text variable( replacement path on the country infoobject) by going to the query properties on the description.
    if the user enters country value then it will be displaed on the description of the query .
    assign points if useful .
    regards
    santosh

  • Regarding dynamic changes in the layout based on the data received

    hi,
    i am trying to design an application using flex at the frontend and what i want is that based on the inputs given on the client-side the data received from the back end should change accordingly like the no of panels showing a particular information can vary depending upon the data and has to be adjusted
    in a limited given space.how can i be able to acheive this dynamic display and change on the frontend arrangement of panels.
    thanks

    Hi Naidu,
    In the Second Screen first Create all 15 Fields.
    in PBO of Second Screen.
    module STATUS_100.
    In Program
    Module status_100.
    case FIELD_VALUE.
    when 'X'.
    loop at screen.
    if screen-name = 'SCREEN_NAME' " The Field which you dont want.
    screen-invisible = 1.
    screen-active = 0.
    modify screen.
    endif. " Similary process for other Values aswell.
    endloop.
    endmodule.
    Just you need to do little bit more work since this gives a clear Idea as how to proceed.
    CHeerz
    Ram

  • Dynamic Changes to the JPanel Content

    Hi to All,
    I have a JPanel and it contains two subpanels in it. second sub panel content
    is dynamic.
    Eg: Main Panel
    - Sub Panel1 (Static)
    - Sub Panel2 (Dynamic)
    Sub Panel2 Contains Array of Controls(dynamic).
    Whenever i add new controls to Sub Panel2, it is not displaying newly added
    controls.
    Only when i am adjusting SplitPane divider, it is showing changes.
    I also placed Main Panel in JScrollPane. So it may not be a space problem.
    Please help me.

    Whenver you add/remove components to/from a container you need to revalidate(), the container so the components can be layed out by the Layout Manager.

  • Dynamic changes in the report

    I generated one report in BI 7.0 using the BEx Analyser. But what the user want is to simulate the report in according to the market changes. For example: Suppose fields for the ingredients of a product and the % of amount used to get the profit is there in the report. He wants to try for the various possibilities that he can do to get better profit from his products mentioned in the BEx report. So what he wants is ‘whatever changes he do in the report should reflect the other fields in the report for planning his future composition. How can this be done in the report? Is it possible by using macros? How to use Macros in this case? Can someone please explain this in detail?

    I generated one report using BEx Analyser. In that report price of individual raw materials are there and the total cost for the production of a commodity from that raw materials. After the report generation my client understood that the price of certain raw materials varied. So he wants to change the price of the raw materials manually and get the total cost after the change. This is the requirement.
    What I think is that the formulas used in the  report can be generated to another excel sheet and using macros i can do the calculation and can show the result in the new excel sheet. I dont know whether this idea will work or not as I am unaware of how to generate the formulas to another excel sheet and I am unaware of the macro code. So can anyone help me to solve this issue by explaining in detail and can someone send me some macro codes for example that can give an idea of summation of filed values.

  • Clear the applet from cache

    Hello,
    I use the following html code to open my signed java applet.
    <APPLET CODE="Applet.class" ARCHIVE="applet.jar" WIDTH=100 HEIGHT=100>However if I make some changes into the applet code and open the HTML file in the browser, I see that the applet is being picked up from the applet cache. Thus if users have caching enabled on their systems they will not be able to retrieve the new version that I have made.
    Is there a way to trigger the browser to download not to use the applet from the cache whenever an updated copy is available on the server.
    I need this fix for IE, Mozilla, Netscape..
    Thanks in advance.

    Hello,
    the easiest solution (for me, at least, it was): when you want to reload an applet type x in the java console (it openes when you load the applet; if it doesn't open you may find it in the icons bar at the bottom of your screen) and then reload the applet
    Hope it helps, good luck!

  • Dynamic passing of the structure in LVC_FIELDCATALOG_MERGE

    Hi ABAP Gurus,
    I'am doing report to read cluster results
    My requirement is :
    The report uses LDB -PNP in the selection screen in addition to that Clusterid is passed and what ever cluster id we select for the pernr that cluSter id results has to show in the report output
    The report has to dynamically change in the output (whole structure of the cluster id) how to pass in selected cluster id (what we selected in the selection screen) in the function module
    LVC_FIELDCATALOG_MERGE
    Importing
    I_STRUCTURE_NAME -  (HERE I WANT TO GET THE STRUCTURE OF THE SELECTED CLUSTER ID IN THE SELECTION SCREEN)
    Thanks and Regards,
    Deepthi.

    Recently I have been working on generic cluster access and I must say the task was challenging. What I've discovered is:
    -  generic access as per cluster ID is impossible via [IMPORT ... FROM DATABASE...|http://help.sap.com/abapdocu_70/en/ABAPIMPORT_SHORTREF.htm] -> in order to create a fully flexible access you would have to go for pure dynamic program generation by means of [GENERATE SUBROUTINE POOL|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SHORTREF.htm]
    - as there are houndreds of available cluster IDs it is very difficult to determine those relevant to particular employee. For just one table PCL2 there are multiple of unknown to me areas which are hard to distinguish from those (un)relevant to employee. First look at fixed values from domain RELID_PCL2 gives the feeling what we are struggling with.
    - focusing on all common clusters (only from PCL2) like CU, RX, ZL, B2, PS, PT can narrow the search result but still is a lot to be handled by one program
    - eventually looking deeper only on RX and possibly B2 areas seemed to be the best choice (as mostly we use only those - at least I do). So I focused on this area as generic payroll result can be easily extracted. What I needed was  extracting relid for given EE molga, then py result type for this relid, the simply using FM PYXX_READ_PAYROLL_RESULT to access py results itself for given cluster directory entry (table hrpy_rgdir )
    - the final challenge was how to show the results in user friendly form. As the result table I had was not only nested but deep too it wasn't so obvious. Luckily to me I was using Web Dynpro which allows to create table popins (showing the table within the table) but I don't think there is corresponding GUI control in SAP GUI. So considering how you want to show this data is really not an easy thing to do.
    - As for the structure of payroll result itself (or rather structure of each of its components) can be delivered using RTTI but you will also sweat a bit before getting that done.
    To conclude. There is no easy way of accessing clusters by just giving its RELID Even though you would focus on some specific part, it will take you more time then you expect at the beggining. So I would try to suppress the tempation for a moment and consider all these discussed (and those which I didn't think of) aspects.
    Regards
    Marcin

  • Dynamic changes on axis limits

    hi, for each charts, we can set the "Axis Limits" (under "Axis Scaling" property")
    by chosing "Specify manually", we can set "Minimum value" and "Maximum value" manually.
    but it is "hardcoded".
    is it possible to have:
    the minimum value or maximun value are dynamically changed by the exact minimum value and the exact maximum value from the column (data source) ??
    therefore , if the data changes, user dont need to set again
    (although "Zoom to data range" is an alternative but the result is not very good)

    I think it is impossible , so I close this thread, thanks

  • Can't see changes in my applet

    I have a very simple .html file that displays an applet. The first time the applet was displayed correctly. Since then I have made changes in the applet (added controls, etc.), and recompiled the source. The browser, however, still displays the first version of my applet.
    I think that there must be a setting in Internet Explorer that will correct my problem. Can you please help?
    Thanks,
    Miguel

    Or open your java console and clear the classloader cache (I think you type x). In windows you double click on the little cup of coffee on your task bar to open the console. Good luck. But closing the browser is often actually easier.

  • Different service orders have the same label

    Hi
       i have different service orders to create.( x service order, y  service order ...).    when i am clicking to create new service order of any type, the label is not changing.  
    the same label New: Service order is coming.   I want to change the label New:Service order to  x service order or y service order.....  depends on selection
    please suggest.
    ram

    hi ram,
    i guess u r not changing the long description of service order for that matter.
    change that and see

  • Dynamically changing LOV whenever another item changes

    I have two items on a page that are implemented as select lists based on LOVs, product and product category. The query for the product category lov references the product item. However, changes made to the product item are not reflected in the list of values for the product category item. As I understand, javascript is needed to make the LOV for product category dynamically change whenever the product item changes. Can somebody point me to documentation which details how to do this. Thanks for your help.

    See this and some other examples on that topic:
    http://apex.oracle.com/pls/otn/f?p=31517:119
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Dynamically Changing Labels for Multi Row Block Buttons

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    On my local: Windows 7 OS
    I am having a difficult time in doing the following in forms, and not sure if it can be done?
    I have a multi row block,based on DB table, which displays filename and another column from the table.
    It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
    a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
    b) View File (Display the file from file system)
    c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
    I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
    I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
    Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
    Any expert advice is highly appreciated.
    Thanks in advance for your time:
    Libran_Girl
    Edited by: libran on Aug 30, 2011 8:04 AM
    Edited by: libran on Aug 30, 2011 8:05 AM

    <p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
    Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
    </p>
    This is the code you have to put one triggers of your based block:
    When-New-Record-Instance trigger: (based on the EMP table)
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;When-Create-Record trigger:
    declare
         LN$N    pls_integer ;
         LN$Rec  pls_integer := :system.cursor_record ;
         LC$C    Varchar2(15) ;
    Begin     
         if get_block_property('EMP',TOP_RECORD) > 1 Then
              LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
         else
              LN$N := :system.cursor_record ;
         end if;
         If LN$N > 0 Then
              Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
         End if ;
    end;Post-Query trigger:
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
    Enjoy it,
    Francois

  • Dynamically change label template

    I'm using Apex 4.0.2 and I'm trying to dynamically change the label template for a field from Optional to Required.
    I have one form and in a specific situation (known on page load) an item on this page changes from optional to required. I have a conditional validation on this item, so the user gets an error when the item is null and the condition is met.
    But I would also like to change the item label template from Optional to Required. Is this possible in some way?
    Maybe it is possible or easier with a different template. Currently they are:
    Required Before Label  template:
    <label for="#CURRENT_ITEM_NAME#" tabindex="999"><img src="#IMAGE_PREFIX#apps/required.gif" alt="#VALUE_REQUIRED#" tabindex="999" /><span class="required">
    Optional template:
    <label for="#CURRENT_ITEM_NAME#" tabindex="999">Edited by: InoL on Aug 1, 2011 4:09 PM

    I got the same effect (more or less, just adding a star in front of the label) with jquery:
    $("label[for='P4_REL_ID']").prepend('<img tabindex="999" alt="Value Required" src="/i/apps/required.gif">');

  • How to programatically (dynamically) change the chart legend ?

    How do I add new labels/symbols to the chart legend dynamically ?
    I'm creating a scatter graph using the query
    select A,B,C from tableX group by A
    B is the y-axis, C is the x-axis. Points plotted for each grouping of A will be a different color. I know I can change the color of the point to be plotted thru the format trigger. The format trigger will change the color of the plotted points when there is a change in the grouping of A. My problem is how can I add a new label/color to the legend for each grouping of A as it is plotted ? The number of groupings of A is variable depending on what's in tableX. I need to programatically create the legend (each grouping of A will have it's own label/color) thru the format trigger as I won't know before hand how many groupings of A there will be.

    Try with Presentation variables.

Maybe you are looking for