How to change a property programmatically

Hello,
How can I change a property during runtime? Like, change the label of a button, or change the header text of a table.
regards,
arnold

Hi Arnold,
You need to get an instance of the UI element at runtime. You can get this only in WDDoModifyView
IWDLabel lab = (IWDLabel)view.getElement(<labelID>);
lab.set<property>(<value>);
Warm Regards,
Murtuza

Similar Messages

  • How to change autocommit property in Oracle 8.1.6 server

    Can anybody tell me how to change autocommit property in Oracle 8.1.6 server?
    Thanks in advance.
    Matthew
    null

    Hi,
    SET AUTOCOMMIT OFF
    thanks,
    Boby Jose Thekkanath,
    Consultant,CWO,
    NSW-AUS.

  • How to change Owner property in KM

    Hi masters.
    I want to know how to change cm_owner property of a document that i am uploading with dynpro java. I have written a code to add new properties for document but i couldn't change the Owner of document. Here is my code for adding a new property :
    if (wdContext.currentUserElement().getId() != null) {
    IPropertyName propOwner =
    new PropertyName(
    PropertyName.createDisplayname().getNamespace(),
    "Owner");
    prop =
    new MutableProperty(
    propOwner,
    wdContext.currentUserElement().getId());
    propMap.put(prop);
    This code is adding a new Owner property for document. So that after upload, i see 2 Owner fields in Misc. tab.
    Thanks for replies.

    Hello,
    Do check this blog out:
    [Dynamic properties setting in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf]
    Also read : [Storing and retrieving properties in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ab288d09-0801-0010-b183-b8254ed4793f]
    [Developing a property filter in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ee3a57-0701-0010-3e9a-ddae7e4e0521]
    Regards,
    Shailesh
    Edited by: Shailesh Kumar Nagar on Feb 19, 2010 8:16 AM

  • How to change focus in programmatic way?

    Hi,
    1. how to change focus in programmatic way?
    2. is there any way to define tab index?
    With Regards,
    Wai Phyo

    1). http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_scrollComponentIntoViewBehavior.html
    2). no

  • OMBPlus: how to change Prefix property (dimension)

    Is it possible to change (or set during creating) Prefix property of dimension through OMB Plus?
    I think that this can be done with command
    OMBALTER DIMENSION_TABLE '<dimname>' SET PROPERTIES (<propname>) VALUES ('myval');
    But what is the name for Prefix dimension property?
    Maybe it is possible change this property only through GUI OWB?
    Oleg

    Oleg,
    Unfortunately, you cannot, so I filed bug 3519964.
    However, do note that the main reason for us asking a prefix is the ability for us to prefix key names being created automatically. You can always rename those key names afterwards to include the prefix you want/need.
    Thanks,
    Mark.

  • How to change a property of all items of the specific type?

    Hello,
    this should be fairly simple:
    tableA ( id, Flag)
    There are 2 pages :
    Page 1 : allows user to select P1_ID based on the result set from TableA
    Page 2 : there is a bunch of items on this page - text fields, text areas, radio and check boxes, reports etc. There values in those items are based on the following logic :
    select <bunch of columns correspond to the page items >
    from view1, view2 ...
    where <where clause>
    and
    some_column =:P1_ID
    Question:
    I need to disallow users to change values in the items of text type on the page 2, if value of P1_ID ( TableA.id) has a value in Flag.
    How this can be done ?
    The ideal solution would be if i can have a routine that would not require hard coding items names.
    Thank you
    Andrew
    Edited by: andrey on Jan 31, 2009 12:51 PM
    Edited by: andrey on Jan 31, 2009 12:52 PM

    Andrew:
    The property that you set is the 'Read Only' property for the page-item. This is done from the 'Edit Page Item' page
    The conditions under which this property evaluates to true can be determined dynamically (no hard coding). Take a look at the list of possible Conidtion Types. So, if u want the condition to be table-driven you could choose the 'Exists (SQL query returns at least one row)' and the SQL query could be something like
    ' select 1 from <you_table> where id=:p1_id '
    Varad

  • How to change visibility property of a VC iView by clicking of a BI iView?

    Hi all!
    I have created four iViews: two speedometers with web application designer and two iViews with visual composer. I added the speedometers and a visual composer iView #1 to a portal page (default view). The requirement is that by clicking the speedometer #2, the visual composer iView #2 would replace visual composer iView #1 on the portal page. If the user then would select the speedometer #1 again by clicking it, visual composer iView #2 would replace #1 again and so on.
    I have read article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b65a5d-f397-2910-a78a-f5544f21c33b?quicklink=index&overridelayout=true, but it is more about filtering VC iView values with BI web items. I don't need to filter anything, just to change one iView to another in a portal view by clicking a third one. How can I check what values my web application with Z_SERVICEOUTBOUND template is transfering to VC?
    One solution might be¨to transfer any value to VC by clicking a speedometer and to change the visibility of the VC iViews according to that value (the speedometer #1 should in that case transfer other value to VC than speedometer #2). I don't know if that is possible with speedometers - you can't reference any characteristics or variables with it.
    If you have an idea, what would be the best way to accomplish this requirement, I would be very glad to hear about it! We are in VC 7.0.
    Points garanteed!
    Regards
    Sari

    Hi
    Since you are accesing the node containing the 'VISIBILITY' attribute you can use the following method to set the value
    lo_el_visible->set_attribute(
    exporting
    name = `VISIBILITY`
    value = 01 ). ""01 - none,02-visible
    and remove this code
    wd_context->set_attribute( EXPORTING name = 'VISIBILITY' value =
    abap_false ).
    Regards
    Tamil
    Edited by: Tamilselvan K on Aug 6, 2008 2:40 PM

  • How to change the property of the fields on screen while using BDC

    Hello,
    I am working on a program where I am using BDC call transaction method to update vendor master data using Fk02. I need to call the transaction in mode 'E'. As per the requirement I don't want user to see all the fields available on that screen. For example on Payment transactions screen I only want user to see fields like Bank key, bank number in the editable mode and rest all the fields on the screen should be greyed out.
    Can you please help with how can i do this.

    Hi,
    I think you can achieve this using transaction variant. Create a transaction variant using SHD0 and grey out the fields which you want. After that in BDC, instead of calling FK02, call the transaction variant you created. you may have to change the BDC recording a bit, but i think you can give it a try?
    Do let me know if it helps you.
    Regards,
    Raghav.

  • How to change style property in runtime

    Hallo. I have this style tag in my main application:
    <fx:Style>
         @namespace s "library://ns.adobe.com/flex/spark";
         @namespace mx "library://ns.adobe.com/flex/halo";
         @font-face {
         src: url("../caratteri/MyriadPro-Bold.otf");
         fontFamily: "MyriadPro-Bold";
         embedAsCFF: true;
         .mioStileMyriadProBold {
         fontFamily:MyriadPro-Bold;
         fontLookup: embeddedCFF;
    </fx:Style>
    It works good but i wish to change the fontFamily while the program is running. How can i do that?
    Thx a lot.
    Max

    Hallo. Thx for the answer. I would like to know if your solution is working always. I mean, in my example i showed you that i have this:
    .mioStileMyriadProBold {
    fontFamily:MyriadPro-Bold;
    fontLookup: embeddedCFF;
    But what if i have 2 custom styles??.. How can i change one or another specifically ??
    I hope you understand what i mean.
    Max

  • How to change mouse pointers programmat​ically

    Normally when a VI is run, mouse pointer changes to 'Hand Pointer'.Is it possible to make it 'Arrow pointer' wherever no buttons are there and if buttons are there change mouse to 'Hand Pointer'.
    Thanks

    Hi,
    if you use LV 7 have a look at the cursors palette under application control (I don't know the exact English names because I'm using the German version; it may be an advanced feature which is not available in all LV versions).
    Together with a dynamic event you could implement your desired behaviour maybe (it's a good idea though; the hand pointer is pretty ugly as standard mouse pointer if there's no interactive element).
    Cheers,
    Carsten

  • How to change z axis limits programmatically

    Could you show how to change z-axis limits (min and max) programmatically in the attached VI?  It is a simple VI that uses the 3D plot.  Would it be the same on x and y axes as well?  Would really appreciate your insights.  Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Untitled.vi ‏28 KB

    Hello,
    I don't have LV 7 installed so I can't post the VI sorry.. here's the short answer to your question, you have to use property and method nodes from the ActiveX palette (see screen shot), item 0 is scale X, item 1 is scale Y and item 2 is scale Z.
    More generally there are loads of threads dedicated to 3D graph issues, just do a forum search .
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How to change Enumerator programmatically in LabVIEW called in Teststand

    How to change Enumerator programmatically in LabVIEW called in Teststand ?
    I know that Enumerator cannot be changed programmatically since the data type itself different from other controls like Ring and Combo box. 
    My application  involves in Property loader which will load the list of names to Enumerator during Initialization. And the same shall be used by operator to select in further steps for testing. I tried with Ring and combo box but it doesn't works because its not giving dropdown option in TestStand Steps to select the name.
    I need a drop down and also programmatically changing the value of the same variable. I had gone through all forum solutions regarding Enum, but I couldn't get any work around for this.
    Please suggest me a solution or best work around to do this.
    Thanks,
    Vijay
    L&T Limited
    Certified LabVIEW Developer
    India.

    Can you provide an example of how a ring control/combo box does not work?  This should be the way to do what you want unless I am misunderstanding exactly what you want to do.  In theory you could have a dynamic enumerator type, but there are lots of hoops to jump through using VI server and scripting and it is not worth the effort.  Aesthetically, you can make the ring control and enumerated data type look exactly the same.  I would be using a ring control.
    Please post an example of how it does not work.

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    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

  • How can I change the property of a graph running in another VI ?

    I know how to set a control value in another VI using the invoke node but what should I do to change the property of a control?

    Hi Zumdal,
    you can make a reference of your graph, copy it in a global variable that can be handled in a remote vi to change the property of the graph.
    I attach a sample LLB that contains a graph.vi and a property.vi.
    From the property.vi you can control the property of the graph.
    Good luck,
    Alberto
    Attachments:
    graph_property.llb ‏27 KB

  • How to change ExchangeRate Type Property in EPMA

    Hi all,
    I would like to change the ExchangeRate Type Property (from NONE to AVERAGE) in EPMA Accounts Dimension (local dimension) for a lev0 member, but the Property is read-only (and it is flagged as "DERIVED"). How can I change the Property or another question where the fuck is the Source for the inherited value????
    Thanks in advance
    André
    P.S.: If I create a new lev0 Member the property is read-only, too.
    Edited by: Andre on 11.03.2013 14:55

    Ok, I could find it - if you change DataType to currency (was unspecified) than you can change the ExchangeRate Type.
    Nevetheless many thanks to all :-)

Maybe you are looking for

  • Possible Bug in Garbage Collector?

    Hello all I'm new to these forums but I searched for this problem and couldn't find exactly the same thing - apologies if I missed something. I've written an image browser which displays thumbnails, and when you click on a thumbnail it loads the imag

  • How to get the size of the blob file uploaded ?

    Hi , Is there anyway to get the size of the file i have uploaded to a blob type attribute ? What i can see is that when we upload a file in contributor UI ,once the file is uploaded successfully and if we hover on it , it will show the filename , typ

  • Which Process using high Swap

    Dear All, Any specific command or steps to find which process consuming lot of swap space and there is any specific step to reduce the usage without kill the actual process. Regards, Siva

  • HOW CAN I MARK A CHECKBUTTON USING ABAP CODE?

    HOW CAN ALL THE CHECKBOXES IN MY ALV BE MARKED WHEN I CLICK ON A BUTTON?

  • Yosemite hide contact photo in mail print

    In the new mail app of Yosemite, you can hide your contact photos in the message list, but not in the actual message. When I want to print out some emails from work, I don't want that the contact photo appears in the right corner. Even if there is no