A question about adding record to DB

I tried to add a record to the DB of MSSQL2000. Then I set up a project of FLASH BULDER4.The application of server is COLD FUSION, using COLDFUSION FLASH REMOTING. Then I pulled a FORM to workspace, binded the DB and called the create service. But when I tried to add the record, there is no answer.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:valueObjects="valueObjects.*" xmlns:productsservice="services.productsservice.*">
<fx:Script>
  <![CDATA[
   import mx.controls.Alert;
   protected function button_clickHandler(event:MouseEvent):void
    var products2:Products = new Products();
    products2.item_name = item_nameTextInput.text;
    products2.carpet_type = carpet_typeTextInput.text;
    createproductsResult.token = productsService.createproducts(products2);
  ]]>
</fx:Script>
<fx:Declarations>
  <valueObjects:Products id="products"/>
  <productsservice:ProductsService id="productsService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
  <s:CallResponder id="createproductsResult"/>
</fx:Declarations>
<mx:Form x="128" y="138" defaultButton="{button}">
  <mx:FormItem label="Id">
   <s:TextInput id="idTextInput" text="{products.id}"/>
  </mx:FormItem>
  <mx:FormItem label="Item_name">
   <s:TextInput id="item_nameTextInput" text="{products.item_name}"/>
  </mx:FormItem>
  <mx:FormItem label="Carpet_type">
   <s:TextInput id="carpet_typeTextInput" text="{products.carpet_type}"/>
  </mx:FormItem>
  <s:Button label="Createproducts" id="button" click="button_clickHandler(event)"/>
  <mx:Form>
   <mx:FormItem label="Createproducts">
    <s:TextInput id="createproductsTextInput" text="{createproductsResult.lastResult as Number}"/>
   </mx:FormItem>
  </mx:Form>
</mx:Form>
</s:Application>

The source code for JDK1.4 is found in the src.zip file where you installed the JDK. Unzip the file and look at the code.
I would think the second approach is better. It ultimately uses:
JViewport.setView(ta);
which I belive is the correct way to add a component to a viewport. This way listeners can be added/removed correctly.
The JViewport.add(ta) is just using the Component add(..) method. Therefore, no special processing regarding listeners is done.

