Delete group containers in runtime in flex

i am trying to make a some groups within a predefined group at run time.  i can make groups, the code is working fine. Now i have added two  buttons in each group which is created in run time. now the problem is  one of the button is x . the property of button should be when i click  on it it should delete the very specific group in which it is built.  please check out the code and tell me what additions should i make.
public var n:Number = 0;
        protected function remover (event:MouseEvent):void
        protected function settings(g:Group):void
            ((DisplayObject)(g)).width = "200";
            ((DisplayObject)(g)).height = "140";
            ((DisplayObject)(g)).x = "200" ;
            ((DisplayObject)(g)).y = "200";
            var s:String;
            s = "NewGroup"+ "X"+ n.toString;
            var mybutton1:Button = new Button();
            mybutton1.id = s;
            mybutton1.label ="X";
            mybutton1.addEventListener(MouseEvent.CLICK, remover);
            g.addElement(mybutton1);
    //      setting1(mybutton1);
            n++;
        public function addGroup(event:MouseEvent): void
            var s:String;
            n = n+1;
            s = "NewGroup"+ "_"+ n.toString;
            var myGroup:Group = new Group();
            myGroup.id = s;
            main.addElement(myGroup);
        //  setElementIndex(myGroup, n);
            settings(myGroup);
    ]]>
</fx:Script>
<s:Button x="422" id="wow"   y="139" label="Add Group"  click="addGroup(event)"/>
<s:HGroup id="main" x="6" y="168" width="750" height="490">
</s:HGroup>

in the query itself you can do this by using a decode
select decode(deptno, 10,'Excellent',20,'Good', 'Not decided') from
dept
Rajesh

