Change SubScreen sizes during runtime

Hello all,
Here is another question.
Is there a possibility to change the height of a user subscreen during runtime?
Thank you in advance.
Andreas

Yes,you can.Just assign the new source to the source property of swfloader.

Similar Messages

  • Change Form Size during runtime

    Could someone tell me how to change the size of my VI form during runtime?
    I want the ability to click a button and have the height increase by 50 points or so, then go back to the original value after I click the button again.
    Thanks for the help!
    Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.

    Ok, that got me on the right track.
    For some reason, though, my VI still does not change whenever I click the button.
    I have attached my VI, saved in 8.2 format.
    Does anyone see why my form doesn't grow by "98" whenever I click the "More >>" button?
    Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.
    Attachments:
    Event Notifications.vi ‏44 KB

  • How We Can Change Page Size During Report Run Time

    Hello !
    How We Can Change Page Size During Report Run Time .
    How can we stop to change the column name when we amend a sql in report data model.
    Thanks !
    null

    hello sohail
    1. question - i'm afraid this cannot be done ... bit in report 6 and newer you have posibility to divide your report in 3 parts (former header, body, trailor) and each part can have diferent page siz, orientation , ...
    2. question - best is give each column in your statements in one report diferent alias. when you have to chnge something, alias will remain same ...
    try this: select 1 as fist_column, 1 as second_column from dual
    hope this helsp

  • Change SWFLoader source during runtime

    Hi
    I am using SWFLoader  to load png images.
    Is it possible to change SWFLoader source  during runtime?
    Thanks
    Amir

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Is it possible to add/change a ViewContainerUIElement during runtime?

    Hi all,
    i want to add/change the content of a ViewContainerUIElement (VCUI) during runtime, but it doesn't work as expected (or hoped;). What i got working so far for an <b>already exising</b> VCUI is:
    1. Find the IWDViewContainerInfo for the VCUI
    2. If no default view usage exists, create an embedded view usage and set is as default.
    3. Set the component usage to the IWDComponentUsageInfo requested.
    4. Set the view to the IWDViewUsageInfo of the interface view, which should be the content of the VCUI.
    This doesn't work, if it's done after the wdDoInit()s of the controller hierarchy has been processed. The component, which is represented by the usage, is deleted and recreated, but the visual representation doesn't get updated (e.g. no changes on the display) if it's done in an action handler for example. Why? If i change the component usage (cloned component usage) nothing happens too.
    Even more problems arise, if i try to add a new VCUI. The steps are pretty the same as before, what is done additionally (and prior the steps above) is:
    1. Creating a IWDViewContainerInfo from the IWDViewInfo of the "parent" view.
    2. Creating a IWDViewContainerAssignmentInfo from the view usage of the "parent" view
    3. Setting the created IWDViewContainerInfo as view container in the assignment.
    4. Create the VCUI, set the view container name to the name of the created IWDViewContainerInfo and add the VCUI to an arbitrary container in the parent view.
    But this doesn't work, i'm getting:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)
    What is wrong? What am i missing?
    Thanks in advance.
    Stefan

    Hi,
    I had the same problem with
    "java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
    when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
    The code below fixed that problem.
    This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
    <i>// Create OutboundPlug
    IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
    //Create navigation link
    rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
    // fire navigation link
    wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
    </i>
    I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
    Regards, Alex

  • Changing Changing Database Location During Runtime

    I'm using Netbeans 6.0.1. My database location ALWAYS change in place. That's why I'm planning that there would be a "Database Settings..." inside my program. But I don't know how to change the current: user, password, url settings of my program DURING RUNTIME. Here's my persistence.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
      <persistence-unit name="LibraryPU" transaction-type="RESOURCE_LOCAL">
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
        <class>desktopapplication2.Books</class>
        <properties>
          <property name="toplink.jdbc.user" value="root"/>
          <property name="toplink.jdbc.password" value="password"/>
          <property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/Library"/>
          <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
        </properties>
      </persistence-unit>
    </persistence>

    To solve the "why the hell would I want that stuff inside a jar file" issue, I googled a bit and found this
    style of approach in a Oracle forum. Essentially think of the persistence.xml file as an template
    that the program uses.
    I use a properties file to set all local DB configuration aspects. Load the properties at application
    startup and set then extract the required fields into a Map to create the persistent unit.
    All the "examples" I seen always use a static xml which is never what you need in the real
    world.
    Map properties = new HashMap();
    properties.put(TopLinkProperties.JDBC_URL, dbProps.getString("abc.jdbcurl") );
    properties.put(TopLinkProperties.JDBC_DRIVER, dbProps.getString("abc.jdbcdriver"));
    properties.put(TopLinkProperties.JDBC_USER, dbProps.getString("abc.user"));
    properties.put(TopLinkProperties.JDBC_PASSWORD, dbProps.getString("abc.password"));
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("abcPU", properties);
    entityManager = emf.createEntityManager();
    HTH Altimes.

  • To change view property during runtime

    Hi,
    I have a scenario where we have 2 views embedded in a window.
    First View's property is set to True and second View's property is set to false.
    We have a button say "show view" in first view and now we want to change the second view's property to True on click of that button i.e we want to change the view proerties to True during runtime.
    We are unabelt o achieve this thruogh plugs are first view is in another DC and second view is in other DC.
    Is there any other way to through which we can achieve this?
    Any help is this regard is highly appreciated.
    Regards,
    Richa Sinha

    Hi,
    I got your requirement,
    Yes if you want navigate back to source view, the problem is you cannot add the the Comp2 again in Comp1 as used comp. This will give cyclic dependancy error.
    Try like this.
    In Comp2,  create an additional view like NavigationView (for example).
    In NavigationView create two ViewContainerUIElements (ViewContainerUIElement1 & ViewContainerUIElement2).
    Embed this NavigationView into Comp2Window and remove View1's Inteface view & View2 from this window. Change the NavigationView property to true.
    And go the Comp2Window Navigation Modeler, embed View1's Inteface view in ViewContainerUIElement1  & View2 in ViewContainerUIElement2.
    Now create two context attributes View1Visibility & View2Visibilty in NavigationView and modify the type property to WDVisibility.
    Bind these two attributes to corresponding ViewContainerUI elements.
    Now in Navigation view, You can create one button and in that button action you can control the visibility of these views.
    Hope this info helps. If you need more clarification or info please let me know.
    Regards,
    Charan

  • Changing Stage size at runtime

    I have been poking around and not finding any info on this.
    What I want to do is change the height of the STAGE (not a
    MovieClip) based
    on which view I'm showing the customer at a particular time.
    For instance...
    I may have a thumbnail and a detail view for a product. I
    don't need a lot
    of screen real estate to show the thumbnail view, but I'd
    like to make the
    swf taller if the user switches to the detail view.
    I don't simply want to make the swf taller by default because
    I'll have a
    ton of unused whitespace in thumbnail view, which will look
    stupid.
    I shouldn't have a problem with the JavaScript to change the
    height
    properties in the HTML tags for the Flash object, but not
    really sure if/how
    to do the other part in Flash. Everything I've seen so far
    has been
    read-only properties.
    Thanks,
    Chris.

    did you change stage size?
    how can you do this without javascript?
    "Christopher Hayes" <[email protected]> escreveu
    na mensagem
    news:ee4csi$ent$[email protected]..
    >I have been poking around and not finding any info on
    this.
    >
    > What I want to do is change the height of the STAGE (not
    a MovieClip)
    > based on which view I'm showing the customer at a
    particular time.
    >
    > For instance...
    >
    > I may have a thumbnail and a detail view for a product.
    I don't need a lot
    > of screen real estate to show the thumbnail view, but
    I'd like to make the
    > swf taller if the user switches to the detail view.
    >
    > I don't simply want to make the swf taller by default
    because I'll have a
    > ton of unused whitespace in thumbnail view, which will
    look stupid.
    >
    > I shouldn't have a problem with the JavaScript to change
    the height
    > properties in the HTML tags for the Flash object, but
    not really sure
    > if/how to do the other part in Flash. Everything I've
    seen so far has
    > been read-only properties.
    >
    > Thanks,
    >
    > Chris.
    >
    >
    >

  • Dynamically change stage size on runtime

    Hi everyone,
    I need to change the stage size dynamically.
    When i try to do this............
    size_mc.onRelease = function(){
        trace(Stage.height);
        Stage.height += 100;
        trace(Stage.height);
    it comes always the current stage size.
    Thanks in advance

    You cannot change the width and height properties of the Stage using code--it must be done in the editor.  The width and height values can represent different things depending on the value you set for the scale mode, but you cannot reassign them to different values dynamically.
    The solution just offered to you is under the same rules, the stageWidth and stageHeight values cannot be assigned using code, but that code is AS3 code so it will not fit in your AS2 design in any case.
    The same goes for the followup offered in AS2.  You will notice the stage size is not being changed... it cannot be.  This is just a full screen design solution, but is not a soltuion to changing the stage size.  The stage size can only be changed manually in the authoring environment.  I don't know that the offering is answering what you are really trying to do, but it is not answering the titled task of dynamically changing the stage size

  • Change application parameter during runtime

    Hello,
    I have a WD application that expects a parameter: system_name.
    The parameter is defined in the application parameter field and is correctly interpreted by the handledefault function of the startup event default.
    The handledefault event handle sets a context parameter mdm_system_name to the value of this input parameter.
    On the other side,
    I have an input field, where the context parameter mdm_system_name can be changed by the user.
    I would like to change the application parameter value in the URL , whenever the input field value has changed.
    Do you know whether this is possible?
    kind regards,
          Sahla

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Is it possible to change memory size while runtime?

    Hi!
    Is it possible to set the Xmx value while runtime?
    I try to do something like this java Myclass -Xmx128mBut only in a dynamically way while my application is running.
    I'm developing an image-rendering - extension for an existing app and there's no chance to edit thejava XYZ statement.
    I don't think that's possible, but If anyone has an idea....
    Thanks!

    Yes. Both RAM and the hard drive are easily accessible and replaceable. The warranty is not voided because both are considered DIY. However, if you damage the computer in the process then your warranty will not cover that damage. But it is not voided.

  • Modify VI during runtime

    Dear LabView users,
    I have a quite general question about project development what requires continuous control of the hardware. To be more specific, I am developing LabView control and DAQ softwares for large volume calorimeters in the last 2 years. Such a device requires several PID controls, and it has many subsystems. Due to the large heat capacities, it takes about 3-4 days to start up the system. So if I need to modify for example something in a final stage fine control of a specific subsystem, I have to shut down the LabView code, I modify the specific part, I restart the system, I wait 3 days, and then I can see the result of my changes.
    My question is kind of general: what is the common, lets say the "best practice" to avoid such a dead time?
    Is it possible to change a VI during runtime?
    I understand that, if I run independent VIs, what take care of the subsystems, I could avoid this problem. But if I have already a compact "main" VI, including all the subVIs, what can I do?
    It would be nice to have a kind of "hot swapping" feature in LabView, so during runtime of my project's main VI, I could edit the subVI what I want, and when it is ready to activate, the runtime engine would swap it with the old version.
    Thanks for any advice and opinions!
    Best Wishes,
    Solved!
    Go to Solution.

    Can you modify your algorithims to use parameteric data? If so you can input those control parameters in a variety of ways external to the code itself and change the behavior of the running code. If you need to maodify the code itself you will need to call the code dynamically. If you do so though you will need to make sure you actually load the code right before it executes otherwise you run the risk of using code in memory.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • A question about how to change a button in a JPanel during runtime

    I am a beginner of GUI. Now I am trying to change a specific component, a button, when the application is running. For example, I have 3 buttons in a JPanel. Each button has its onw icon. If I click one of them, it will change its icon, but the other two don't change. I don't know if there is any method for changing a specific component during runtime. If any one knows please let me know, I will appreciate that very much!!!

    What you're going to have to do is loop inside the actionlistener but still have accessability to click while its looping. I don't know much about it, but I think you're going to need a thread. Try something like this... (it doesn't work yet, but I have to take off)
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class buttonxdemo extends JFrame implements ActionListener{
      Buttonx mybutton;
      //set it all up, make it look pretty  =]
      public buttonxdemo()
           mybutton = new Buttonx("default");
           getContentPane().add(mybutton.thebutton);
           mybutton.thebutton.addActionListener(this);
           this.setDefaultCloseOperation(3);
           this.setSize(200,200);
      public void actionPerformed(ActionEvent ae){
        if (ae.getSource() == mybutton.thebutton)
             if (mybutton.keepGoing)
               mybutton.keepGoing = false;
                else if (!mybutton.keepGoing)
                     mybutton.keepGoing = true;     
          mybutton = new Buttonx(/*Icon,*/"My Button");
          //getContentPane().remove(mybutton);
          //getContentPane().add(mybutton.thebutton);
          mybutton.startstop();
      }//actionperformed
      static void main(String args[])
           new buttonxdemo().show();
    } //movingicondemo
    class Buttonx extends Thread{
      public boolean keepGoing;
      //public Icon ICx;            //perhaps an array, so you can loop through?
      public String strbuttonx;
      public JButton thebutton;     //may have to extend JFrame?
      public Buttonx(/*Icon IC,*/ String strbutton){
        //ICx = IC;
        strbuttonx = strbutton;
        thebutton = new JButton(strbuttonx);
      public void startstop()
        int i = 0;
        while (keepGoing)
          thebutton.setLabel(strbuttonx.substring(0,i));
          //if an array of Icons ICx
          //thebutton.setIcon(ICx);
    i++;
    if (i > strbuttonx.length() - 1)
    i = 0;
    try
         Thread.sleep(1000);
    catch (InterruptedException ie)
         System.out.println("sleep caught: " + ie);
    }//startstop()
    }//buttonx
    kev

  • Change the size of a chart in runtime in LV7.1?

    Is it impossible to change the size of a chart in runtime in LV7.1? I can only see that the properties width and height is readable. It would be very neat to have these properties writable so one can change the size of for instance charts in run-time.Is it impossible to change the size of a chart in runtime in LV7.1? I can only see that the properties width and height is readable. It would be very neat to have these properties writable so one can change the size of for instance charts in run-time.
    Regards/Lars

    Thomas,
    You wrote,
    "Yes, you are right, it has just effect to the plot area." (bold added).
    That is not the case I found. Those properties do change the plot area BUT the rest of the chart adapts around that area so the WHOLE chart re-sizes.
    See attached.
    Confused,
    ben
    Message Edited by Ben on 11-09-2005 07:37 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Re-size chart.JPG ‏30 KB

  • Changing type of process during runtime

    hi to all/Mike/Antony
    is there anyway to change a sync process to async during runtime?
    thnx in advance
    KAM

    hi
    sorry for making confusion by putting a (little) wrong question because of being in a hurry...
    it was supposed to be that " is there anyway to change the type of the process from async to sync after executing the process"
    i m sorry for taking ur time by putting a wrong question!
    actually i made a sync process of "HelloWorld " but mistakenly declared its type as "async" and it did not generate the required output, because it was an async process and i was treating it as a sync one!
    thanks for ur interest. i'll write, as i find the solution.
    KAM.

Maybe you are looking for