How to put a Group property in a Curve Related Text label with Curve Expansion

Hi
I am working on a Graph which Plots a WaveFormChannel named "Test". Since I have activated the curve expansion, the graph shows all the Channels named "Test" within the DataPortal. Now I want to put the value of the group property "MyGroupProperty" in the legend, so every time I add a new group, automaticaly add the new signal "Test" and show "MyGroupProperty" in the legend.
So far I tried to use the curve related text in the label option, with something like this
@GroupPropGet(GroupNumber,"MyGroupProperty")@, but I have to give the value of GroupNumber, and then it shows the same value for all the signals. So If I add a new group to the dataportal with a channel Test, The legend will show the label of the new signal but, the MyGroupProperty remains as the same for all the labels
Thanks in advance for your help
Solved!
Go to Solution.

Hi dslemusp,
You can use the global variable "CGI" in a DIAdem expression to supply the Current Group Index of the curve being plotted (even in expansion mode).  I prepared an example for you that shows this and attached it below.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
dslemusp.zip ‏117 KB

Similar Messages

  • How to get the groups a computer is member of in AD with Quest Powershell?

    Hi all
    I would need a script in Quest PowerShell that gathers the groups that multiple computers are member of in Active Directory. I have this script, but what it does is to get USERNAMES from a .txt file and then display the groups
    each user is member of in AD. I couldn't modified it so instead of USERNAMES in the txt file I can put computers name, here's the code:
    $out = @()
    Get-Content M:\Tools\Reportes_Power_Shell\Contenedor_Power_Shell\Users.txt | ForEach {
    $date = (Get-Date).ToString()
    $username = $_
    $displayName = (Get-QADUser $username -Properties DisplayName).DisplayName
    $groups = Get-QADMemberOf $username | Sort-Object Name
    ForEach ( $group in $groups ) {
    $obj = New-Object -TypeName PSObject
    $obj | Add-Member -MemberType NoteProperty -Name Date -Value $date
    $obj | Add-Member -MemberType NoteProperty -Name UserName -Value $username
    $obj | Add-Member -MemberType NoteProperty -Name DisplayName -Value $displayName
    $obj | Add-Member -MemberType NoteProperty -Name GroupName -Value $group.name
    $out += $obj
    $out | Export-CSV M:\Tools\Reportes_Power_Shell\Reportes_de_Power_Shell_y_AD_Info\Users_Memberships.csv
    Thanks!

    I did it but didn't work out, I get this error:
    Get-QADMemberOf : Ambiguous identity: <NAME OF THE COMPUTER>.
    At line:5 char:30
    +     $groups = Get-QADMemberOf <<<<  $username | Sort-Object Name
        + CategoryInfo          : NotSpecified: (:) [Get-QADMemberOf], IdentityException
        + FullyQualifiedErrorId : Quest.ActiveRoles.ArsPowerShellSnapIn.BusinessLogic.IdentityException,Quest.ActiveRoles.
       ArsPowerShellSnapIn.Powershell.Cmdlets.GetMemberOfCmdlet
    I can't help with Quest, but here's an example using the AD module:
    Get-Content .\computerList.txt | ForEach {
    $computerName = $_
    $props = @{
    ComputerName = $computerName
    Groups = ''
    try {
    $details = Get-ADComputer $computerName -Properties memberOf -ErrorAction Stop
    $props.Groups = (($details.memberOf | ForEach { (Get-ADGroup $_).Name }) | Sort) -join ','
    } catch {
    $props.Groups = 'ERROR'
    New-Object PsObject -Property $props
    } | Select ComputerName,Groups | Export-Csv .\GroupList.csv -NoTypeInformation
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How to put a video within a video (not related to opacity!)

    Hi everyone!
    I ve been all over the internet for an answer but cant find one! This is getting really fustrating. This is my first serious editing project and I want it to be perfect
    So what I wanna do is make a transition from one clip to another by putting the next clip within the first one.
    For example, I am filming a window and i want to have another video inside the window. So when I fully zoom on the window, I will move onto the second video.
    So perhaps what i need to do is select a section of the video and replace it with another. But how can i do it?
    Hope you guys understand what I mean? If you need clarification, please ask!
    Thanks for your help and time!

    Wicked! Thats great, its the kind of thing I was looking for!
    My project though is a little more complex. It's a door opening and giving onto the second video! I cant seem to actually create the shape I want with the motion tool. It always keeps my video in a rectangular/square format.
    I basically want to erase the stuff that shows up when the door opens and replace that with the second video. So the shapes I need to fill in are not linear.
    Maybe Premiere is not the software to do this?

  • How to put the return data from webservice to a text field

    Dear All ,
    I created a function module for calculating the square of the input given  and created a webservice using the create webservice option available for function modules.
    function module:-
    FUNCTION ZJK_FLEX_TEST.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(DATA) TYPE  ZSLNO OPTIONAL
    *"  EXPORTING
    *"     VALUE(DATA1) TYPE  ZSLNO
    *"  TABLES
    *"      IT_DAT STRUCTURE  ZWBSER OPTIONAL
    data: wa_dat LIKE LINE OF it_dat.
    data1 = DATA * data.
    wa_dat-results =  data * data .
    APPEND wa_dat TO it_dat.
    ENDFUNCTION.
    and i passed the it_dat in table fields and data1 in the export paramenters of FM.
    but in the flex i am not getting the table values. but i am able to get the data1 value. but the problem is . I am getting it as an XML format.
    <s0:ZJK_FLEX_TEST.Response xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <DATA1>0000025</DATA1>
    </s0:ZJK_FLEX_TEST.Response>
    so how to set the value of data1 to my text field in the flex .

    Hi Jay,
    resultFormat="e4x" will give you resultset in XMLListCollection otherwise resultset will be an ArrayCollection.
    For your example try with this statement after web service result:
    txtInput.text = ws.ZJK_FLEX_TEST.lastResult.DATA1.toString();
    where ws is id for web srvc and txtinput is a simple textInput control UI.
    I hope this will solve your query.
    Regards,
    Vivek

  • How do I hide the pen line I made a text pathway with?

    Hi,
    I drew a line with the pen then curved it into an 'S' shape, to make a text pathway.  My text is now nicely sitting in an 'S' shape but when I make the line beneath it 100% transparent the text goes transparent too.
    Many thanks
    Sophie

    What Manish said! - Zero stroke or colour of [None].
    PS Opacity can affect the object as a whole or just a part of it (frame, text, graphic). Clearly you affected the whole object.

  • How to put aps back on my iphone 5 after latest 7.0 update?

    I did the latest update of the IOS from apple and a few of my apps, (i.e. Pandora and Facebook) do not work.  Any suggestions?

    In the subject you ask how to put them back on the phone. That is done with the sync process in iTunes. Then you ask in the thread, how to make them work? Not sure about that, since you do not say what they are or are not doing.

  • How do I change the font, size and format of tab labels?

    How do I change the font, font size, and format of a tab label?  Can I replace the text label with a gif image?
    Thanks

    barney99 wrote:
    Double clicking on the tab sends me to the block diagram.  Not sure how I change the font like that.
    I didn't say double-click on the tab. I said double-click on the tab selector's text. You need to use the "hand" tool if you have "Lock automatic tool selection" off in your LabVIEW options. 
    Attachments:
    Example_VI_FP.png ‏3 KB

  • How to put a few pages together as a panel group in the same screen ?

    Dear Friends,
    Hello. I am developing the accounting application of Journal Entry module. I have developed 5 pages for a journal entry: Journal header, Journal Line, Journal total, Journal Error and Journal Approval. I want to put 5 pages together as a panel group in the same screen so that users are convenient to use them. The format is as follows:
    Header | Lines | Total | Error | Approval
    When a user click on Header or Lines or Total or Error or Approval, its related page is displayed below it on the screen. But I don't understand how to put "Header", "Lines", "Total", "Error" and "Approval" together as above format and link them to its related page. Can anybody tell me how to do that ? Thanks.
    Lucy

    Mike,
    It's correct to make 5 pages as a seperate component.
    I am developing an accounting system using PeopleTools by myself.
    Because you understand PeopleSoft financial application, please tell me the 2 questions as follows:
    First, In Journal Line page, when select "edit Journal" and click button "process", the system check the Journal against Budget, if it's Ok, the System assign Journal ID for the Journal and put "valid" into the field of "Budget Status" and "Journal Status" in Total page. If it's not OK, the system send error message into Error page. Do you know how developer do that ?
    Second, In Journal Line Page, when select "Submit Journal" and click button "process", the system send the Journal to Approval page for approval. Do you know how developer do that ?
    Lucy

  • How to put a title of a group of controls with no line below title text?

    Hi,
    Is there any way to write a title of a group of controls and indicators made by "chiselled line", such that the chiselled line remain invisible below the title text and remain visible everywhere else? For example, the titles "Printer", "Page Range", "Copies", and "Zoom" in a Microsoft Word form in the attached PDF file; note that there is no line below the title text and there is no text box surrounding the title text. I want to have that kind of title of the group of controls and indicators in a GUI of my LabVIEW application.
    Any help will be appreciated.
    Thanks.
    Javed
    Solved!
    Go to Solution.
    Attachments:
    Examples of Group Title.pdf ‏45 KB

    Hi Rod,
    Thanks for your help, but I could not implement your idea. My replies to your suggestions are written in bold below.
    One way is to put your text into a System Label or a free label. Ensure that you size the box to the text in it
    Can you please explain what are "System label" and "free label"? As far as I am concerned, I first inserted a Recessed Frame from Decorations control palette. Then, I put the text using "Edit Text" tool in the Tools Palatte. The text box resizes automatically as I insert a new character in it. I wrote "Printer" in the text. Then, I went to Tools Palette, clicked on "Set Color", right-clicked on "Printer" text, clicked on "T" (Transparent) shown at the top-right position of the color palette. The result is that the text box around the text is eliminated, but still the line of the frame is making a strike-through effect. How to eliminate the line from the area of the text container. The resulting VI (using LabVIEW 8.5) is attached.
    Change the colours of the label to have a background colour the same colour as your panel background, and the foreground colour set to transparent [transparent foreground removes the box round the text]
    I think this is important. But I don't know where are the options for setting the "foreground color" and "background color".
    When you position the text, you may find that it is partly hidden by the line. If so, select the text box and bring it to the front (Control-Shift-K is the keyboard shortcut) Note: This step won't be needed if you place the line before you make the label.
    Thanks for the keyboard short-cut, but my problem is not solved yet, as shown in the attached VI.
    By the way, where did you find the frame with round corners (in the image you have provided)? The recessed frame available in LabVIEW 8.5 decoration palette does not have round corners.
    Rod
    Attachments:
    Test Example 1.vi ‏5 KB

  • How do I put a group of tracks into one album

    How do I put a group of songs into one album?  They copied separately into iTunes.

    Generally, in iTunes, all you need to do is fill in an appropriate Album Artist to keep things together. For older iPods each track from the same album should have the same artist, or be marked as a compilation where appropriate. On iOS devices you may need to go to Settings > Music > Group By Album Artist > On. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable.
    I can execute the search fine. But how do I map the property value? My property id is 101.
    In other words which ptSearchResponse method do I use?
                    IPTSession ptSession;
                    IPTSearchRequest ptSearchRequest;
                    IPTSearchResponse ptSearchResponse;
                    IPTSearchQuery ptSearchQuery;
                    string serverConfigDir = ConfigPathResolver.GetOpenConfigPath();
                    IOKContext configContext = OKConfigFactory.createInstance(serverConfigDir, "portal");
                    PortalObjectsFactory.Init(configContext);
                    ptSession = PortalObjectsFactory.CreateSession();
                    ptSession.Connect(1, "", null);
                    // Create a SearchRequest object
                    ptSearchRequest = ptSession.GetSearchRequest();
                    // Set search settings (constraints)
                    // Set maximum results desired (100)
                    ptSearchRequest.SetSettings(
                    PT_SEARCH_SETTING.PT_SEARCHSETTING_MAXRESULTS, 100);
                    // Set the folder in which to search (array to support multiple folders)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_DDFOLDERS,
                        new int[] { Convert.ToInt32(ConfigurationManager.AppSettings["DocumentFolderId"]) });
                    // Include subfolders of the folder
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_INCLUDE_SUBFOLDERS, true);
                    // Restrict search to just portal documents
                    // (not ALI Collaboration or ALI Publisher)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_PORTAL);
                    // get documents only
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_OBJTYPES, new int[] { PT_CLASSIDS.PT_CATALOGCARD_ID });
                    // Request the intrinsic PT_PROPERTY_PROVIDERCLSID and custom property 101
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_RET_PROPS,
                        new int[] { PT_INTRINSICS.PT_PROPERTY_PROVIDERCLSID, 101 });
                    //Use IPTFilter to create search filter with clause with two statements
                    IPTFilter ptFilter;
                    IPTPropertyFilterClauses ptFilterClause;
                    IPTPropertyFilterStatement ptFilterStmt1;
                    IPTPropertyFilterStatement ptFilterStmt2;
                    // Create the filter itself
                    ptFilter = PortalObjectsFactory.CreateSearchFilter();
                    // Create the filter clause
                    ptFilterClause = (IPTPropertyFilterClauses)ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_CLAUSES);
                    ptFilterClause.SetOperator(PT_BOOLOPS.PT_BOOLOP_OR);
                    // Attach it to the filter itself
                    ptFilter.SetPropertyFilter(ptFilterClause);
                    // Put two statements into the clause
                    ptFilterStmt1 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt1.SetOperand(101);
                    ptFilterStmt1.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt1.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt1, ptFilterClause.GetCount());
                    ptFilterStmt2 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt2.SetOperand(1);
                    ptFilterStmt2.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt2.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt2, ptFilterClause.GetCount());
                    // Make the filter into an actual search query
                    ptSearchQuery = ptSearchRequest.CreateAdvancedQuery(ptFilter);
                    // Run the search and return results
                    ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);               
                    // How many things matched the search?
                    int totalMatches = ptSearchResponse.GetTotalMatches();
                    // How many items were returned? (Not necessarily all)
                    int returnedMatches = ptSearchResponse.GetResultsReturned();
                    // create DataTable and map results to
                    // datatable fields
                    DataTable dtSearchResults = new DataTable("Documents");
                    dtSearchResults.Columns.Add("Name");
                    dtSearchResults.Columns.Add("Excerpt");
                    dtSearchResults.Columns.Add("DocSubject");
                    dtSearchResults.Columns.Add("DocTopic");
                    dtSearchResults.Columns.Add("DocType");
                    dtSearchResults.Columns.Add("DocKeywords");
                    dtSearchResults.Columns.Add("Url");
                    dtSearchResults.Columns.Add("ImageURL");
                    DataRow dr;                                                                                                          
                    // Print the name of each result
                    for (int i = 0; i < returnedMatches; i++)
                        dr = dtSearchResults.NewRow();
                        String strName = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTNAME);                  
                        String strText = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTSUMMARY);
                        String strURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_DOCUMENTURL);
                        String strImageURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTIMAGEUUID);
                        dr["Name"] = strName;
                        dr["Excerpt"] = strText;
                        dr["Url"] = strURL;
                        dr["ImageURL"] = "pt://images/plumtree/portal/public/img/sml" + strImageURL + ".gif";
                        dtSearchResults.Rows.Add(dr);
    Edited by [email protected] at 04/11/2008 7:26 PM
    Edited by [email protected] at 04/11/2008 7:27 PM

    Problem solved. I should use JsonObject instead of JSONObject :D 

  • How to disbale a group of checkboxes when i select one check box WEBDYNPRO

    Hi Friends,
    Can any body help me how to disbale a group of checkboxes when i select one check box WEBDYNPRO Abap
    Also can any body tell me how to handle chain endchain type of scenario in WEBDYNPRO Abap
    Thank you..
    Sai

    Hi
    In the context tab , create 2 context attributes ca_attr1 and ca_attr2   of type WDY_BOOLEAN under a context node cn_node
    now in ur Layout , bind the ENABLE property of CheckBoxGroup UI Element with this attribute ca_attr1
    bind the ENABLE property of CheckBox UI Element with this attribute ca_attr2
    create a action for ur Checkbox , for the OnToggle property of ur checkbox
    in OnactionToggle , check if ca_attr2 is 'X' , set ca_attr2 to ' ' ( for disable)
    this can be done by code wizard , press control +f7 and use read/set context attributes , use get_attribute and set_attribute methods
    // if ca_attr2 is 'X'
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr2.
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   get single attribute
        lo_el_cn_node->get_attribute(
          EXPORTING
            name =  `CA_ATTR2`
          IMPORTING
            value = lv_attr ).
    // if lv_attr2 is 'X' , use set_attribute method for ca_attr1
    IF lv_Attr EQ 'X' .
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr.
    *   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   set single attribute
        lo_el_cn_node->set_attribute(
          EXPORTING
            name =  `CA_ATTR1`
            value = ' ').
    ENDIF.
    regards,
    amit

  • How to Put the orientation to Landscape in Page Setup?

    Hi All,
    I put the orientation property for header section as Landscape with:
    width & height :11, Report Width : 90, Report Height: 66
    and put orientation property for main section as Landscape with:
    width : 15, height :11, Report Width : 90, Report Height: 66
    and put orientaion property for trailer section as Landscape with:
    width : 11, height :11, Report Width : 90, Report Height: 66
    and then put the orientation in page setup to Landscape, but when I press the button OK and open Page setup window agian the oreintaion returned to Portrait, and when I print the report the right side of the page appeared blank which make the report imperfect.
    How to solve this problem and make the page to appeared landscape not portrait??

    Can you please tell me how to specify the Landscape format in system parameters. I am also facing this issue.
    The Orientation of my rtf template is 'Landscape' but the report that is getting generated in .xls Format is showing the orientation as 'Portrait'.

  • How to use two group tags in the header?

    I am using BI Publishing,RTF Template,I found when I put two group tags before <?start:body?> ,the BI Publishing only keep the 2nd group tag right before <?start:body?> as header, it moved the 1st group tag to the body section.
    Is this a bug? Can anyone give me some ideas how to make BI Publish treat all the group tags before <?start:body?> as the header/sub header?
    thanks for your help

    Hi dirk,
    Thanks it worked well.
    I have one question for you in the tabular form.
    i have totally 10 columns in my tabular form, in that 9 column is of database column and only one column is non-database column, while updating the row in the tabular form it is throwing the below error like
    Current version of data in database has changed since user initiated update process. current row version identifier = "A0FD649E5A28DF9244990A3B9368298A" application row version identifier = "44CE02A233595BCA6F7D4A140BD4DF30" (Row 1)I thought the above error is due to the existence of non-database column in my tabular form. Is there any way to solve this issue. I need to have a non-database column in my tabular form but the presence of that column is not allowing to perform update in that tabular form.
    how to get rid of this issue dirk.
    Any ideas??
    Brgds,
    Mini

  • [Flex 4.5.1] How does Button's fontSize property gets applied to labelDisplay?

    How does Button's fontSize property gets applied to labelDisplay when lableDisplay's fontSize is not explicitly set. I just tested it it works but I don't know how. I looked through the ButtonBase class but I don't see any code applying the fontSize to the labelDisplay nor I see code in the Label to get parent's fontSize property if not set. Could someone explain to me how this works? I would be very grateful! Thanks !

    Ok I found it, thanks for the heads up. I pretty much get the idea of how things work now
    Could you please take a look at one more probably very simple to you question. I had to customize a button to be able to have 2 lables in it with different fontSize and topPadding in this case. I kinda copied some of the code from ButtonBase + added the styles and some code I needed to make it work.
    Here it is:
    package
        import flash.events.Event;
        import spark.components.Button;
        import spark.components.Label;
        [Style(name="numberFontSize", type="Number", format="Length", inherit="yes", minValue="1.0", maxValue="720.0")]
        [Style(name="numberPaddingTop", type="Number", format="Length", inherit="no", minValue="0.0", maxValue="1000.0")]
        public class DialPadButton extends Button
            public function DialPadButton()
                super();
            private var _numberContent:*;
            [SkinPart(required="false")]
            public var numberLabelDisplay:Label;
            [Bindable("numberContentChange")]
            public function get numberContent():Object
                return _numberContent;
            public function set numberContent(value:Object):void
                _numberContent = value;
                if (numberLabelDisplay)
                    numberLabelDisplay.text = label;
                dispatchEvent(new Event("numberContentChange"));
            public function set numberLabel(value:String):void
                numberContent = value;
            public function get numberLabel():String         
                return (numberContent != null) ? numberContent.toString() : "";
            override protected function partAdded(partName:String, instance:Object):void
                super.partAdded(partName, instance);
                if (instance == numberLabelDisplay)
                    if (_numberContent !== undefined)
                        numberLabelDisplay.text = numberLabel;
                    if(getStyle("numberFontSize"))
                        numberLabelDisplay.setStyle("fontSize", getStyle("numberFontSize"));
                    if(getStyle("numberPaddingTop") || getStyle("numberPaddingTop") == 0)
                        numberLabelDisplay.setStyle("paddingTop", getStyle("numberPaddingTop"));
            override public function styleChanged(styleProp:String):void
                if (!styleProp ||
                    styleProp == "styleName" ||
                    styleProp == "numberFontSize" ||
                    styleProp == "numberPaddingTop")
                    if (numberLabelDisplay){
                        if(getStyle("numberFontSize"))
                            numberLabelDisplay.setStyle("fontSize", getStyle("numberFontSize"));
                        if(getStyle("numberPaddingTop"))
                            numberLabelDisplay.setStyle("paddingTop", getStyle("numberPaddingTop"));
                super.styleChanged(styleProp);
    So here are the questions:
    1) If I am not going to use the styles in css then maybe I should better declare them as variables ?
    2) I don't really understand how does the button gets updated and redrawn when I set Styles or properties like that cause there is nowhere a call to invalidate the display list (at least I couldn't find in the Button and ButtonBase classes) as I read in the Flex docs: Overriding the styleChanged() method
    UPDATE: I forgot that setStyle calls invalidateDisplayList... and I just figured out that when the lable sets the text on the TextBase it calls the invalidates. I answered this one myself
    3) I don't understand why do I have this code (copied from the buttonBase):
    if (!styleProp ||
        styleProp == "styleName" ||
        styleProp == "numberFontSize" ||
        styleProp == "numberPaddingTop")
    instead of just the code below:
    if (styleProp == "numberFontSize" ||
       styleProp == "numberPaddingTop")
    5) I am also not sure why I had to use content and label (again copied from the ButtonBase) when they are basicly the same thing
    Currently with this Custom Component I've made, I am able to put 2 lables in the skin. One is the default. And the other one takes the default values I put on the label itself + uses the two styles numberFontSize and numberTopPadding to change that default values in case they need to be altered.
    Although this works, I am not sure if I did it the best way or why does it work as you can say from my 5 questions
    I hope you or someone who understands this have the time to answer them for me and anyone who reads this Thanks
    Message was edited by: FM_Flame

Maybe you are looking for

  • ZCharacterisitic - not populating values

    Dear Eugene / Dan, Pls refer to my earlier thread - [Z Characteristic - Subassignment] I gave the requirement as follows to my BI resource: During the data load - if the 0GL_ACCOUNT is a reconciliation account (i.e. has the 0ACCT_TYPE as K) the relev

  • My Ipod won't let me play any of my songs

    I just received the Ipod 3rd generation for Christmas I downloaded all my songs and was working great till I let my younger brother listen to it. Now when i press play the songs aren't playing and I took all the songs of and reloaded them but didn't

  • Batch details in Ap credit memo

    Hi expert s i want to add some fields from oibt table in ap credit memo pld can anyone help me regards Jenny

  • Excel 2003 problem with group policy

    When I manually install EMET Excel 2003 works. When Emet is installed via Group Policy Excel 2003 fails to open. Excel 2010 works whether EMET is installed locally or with Group Policy. Any ideas?

  • Error in PSA Request deletion

    Hey all, how are you! I have a little glitch in my Processchain and since I can not seem to find an answer myself I was wondering if any of you might give me some feedback In a processchain I created, I wanted to delete the PSA-table contents and I a