How to delete records of name of datagrid, while I'm by selecting one of the check and delete

Hi friends,

I work in flex 4 mxml with action script web application... i use a data grid and a delete button outside the grid.

I have two records in the same name in the grid, when I click on a record in the grid and click on ways to remove this time, both records will delete this grid

including the record with the same name...

How to do this?

any code suggesssion or helpful code snippets...

Thanks in advance,

B.Venkatesan.

Hello

First, get the length of the data grid.

Assume that your datagrid id db and you want to delete the line that have the same name...

first get the line selected and the name of the line selected.

is the chosen name supoose

var index: int = db.selectedindex;

var selname:string = bd.dataprovide.getItemAt (index) .name; (name id column datafield).

now, you research the name chosen for the same lines in the DataGrid.

var totallen: int = (db.dataprovider) .length;

for (var i: int = 0; i<>

{

var checkduplicate:string is bd.dataprovide.getItemAt (i) .name;.

if(checkduplicate==selname)

{

db.dataProvider.removeItemAt (i);

}

}

This will clear all the line who are with the same name with the name of the selected line.

---------------------------------------------------------------------- ----------------------------

Gallot Hiroji | [email protected] | www.isacglobal.com

---------------------------------------------------------------------- ----------------------------

Tags: Flex

Similar Questions

  • How to add the same name of datagrid records, while I'm by selecting one of the check and click Add end to end

    Hi friends,

    I do flex mxml 4 web application with as3, I am struck upward in the next concept, shar your suggession thereon.

    I use datagrid with 3 columns NUMBER, NAME, AMOUNT. an and a box Add button and a delete button.

    I have two records in the same name in the grid, when I click on a record in the grid and click ADD means of button this year, both AMOUNT WILL ADD records that record with the same name and give this value in a text box.

    How to do this?

    useful suggesssion or sample modal

    Thanks in advance,

    B.Venkatesan.

    Hello

    var totalsum:int = 0;

    var index: int = db.selectedindex;

    var selname:string = bd.dataprovide.getItemAt (index) .name;

    var totallen: int = (db.dataprovider) .length;

    for (var i: int = 0; i<>

    {

    var checkduplicate:string is bd.dataprovide.getItemAt (i) .name;.

    if(checkduplicate==selname)

    {

    totalSum += bd.dataprovide.getItemAt (i). AMOUNT;

    }

    }

    textfield_id. Text = totalSum

    ---------------------------------------------------------------------- ----------------------------

    Gallot Hiroji | [email protected] | www.isacglobal.com

    ---------------------------------------------------------------------- ----------------------------

  • How to select one of the VMRC and WebMKS of vRealize of automation for the end user

    As you know, there are two Protocol to use the remote console to the configured virtual machine of vRealize Automation. I know how to select one of the VMRC and WebMKS on vCenter via Web Client, but I'm not sure whether vRealize Automation can select one of the VMRC and WebMKS. Is there anyone who knows about it?

    You can set in the law.

    Grant

  • How to export a video with two audio tracks such as: English and a steam engine, then open in vlc player, then select one of the two tracks?

    How to export a video with two audio tracks such as: English and a steam engine, then open in vlc player, then select one of the two tracks?

    Everything you always wanted to know about the acoustics in first Pro CC - YouTube

  • Ho I convert my catalog of items 5 to 13 items that I just bought.  I took one of the tutorials and I converted my catalog of 5 elements in a file 'pse.13db '.  How can I get 13 elements to recognize this converted file?  When I open it Ca 13 items

    Ho I convert my catalog of items 5 to 13 items that I just bought.  I took one of the tutorials and I converted my catalog of 5 elements in a file 'pse.13db '.  How can I get 13 elements to recognize this converted file?  When I open elements 13 Catalog Manager and navigate to the correct location, it does not show the file.  Help!  Thank you

    Hi bumps and Spooley,.

    Would it be possible for us to have a look at the file catalog.pse13db from your machine?

    If the file size is not too large, please feel free to send me by email @ [email protected]. If it is too big, I'll share with you a Dropbox folder where you can download the same.

    Thank you

    Catherine

  • How can I get genuine copy of vista Home premium. can I install it from the internet and enable it with the key provided at the back of my laptop?

    I recently bought a laptop (hp dv 2000) 2nd hand. It was delivered to me with windows 7 installed, but I want my vista that was installed at the plant how can I get the authentic copy. can I install vista Home premium on the internet and enable it with the key provided in the back of my laptop, it will become a genuine copy of vista?

    Name: Ketan Kumar

    email ID:-* address email is removed from the privacy *, * address email is removed from the privacy *.
    Phone: -.
    model:-HP pavilion dv2000 (AMD)
    version of the Vista Edition operating system family premium preinstalled

    Hello

    There is no vista download for free and legally on the net

    Here are the different ways to reinstall Vista

    Contact HP and ask them to send you in recovery vista disc to reinstall the operating system back as it was when new

    they do it for a nominal cost of $

    http://WWW8.HP.com/us/en/contact-HP/contact.html

    ____________________________________________________________

    Solve a common problem of recovery with HP machines.
    If the original operating system is changed to a non - Vista OS, the Recovery Manager cannot be launched either office or by pressing f11 at startup. You can use the recovery disk to restore the computer to the original state of Vista. If you are using a non - Vista OS, you can use a third-party partition management program to recover hard disk space.

    __________________________________________________________

    or borrow a vista microsoft dvd; not an Acer, Dell etc recovery disk

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    ____________________________________________________________

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • How to create a parameterized report - select "- ALL -" for the Department and manager does not.

    I downloaded the app OEHR sample of objects and followed the steps in Oracle® Application Express Advanced Tutorials
    Version 3.2.

    The report and the settings seem to work fine except when I get 'everything' for service or manager I get no corresponding success.

    What is the way most effective to get 'everything' if the user selects all for dept and mgr - so we would like to return all records in the table.

    Snipprt region

    Enter search Edit   
    Edit
    Edit
    Edit

    Here is the sql code that was provided as part of the turitoral.

    SELECT

    'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

    'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

    'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

    'OEHR_EMPLOYEES '. "" ""E-MAIL. "

    'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

    'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

    'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

    'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

    'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

    'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

    'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

    Of

    "#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

    WHERE

    (lower (first_name) like '%' | lower(:P1_NAME) |) '%' OR

    Lower (last_name) like '% "| Lower(:P1_NAME) | '%')

    AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)

    AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)

    Hello

    Use this...

    SELECT

    'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

    'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

    'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

    'OEHR_EMPLOYEES '. "" ""E-MAIL. "

    'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

    'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

    'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

    'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

    'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

    'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

    'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

    Of

    "#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

    WHERE

    (: P1_NAME IS NULL OR)

    (: P1_NAME IS NOT NULL AND)

    (

    (lower (first_name) like '%' | lower(:P1_NAME) |) '%') OR

    (lower (last_name) like '%' | lower(:P1_NAME) |) '%')

    )

    )

    ) AND

    (: P1_DEPT IS NULL or department_id =: P1_DEPT) AND

    (: P1_MGR IS NULL or manager_id =: P1_MGR)

  • How to configure HA when vCenter is running as a virtual machine in one of the army?

    To install HA with VMware EVC, guests must be first maintenance mode before moving into the HA cluster. The problem is, vCenter runs as a virtual machine inside one of these hosts. If I stop vCenter downwards so that the host in maintenance mode, how do I setup with VMware EVC HA without using vCenter?

    If you do not feature vMotion, right down your vCenter VM and you unsubscribe eg. ESX1 can record for example. ESX2 then turn back on. ESX1 maintenance mode and then back ESX1 on your cluster file and exit once done maintenance mode. It goes the same for ESX2 and the rest of the ESX host.

  • How repair my iphone 6s hung in camera I can't able to access on the other and I can't able to swtich offf if sleep button the tank please help me

    I took a few pictures without unlocking my iphone 6 s after that he stuck behind closed doors himself and tactile assitive works but can't go to the home page in my laptop, I tried to change my sleep the mobile tank button that works also not I'm not what to do. Please help me solve this problem.

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support

  • How can I know what is my address of mail electronics thunderbird. I created the account, and now I don't remember my address or password?

    I don't remember my address of mail electronics thunderbird. Just put the account and somehow forgotten login information.

    There is no such thing as a Thunderbird e-mail address. Thunderbird is not a provider of e-mail, so it does not publish the addresses. It is the e-mail client software that allows you to login to your account with a real mail provider. Check with your provider for e-mail for your username and password.

  • How to delete all mails at once?

    Original Tilte: E mail

    When deleting Email I can not find a remove all.

    When deleting Email I can not find a remove all.

    Hello

    If you use the default of Windows 8 App Mail.

    To delete all files in a folder, select one of the emails, and press on Ctrl + A for select all the messages in this folder.

    Press the delete key.

    Concerning

  • How to delete files in the folder of information system volume on replacement disks?

    How can I delete files that were up on another system (XP), after that I inserted the disc into my new Win 7 system.  The files seem to be impossible to remove.  This is not a progress :)  What can I do to remove these files?  They take a significant amount of space, and I want to be able to put what I want on these drives.  What I have to get out my old XP discs just to do this?  Please tell me I don't have to (: I remember to clean my machine win 98 with the commmands BACK a file and directory at a time.)  I hope were not there...

    rfitzpa877

    , This does not resolve the (ARRRG!) system volume information files, but their size is reduced to nothing...  If someone does not know how to remove these files, I would like to know how.  I formatted one of the disks and apparently not one of these folders have yet.  In fact, I bluff on that partition and formatted & that seems to have managed to get rid of these pesky files on this drive.  Am I the only one who thinks I should have control over my own system?  What is the point of having administrator rights?  Maybe it's time we give administrator rights.  I am not at all impressed by it.  From the looks of the number of points of view on this thread, I'm not the only one with this problem.  If I want to disable the protection and to get rid of the files, why I can't?

    You just started to fall on this real guilty about "kits of infected roots.  Lets imagine that a crime is committed in a House.  who is instantly a suspect?  for example, wife disappears > husband is the first to be questioned.

    In the case of a MS OS Microsoft has really strengthened WAY out of bounds. For half a year that I traced the issue to them anyone who or what that monitor my progress erased my data and sent me to a goose chase 6 months have no opportunity to even connect online for days or weeks I was left down my school because I was not able to turn on a computer to write an assignment or a test with any reliability.
    Who got this abuse power?  They think we did by agreeing to there life private terms or agreeing to use icons 'newer and better '.  They rely solely on the low bar of duty of good faith to steal data, record and claim it as their webcam or any ones and zeros, they feel that theirs with an omniscient power of Microsoft update.  Why is Microsoft blameless when a blue screens after a system command to reboot to make effective change OS
    ? Read the comments around KB976902 and the "fix" KB25533552.  They have simply to virtualize all XP sp3 or later PC.  Using video to measure the ability of the PC performance and disk space querying Microsoft then begins to do what they darn well for as long as they wanted regardless of evil as being spent in graduate school.
    This virtual virus haunts me, but he gave up because I happened to scan hundreds of pages of documents trying to burn DVDs or whatever it is to preserve the legal evidence (paralegals).
    I had scanned drive my license to and many other pages that I think someone out there shows some mercy, at least for a little while.  Behaviour cruel and unusual of sadistic implementation of the 'virtual' virus left me broke and homeless.
    Be aware, WBEM, Panther, winsxs and scoring system they say is in our interest or as these naïve technicians say blindly which is just one possible use of the 'virtual' Virus  Visual Basic and root or environment variables allows them to alter the remote registry or to set a timer to attack even when unplugged on the net.  They have no interest in the individual retail customer or small business owner.   Whenever you read "recommended", it is recommended to allow them to invade and infect their own way.
    What virtual "features" are active I really don't know, when there is literally no control over any aspect of the PC.  They could using Adobe Flash network of peer-to-peer "characteristic" of the network or activate Bluetooth to create a network almost undetectable, replacement of NICs with NDIS based pilots allows them to use USB drivers to emulate any hardware driver, even turn off the LEDS of different.  Only because of the vibration of a drive external hard started to peel the onion.
    I can bet my next "update" will be what I call and copyright 'virtual Virus '.
    It is my opinion based on my experience real and even documenting months and months of troubleshooting the data I recorded full time has of course changed or deleted.   These facts showed me that Microsoft et al. will do anything even my personal destruction for nothing more than try to get control of my own personal private property.
    By diligent and hundreds of thousands of hours, I am convinced all my personal files are monitored without legal or judicial supervision.
    So yes, deleting these files is not only the best of the options, it leaves the possibility of attacking or anything be it launch at will and, therefore, it IS THE ONLY OPTION.
    Hidden in the desktop.ini, fonts and all files are really seeds of the worst violations of privacy, not yet imagined by most computer experts or instructions.  Our worst enemy is so once more one inside not the perception of the public of the hacker tracking.
    I submit, piracy of Microsoft operating systems is now a 2nd Amendment RIGHT because they used their OS as a weapon as damaging as any gun could be data that they killed.
    By doing so and by my expert opinion and the notation of the inalienable right of the privacy of the citizens of CA. Microsoft has eliminated any claim of a right to valid author or license because they use EULA another company in they create and manage folders.
    The 'virtual' Virus is clever that, as long as it is insidious.  If they deny then I ask the State of the art and my invention.  I can then request the return in court.  My remedy supposed today
    ?  I am only allowed the cost of the operating system regardless of the magnitude of the fraud and damage that they did to me
    It is clearly stated in the EULA that they believe is valid.
    Until one day I hope to be able to have my day in court before a jury educated I'm destined to become outcast among our society.
    What a difference a year and this little compassion to tears shed my life dissolves around me.
    My confidence they would eventually do the right thing has turned out to be my worst enemy
    .
    Virtual virus alien.
  • How can I get my name domin without summer coach

    How can get my name domin on coach

    Hi robettaanthony,

    For general information on obtaining domain names, see: http://www.ehow.com/how_5493285_domain-names.html. See the other links on the right for more information and assistance.

    To the extent where using Live Coach (if I have the correct company), here are the domain names on coach information: http://www.lifecoachwebsolutions.com/life-coach-domain-names.htm. If you have any questions was able to answer on the site, contact them at the: http://www.lifecoachwebsolutions.com/contactus.htm.

    If you are talking about http://www.becomeacertifiedcoach.com/selecting-a-domain-name-and-hosting-for-your-coaching-business, I don't think you have to go through THEIR process to get a domain name - I think they use all simply a company that does this to help people who have been through the program. If this is the place, try to contact them at the http://www.becomeacertifiedcoach.com/contact for more information.

    If the Coach is a different company and they have provided your domain name and you want to use it somewhere else, you need to contact them to see how that process works and then find another company to host the domain name. If you want a domain name currently owned to be welcomed by the coach, you must first contact the people with whom you have registered the name and see what is the transfer process and then contact coach and see if they can accept and accommodate this domain name. As I'm not sure of what companies are involved, you will need to contact them yourself.

    If all else fails, try the Network Solutions: http://www.networksolutions.com/ , who was one of the first and one of the best domain name and web hosting services and explain your problem, and they may be able to help (or what they suggest, or do can give you ideas or information on how to do it yourself in a different way).

    I hope this helps.

    Good luck!

  • How to find the name of Wi - FI on the account, and if there was a recently with a wi - fi connection

    I have a 'Mini Inspiron' netbook which has been programmed with a built-in WI - FI connection. How can I find out the name of Wi - FI on the account, and if there was a recently with a wi - fi connection, why would it automatically disappear on my netbook and not my phone? Trying to find the normal wi - fi connection called linksys, how to locate or discover what happened?

    Hi JulietHutchinson,

    You can review the article and check if that helps:

    View and connect to available wireless networks

    You may also refer to article and check if it helps:

    Windows wireless and wired network connection problems

  • How to remove unusual synonymous names?

    I had to remove synonymous names of my set up to run the impdb command. Now, please look at the following responses of SQL

    SQL > droppublic synonym /1000e8d1_LinkedHashMapValueIt;
    dropsynonym public /1000e8d1_LinkedHashMapValueIt
    *

    ERROR on line 1:

    ORA-00995: missing or not valid synonym identifier

    (Question) the synonym name /1000e8d1_LinkedHashMapValueIt is perfectly valid synonym name found from the following query, but I'm not able to remove it. How can I remove this synonym like any other normal synonym name?. Please help

    SQL > select synonym_name in the all_synonyms;

    SYNONYM_NAME

    ------------------------------

    CUSTOMER

    /1000e8d1_LinkedHashMapValueIt

    /1005bd30_LnkdConstant

    /10076b23_OraCustomDatumClosur

    Hello

    This synonym seems to be related to the JAVA class, and it may be late to the high risk if you drop the synonym.

    Select the owner object_id, object_name, object_type, status

    of object

    where object_name ='/ 1000e8d1_LinkedHashMapValueIt';

    OUTPUT:

    OBJECT_ID OBJECT_NAME OWNER
    ------------------------------ ------------------------------ ----------
    OBJECT_TYPE STATUS
    ------------------- -------
    SYS /1000e8d1_LinkedHashMapValueIt 44844
    JAVA CLASS          VALID

    /1000e8d1_LinkedHashMapValueIt PUBLIC 44845
    VALID SYNONYM

    And yet, you want to let him down, maybe try with ", as below:"

    Drop public synonym ' / 1000e8d1_LinkedHashMapValueIt ';

Maybe you are looking for

  • Unable to connect to ANY account in Linux Mint 17 64-bit ("Configuration could not be verified - is the name of user or wrong password?")

    So after working all day to get my OS to work together I tried to use Thunderbird on my Linux Mint 17 64-bit. Entering my details, Thunderbird says they're wrong. I checked and checked several times that they are right. I looked around and the farm,

  • error-1202

    Whenever I'm trying to use the Starz on my Apple TV app, I get a message of error-1202.  The only choices are again app or quit the application.  I deleted the app and reinstalled but it still does not work.  The app works perfectly on my iphone and

  • Companion of Lenovo - Mobile connection failed

    Failed to connect Lenovo Mobile Companion - when I try to open a session it says network error. Lenovo please resoved the issue as soon as possible.

  • Unable to save the changes to photo to disk

    original title; Changes to the photo on a CD - R That I imported the photos from my computer to a CD - R.  When I mark the photos after their displacement on the CD, my changes are not saved when I eject the CD, and then when I insert it again.   How

  • Guest access with CWA on ISE 1.3

    Hi, we have implemented CWA for wireless using ISE. However there is a problem, the redirect URL is a name, not an IP address and public use DNS servers dhcp, so CWA scope comments does not work unless we put society DNS servers. Is it possible to co