Similar Messages

  • Delete Groups @ runtime

    In older versions of Crystal reports RDC with VB6 there was the ability to delete a group at runtime, now with Crystal Report 11.5.net from VB 2005 I can't find a way to do that.  Any suggestions?

    Hi, Diane;
    Using the Crystal Reports .NET Assemblies, there is no option to add or delete groups at runtime. However, you can use the RAS (Report Applicaiton Server) .NET Engine to do so. See the following article:
    [RAS Add Group|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233383338333933383338%7D.do]
    Best Regards,
    Jonathan

  • FRM-41075-ERROR DELETING GROUP

    HI EVERYBODY,
    i created a form with one item which z not database item.i created lov based on query.i created a key-listval trigger for item.when i m running my form,i am getting the following error:FRM-41075:Error deleting group.how to solve this error.
    actually my requirement like this,when i give 1 in text item it should get related records in LOV,IF VALUE z not found then it should search through next field in lov itself:
    for example:i created a lov with empno.empname.when i give the value 1 in runtime it should invoke LOV WITH related records,if value is not found then i will give some char like S in search field in LOV itself,then it should give related records of starting with S.
    please tell the steps clearly.
    thanks in advance

    Hi,
    Do you have a record group with 'group_emp' name under record groups objects. This built in can not delete record groups created at design time(see forms online help 'delete_group').
    Just try renaming your group_name varchar2(10) :='group_emp' and see
    Regards
    Yoonas

  • How can I delete groups of emails from my gmail account?

    How can I delete groups of emails from my gmail account?

    Sign in to gMail web mail client > tick the boxes > click the trash can
    OR you could tell us what OS X version you have and what mail client you are using

  • Why can't I delete groups in my Address Book??

    I'm running Mac OS 10.7.4 on an early 2011 15" MBP.
    It's not a smart group and I don't use Microsoft Entourage.  I've tried the "delete" key (Fn + delete) and "Edit"->"Delete Group".  It gives me the prompt "Are you sure you want to delete the group 'blah'?"  Then when I hit the delete button, nothing happens.  At ALL!
    Oh, well, something does happen: The edit menu shows "Undo delete group" for Command-Z.  And if I click it, I get another un-deletable copy of the original group.
    Help??  Anybody??

    If an App is compatible with an iOS device it will not be compatible with the computer. They will require different versions of an App for the different Operatin Systems.
    Stedman

  • How do i delete groups of emails from specific contacts all at one

    how do i delete groups of emails from specific contacts all at once without deleting ALL emails in inbox?  i need to clear 14,000 emails!

    Delete them from the server.

  • Is it possible to delete Groups out of Contacts?

    I have an iphone 3GS.  When I sync my phone all of my contact groups from Outlook transfer to my phone.  I do not need all of these groups.  Can you tell me if there is a way to delete Groups under Contacts off my phone?

    YOu won't be able to delete it from your iphone.   On your outlook account you'll need to create a different contact folder and move it there, then when you sync your iphone uncheck the sync for that folder you created.

  • Can't delete groups in Address Book

    I have a couple of local groups in my Address Book that refuse to delete. Even though the "Delete Group" dialog pops up when I highlight the group and press the Delete-key, they are still there after hitting the OK button.
    When I create new groups (plus-button) I can delete them but not some of the old groups that were carried over from an older OS version.
    I have been playing around with Entourage and Outlook a lot so that might have had something to do with it.
    Is there a way to modify the Address Book database directly to get rid of these groups ?
    Or reinstall Address Book ?
    I already tried to swipe all Address Book related plist files - that didn't do it.

    Ok, I have solved the problem: I had to reset my SyncServices folder.
    Here's the description: http://support.apple.com/kb/ts1627
    After that I was finally able to delete the unwanted groups.

  • Deleting a ShowDetailItem at runtime from PanelAccordion ???

    Hi,
    I am trying to customize the panel accordion functionality like add, delete ShowDetial items at runtime to Panel accordion.
    All the operations are done programatically.
    I am able to Add Show detail item at runtime.
    Facing problem while deletion. My implementation is like this:
    I have a button in showDetailItem of PanelAccordion. On click of button i want o remove that ShowDetailItem. So i added a SelectionListener to button like this:
                RichCommandButton delButton = new RichCommandButton();
                delButton.setText("Delete");
                MethodExpression delEx =
                    adfUtils.resloveMethod("#{pageFlowScope.contactsBean.deleteShowDetailItem}",
                                  Object.class, new Class[] { });
                delButton.setActionExpression(delEx);From method deleteShowDetailItem, I need reference of that particular SelectDetaiItem where button is located. How to get that?
    and one more:
    How to open particular ShowDetailItem in PanelAccordion Programatically at runtime. For example. I am adding a showdetailitem at runtime, i want remaining all to be closed and new one to be opened. How to do that?
    Thanks
    Thoom
    Edited by: Thoom on Sep 10, 2011 12:38 PM

    Hi Timo,
    Thanks for reply. Yes i udnerstand the Structure of UI components.
    There is a small confusion in the code i have written
    Actually i am adding showDetailItem (with Delete Button) to PanelAccordion programatically in a loop.
    So when i click on delete button i am calling method:
    RichCommandButton delButton = new RichCommandButton();
                delButton.setText("Delete");
                MethodExpression delEx =
                    adfUtils.resloveMethod("#{pageFlowScope.contactsBean.deleteShowDetailItem}",
                                  Object.class, new Class[] { });
                delButton.setActionExpression(delEx);In above code i am unable to pass any event parameter to "deleteShowDetailItem" catch the Delete Button reference, so that i can get its Parent ShowDetailItem.
    I am kind of struck over here. I tried to pass some arguments like:
    MethodExpression delEx =
                    adfUtils.resloveMethod("#{pageFlowScope.contactsBean.deleteShowDetailItem}",
                                  Object.class, new Class[] { ActionEvent.class });
                delButton.setActionExpression(delEx);Unable to pass any action event with above code. It say invalid number of arguments.
    Thanks
    Thoom

  • Can't delete group by REST API

    I use this URL for delete a group: https://graph.windows.net/<domain>/groups/<objectId>/?api-version=1.5 (ref: https://msdn.microsoft.com/en-us/library/azure/dn151608.aspx)
    but I can't do it. I set full permission for application (I can create/update). How deleted group via REST Api?
    This is requonse:
    odata.error: 
    code: "Authorization_RequestDenied"
    message: 
    lang: "en"
    value: "Insufficient privileges to complete the operation."

    Hi,
    Are you using this link to delete the group
    https://graph.windows.net/<domain>/groups/<objectId>/?api-version=1.5
    the method states that it has used the date, not the version of API as mentioned below.
    https://graph.windows.net/mytenantdomain/groups/<objectId>?api-version=2013-04-05
    The Sample request also has the date, not the exact version of the API
    DELETE https://graph.windows.net/contoso.onmicrosoft.com/groups/bc0001a2-5b96-4073-a5be-6b80528a17ad?api-version=2013-04-05
    HTTP/1.1
    Authorization: Bearer eyJ0eX ... FWSXfwtQ
    Content-Type: application/json
    Host: graph.windows.net
    Hope this helps you.
    Girish Prajwal

  • Unable to delete group in address book

    I am trying to delete a group in address book. I use the menu option (Edit/Delete Group) but the group does not go. The group is empty - I removed all addresses in it.
    Am I missing something?
    Thanks

    Hello again:
    That file is in your home folder ( ~ library>preferences). That should not delete anything. However, although I move something to the trash, I wait a bit before emptying trash (you can always put something back where it came from).
    OS X rebuilds preference files (plist) as needed and sets them to default values. Preference files may (rare) become corrupted and cause all sorts of problems.
    You might also run repair disk from your software install DVD.
    Barry

  • Deleted Groups?

    Hello,
    Can anybody please tell me if the groups are deleted from AD , How OIM will come to know about that deleted groups?
    Right now as we are deleting AD Groups from AD the corresponding AD Group in OIM does not get deleted.

    Hey In your first question you told that How will OIM come to know about deleted groups and now you are asking that we want soft delete in AD.
    You are mixing your different requirements.
    If AD doesn't support Soft Delete then you can not do anything from OIM side.
    If you want soft delete in AD then you can move that group to different Organization.

  • How can I delete groups from my contacts?

    How can I delete groups from my contacts? There were three groups added when I was using the iPad on my computer at work and I do not need them know.

    iPhone User Guide

  • HELP: How to set WSDL at runtime (in Flex 4)?

    Hi,
    My flex application needs to communicate with a Web Service whose location is not known until after deployment; the service's location is known and static during development.  This means that my application should be able to communicate with the service whose wsdl url will be different from the "wsdl" value embedded in the Flex-generated code. 
    I can compute the wsdl url of the deployed service in the application at runtime.  However, I am unable to get the application to talk to the service running at the new location.
    Specifically, in application_creationCompleteHandler(), I do:
    var wsdl:String = hostString+"axis2/myService?wsdl";
    myWSvc = new MyWSvc(wsdl);
    In the constructor of MyWSvc(), which is the subclass of the auto-generated class for the My Web Service, I do:
    public function MyWSvc(runtimeWSDL:String=null) {
         super();
         if (runtimeWSDL != null) {
              wsdl = runtimeWSDL;
              _serviceControl.loadWSDL(wsdl);
              //model_internal::loadWSDLIfNecessary();
    This does not work; the auto-generated code always uses the WSDL value embedded in the auto-generated class for the My Web Service. 
    I would greatly appreciate your expert help in solving or getting around this issue.
    Much thanks,
    --Hyong

    Here is what I did.
    I set the settings for each environment in separate settings.xml files in SVN under seperated directories (dev,qa,prod).
    Here is the syntax of the settings.xml files. Each will have its respective URLs.
    <flex-config>
    <compiler>
        <define>
            <name>CONFIG::webServiceURL</name>
            <value>'http://www.xxxxxx.com/webservice_test/echocf7remote.cfc?wsdl'</value>
        </define>
    </compiler>
    </flex-config>
    The deploy.sh script asks for the environment value (dev,qa or prod) among other params, and then passes that in to the Ant like this (note there are extra params for our setup):
    ant -v -f build.xml -Dprojectname=${PROJECTNAME} -Dbranchname=${BRANCHNAME} -Dversion=${VERSION} -Denvironment=${ENV} -Dbuilddir=${BUILD_DIR} >> ${LOG_FILE}
    These params are used inside the build.xml
    After the Ant script checks the code out from SVN in to a staging directory, we load the proper settings.xml from the proper directory based on the user specified environment (in the deploy.sh).
    <load-config filename="${staging.conf}/${settings.conf}/${environment}/settings.xml"/>
    ${staging.conf} is defined in the build.properties and ${environment} is passed in the Ant call in the deploy.sh based on user provided input.
    So if the user specifies 'dev' during the deploy.sh execution, then we would load the /build/staging/config/dev/settings.xml
    Then in the pre-generates stabs I set the var at the top:
    private static const wsdlURL:String = CONFIG::webServiceURL;
    and modify the code bellow from hardcoded:
    //wsdl = "http://www.xxxxxx.com/webservice_test/echocf7remote.cfc?wsdl";
    to using the var:
    wsdl = wsdlURL;
    The nice thing is that all of the settings.xml 's are stored in the SVN and the correct version is used based on the environment provided by the user input during deployment script execution.
    Perhaps there is a more elegant way of doing this but this works and we already use Ant, SVN and a deployment shell script so it fits right in for us.

  • How To register fonts at runtime in flex 4 ?

    Hi Guys
    I stuck in a problem .Actually i want to register fonts at runtime here is sample of code i am using :
    private function loadFont(url:String):void{
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fontLoaded);
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);        
                loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                loader.addEventListener(IOErrorEvent.DISK_ERROR, ioDiskHandler);
                loader.addEventListener(IOErrorEvent.NETWORK_ERROR, ioNetworkHandler);
                loader.addEventListener(IOErrorEvent.VERIFY_ERROR, ioVerifyHandler);
                loader.load(new URLRequest(url));
    //===============================================================================
    // funtion fontLoaded :: called after font loaded by loadewr class
    private function fontLoaded(evt:Event):void
    var fontLib:Class
    //trace("loaded " + "<<>> "+fontCounter);
    //FlexGlobals.topLevelApplication.fontArr[fontCounter];
    if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Arial") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontArial") as Class;
    //Font.registerFont(fontLib.Arial_2);
    Font.registerFont(fontLib._Arial);
    Font.registerFont(fontLib._Arial_bold);
    Font.registerFont(fontLib._Arial_italic);
    Font.registerFont(fontLib._Arial_bolditalic);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "A Little Pot") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontAlittlePot") as Class;
    Font.registerFont(fontLib._Alittlepot);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Book Antiqua") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontBookAntiqua") as Class;
    //Font.registerFont(fontLib.Arial_2);
    Font.registerFont(fontLib._BookAntiqua);
    Font.registerFont(fontLib._BookAntiqua_bold);
    Font.registerFont(fontLib._BookAntiqua_italic);
    Font.registerFont(fontLib._BookAntiqua_bolditalic);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Fine Hand LET") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontFineHand") as Class;
    Font.registerFont(fontLib._FineHand);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "NewBskvll BT") {
    fontLib =  evt.target.applicationDomain.getDefinitionByName("fontNewBaskerVille") as Class;
    Font.registerFont(fontLib._NewBaskervilleBt);
    Font.registerFont(fontLib._NewBaskervilleBt_bold);
    Font.registerFont(fontLib._NewBaskervilleBt_italic);
    Font.registerFont(fontLib._NewBaskervilleBt_bolditalic);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Segoe Print") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontSegoePrint") as Class;
    Font.registerFont(fontLib._SegoePrint);
    Font.registerFont(fontLib._SegoePrint_bold);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "SF Burlington Script SC") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontSFBurlingtonScriptSC") as Class;
    Font.registerFont(fontLib._SFBurlingtonScriptSC);
    Font.registerFont(fontLib._SFBurlingtonScriptSC_bold);
    Font.registerFont(fontLib._SFBurlingtonScriptSC_italic);
    Font.registerFont(fontLib._SFBurlingtonScriptSC_bolditalic);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Pica") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontPica") as Class;
    Font.registerFont(fontLib._Pica);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Signature") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontSignature") as Class;
    Font.registerFont(fontLib._Signature);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Verdana") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontVerdana") as Class;
    Font.registerFont(fontLib._Verdana);
    Font.registerFont(fontLib._Verdana_bold);
    Font.registerFont(fontLib._Verdana_italic);
    Font.registerFont(fontLib._Verdana_bolditalic);
    Font.enumerateFonts();
    } else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "SFBurlingtonScript") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontSFBurlingtonScript") as Class;
    Font.registerFont(fontLib._SFBurlingtonScript);
    Font.registerFont(fontLib._SFBurlingtonScript_bold);
    Font.registerFont(fontLib._SFBurlingtonScript_italic);
    Font.registerFont(fontLib._SFBurlingtonScript_bolditalic);
    Font.enumerateFonts();
    else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Paper Cuts") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontPapercuts") as Class;
    Font.registerFont(fontLib._Papercuts);
    Font.enumerateFonts();
    else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Sansation") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontSansation") as Class;
    Font.registerFont(fontLib._Sansation);
    Font.registerFont(fontLib._Sansation_bold);
    Font.enumerateFonts();
    else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Times New Roman") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontTimes") as Class;
    Font.registerFont(fontLib._Times);
    Font.registerFont(fontLib._Times_bold);
    Font.registerFont(fontLib._Times_italic);
    Font.registerFont(fontLib._Times_bolditalic);
    Font.enumerateFonts();
    else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Handserif") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontHanSrf") as Class;
    Font.registerFont(fontLib._Handserif);
    Font.enumerateFonts();
    else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "WC RoughTrad") {
    fontLib =  evt.target.applicationDomain.getDefinition("fontWCRoughTrad") as Class;
    Font.registerFont(fontLib._WCRoughTrad);
    Font.enumerateFonts();
    //var xmlNode:XML = new XML("<font name='"+ FlexGlobals.topLevelApplication.fontArr[fontCounter].label +"' load='true'/>")
    //FlexGlobals.topLevelApplication.fontLoadStatusXML.appendChild(xmlNode);
    if(fontCounter < totalFonts-1) {
    fontCounter++;
    //FlexGlobals.topLevelApplication.taSetText.text += "\nloading "+ FlexGlobals.topLevelApplication.fontArr[fontCounter].label;
    this.loadFont(FlexGlobals.topLevelApplication.fontArr[fontCounter].path);
    It is working in flex 3 but not working in flex 4 .. Need help ..
    Regards
    Mohit

    Hi Flex harUI
    can u elaborate a bit more regarding . i didnt understand .actually i am using richeditable text area instead of textarea . this is the only difference apart from flex 3 and flex 4.
    Regards
    Mohit Verma

Maybe you are looking for

  • How to manage a node with cardinality 0..n

    hi, i implemented a application with webdynpro which uses a sap babi. everything wents fine, except that i don't know which container i have to use for a cardinality 0..n. one node has this and so the attributes can entered as often as possible. but

  • Modifying existing webi report BO 4.0

    Hi Experts, In pre-production system I executed webi report, went to Design mode --> Drag & drop a new object to the report. Then by mistake clicked on Save  instead of "save As" This made changes to the original report. I have below doubts, pls clar

  • HT201303 It appeared that the seller didn't disconnect function to find my iPhone and now I can make nothing with phone.

    I bought iphone 5c phone on Ebay, the seller in the description specified that phone is completely cleared and ready to work. It appeared that the seller didn't disconnect function to find my iPhone and now I can make nothing with phone. I have an in

  • Difficult in connecting using bluetooth

    i have a ZINX USB BLUETOOTH DONGLE HAVING MODEL NO."ZX-BT2005" I AM TRY TO CONNECT NOKIA 2600 CLASSIC TO PC USING NOKIA PC SUIT 7.1 BY BLUETOOTH. but it shows msg "cannot use the connection type.check that all the needed hardware,software& drivers ar

  • Can't access the Logging Items section of the Log and Transfer window.

    Yesterday I was able to select and ingest clips and rename clips from my Canon Vixia SFH11 camcorder using the logging items section of the log and transfer window in FCP 7. Today, that section of the L&T window is gone! and every time I try and chan