Dynamic gui creation

Hi experts,
I have a question regarding Web Dynpros possibilities to create dynamically gui. In my requirement I know only during runtime how many textboxes / checkboxes i will need.
Is there a way to approach this in Web Dynpro ? With an jsp and the backend information it would be possible. Now I am asking me how I can make create something like a loop over a collection with the UI elements in Web Dynpro.
Regards
Flo

This is probably more suited for the Web Dynpro forum.
However, here's a document for Web Dynpro for java which contains a tutorial on Dynamic UI Manipulation:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/74cda090-0201-0010-6b91-f85b2489f765
There's some tutorials for Web Dynpro for ABAP as well. A search for Dynamic UI Manipulation should give you enough hits on the topic.

Similar Messages

  • Dynamic Table Creation & Fill Up

    Hello,
    Can anyone please guide where I can find examples for dynamic table creation (programmaticaly), with dynamic number of columns and rows, used to place inside text components (or whatever) to fill them with data.
    All programmatic.
    Using JSF, ADF BC
    JDeveloper 10.1.3.1
    Thanks
    Message was edited by:
    RJundi

    Hi,
    Meybe this article helps: http://technology.amis.nl/blog/?p=2306
    Kuba

  • Does Seeburger's SFTP adapter support dynamic filename creation

    Hi all,
    Does the SFTP adapter support dynamic filename creation.
    If yes, then do we have to use UDF's and are there any specific settings that have to be done in the SFTP communication channel.
    Please provide a blog which helps in the configuration process of the above case.
    thanks,
    younus

    Dynamic Creation of File using counter in Seeburger Variable:
    1. Configuration Needed in the Communication Channel:
    The process of dynamic creation of files can be done we have to select the following checkbox in the receiver channel:
    Dynamic Attribute in receiver Channel:
    Import the following modules:
    Localejbs/Seeburger/solution/sftp
    Localejbs/Seeburger/AttribMapper
    Localejbs/ModuleProcessorExitBean
    Enter  the desired file naming convention:
    Use the Parameter GetCounter("ID") to the place where the counter is expected to come.
    2. Configuration Needed in the SeeBurger Workbench:
    If the J2EE server is listening on a port different from 50000 (which is the standard for the SAP client 000), the port number must be configured:
    Login into the seeburger workbench using the URL
    http://<localhost>:<port number>/seeburger/index.html
    Select Property Store.
    Create or edit the following property:
    Parameter
    Value
    Namespace
    http://seeburger.com/xi/SeeFunctions
    Key
    provider.servlet.server
    Value
    http://localhost:50000/ (where the port number 50000 must be set
    accordingly to the J2EE server configuration).
    Note: The configured value (server URL) has to end with a slash (/). Otherwise,
    SeeFunctions will not work correctly.
    If we need to start the counter from any specific value , it can be configured in the SeeBurger workbench, this value can be maintained in Mapping Variables :

  • Dynamic GUI Titles?

    Is there any way to create a dynamic GUI title for my Dynpro???
    I mean, i could change the text in runtime.
    Thanks

    hi Jose,
    SET TITLEBAR - Dynpro
    Syntax
    SET TITLEBAR title [OF PROGRAM prog]
    [WITH text1 ... text9].
    Extras:
    1. ... OF PROGRAM prog
    2. ... WITH text1 ... text9
    Effect
    During screen processing, this statement specifies the GUI title (specified in title) for the subsequent screens. The title is displayed in the title bar from the next sending of one screen until the end of the program or until the next SET TITLEBAR statement. The name of the current GUI title is displayed in the system field sy-title.
    A character-type data object that contains the name of a GUI title of the main program of the current program group or of the program specified in prog in upper case is expected for title. If the title does not exist, sy-subrc is set to 4 and the word "SAP" is displayed in the title bar.
    System fields
    sy-subrc Meaning
    0 GUI title is set.
    4 GUI title cannot be found.
    Notes
    The GUI title of the screen must be set before the PBO event. If no GUI title is set for a screen, the word "SAP" is displayed in the title bar.
    The title bar can contain a maximum of 70 characters. A title that exceeds this limit after the replacement of placeholders is truncated to the right.
    The statement SET TITLEBAR contains a variant for the GUI status of lists.
    Addition 1
    ... OF PROGRAM prog
    Effect
    By default, a GUI title defined in the current main program is used. When using the addition OF PROGRAM, a GUI title of the progam specified in prog can be set. A character-type data object is expected for prog that contains the name of a ABAP program in upper case.
    Addition 2
    ... WITH text1 ... text9
    Effect
    When using the addition WITH, you can replace the placeholders of the GUI title with the contents of data objects text1 to text9. Data objects text1 to text9 must be of a character-type flat data type. The placeholders of the GUI title can be defined in the form "&" or "&i", where i can be a number between 1 and 9. The characters are replaced as follows:
    The numbered placeholders "&i" are replaced with the contents of the data objects text1 to text9, whose names contain the same number i for the second digit.
    The non-numbered placeholders "&" are replaced with the contents of the remaining data objects text1 to text9 according to their order.
    If no data object is specified for a placeholder, it is represented by a blank character. Two successive "&" characters "&&" in the title bar are not replaced with the contents of text1 to text9, but with the character "&".
    Example
    In the following example, the GUI title TITLE_0100 of the program specified in prog is set in a PBO module, where the placeholders "&1" and "&2" of the title are replaced with the contents p1 and p2.
    DATA: title TYPE string,
    prog TYPE string,
    p1(10) TYPE c,
    p2(10) TYPE c.
    MODULE status_0100 OUTPUT.
    title = 'TITLE_0100'.
    prog = '...'.
    p1 = '...'.
    p2 = '...'.
    SET TITLEBAR title OF PROGRAM prog WITH p1 p2.
    ENDMODULE.
    SET TITLEBAR
    Syntax Forms
    Set title of screen
    1. SET TITLEBAR title [OF PROGRAM prog]
    [WITH text1 ... text9].
    Set title of list
    2. SET TITLEBAR title [OF PROGRAM prog]
    [WITH text1 ... text9].
    SET TITLEBAR - Liste
    Syntax
    SET TITLEBAR title [OF PROGRAM prog]
    [WITH text1 ... text9].
    Extras:
    1. ... OF PROGRAM prog
    2. ... WITH text1 ... text9
    Effect
    During list processing, this statement sets the GUI title, specified in title, for the display window of the current list level and all following list levels up to the next statement SET TITLEBAR. The statement has - for the most part - the same syntax and semantics as for screens.
    In contrast to the screens of dynpros, each list level automatically remains linked to the title set for it. When you return from the display of a higher list level to the display of a lower list level, the latter is displayed with the title that was set for it.
    Addition 1
    ... OF PROGRAM prog
    Addition 2
    ... WITH text1 ... text9
    Effect
    As for screens.
    Reward points if helpful.
    Regards
    Nilesh

  • Does UCM support dynamic page creation on contributor mode.?

    Hi All,
    Does UCM support dynamic page creation on contributor mode.
    We want to create new pages and link it into the existing pages
    is that possible?
    Thanks
    ~Hari

    You can create new secondary pages in contributor mode - you would normally do this via a dynamic list fragment though technically you could also achieve it by switching region content and creating new data files. You can then use the linz wizard to link between pages.
    If you are talking about creating new primary pages and sections in your site then you would need to use something like Site Studio Manager fragment.
    Tim

  • Great Challenge !! No one is able to Tell Solution ? Dynamic GUI Updation

    Topic: Dynamic GUI Updation on msWindows when user changes Display properties.
    (I post this Question last month and have't got any answer, Is there no way for this ?)
    I want to dynamicly Update my UI on msWindows when user changes Display properties, Like other windows applications.
    i am doing this procedure-
    1.to get windows look & feel-
    UIManager.getSystemLookAndFeelClassName()
    2.To receive Events when when user changes Display properties-
    Toolkit.getDefaultToolkit().addPropertyChangeListener( "win.desktop.backgroundColor" ,new Java.beans.PropertyChangeListener()
    public void propertyChange(java.beans.PropertyChangeEvent e)
    3.To Reflect it in GUI-
    SwingUtilities.updateComponentTreeUI(TOP COMPONENT);
    But it only reflects the Border & Title Bar of My application.
    pls. suggest what can i do ?
    Regards
    Naveen Sharma

    I seem to remember looking at a similar thing in the Java demos that came with jdk1.3. I could be wrong...
    Let me see...
    Aha! Here it is.
    on my pc the path is
    C:\jdk1.3\demo\jfc\Metalworks
    then click on the jar file. The demo allows you to change the background color, font size on the toolbar etc..Another demo Swingset2 allows you to dynamically change the look and feel. I hope this helps. If you don`t have these demos I could always send you the code.
    Regards
    Grahame

  • Help with Dynamic GUI

    I am trying to create a dynamic gui for a program that when given three names, it will make a list of matches ( wrestling ) against each other.. I got it so when you click foward once.. it brings up the specified amount of text fields.. but when i click previous, it does not pack it fully, and the buttonPanel does not go back to the minimal size, and keeps the whole frame long.
    [code="face.java"]import java.awt.*;
    import java.awt.Component.*;
    import java.awt.event.*;
    public class face extends GUIFrame implements WindowListener, ActionListener {
    static TextField[] nameFields;
    List howMany;
    TextArea finish;
    Button forward, back, startOver, print;
    Panel mainPanel, buttonPanel, numberPanel, namePanel, matchesPanel;
    GridBagLayout gbl;
    GridBagConstraints gbc;
    BorderLayout bpl, mpl;
    CardLayout cl;
    Choice numbers;
    public face() {
    super("Wrestling Order");
    gbl = new GridBagLayout();
    gbc = new GridBagConstraints();
    setLayout(gbl);
    mainPanel = new Panel();
    buttonPanel = new Panel();
    bpl = new BorderLayout();
    back = new Button("Previous");
    back.setEnabled(false);
    back.addActionListener(this);
    back.setActionCommand("numOf");
    buttonPanel.setLayout(bpl);
    buttonPanel.add(back, BorderLayout.WEST);
    forward = new Button("Forward");
    forward.addActionListener(this);
    forward.setActionCommand("names");
    buttonPanel.add(forward, BorderLayout.EAST);
    startOver = new Button("Start Over");
    buttonPanel.add(startOver, BorderLayout.SOUTH);
    //mainPanel
    numberPanel = new Panel();
    numbers = new Choice();
    numbers.add("3");
    numbers.add("4");
    numbers.add("5");
    numberPanel.setLayout(bpl);
    numberPanel.add(numbers, BorderLayout.CENTER);
    cl = new CardLayout();
    mainPanel.setLayout(cl);
    mainPanel.add("numbers", numberPanel);
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.gridwidth = GridBagConstraints.REMAINDER;
    gbl.setConstraints(mainPanel, gbc);
    add(mainPanel);
    gbc.gridx = 0;
    gbc.gridy = 5;
    gbl.setConstraints(buttonPanel, gbc);
    add(buttonPanel);
    addWindowListener(this);
    pack();
    setVisible(true);
    public Panel makeNamePanel(int numOfNames) {
    gbl = new GridBagLayout();
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = GridBagConstraints.RELATIVE;
    nameFields = new TextField[numOfNames];
    Panel makePanel = new Panel();
    for (int x=0; x < nameFields.length; x++) {
    nameFields[x] = new TextField(20);
    makePanel.add(nameFields[x]);
    return makePanel;
    public void windowClosing(WindowEvent e) {
    dispose();
    System.exit(0);
    public void windowOpened(WindowEvent e) {}
    public void windowActivated(WindowEvent e) {}
    public void windowDeactivated(WindowEvent e) {}
    public void windowIconified(WindowEvent e) {}
    public void windowDeiconified(WindowEvent e) {}
    public void windowClosed(WindowEvent e) {}
    public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand() == "names") {
    namePanel = makeNamePanel(Integer.parseInt(numbers.getItem(numbers.getSelectedIndex())));
    mainPanel.add("name", namePanel);
    cl.next(mainPanel);
    forward.setActionCommand("final");
    pack();
    back.setEnabled(true);
    if (e.getActionCommand() == "numOf") {
    cl.previous(mainPanel);
    pack();
    forward.setActionCommand("names");
    back.setEnabled(false);
    that is the face.java .. it extends GUIFrame.. which is as follows..
    * GUIFrame
    * An extension of Frame that uses a WindowAdapter to
    * handle the WindowEvents and is centered.
    import java.awt.*;
    import java.awt.event.*;
    public class GUIFrame extends Frame {
      public GUIFrame(String title) {
        super(title);
        setBackground(SystemColor.control);
        addWindowListener(new WindowAdapter() {
          //only need to override the method needed
          public void windowClosing(WindowEvent e) {
            dispose();
            System.exit(0);
      /* Centers the Frame when setVisible(true) is called */
      public void setVisible(boolean visible) {
        if (visible) {
          Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
          setLocation((d.width - getWidth())/2,
                      (d.height - getHeight())/2);
        super.setVisible(visible);
    }If you could help me out.. Thanks..

    Have you tried using some other layouts... GridBagLayout is a complicated thing to figure out... Might be easier to use some nested panels with different layouts... Particularly, look at SpringLayout.

  • RE: dynamic widget creation

    This is a good tech note about this on the Forte website.
    -----Original Message-----
    From: Matthew Middleton [SMTP:[email protected]]
    Sent: Friday, 25 June 1999 11:11
    To: [email protected]
    Subject: dynamic widget creation
    I have done a few windows with dynamic widget creation. Sometimes it
    seems I have to have done self.Open before, to get things to appear
    properly, and sometimes not.
    What I would like is a summation of the issues involved here so I can
    write such code without resorting to trial and error.
    with advance appreciation,
    Matthew
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Tech Note 5156, which I have attached for your information.
    -----Original Message-----
    From: Foster, Todd [SMTP:[email protected]]
    Sent: Saturday, 26 June 1999 1:27
    To: 'Jason de Cean'
    Subject: RE: dynamic widget creation
    ? What technote ?
    -----Original Message-----
    From: Jason de Cean [SMTP:[email protected]]
    Sent: Thursday, June 24, 1999 9:19 PM
    To: 'Matthew Middleton'
    Cc: 'Forte Users'
    Subject: RE: dynamic widget creation
    This is a good tech note about this on the Forte website.
    -----Original Message-----
    From: Matthew Middleton [SMTP:[email protected]]
    Sent: Friday, 25 June 1999 11:11
    To: [email protected]
    Subject: dynamic widget creation
    I have done a few windows with dynamic widget creation. Sometimes
    it
    seems I have to have done self.Open before, to get things toappear
    properly, and sometimes not.
    What I would like is a summation of the issues involved here so Ican
    write such code without resorting to trial and error.
    with advance appreciation,
    Matthew
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>

  • Dynamic re-creation of Entity/View Objects

    Does anybody know if the following is possible with JDeveloper/ADF, and if so, any suggestions on where to start?
    My boss wants to be able to re-define a series of database views dynamically at any time, adding/removing columns. This will be handled by PL/SQL etc so it is not part of the JDeveloper question.
    But he then wants the J2EE Swing GUI application to be able to "see" the changes to the view immediately e.g. to display new fields on the client form, without having to re-compile any code.
    The Swing GUI appears to be a given, unfortunately as it would be easier to re-create at least the GUI dynamically using JSP etc.
    Right now, I'm trying to figure out how to pass the database changes through the J2EE tiers e.g. how do I dynamically re-define the Entity Object based on the modified view, without re-compiling it? How do I reflect these changes in the corresponding View Object(s)?
    Personally I think this requirement will be the death of the project, as it will absorb 95% of our limited intellectual/Java resources for 5% of the functionality: Welcome to Dilbertland!
    But given this requirement, does anybody out there have any ideas?
    Thanks,
    Chris

    Hi Chris ,
    well you can always create dynamic attribute in the view object using viewObject.addDynamicAttribute(DynamicAttributeName);
    and you can store any serialazable object in this attribute like any other attribute. It should be serializable coz BC4J needs to send it to Database in case you are using spillover feture
    to cache records.
    you can also create Dynamic view object based on an entity or a SQL query.
    AppModule.createViewObjectFromQueryStmt();
    But of course dynamic view based on SQl Query
    will not be updatable. I doubt , You can dynamically create attribute on Entity or dynamic Entities.
    I have already posted one question for this ..and waiting for reply ..:-(
    Updatable , Dynamic VIEW OBJECT ??
    hope it'll help
    Prasoon

  • Dynamic Event Creation and Handling the events

    Hi All
    I am using WAS 6.4.
    I have two components say Component A and Component B in which Component A is a reusable component and is used by other components say for e.g the Component B.
    The following is the requirement.
    Component A should create buttons for other components dynamically.
    As an example, Component B specifies to Component A the buttons required say button B1 and button B2.
    Component B also contains methods M1 and M2 for the buttons created by the component A.
    Now I would like to associate these buttons created by component A with the methods created in Component B
    The number of buttons that are to be created may vary from component to component.
    If any one as any suggestion or solution, help me out.
    Thanks
    Regards
    NagaKishore

    Hi NagaKishore,
         I'm not exactly sure why you want to do this, but it is pretty easy if I switch it up a bit.  (Maybe you are trying to create a navigation page or something?) 
         Instead of your component B using component A, if you define a Web Dynpro interface in component A, then implement this interface in component B (or all component Bs), achieving your goal would not be too difficult.  It could define a generic method (or event) with a "button key" as an argument that would tell component B which button was pressed and allow it to behave as desired.  The Web Dynpro interface defined in A could also have an interface context that would allow the the button text to be passed along with (for the sake of simplicity) a "button key" that component that should be triggered when the button is pressed.  (Note this could be a varying size list as required.)
         The component B(s) need not be known until run-time.  They can be created using something like:
    wdThis.wdGet<Used Compontne Name>ComponentUsage().createComponent(<Component Name>,<Object Name (if in a different component)>)
         Once the component is created, the context can be accessed giving the list of buttons to create and the values.  The buttons can be created in the wdModifyView during the first pass of the creation of the view displaying the buttons (after the dynamic creation of the used components which can occur in the wdDoInit of the component controller).
         If the user presses a chosen button on component A, then the generic method (most likely an event) of component Bs interface is called and passed the "button key", component B then takes over.  Note this would also work if component B had a visualization component that must be displayed through an interface view that is defined on the web dynpro component interface that is implemented by B.
         Hope this helps or at least triggers discussion that will answer your question,
           --Greg

  • Dynamic Row Creation

    I am making a request from an applet for sets of information, and want to display this information as rows of data. A list of addresses could be an example. What I don't know how to do is how to dynamically create fields based on the number of rows I need to create. Can I create these rows dynamically with the fields having the same name so I don't have to do dynamic textfield naming?
    Thanks for any help.
    Dave

    Your fields don't even need to have a "name", if by that you mean the name of a variable. Or they can all have the same name, for that matter. I don't know how you want to build your GUI, but just for an example lets suppose you wanted to display customer addresses using Labels. You could use some code like this (crude approximation to good working code):for or while loop over all customers:
      String name = // name of next customer
      Label custLabel = new Label(name); // make a Label
      add(custLabel) // add the Label to your Panel or Frame or whatever
    end of loopOr you could shorten that toadd(new Label(name));but the first version is necessary if you need to change the default attributes of the Label.

  • AFAB dynamic variant creation for Posting period.

    HI,
    Business Requirement :
    Business want to run AFAB transaction code every month automatically with schedule job.
    system should pick present month period in posting period field.
    i checked in variant creation  against posting period there is no dynamic " D " in selection variable column.
    how can i fix this.

    Hi Jani,
    Check with abaper if TVARV table can Help you in this case, or create a z program from AFAB. And add date field to it, and schedule job based on that,
    I think TVARV table will be a better approach.
    Another point to consider here would be that dep should be run once business is ready to do so, and has its own hick ups in business if corrections are required to be made after executing AFAB by job
    Regards
    Pankaj B.

  • Dynamic Datasource creation

    I am trying to create datasources dynamically. Using an example from a previous
    post,
    mbeanHome = lookupMBeanHome();
    JDBCDataSourceMBean dsMBean = (JDBCDataSourceMBean)mbeanHome.createAdminMBean(poolName,"JDBCDataSource",
    mbeanHome.getDomainName());
    dsMBean.setJNDIName(poolName);
    dsMBean.setPoolName(poolName);
    dsMBean.addTarget(tserverMBean);
    dsMBean.setPersistenceEnabled(false);
    How can I retrieve the proper TargetMBean reference to send to the addTarget method.
    Does anyone know where I can find an entire class example of dynamically creating
    datasources, or something similar.
    Thanks in advance,
    Fahd

    Hi Fahd,
    Here is a sample I posted here some time ago
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.Iterator;
    import java.util.Set;
    import javax.naming.Context;
    import javax.sql.DataSource;
    import weblogic.jndi.Environment;
    import weblogic.management.configuration.JDBCDataSourceMBean;
    import weblogic.management.configuration.ServerMBean;
    import weblogic.management.MBeanHome;
    * This class demonstrates dymamic creation,
    * using and deletion of DataSource via
    * Weblogic management API.
    public class DynamicDataSource {
    private Context ctx = null;
    private JDBCDataSourceMBean dsMBean = null;
    private MBeanHome mbeanHome = null;
    private ServerMBean serverMBean = null;
    // DataSource attributes
    private String cpName = "yourPoolName";
    private String dsJNDIName = "dynamic-data-source";
    private String dsName = "dynamic-data-source";
    // Security credentials
    private String password = "admPasword";
    private String serverName = "yourServer";
    private String url = "t3://localhost:7701";
    private String userName = "system";
    * Creates and starts up a DataSource using
    * management API.
    public void createDataSource() throws SQLException {
    System.out.println("Creating DataSource...");
    try {
    // Get context
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(userName);
    env.setSecurityCredentials(password);
    ctx = env.getInitialContext();
    // Lookup for MBean home
    mbeanHome = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    serverMBean = (ServerMBean)mbeanHome.getAdminMBean(serverName,
    "Server");
    // Delete if DataSource MBean already exists in active domain
    Set dsMBeanSet = mbeanHome.getMBeansByType("JDBCDataSource",
    mbeanHome.getDomainName());
    Iterator iter = dsMBeanSet.iterator();
    while(iter.hasNext()) {
    JDBCDataSourceMBean dsmb = (JDBCDataSourceMBean) iter.next();
    if (dsmb.getJNDIName().equals(dsJNDIName)) {
    dsMBean = dsmb;
    deleteDataSource();
    break;
    // Create DataSource MBean
    dsMBean = (JDBCDataSourceMBean)mbeanHome.createAdminMBean(
    dsName, "JDBCDataSource",
    mbeanHome.getDomainName());
    // Set DataSource attributes
    dsMBean.setJNDIName(dsJNDIName);
    dsMBean.setPoolName(cpName);
    // Startup datasource
    dsMBean.addTarget(serverMBean);
    } catch (Exception ex) {
    throw new SQLException(ex.toString());
    * Symply gets and closes a connection from dynamic
    * DataSource. Will throw a SQLException if datasource
    * does not exists.
    public void createConnection() throws SQLException {
    System.out.println("Getting Connection...");
    try {
    DataSource ds = (DataSource)ctx.lookup (dsName);
    Connection conn = ds.getConnection();
    conn.close();
    } catch (Exception ex) {
    throw new SQLException(ex.toString());
    * Shuts down and deletes DataSource from configuratrion
    * using management API.
    public void deleteDataSource() throws SQLException {
    System.out.println("Deleting DataSource...");
    try {
    // Remove dynamically created datasource from the server
    dsMBean.removeTarget(serverMBean);
    // Remove dynamically created datasource from the configuration
    mbeanHome.deleteMBean(dsMBean);
    } catch (Exception ex) {
    throw new SQLException(ex.toString());
    public static void main(String args[]) {
    DynamicDataSource dds = new DynamicDataSource();
    try {
    dds.createDataSource();
    dds.createConnection();
    dds.deleteDataSource();
    } catch (SQLException ex) {
    ex.printStackTrace();
    "Fahd" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am trying to create datasources dynamically. Using an example from aprevious
    post,
    mbeanHome = lookupMBeanHome();
    JDBCDataSourceMBean dsMBean =(JDBCDataSourceMBean)mbeanHome.createAdminMBean(poolName,"JDBCDataSource",
    mbeanHome.getDomainName());
    dsMBean.setJNDIName(poolName);
    dsMBean.setPoolName(poolName);
    dsMBean.addTarget(tserverMBean);
    dsMBean.setPersistenceEnabled(false);
    How can I retrieve the proper TargetMBean reference to send to theaddTarget method.
    >
    >
    Does anyone know where I can find an entire class example of dynamicallycreating
    datasources, or something similar.
    Thanks in advance,
    Fahd

  • MXML Dynamic Object Creation

    Hi ,
    Static Object Creation :
    Eg:
        <mx:Fade id="ViewStack_EffectStart" duration="500" alphaFrom="0.0" alphaTo="1.0"/>
        <mx:Fade id="ViewStack_EffectEnd" duration="500" alphaFrom="1.0" alphaTo="0.0"/>
    <comp:ErrorBox id="errorBox" active="{active}" showEffect="{ViewStack_EffectStart}" hideEffect="{ViewStack_EffectEnd}"/> .
    The above static objects is working fine, but the problem is that we have lot of similiar static object which creates a memory issue.If we create dynamic objects, will it avoid the issue.Is dynamic objects advisible?.
    Thanks in advance.Please reply ASAP.
    Thanks ,
    San.

    hmn.. I don't understand your questions fully.
    What about create the fade object in "Model" and reference the same Fade object for all dynamic objects?
    or r u asking to find out how to create fade in actionscript?
    var fade:Fade = new Fade();
    fade.target = this;
    fade.alphaFrom = 0;
    fade.alphaTo = 1;
    fade.play();
    hope this helps,
    BaBo,

  • Help with dynamic GUI in NetBeans

    Hey all,
    I'm new here and was looking for help. I'm trying to create a GUI which is dynamic. I want a JPanel (I think this is the proper component) that will be dynamically populated with other modules, namely other JPanels defined as classes. This JPanel is within a JDialog. Ive been trying things like this:
    myPanel.add(new myNewPanel)inside of a the index changed method but the panel is not being added. I feel like I'm doing something fundamentally wrong. Does anyone have any words of advice??
    Thanks

    Of course JDialog has a pack() method.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

Maybe you are looking for

  • How to prevent step status from appearing in report

    How can I prevent the the rows containing step name (Settings) and Staus (Done) from appearing in the report?   

  • Pop up message why everytime

    Why is it when I open Final Cut Express I get this message. Unable to locate following external drive: Apple Firewire NTSC (720x480) Your system confifiguration may have changed, or your deck/camera may be disconnected or turned off. Please check you

  • Table for classification in Vendor Master.

    Hello Our client has maintained classification for Vendor Master. I want to identify the table where I can see the classes and characteristics for Vendor.Can anybody let me know how I can find this data and in which table. Regards

  • EXC_BAD_ACCESS & KERN_PROTECTION_FAILURE

    first time poster... today I had a printer hang up, and aborted a couple of print jobs.... then, I installed palm desktop and updated a handheld pda w/software... then, attempted to install a piece of software (suze orman will & trust kit) I cannot g

  • Missing Cast member names in score

    Hi, I'm having a problem with the Score when I open Director. The names of the members on each sprite don't show up (see image), now I can work around this, but I'm editing someone else's document so locating each cast member on the score is turning