Similar Messages

  • Question About Adding Ram from other laptop to T-series Thinkpad

    Hi,
    I have a question about adding additional RAM. Right now I have a 4gb ram stick in the t510. I have an acer laptop which I do not need and there is a 4GB ram stick onboard (maybe two 2gb ram sticks) there in that older laptop. Would it be possible to add one stick of 2gb ram (or 4gb i need to check if it is 2 or 1) from the acer to the lenovo thinkpad making the total ram in the thinkpad over 4gb????
    Thanks in advance

    Hi Richk,
    Yes, I am using a 64-bit operating system. I am running on windows 7. And as for reported incompatibilities....technically taking a RAM from another laptop and placing it in the laptop should be the same as purchasing a RAM card from ebay or something and putting into the laptop right?

  • Question about adding an index to a column and finding it back

    Hi, How do I see in phpMyAdmin that an index is added to a column.(I'm talking about adding an index by clicking on the lightning bolt!) I know how to add an index and see a warning that it's added (only after I add it).
    But where do I find it or a sign that it is added later on?!
    Thanks!

    You also may find better exposure for this question on the Dreamweaver Applications Development forum -
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development

  • Questions about adding files in LR3

    I've been a happy LR user for years. I used the LR3 beta and liked it (especially the 2nd version) and generally I'm very happy with the release version of LR3. But I have some questions about the import process.
    In LR2 I could edit off my Compact Flash cards (I know that's not smart, but sometimes on deadline fast is better than not smart) by adding the photos my library without moving them. That option is grayed out in LR3. Is there a way to turn it on or is this is a "new feature." If it's a permanent thing, maybe for 3.1 or the next incremental upgrade Adobe could make this possible with a popup (like we get when adding captions to multiple files) warning that editing photos on a CF (or SD) card is a bad idea. But let us make the decision.
    jack

    It's a deliberate change - time to adjust the workflow!
    John

  • Few questions about the recording

    Hi,
    I'm intersting in adding recording/playback option to my webcam application and i have few questions regarding the recording functionality:
    1. My webcam app is using P2P connection, will the recording stop my P2P?
    2. Will the recording create some latency in the audio/video?
    3. can i change the quality of the recording?
    4. is there away to encrypt the archived zip file?
    Thanks,
    Tzahi

    1) yes, currently recording is always hub&spoke (and we don't have a real plan to support recording with p2p since it would require a substantial amount of changes in the server-side application)
    2) no, recording is independent from streaming
    3) no - I believe recordings are stored at the quality they are streamed. In theory you could re-encode audio and video stream to a lower quality for playback and repackage the zip file (assuming re-encoding the stream doesn't change the internal timestamps)
    4) currently not. We are simply using the "zip" command (on *nix) to archive the files so in theory we could add the password/encryption option but that would require for you to store the required password on our servers and for us to pass it on the command-line making the process not very secure anyway.
    Any specific reason to keep your archives on your servers encrypted ?

  • Another question about adding music to iPhone

    Apologies for yet another question regarding adding music to an iPhone but I am completely stuck.
    I bought a new laptop in January (it runs windows 8). I've authorised it and synced my phone to it before. I've used it to add music before.
    Lately I've just been buying music directly from itunes on my phone but I wanted to add some music from my older collection that is on an external harddrive.
    I've gone through the process of syncing the phone again, which has wiped whatever was on there. I made sure I'd ticked on the "manually manage music" box. 
    It's put all my purchased music back but it still will not let me drag and drop music from my external harddrive. When I hover over with the file it has "link" but it won't actually send the music to the phone.
    Is there a way for me to do this without putting music on to my itunes library? I don't like itunes and I definitely don't want to add the music to my laptop as it defeats the purpose of having an external harddrive! Sorry for such a long-winded explanation.

    Just to add... I've now tried adding music to the library (getting desperate here) and it's not letting me do that either. Just says 'link'.
    This is the most frustrating thing ever. Why are the simplest of tasks made so difficult? It seems like it only works if you buy the music from the iTunes store.

  • Question about adding an Extra Node to SOFS cluster

    Hi, I have a fully functioning SOFS cluster, with two nodes, it uses SAN FC storage, Not SAS JBODS. its running about 100VM's in production at the moment.
    Both my nodes currently sit on one blade chassis, but for resiliency, I want to add another node from a blade chassis in our secondary onsite smaller DC.
    I've done plenty of cluster node upgrades before on SQL and Hyper-V , but never with a SOFS cluster. 
    I have the third node fully prepaired, it can see the Disks the FC Luns, on the SAN (using powerpath, disk manager) and all the roles are installed.
    so in theory I can just add this node in the cluster manager and it should all be good, my question is has anyone else done this, and is there anything else I should be aware of, and what's the best way to check the new node will function , and be able
    to migrate the File role over without issues. I know I can run a validation when adding the node, I presume this is the best option ?
    cannot find much information on the web about expanding a SOFS cluster.
    any advice or information would be greatfully received !!
    cheers
    Mark

    Hi Mark,
    Sorry for the delay in reply.
    As you said there is no much information which related to add a node to a SOFS cluster.
    The only ones I could find is related to System Center (VMM):
    How to Add a Node to a Scale-Out File Server in VMM
    http://technet.microsoft.com/en-us/library/dn466530.aspx
    However adding a node to SOFS cluster should be simple as you just prepared. You can have a try and see the result. 
    If you have any feedback on our support, please send to [email protected]

  • Question about adding a line/phone to a new plan

    Hey everyone I have a concern I wanted to be clear about before I upgrade my plan. I am up for a device upgrade and plan on upgrading my smartphone and my current single line plan to one of of the new share everything family plans and a new smartphone. I can get the phone I want at a different store other then verizon for a better price so Im going to do that. After that is all said and done I plan on buying and adding another new smartphone/line to my share everything account through verizon(store or online). I just want to be sure that 1.) Adding another line after the fact isnt going to be a problem fee wise or the terms of my account wise since I just upgraded my account at a different vendor and 2.) Will that new line be still eligible for a upgrade discount through verizon just like a new plan would be even though Im not adding it at the same exact time I upgrade my main phone and plan?
    Also I was wondering that if..say a few months from now I want to add another new phone/line to my share everything account. Will that also be like a new plan and eligible for a upgrade discount through verizon? My 2.) question will probably answer this but I want to be absolutely sure first before I do anything. Thanks alot guys. Appreciate any input.

    scottm79 wrote:
    Hey everyone I have a concern I wanted to be clear about before I upgrade my plan. I am up for a device upgrade and plan on upgrading my smartphone and my current single line plan to one of of the new share everything family plans and a new smartphone. I can get the phone I want at a different store other then verizon for a better price so Im going to do that. After that is all said and done I plan on buying and adding another new smartphone/line to my share everything account through verizon(store or online). I just want to be sure that 1.) Adding another line after the fact isnt going to be a problem fee wise or the terms of my account wise since I just upgraded my account at a different vendor and 2.) Will that new line be still eligible for a upgrade discount through verizon just like a new plan would be even though Im not adding it at the same exact time I upgrade my main phone and plan?
    Also I was wondering that if..say a few months from now I want to add another new phone/line to my share everything account. Will that also be like a new plan and eligible for a upgrade discount through verizon? My 2.) question will probably answer this but I want to be absolutely sure first before I do anything. Thanks alot guys. Appreciate any input.
      Every time you add a line, it is eligible for a subsidized phone. It does not matter when you do it. As far as question #1, your account is just what the terms of usage is, not the length of the contract(s). Those are determined by the individual lines. You can also change the account limits at any time (eg. increase shared data limit), but when you do, it is usually pro-rated for the remainder of your current billing month, plus 1 month in advance. It does not change any of the lengths of the lines contracts.
      Does this help?

  • A few questions about mobile recording (RME & MH & Hard drives)

    in a couple of months i will have enough for a laptop and a firewire interface.
    after quite a bit of obsessive research, it has come down to the metric halo MIO 2882--which i now favor as an option--and the rme fireface.
    I favor the metric halo because it is bus powered. this is actually the only thing that tipped the scales in favor of the metric halo, as the fireface has better preamps (apparently the 2882's pre's get hissy with high gain.)
    this brings me to my questions.
    1) if i run my rig off of battery power, i will not be able to use an external firewire drive. would i get acceptable stability from tracking to a 7200rpm internal drive? i understand that tracking to the system drive is ill advised, but what else is there to do?
    2)if it is ill advised to track to the internal hard drive, why shouldn't i just get the fireface and run everything from a power outlet? what use is having a bus powered interface when i can't track properly witout plugging my drive in anyway?
    3)how many owners of the 2882 track off of the powerbooks battery, and what has been your experience with this?
    Want Macbook Pro...badly   Mac OS X (10.4.5)  

    Get anExpressCard/34 with a Firewire 800 input and run an external Fw800 drive off of that. (I assume that the ExpressCard isn't on the same bus as the FW400, but you might want to investigate that...) Before you get an external, do a few tests and record on the internal drive. See if the internal is adequate for your needs.
    Also, be sure to upgrade your MPB to have a 7200 rpm drive, the standard drive is the 5400 rpm.
    Concerning battery life... There isn't a lot of info on the new MBP battery life. In fact, you have to get to the specs page to get a mention of the battery info.
    http://www.apple.com/macbookpro/whatsinside.html
    I suggest doing a thorough search if this is a real concern. You can dim the screen and that dramicatically increases the battery life. I am not sure if the MPB have the same battery as the Powerbook, but for the old Powerbooks, you can purchase "tricked" out batteries that have a higher energy capacity.
    good luck with your MPB.
    Dual 1.8Ghz G5 PB G4 1Ghz LP7.1.1 Motu 896   Mac OS X (10.4.5)   Reaktor 5.1 Reason 3.0.4 Live 5.0.2 Battery 2.1.1 Recycle 2.1

  • Very important question about fm record

    I saw a Creative gb nano plus that says on the package that it will record fm. I want to record a show while working so can listen to it when I get home (like timeshifting on the vcr). However, I see that on this forum, the fm recording has been eliminated. My question is: )if the product package says there is fm recording, is there actually fm recording? 2)if there is no fm recording, please recommend another brand that has fm recording. Also, I want the fm recording to be clear, nearly as good as the original heard through the headphones. It gets very tiring to listen to a low bitrate recording. Thank you for your prompt reply because I want to buy one as soon as possible

    I'm not trying to change my account name, I'm trying to change the name of a folder. If you open up finder, then on the left you'll see the sections devices, places and search for. I'm trying to change the folder under places with the little house symbol next to it. Instead of being called Home like it's supposed to it has the beginning of my email address, which is emokidd21. I really want to change that because that's an old email account that I only use for itunes and instant messaging and I just plain old don't like the name. I really hope there is a way to change this!

  • Question about video recording and size of the recording on a tv/comp

    So i just started editing my iphone movies with imovie for mac. However I ran into a problem right away. When i recorded a video while holding my iphone vertically the playback was horrible on my mac because it was so skinny and not wide at all. First off I was wondering if there was a some way to make it wider? My videos that were recorded while my iphone was horizontal then they are perfect when viewing on my mac. So if anyone can help me with this question i would greatly appreciate it.

    You cannot record a video any wider when recording a video in portrait mode or make it wider after being recorded. If recording a video in landscape mode is what you prefer, you need to record all videos in landscape mode.

  • Question about adding Windows 2012 R2 Domain Controller, into a native Windows 2008 R2 single forest domain

    I current have a two server domain, both Windows 2008 R2 and fully updated.   The two servers are on subnet 10.0.1.0 /24
    - Windows 2008 R2 Server A: 10.0.1.1 (DC, GC, FSMO, DNS)
    - Windows 2008 R2 Server B: 10.0.1.2 (DC, GC)
    AD Domain: COMPANY.LOCAL
    I have a second connected subnet, 192.168.1.0 /24) which is routed to the 10.0.1.0/24 subnet and I would like to install a Windows 2012 R2 server onto a server on that subnet and make it a domain controller with AD-Integrated DNS and DHCP for the 192.168.1.0
    /24 subnet.
    - Windows 2012 R2 Server C: 192.168.1.1
    What are the proper progression steps, in order to bring up the Windows 2012 R2 server and then add it to my COMPANY.LOCAL domain and then promote it do a DC/GC/AD-Integrated DNS server?   Are they anything like the following:
    1. Install Windows 2012 R2 server (Server C)
    2. Point Windows 2012 R2 server DNS servers at Server's A and B
    3. Perform AD prep to extend AD schema to support Windows 2012 R2 domain controllers
    4. Promote Windows 2012 R2 server to domain controller (install local DNS service on Server C, during this step)
    * Question:  Will Windows automatically create a DNS zone for the Windows 2012 R2 subnet (192.168.1.0/24) AND also include the DNS zone from the previous Windows 2008 R2 domain (10.0.1.0 /24)?  Or will I need to add the 10.0.1.0 /24 zone to the DNS
    server on Server C, even though the DNS from the Windows 2008 R2 domain is AD integrated?

    Hi,
    Regarding the issue here, please take a look into below articles:
    System Requirements and Installation Information for Windows Server 2012 R2
    http://technet.microsoft.com/en-us/library/dn303418.aspx
    Release Notes: Important Issues in Windows Server 2012 R2
    http://technet.microsoft.com/en-us/library/dn387077.aspx
    Install a Replica Windows Server 2012 Domain Controller in an Existing Domain (Level 200)
    http://technet.microsoft.com/en-us/library/jj574134.aspx
    Here is an example for promoting Windows Server 2012 to a DC, see:
    Step-by-Step Guide for Setting Up A Windows Server 2012 Domain Controller
    http://social.technet.microsoft.com/wiki/contents/articles/12370.step-by-step-guide-for-setting-up-a-windows-server-2012-domain-controller.aspx
    As the server is promoted to a DC, DNS Zones will be replicated and synchronized to it automatically whenever the new one is added to an AD DS domain,  bascially there is no special need to add zones,  for more information, please see:
    Understanding Active Directory Domain Services Integration
    http://technet.microsoft.com/en-us/library/cc726034.aspx
    Hope this may help
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • A question about DNS records and split DNS

    Hello
    Can someone please help me with the following question
    If I have an AD integrated DNS zone (currently running on Windows 2003 R2, soon to be updated to 2012 R2)
    lets call the domain MyDomain.Local and here I have all my local Server, Computer and related records (A, CNAME MX etc.)
    Also I have an external internet domain lets call is MyCorp.Com (both of these domain are completely separate)
    I have a requirement for an internal URL (Web Server) to point to an internal host, however for various reasons (which I will not go into here), the company wants the format of this internal URL to include the MyCorp.Com element in the overall URL
    Now the MyCorp.Com domain is hosted externally to the company by a dedicated provider (we just login via a secure portal if we want to add for example and A record to the MyCorp.Com domain) the MyCorp.Com domain is completely separate from the MyDomain.local
    domain which is hosted on internal DNS Servers
    Question:
    without using split DNS can I, create a zone called New.MyCorp.Com on our internal AD integrated DNS Servers (to live along side the standard MyDomain.local) than add an A record to this zone say Host.New.MyCorp.Com
    So internal users can locate Host.New.MyCorp.Com without being directed out to the internet (for MyCorp.Com) but internal users will still be able to resolve SomeOtherHost.MyCorp.Com as they do now
    Thanks very much in advance
    AAnotherUser__
    AAnotherUser__

    Hi AAnotherUser_,
    Based on your description, the internal domain name is different from the external domain name, and the web server is hosted internally. And the goal is that the internal user can
    access the web server by using an URL which include the MyCorp.com.
    In this scenario, internet users access your domain name by connecting to the WAN IP address of your router. However, to make the internal users access the website, you would need
    to create the external domain name as a zone on your internal DNS server.
    After creating the DNS zone, right click the zone you created, choose New Host Record.
    Type in the hostname, such as ‘www’, and provide the internal private IP address of your internal web server.
    For more details, please refer to Ace’s blog below, the
    Scenario 2: Different Internal and External but you are hosting the webserver internally
    http://blogs.msmvps.com/acefekay/2009/09/03/split-zone-or-no-split-zone-can-t-access-internal-website-with-external-name/
    Best Regards,
    Tina

  • Question about adding tags to images and music

    Hi I have an artist page online and I have read that adding meta tags to your page does absolutely nothing to help search engines these days and then someone recommended adding tags to the images on my site using aperture (which I cant afford) so can anyone explain if I can do this in iphoto or photoshop? and also can I add tags to the mp3's available on my site to better perform in search engine searches? can i do this with itunes?
    Thanks in advance

    The search engines have to be lead to your music/photo page using an appropriate URL and having a text description with as many relevant "key" words as possible.
    Also, you need as many links to this page as possible from other sites as well as your own pages.
    When I enter one of my own song titles and name into Google, all the top listed links are sites that sell digital downloads and CDs. Have a look at the way these sites list your music to see the most effective way of doing it on your own website.
    Obviously, you first have to add your URL to Google, Yahoo etc and get them to verify your sitemap.

  • Question about Adding External Storage/File Management

    I am using LR5.2 on mid-2011 MBA. Before long I will run out of space on the HD. I have one catalog of about 16K photos. I would like to purchase external hard drive for additional storage. I use Time Machine for backup. What is the best way to manage the additional storage and keep the catalog intact?
    1) I currently have photos organized by date? i.e., Pictures/2013/2013-10-10/ etc. Should I keep this file organization as it is and then when importing new photos, select 'copy' from SD card and select 'Location' as new external drive?
    OR
    2) Should I move all photos to new backup drive to keep all files stored together? Would this be better for long term file management?
    Any recommendations for best practices? Or is there a better to organize photos for current and future use?
    Also, does the catalog stay in the same location under either 1) or 2)
    Thanks in advance

    I would suggest creating a root folder on the EHD. You will need to keep your EHD connected when working with Lightroom. It will show up like your Mac HD with the green light in the left hand panel.
    Leave everything where it is for the time being but you may want to drag older folders to the EHD over time, as importing new photos, generating previews and using the develop module will usually be faster on the main flash drive of the MBA.
    Don’t use Finder to move files/folders around. Always use the Lightroom Library and the database of files and your develop settings (catalog) will not get corrupted.
    See this video:
    http://www.youtube.com/watch?v=4trWRAeOsuA

