Changing the MXML of a component at runTime

Hi there,
I need, depending on runTime conditions, to update the surface of a Flex window with a combination of controls.
For example I may need to layout this line
THIS IS STATIC TEXT #COMBOBOX# THIS IS ANOTHER STATIC TEXT #CHEKBOX#
Or this line :
#EDITBOX# STATIC TEXT HERE
A priori I can't tell the set of combination I may encounter, so I need to be able to dynamically construct the UI.
If changing the MXML of a component is possible, then I can ofcourse solve this pbm since the solution will only have to deal with string operation.
Please help.
Thanks in advance.

Hi,
Check View States.
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

Similar Messages

  • 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

  • How to change the label of a component with javascript?

    Hi, i need to change the label of a component dinamically. I tried:
    if (document.getElementById('P34_ID_OPERACION').value==2) {
    document.getElementById('P34_ID_USUARIO_DEST').label = 'Encargado:';
    if (document.getElementById('P34_ID_OPERACION').value==3) {
    document.getElementById('P34_ID_USUARIO_DEST').label = 'otro texto:';
    but doesn't work.
    any ideas?
    Edited by: Andres Vilallave on 16-mar-2010 12:49

    Hi,
    I think "label" is not valid attribiute for "input" tag.
    Create new hidden item P34_LABEL. For item 'P34_ID_USUARIO_DEST', put label value as +&P34_LABEL.+
    Now try the following JS
    <script>
    if (document.getElementById('P34_ID_OPERACION').value==2) {
    document.getElementById('P34_LABEL').value = 'Encargado:';
    if (document.getElementById('P34_ID_OPERACION').value==3) {
    document.getElementById('P34_LABEL').value = 'otro texto:';
    </script>Cheers,
    Hari

  • Change the colour of Canvas graphics on runtime

    Hi,
    can someone tell me hoe to change the colour of canvas graphics like rectangle on runtime, like set_item_property is not working for these items
    Thanks

    try this
    set_canvas_property('canvas2',background_color,'r110g50b22');
    Pradhyumn

  • How to change the name of (Guided procedure) GP Runtime View?

    Hello all!
    At Design time in GP (Guided Procedure), I have added a runtime view at the tab "Runtime Views" named Additional Resources to a GP process.  At runtime, when the process is started,  at the left bar appears the button "Additional Resources". Is there a way to change this name? Any idea can be helpfull :).
    Kindly Regards,
    Luiza

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • FPM - How to change the title in a component configuration

    Hello,
    I am working with the component configuration EHHSS_INC_REC_NRM_QAF_V3 (version 7.31) and I need to change the title of the tab. I created an OTR with the text "Report Near Miss test". I changed the application title and I also change the tooltip text in the IDR to this OTR.
    When I executed it, I only see the modication on the tooltip. Why the application title is not shown with the modification? How can I modify also the tab and the title?
    Thank you for your help!
    Marie-Josée

    Hello,
    Thank you for your time. The application configuration is link to the business object EHHSS_INCIDENT...I did not find a view. I do not have a lot of experience in FPM so can you show me how? I looked in BOPF but I am not able to do it with an enhancement
    Marie-Josée

  • -trying to change the appearance of a sphere at runtime

    Hi,
    I've been trying desperately to change the appeareance of a simple sphere during runtime. I keep getting
    javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to set appearance
    My code looks as following:
    //create a sphere
    sphere = new Sphere(size*1.15f, blacklook);
    sphere.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);
    //change its app during runtime
    sphere.setAppearance(redlook);I don't know what the heck is not correct with my approach.
    PLEASE HELP!

    >
    So what in the world ist the
    sphere.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);for?
    I don't understand. Any idea?You can get the current Appearance object of a Shape3D object with the getAppearance method and change this object (watch that appropriate capabilities have to be set on the Appearance object) instead of creating a new Appearance object and add it to the Shape3D.

  • Changing the insets of a component

    anyone know how to set the insets of a component?
    there's a getInsets() method in the Component class, but there doesnt seem to be the usual 'set' method. It must be easy to change, can anyone help?
    thanks in advance,
    rob

    thanks for your help,
    I tried changing the insets using the public members but this basically doesnt update the component space that it uses. Using the EmptyBorder does create some customised inset space but it doesnt work as expected. Basically Im using another border within the empty border such as:
    EmptyBorder empty_ = new EmptyBorder(5,10,5,10);
              TitledBorder title_ = new TitledBorder(new LineBorder(new Color(102,102,153)),"hello");
              CompoundBorder compound1_ = new CompoundBorder(empty_, title_);
              CompoundBorder compound2_ = new CompoundBorder(new BevelBorder(BevelBorder.RAISED), compound1_);
    the insets of the empty border seem to work rather unusually, namely, the lineborder isnt drawn out fully. Instead it looses about half of its border... have you any suggestions or sample code which you can show me?
    once again, thanks for your help,
    rob

  • How can i change the window scroll bar property at runtime...???

    hi all ,
    can i change the Window's (Forms window) "Show horizontal scroll bar property" at runtime, i mean programatically... Is there any property which i can set....??
    Thanx in advance
    Regard's
    Prasad

    There is no property there for your required task.
    Hassan

  • Is there any way to change the web dynpro Appl. description at runtime

    Hi All,
    Is there any way to change the description of the Web dynpro Application at runtime.
    Thanks,
    Arti.

    There is an API to change the application description at runtime, but it will be new in NetWeaver 7.0 Enhancement Package 2 (so you probably don't have access to it yet). For the future here is a sample of the API:
    wd_this->wd_get_api( )->get_component( )->get_application( )->set_window_title( lv_window_title ).

  • Change the property of a field at runtime

    hi all,
    i want to change the field to read only depending upon a condition at runtime.
    i know that it is possible to change the presence of the field.
    but is possible to make it read only.
    thanks in advance.

    Hello,
    if you would like to find a solution for yourself the next time, you can read throught the guides:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Regards Otto

  • How can I change the value of "colorscheme" parameter at runtime?

    Hello all
    Can I change the value of colorscheme at runtime ?
    This parameter can be config in formsweb.cfg file.
    I want to put this colorscheme as "User Preferences" in my application.
    Please help me if some one knows how to achieve this.
    From
    Chirag Patel (Nairobi)

    Hi,
    Try the following. This might help you.
    Edit you Formsweb.cfg file with following code (add the code to your file):
    [look1]
    separateFrame=True
    lookandfeel=Generic
    [look2]
    separateFrame=True
    lookandfeel=Teal
    [look3]
    separateFrame=True
    lookandfeel=Khaki
    and save your file.
    Now, when you call your form in the address bar look for " ? ". After " ? " add config=look1 now your form will take Genric look & feel.
    or
    config=Teal now your form will take Teal look & feel.
    That's how you can change the look & feel at run time.
    Hope that you understand what i want to say......

  • Changing the Size of A screen at runtime

    Is it possible to change the size of a screen , just before it is called, or to move it it after it has been called.
    Bascally I'm using
    CALL FUNCTION 'Z_SIM_TEST' starting new task 'PDF Spools'
    to create a new screen asynchronously, in a new session, and want the user to be aware that the older session is still there?
    Thanks.

    you can use CALL SCREEN 2009 STARTING AT x-cor y-cor ENDIGN AT x-cor y-cor to put the screen. You can change x and y coordinates.

  • Anyone know how to dynamically change the border of UILoader Component

    Hi All
    I am loading multiple instances of UI loader containing
    external SWFs on my stage. When user double clicks on the video
    thumbnail, an instance of UIloader will be placed on the main
    stage.The user can place as many UIloader instances on the main
    stage. My aim is that if user puts any UIloader on top of already
    existed UIloader, the existed loader will be replaced with the
    placed loader. I am successful in implementing that by using
    hitTestObject method for that. I am planning to provide enough
    feedback to the user for this UIloader replacement process, so i
    was thinking to change the border of the UIloader as soon as the
    dragged UIloader hits the already existed UIloader.
    Does anyone know how would I animate UIloader to give enough
    feedback to the user that it is being replaced. Creating an
    invisible movie and moving it wherever UIloader goes doesn't sound
    much efficient.
    Please help me out in figuring out this problem. Also
    if anyone has better idea to give enough feedback to user, that
    will also be welcome. Just to be little clear i have provided
    little pseudo-code(below) of what i am doing here.
    Any help will be highly appreciated.
    Thanks
    Anuj
    /***************Abstract Pseudo code for my
    problem*****************/
    myUILoader.startDrag();
    //Putting video on top of already existed videos
    var trackChild:Number=container.getChildIndex(myUILoader);
    var childContainer:DisplayObject=
    container.getChildAt(trackChild);
    for( var z:Number=0;z<=container.numChildren-1;z++)
    var restChild:DisplayObject=container.getChildAt(z);
    if(childContainer!=restChild)
    if((childContainer.hitTestObject(restChild))==true)
    //Show Animation during replacement
    //how would i give feedback here
    container.removeChild(restChild);

    What is a Lopp Browser?
    A typo I meant Loop Browser, sorry. On your iPad you can see the iTunes Library in the Loop Browser:
    Open the Loop Browser
    Tap the Loop Browser button in the control bar. The Loop Browser button is available only in Tracks view.The first time you open the Loop Browser, it shows the Instrument grid.
    I was told by a sales person at the Apple Store at one of my One-on-One sessions, that Mac would not transpose nor change tempo because my "live music" was not a "midi" file.
    GarageBand 10.0 will change the pitch and tempo of live recordings - midi as well as audio instruments, but not of audio files. But you need to enable the "Follow tempo and pitch" option in the track editor.
    Then you can transpose the region using the "Transpose" slider.
    And if you change the project tempo in the LED display after you enabled "Follow Tempo&Pitch" the recording will follow the new tempo.
    You can test this with a new project created on your mac.

  • Programatically changing the id of a component

    Hi!
    I'm trying to solve the problem of duplicate id, without havind to manually give an id to all components.
    To accomplish this, i was trying to programatically change the id of all components that have the id null or that the id begun with _id with an PhaseListener.
    But i don't achive any results.
    Does anyone know how to do this?
    Thanks.

    Hi,
    Check View States.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

Maybe you are looking for

  • How to read data from the excel file using java code.

    Hi to all, I am using below code to getting the data from the excel file but I can't get the corresponding data from the specific file. can anyone give me the correct code to do that... I will waiting for your usefull reply...... advance thanks.... i

  • Ipod wont show up in windows or itunes

    Just bought a 30gig vid. ipod and installed latest version of itunes. I tried to transfer songs but I can't even do that because my ipod, even though connected via USB cable, won't show up in "My Computer" or on itunes. I tried to reinstall itunes bu

  • Restored tabs after a crash are very old tabs, not my last session: how to fix this?

    Whenever Mozilla crashes, which is often, my most recent session is NOT restored!! I get the oops page with 2 options: restore session or start new. I click restore session and instead of bringing me back where I was with the video I was watching tha

  • My iphoto app wont load up

    when i try to start up iphoto it just keeps loading and never starts up. Apple sent me a message saying that their is a problem with iphoto . What can i do

  • ESS Errro : Hrxssce_Service_Appl_Path doesnt exits

    Hi forum When i enter in ESS > Workint Time > Time Statement for a Chosen Period   OR ESS > Workint Time > Time Statement I got this error Type com.sap.pcuigp.xssutils.pernr.model.grpinfo.types.Hrxssce_Service_Appl_Path does not exist Someone knows,