Custom components and binding ... help !!

hi, i have created a component that wraps the TextInput
control with its own set and get text methods, but it does not work
well with the Binding mechanism.
here is the code:
<vc:myTextInput text="{str}" y="8" tabIndex="0" x="100"
id="in1"/>
and the binding
<mx:Binding source="in1.text" destination="str"/>
does not update the str field.
can any one tell me what i did wrong / forgot to add ??
cheers,
Jaimon

hi as ntsii said i am looking for a two way binding meaning
that for every change in either of the controls, will be seen by
the other...
i am guessing that in order that the custom component work
with the binding mechansim a certain API must be implemented of a
mechanism that dispaches the right event ... but i could not find
any ducomentation
any help would be blessed ... happy new year
Jaimon

Similar Messages

  • Upgrading packages from 2005 to 2012 : Custom components and delyavalidation woes

    Hey folks
    I've two specific cases with upgrading SSIS 2005 to 2012
    1st : most annoying
    I have a custom transformation written in c# 2005. It references sql server 2005 dlls such as from 
    Microsoft.SQLServer.DTSRuntimeWrap
    Microsoft.SQLServer.ManagedDTS
    Microsoft.SqlServer.PipelineHost
    Those are stored under 
    C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies
    The requirement is to upgrade the package to 2012 and the code as well. Since 2005 was not installed on new server , I copied the referenced dlls from old server , added them back to C# project and rebuilt the Custom components dlls then added to GAC
    When I open the packages , they complain about the version
    Error 2
    Validation error. : The component metadata for "My_Comonents, clsid {874F7595-FB5F-40FF-96AF-FBFF8250E3EF}" could not be upgraded to the newer version of the component. The PerformUpgrade method failed.  
    So I thought , I can add the dll to the toolbox and add it again. WHen I try this , I get this error
    "Could not load file or assembly Microsoft.SqlServer.PipelineHost  ,version = 9.0.242.0"
    Now I assume this is because I don't have 2005 components installed.
    Before getting things messy , what should be the right approach :
    a- Should I just leave the custom components dlls as they are and add them to GAC ? but they will still need 2005 dlls , should I install 2005 client components ?
    b- I can not change the code of the c# project to use new SQL 2012 components , it's a lot of work. so what should be right approach here ?
    That was the important part
    2- Validation
    Even for disabled tasks , like data flow task , setting delyavalidate= True still doesn't help against them being validated and raising error. removing them will help but I do not want , any workaround ?
    Thanks

    Thanks a lot Joost , appreciate the feedback
    This is what I thought too.
    I came to the blog you mentioned , but I wasn't sure how it should be related to my problem. Now I think I'll need to make the code changes.
    Indeed , I see some declarations of *****90
    public void CreateExternalMetaDataColumn(IDTSOutput90 output, int outputColumnID)
                IDTSOutputColumn90 oColumn = output.OutputColumnCollection.GetObjectByID(outputColumnID);
                IDTSExternalMetadataColumn90 eColumn = output.ExternalMetadataColumnCollection.New();
        public override DTSValidationStatus Validate() {
                IDTSVariables90 variables = null;
    public override void SetOutputColumnDataTypeProperties(int outputID, int outputColumnID, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType dataType, int length, int precision, int scale, int codePage) {
                IDTSOutputCollection90 outputColl = this.ComponentMetaData.OutputCollection;
                IDTSOutput90 output = outputColl.GetObjectByID(outputID);
                IDTSOutputColumnCollection90 columnColl = output.OutputColumnCollection;
                IDTSOutputColumn90 column = columnColl.GetObjectByID(outputColumnID);
    SO I should use 2012 references and start migrating this code over ? is it as easy as so ?
    Thanks

  • Terrible customer service, and no help with defective camera

    Madams and Sirs,
    This camera (see below) was a Christmas present, and we discovered first last week that it had a manufacturing defect. (one of the small tabs holding the case half together got installed in a pinched way.)
    Best Buy has always had fantastic customer service, and we have been very happy. We have spend many thousand dollars in your store every year. So we were sure the store would have a solution.
    We took it in to your store #1423 on Curtner in San Jose to try to exchange or replace under warranty.
    I understand you sometimes you are not able to help a customer, but this email is first about the shock I got when I spoke with Megan in customer service.
    As many customers in Silicon Valley, I am an engineering manager, and we have performed destructive testing on many of our own products. The defect on this camera is obviously a manufacturing defect, and not possible to be caused by poor handling. This is very obvious.
    Megan told me with other employees as well as my son listening next to me that I was a liar, and that the damage was caused by abuse, and not a defect. I tried to explain that was not possible, and she interrupted me, and again said that i was not telling the truth, and that the assembly error was caused by us. 
    I then asked if it was possible to have the matter reviewed by the store manager, and she responded she was the store manager. 
    I left with the camera, and the matter unresolved, and had to explain to my son that I was not a liar, and that Megan must be wrong and "some people just have a bad day sometimes".
    I will not be spoken to with insults like that, and I can no longer go to your store with my kids, and if my employees treated any customer the way Megan did, I would make sure she received training to correct this. If the store manager have this attitude to customers, the entire organisation usually follows, and I will not be a customer in a store like that.
    1. Please help resolve this issue.Order number: {removed per forum guidelines}

    Hello erikev,
    Cameras are nice to have, especially with young children, so I can imagine how frustrating it can be to find yourself with a pinched casing. When something goes wrong, it’s never a fun situation, and while it may not be something we can necessarily help with, great customer service should still be provided. It sounds like this didn’t happen the way we hoped, and I’m sorry this was at your expense.
    As this situation is definitely concerning, I looked into your account to see how I might be able to assist. However, I have found your concerns have reached Terrance with our executive support team. He is currently looking into your situation and should contact you once more information is available. From here, Terrance will be your first point of contact.
    Hopefully he can find a good resolution for you,
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Custom Components and passing arguments

    This afternoon i got a great answer regarding the use of custom MXML components and calling a function back in the main application file. I can accomplish this now by using parentDocument BUT I need to pass the name of a function(for filtering) as a parameter of the function call in the custom component. Below are the two code fragments.
    Custom Component Code
    <mx:LinkButton label="10% off or more" click="parentDocument.filterFunction(showTenPercent)" />
    Main App Code
    public function filterFunction(functionName:Function):void {
    merchantDG.visible=true;
    merchantData.filterFunction=functionName;
    merchantData.refresh();
                public function showTenPercent(item:Object):Boolean {
                        return (item.merchantOfferCategory=="10%");
    The filterFunction in the main App is called by multiple components so I believe I need to keep in centralized in the main app. There is probably another way to do this but I am building my Flex skills slowly and need to understand how to do this. As the code is now, I get an error about functions and strings.

    I believe instead of calling the function from inside the custom component you need to do this from inside your main application whenever you're initiating the custom component.
    for ex.
    <custom:LinkBtnCustom label="10% off or more"  click="filterFunction(showTenPercent)"/>
    this way you don't need the parentDocument prefix.

  • Custom Components and Properties in Flex Builder Design View

    How do I create a custom component with custom properties
    that renders well in Flex Builder design view?
    This is a simple HelloWorld example of what I am trying
    below. Here is the HelloWorld.mxml file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="500" height="500">
    <mx:Script><![CDATA[
    [Bindable]
    public var message:String;
    ]]></mx:Script>
    <mx:Label x="100" y="100" text="{message}" />
    </mx:Canvas>
    And then when I use it in another mxml file, the design view
    does not show the label with the 'Hello World' value - instead it
    just shows {message} in design view where the label is located.
    When I run it as a compiled app in flash, the 'Hello World' is
    displayed correctly:
    -- HelloWorldTest.mxml --
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:views="mypackage.*" width="500" height="500">
    <views:SimpleLine message="Hello World."/>
    </mx:Canvas>

    design view does not do any variable assignments or function
    evaluations, so you won't be able to see it even if you don't use a
    custom component.

  • Quick question about custom Components and Panels

    Okay, so here is the situation.
    I created a custom component that overrides paintComponent. All this component does is draw a diagonal line.
    If I add this component directly to a JFrame it displays fine.
    The issue: I made a custom JPanel that at the moment only contains this component. If I add it to the JPanel then add that to the JFrame, it only displays a dot.
    Any suggestions?

    Layout issue. The intermediate JPanel has a default FlowLayout manager which shows its child components at their preferredSizes. These sizes are computed by the layout manager in the process of laying out the children. When there are no children the size reported to the parent is the default size which for JPanel is (10, 10). You can change the layout manager for the intermediate panel or specify a preferredSize for the graphic component in one of two ways:
    1 - use the setPreferreSize method
    2 override the getPreferredSize method in the class:
    class Pseudo extends Jpanel {
        protected void paintComponent(Graphics g) {
            // custom drawing...
        public Dimension getPreferredSize() {
            return new Dimension(desiredWidth, height);
    }

  • Customer Include and search help for E-Recruiting

    Hello All,
    I've added a field to customer include field for table hrp5122.  I want to add search help BUPA to that field.  When I do that I get an error when the page is to be displayed.
    I would like to use the search help instead of filling in the value table for the domain used for this field.  Currently this is the only way, I know, how to make a customer include field appear with drop down list values on the web.
    If you have been able to use a search help on a field that is displayed on the Web please respond with the steps on how to do it.
    Thanks,
    Alisa

    Never mind.  User error.  My search help was not working properly.

  • Sharing variables between 2 custom components. Please help.

    Hi,
    I'm a beginner in java and I have a problem. I'm using Netbeans 5.5.1
    I need to use 2 classes, defined in 2 separate files, in a third, main class.
    Actually I copy/paste the 2 classes (are made as swing jpanels with controls, textboxes, combos, etc) in the main class, so in the main class they appear as components.
    what I need is to read a combo box from first component every time when it is updated and use it in second component , when a buton from second component is pushed.
    I don't know haw could this be done.
    Thanks,
    Dan

    http://en.wikipedia.org/wiki/Model-view-controller
    What you need is a controller. Let your gui classes do nothing but interact with the user and tell the controller class when they do something (like push the button on the second component). Then the controller gives the guis their updated data to display.

  • Custom components and the navigator object

    Hi all,
    I'm starting on a mobile project which is a ViewNavigator based application. I've created a custom component which contains a button. I'd like the button to be able to use the pushView method however as it's a custom component, it doesn't appear to recognise the navigator object. If anyone has any advice/tips on how I might go about this, it'd be greatly appreciated!

    The button sits in a custom component - actually in a datarenderer. Code looks like:
    <?xml version="1.0" encoding="utf-8"?>
    <s:DataRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                            xmlns:s="library://ns.adobe.com/flex/spark">
      <fx:Script>
                        <![CDATA[
                                  import mx.utils.ObjectUtil;
                                  protected function button1_clickHandler(event:MouseEvent):void
                        ]]>
      </fx:Script>
      <fx:Declarations>
      </fx:Declarations>
              <s:Button label="{data.firstName}" click="button1_clickHandler(event)" width="150" height="150" />
    </s:DataRenderer>
    which is being called from a View. There's no error, I'm simply unable to/unsure how to access the navigator object so I can push a new view onto the stack from within that component.
    Cheers!

  • JavaDoc with Web Dynpro Components and SS9

    Hi All,
         Has anyone been able to get custom JavaDoc linkages to work correctly in NDS when working with components?
         I know I can get it to work if I manually attach the source and the JavaDoc location in the Properties -> Java Build Path for each of the .jar files (in each project that uses the Web Dynpro components in question), but I feel this should carry over automatically if I configure this information in the included project.
         The good news is that the configuration stays with a using project even when choosing the "Refresh from DC settings" option, but when adding a used DC the first time isn't there some way to have this information automatically added?  This information is already configured at the project level for the used components.
         Any suggestions, or should I just grit my teeth and say everyone has to add in these values manually?
         Thanks,
            --Greg

    Hi Naddy,
    Check the standard tables that are being used in the application for display/change/create of data. If these tables have a "Customer Include", your first step should be to define the Customer Include Structure and define your new custom components in it (the ones that you need to show on the statndard view.)
    Step 2: Create and enhancement of the standard component in which the view is present. In this enhancement, update the context so that the new fields that are present in the standard table (due to Customer Include) become available in the Context.
    Step 3: Create enhancement of the view on which the field has to be included. Firstlyupdate context of view from context of controller. Now ur fields will be available in context of view. Also create context attributes that will control visibility, read-only etc of UI elements. Now enhance the layout of the view, create your custom fields and bind value/visibilty/read-only etc to the respective context attributes that you have created.
    Also write a post exit method for domodify and check the mode of the standard application (create/change/display). Accordingly set values of the read-only, visibility etc.
    Regards,
    Reema.

  • Flash Components and XML Binding

    I just ran through the XML binding Bike Trails tutorial about
    a hundred times. I can get that to work just fine. But when I try
    to work with my XML file, it keeps falling apart. I just don't get
    it! I've been working on it for 2 days and it's still not working
    right.
    For one, the bindings are not showing up right. I have 2
    combo boxes and then a final one I'd like to use to list the
    stores. Here's a link to basically what I'm trying to do:
    http://www.thinkseed.com/test/stores.html
    My bindings keep falling apart. I get null values all the
    time for the second drop box that's supposed to house the States
    (the one on the site is a fluke...I accidentally had the
    <store> node on a separate line instead of nested in the
    <state> node. No idea why that one sort of worked.)
    Here's an example of the XML code:

    The flashComponents are standard AS2 components, and you can look up their APIs in the Flash documentation.  Here is the button docs:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001977.html#3654189
    Looking at that, there is a getStyle() method, and I just tested it out:
    put sprite(1).getStyle("borderStyle")
    -- "inset"
    put sprite(1).getStyle("fontFamily")
    -- "_sans"
    put sprite(1).getStyle("color")
    -- 734012.0000
    I'm not real sure what that means (probably the hex color converted to a float), but you can change the color like this:
    sprite(1).setStyle("color","red")
    And here is a page that lists all the styles that are defined:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001973.html#3136306

  • Building JSF 1.2 Custom Components with EL and standard components

    Hi all,
    I have built custom components in jsf 1.1 with great success but i am finding replicating the same functionality in jsf 1.2 very difficult. I have some conditions for my new custom component.
    - Using jsf 1.2
    - Must use unified EL, i am using a UIComponentELTag
    - iam using jsf standard html components from javax.faces.component.html here in particular i wont HtmlCommandLink.
    Essentially i am constructing a real time command menu. I have a backing bean from which i get command names and descriptions values. I wont to then in real time construct a table of links (using HtmlCommandLink) - all this work is to be processed by a custom component. Basically the commandLink issues a command in my backing bean, a parameter (param) is passed with the commandLink, this is later picked up in the backing bean method.
    I can generate the table, and all the HtmlCommandLinks, i have simply looped throught and encoded each of them.
    What i can do: i can see the table and the HtmlCommandLinks, but the links dont perform any action when i press them.
    What i want help with:
    I want to encode a HtmlCommandLink in my custom component with a param, traditionally i would set the action but this is now deprecated, and i need to use the setActionExpression method. I have tried to do this but the actions are note fired its simply doesnt function.
    Note:
    In jsf 1.1 I use to loop through all the HtmlCommandLink and peform their processDecodes method within my custom components very own processDecodes. The same in jsf 1.2 doesnt seem to yield any results.
    Can someone give be an example or solution to this? I have read articles on the net and they seem to all discuss jsf 1.1 which i have done and it works, but i am using unifed EL and jsf 1.2 now.
    Many Thanks,
    Kev

    Hi all,
    I have built custom components in jsf 1.1 with great success but i am finding replicating the same functionality in jsf 1.2 very difficult. I have some conditions for my new custom component.
    - Using jsf 1.2
    - Must use unified EL, i am using a UIComponentELTag
    - iam using jsf standard html components from javax.faces.component.html here in particular i wont HtmlCommandLink.
    Essentially i am constructing a real time command menu. I have a backing bean from which i get command names and descriptions values. I wont to then in real time construct a table of links (using HtmlCommandLink) - all this work is to be processed by a custom component. Basically the commandLink issues a command in my backing bean, a parameter (param) is passed with the commandLink, this is later picked up in the backing bean method.
    I can generate the table, and all the HtmlCommandLinks, i have simply looped throught and encoded each of them.
    What i can do: i can see the table and the HtmlCommandLinks, but the links dont perform any action when i press them.
    What i want help with:
    I want to encode a HtmlCommandLink in my custom component with a param, traditionally i would set the action but this is now deprecated, and i need to use the setActionExpression method. I have tried to do this but the actions are note fired its simply doesnt function.
    Note:
    In jsf 1.1 I use to loop through all the HtmlCommandLink and peform their processDecodes method within my custom components very own processDecodes. The same in jsf 1.2 doesnt seem to yield any results.
    Can someone give be an example or solution to this? I have read articles on the net and they seem to all discuss jsf 1.1 which i have done and it works, but i am using unifed EL and jsf 1.2 now.
    Many Thanks,
    Kev

  • Bindings and custom components

    hi, i have created a component that wraps the TextInput
    control, but it does not work well with the Binding mechanism.
    here is the code:
    <vc:myTextInput text="{str}" y="8" tabIndex="0" x="100"
    id="in1"/>
    and the binding
    <mx:Binding source="in1.text" destination="str"/>
    does not update the str field, and if str is initialized to a
    certain value it would not show on the component,
    can any one tell me what i did wrong / forgot to add ??
    cheers,
    Jaimon

    Michael,
    ADF Faces does define a default-render-kit ID for its application. For your custom components, you'll need to register your Renderers both in the Basic HTML RenderKit (the default renderkit in the spec) and in the ADF renderkit (which is, if memory serves, "oracle.adf.core".) Once you've done that, your custom components will work fine in ADF Faces. This is a generic problem in the Faces spec - there's no way to add a renderer in all RenderKits.
    I'll get a FAQ item added for this issue.
    -- Adam Winer

  • Custom Incident Form Data Binding Help

    Hello Everyone! I'm relatively new to TechNet and am excited to learn a lot as well as contribute my experiences and help others learn as well! 
    I have read through tutorials, taken the MVA SCSM course, and even read through some books like SCSM 2010 Unleashed, and Microsoft System Center Service Manager Cookbook.
    I am currently working on an SCSM 2012 project, in which I have to create a custom incident form for use within the console. I have tried to extend the existing form in the authoring tool, but found it too limited in function. Therefore I went down the 
    road of working on a completely new form in Visual Studio 2013 (I assume I cannot modify the existing Incident form in VStudio otherwise that would probably make my job alot easier). I have completed the UI of the form, and imported it into the authoring tool
    to add some functions not present in VStudio (like list picker, etc.). I also created a new work item, pointed it to my custom assembly, and bundled up my files as a management pack bundle. I imported it into SCSM and successfully created
    a custom view and implemented the form. Now I have to go back to the authoring tool and focus on binding the textboxes and controls to actual data… here I kind of am lost. How do I go about doing this? I know I have to point the textbox for example a location
    on where to pull the data from, but where AM I pulling that data from anyways? For example, the status, the title, etc. These must all be bound to some data object somewhere in the CMDB but thats as far as I know. Any guidance, pointers, tips, even links to
    documentation I can read would be greatly appreciated! Thanks in advance!

    This might as well be a blog as I clearly love answering my own questions all the time... :)
    So it seems the authoring tool is just poorly designed and does not allow one to pick from properties already defined to that class on an EXISTING control (e.g. If you create your form in VStudio like I did and go into Authoring Tool hoping to create the
    appropriate properties and then map them to those controls like textboxes or listpickers, you can't do that.) Instead, create the form without ANY of the controls on it, so just the grids, background, and frame of the page. Then go into Authoring Tool and
    create the properties in the class definition. Then, when you author the form you can DRAG OUT the properties, e.g. ID, Affected User, Status, etc. Automatically mapping the right control to the data type (e.g. it will drag out a textbox for a property that
    is defined as a string), and does all the binding for you. That's it!
    If you were curious as to what the actual syntax was incase you want to manually edit the XML, it would be a line containing something like this:
    <PropertyBindingChange Property="Text" Object="TextBox_1"><NewBinding UpdateSourceTrigger="Default" BindsDirectlyToSource="False" Mode="Default" Path="Id" Enabled="True"/></PropertyBindingChange>
     

  • Itunes will no longer accept any of my credit cards.  Says security code doesn't match with any card I use.  I have inputted new card info in the apple store area and it still says the same thing in itunes.  Customer service is no help at all.

    Itunes will no longer accept any of my credit cards.  It says vcode doesn't match when it does.  Customer service is no help.  I have re-inputted the info in the account section of the apple store and in itunes--still says vcode doesn't match.

    Itunes will no longer accept any of my credit cards.  It says vcode doesn't match when it does.  Customer service is no help.  I have re-inputted the info in the account section of the apple store and in itunes--still says vcode doesn't match.

Maybe you are looking for