Maybe you are looking for

  • Project Server 2010 - Build Team from Enterprise Greyed out

    I am trying to find out why the Enterprise Resources are greyed out when I try to build an Enterprise Team for a project? Starting from Project Server, I open a project in Project Pro.  Then go to Resource..Add Resources..Build Enterprise Team.  In

  • Sync ipod classic with new HD

    I replaced HD on MBP and upgraded to itunes 11.  I have two ipod classics and an iphone 4s.  When i connect ipods they get recognized show in sidebar and do a real quick sync, but don't add any of the music i just put in itunes yesterday (that's how

  • Power to Hub & router

    Hi, Does anyone know if the HH and Router can be connected to an extension lead when the engineers calls. I do have a double socket close to the master socket but one is used for the answerphone and one is already being used by the old Hub. I could d

  • Issue with Safari and 10.6.5 update

    So ever since I updated 10.6.5 I've noticed when I've got Safari open my MacBook pro will lockup. It seems to only happen when flash is running but I'm not positive thats the culprit yet. Not all flash locks it up so its hard to say. Has anyone run i

  • How to revert back old java version in tomcat

    Hi, i have upgraded java 1.5 to java 1.6 and tomcat 5.5 to tomcat 6.0 Now i want to map the tomcat 6.0 to java 1.5 version can some one guide me how to fo it Thanks in advance