Toggle button problem..really urgent

hi there.. i have a problem with my code and i hope someone can help me as i have a dateline to meet for my programme..
i have a set of 10 toggle buttons with 1 single actionlistener..
here is the code
p3=new JPanel();
b1=new JPanel();
ActionListener listener1 = new b1();
for (int i=1; i<=10;i++)
JToggleButton button1 = new JToggleButton(("A"+i));
button1.addActionListener(listener1)
b1.add(button1);
p3.add(b1);
whenever the user activates a button, a textarea below will show the name of the button..
for example.. if user clicks on A3.. it will appear A3 below..
this is my code below of wat i have done..
public class b1 implements ActionListener
public void actionPerformed(ActionEvent e)
Object source = e.getSource();
textarea1.append(((JToggleButton) e.getSource()).getText()+",");
my problem is this.. if the user were to deactivate the button,the textarea below will not show anything..
for example, if user click on A4, it should appear A4 in the textarea and when user click on A4 again, the textarea should not show A4 again.
and if user click on 2 buttons example A1 and A5
textarea should show A1, A5
and if user click on A1 again, the textarea should juz show A5 and A1 should not be there.
any help would be greatly appreciated..=)

i created 2 sets of buttons like this..
     //Buttons that Starts with A
     b1 = new JPanel();
JToggleButton[] buttons1 = new JToggleButton[11];     ToggleButtonListener1 listener1 = new ToggleButtonListener1(buttons1);
          for(int i=1; i<buttons1.length; i++)
          buttons1[i] = new JToggleButton("A" + i);
               buttons1.addActionListener(listener1);
          b1.add(buttons1[i]);
          p3.add(b1);
     //Buttons that Starts With B
          b2 = new JPanel();
     JToggleButton[] buttons2 = new JToggleButton[11];
     ToggleButtonListener1 listener2 = new ToggleButtonListener1(buttons2);
          for(int i=1; i<buttons2.length; i++)
          buttons2[i] = new JToggleButton("B" + i);
          buttons2[i].addActionListener(listener2);
               b2.add(buttons2[i]);
               p3.add(b2);
i bind these 2 groups of buttons in a single actionlistener like this
class ToggleButtonListener1 implements ActionListener
     private JToggleButton[] array;
     public ToggleButtonListener1(JToggleButton[] array)
          this.array = array;
     public void actionPerformed(ActionEvent e)
          ta1.setText("");
          for(int i=1; i<array.length; i++)
          if(array[i].isSelected())
     ta1.append(array[i].getText() + ",");
          continue;
the problem i have now is that the 2 sets of buttons are not displayed on the textarea..
for example if user clicks on A1, the textarea should appear A1 and if user clicks on B1, the textarea should display both A1 and B1.. how do i do that..?

Similar Messages

  • Problem with toggle button

    hi there... i have a problem with my toggle button that i created..
    the programme is simply like this. It's a virtual ticket machine where users can enter the number of tickets they want to buy and after which they can book their seats.
    for example, if user enters 4 tickets, he can only book 4 seats and so on.
    i've created a toggle button for the seats..
    here is my code..
         p3=new JPanel();
         b1=new JPanel();
         ActionListener listener1 = new b1();
         for (int i=1; i<=10;i++)
         JToggleButton button1 = new JToggleButton("A"+i);
         button1.addActionListener(listener1);
              b1.add(button1);
              p3.add(b1);
    this is my action listener for the buttons i've created
    public class b1 implements ActionListener
    public void actionPerformed(ActionEvent e)
         Object source = e.getSource();
         ta1.append(((JToggleButton) e.getSource()).getText()+"," );
         (when user deactivates the toggle button, how do i get the text area to clear)          
    any help will be greatly appreciated..=)

    Item Renderers are" recycled" by Flex as they scroll in and out of view. So when you change a button's selected state to true and then scroll around, that renderer ends up getting recycled to another item and causes this to look wrong.
    The trick is you have to make the item renderer update itself. there are many ways. One sure-fire way I tend to fall back on is to add a property to the data provider, then bind to that in the renderer-changing it as needed.
    1) When you set up your data provider, add a new property "toggled" as a boolean:
    private function init(event:Event):void
    //populate array with 50 items
    for (var i:uint=1; i<51; i++)
    itemAC.addItem({label:"B"+i, toggled:false});
    2) Now change your renderer, binding the selected property of the button to this new prop.
         Also, add a bit of code to the change event of the button:
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="150" height="150">
    <mx:Button id="btn" label="{data.label}" x="25" y="66" toggle="true" width="100"
        change="{data.toggled = btn.selected}" selected="{data.toggled}" >
    </mx:Button>
    </mx:Canvas>
    Result: the item renderer now looks to its data property to decide how to behave, and will have the proper state (selected or not) no matter if it gets recycled to another item in your data provider or not.
    HTH

  • **URGENT** Scene button problem!

    Why my 'maps' and 'video' buttons do not play the movie? I use this code:
    on(release){gotoAndPlay("play");}
    I have labelled "play" in other scene, but it does not play the movie!
    I have tried this code:
    on(release){gotoAndPlay("Scene 36", "play");}
    Still, it does not work as well! I got deadline this week, so I need your help ASAP!
    I got other button problems on every scene! It's frustrating!
    Please download my flash file to look at my flash product!
    http://www.4shared.com/file/24177440...6d/Maps_1.html

    Nope it doesn't work , I got my deadline this week and if you got a spare time, would you please download my flash and check and repair it please! Only two buttons need refitting and nothing else! I asked my teachers, they tried their best and couldn't find what the problem is. I looked through other forum website, I tried the solutions and it doesn't work! I am really behind as there are many failure in my project! This is my first flash creation.

  • Really Urgent: Problem in making link b/w sales order and production order

    Hi,
    I am trying to make link b/w the sales order delivery(VL03) by taking its Batch Number(LIPS- Delivery table) and linking with AFPO(Production order Table) field (batch no) so that i can see the fruther operations done o dat production order made against sales order,but it is not coming .
    I want to have help which allows me to make link b/w delivery (vf03) and the productiona order.
    plzz help me out it is really urgent.
    Edited by: ric .s on Apr 11, 2008 7:43 AM
    Edited by: ric .s on Apr 11, 2008 7:59 AM
    Edited by: ric .s on Apr 11, 2008 9:23 AM

    You have delivery no(VBELN) & itam no (Posnr)from lips table.
    Now
    1. go to VBFA table end get the corresponding sales oredr no and order item no.
    In VBFA table pass the delivery no in VBELN and delivery item in POSNN and 'J' in VBTYP_N and 'C' in VBTYP_V.
    Now VBELV & POSNV will return the sales order no and sales order item.
    2. Got to VBAP table and get the corresponding AUFNR to the order no and item no.
    3. Now with that AUFNR you will get a connection with AFPO(Production order Table.

  • Contacts Calendars Bookmarks Find My iPhone toggle buttons won't switch on

    I have a new iPhone 3GS, but under Settings - Mail Contacts Calendars - My .Mac account, I cannot get the toggle buttons for Contacts, Calendars, Bookmarks and more importantly Find My iPhone, to switch to 'ON'. Mail however is 'ON'. When I click them to 'on' they just immediately turn themselves off again. This means that my iPhone does not show up in my .Mac/MobileMe account and therefore Find My iPhone will not work.
    As far as I can see everything is set up correctly. I've looked through posts here, read Apple's suggestions, but none of these will switch to 'On'.
    Fetch New Data is set to Push. Fetch is set to every hour. Location services are On.
    In iTunes, Mail Contacts Calendars Bookmarks are all set to sync.
    Under Account Info for my .Mac/Mobile Me account I am still using the older .Mac settings as I still prefer my [email protected] email address - could this have anything to do with the problem? Should I try deleting the account manually and re-adding it manually with the new Mobile Me settings?
    When I set up my iPhone 3GS I used the backup of my old 1st Generation iPhone to set up the new phone in iTunes. The settings above wouldn't toggle on the old phone either, so I wonder if I have inadvertantly brought a bug across by restoring from the old phone backup?
    Really puzzled now. Has anyone come up with a solution or is it a problem at Apple's end?

    OK, solved my own problem! For anyone else having the same sort of problem, all I did was to manually delete my .Mac/MobileMe email account on my iPhone completely, shut down the iPhone completely, switch it on again, and manually add my .Mac/Mobile Me account back on the phone - this time using my address as [email protected], forcing it to use the me.com servers instad of my older .Mac servers.
    Instantly I was able to toggle the buttons and switch on Find My iPhone, which is now showing up online in my .Mac account.
    Now I've just got work out how to change my outgoing email address back again to [email protected] because I HATE @me.com! It's a horrible email address, and sounds really self-important.

  • Really Urgent: List with Data Grid  rowcount issue i added the full code below

    Thanks in advance
    Exactly wat i need is
    1.if i click the open button want to visible all datagrid ,its working perfectly.
    2.if i click the close button want to close all data grid ,its working perfectly.
    3. if i click a particular  list means want to visible particular datagrid..some times working good but some times not visible ...
    4.if i click the list if datagrid already open means want to close .some times creates extra space below the datagrid........
    if u cont get clearly please copy the below code and check it.....i think there is row count not working properly...any other way to solve this problem?.......
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" >
    <fx:Declarations>
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    public var ArrUserList:ArrayCollection;
    [Bindable]
    public var listDB:ArrayCollection = new ArrayCollection([ {label: "2011", data:"jan",day:"saturday",date:"1-4-11"},
    {label: "2011", data:"jan",day:"monday",date:"13-4-11"}, {label: "2013", data:"jan",day:"monday",date:"1-5-11"}, {label: "2013", data:"jan",day:"wednesday",date:"14-5-11"}, {label: "2015", data:"jan",day:"tuesday",date:"11-5-11"}, {label: "2015" ,data:"jan",day:"friday",date:"1-6-11"} ]);
    public var loc_first_last_name:String;
    function Load():void
    ArrUserList=Find_Duplicate(listDB);
    for(var i:int=0; i<ArrUserList.length; i++)
    ArrUserList[i].click=0;
    Lst_userlist.dataProvider=ArrUserList;
    Lst_userlist.rowCount=ArrUserList.length;
    function Clink_lnk_open():void
    if(lnk_open.label=="Open")
    for(var i:int=0; i<ArrUserList.length; i++)
    ArrUserList[i].click=1;
    lnk_open.label="Close";
    ArrUserList.refresh();
    Lst_userlist.validateNow();
    Lst_userlist.dataProvider=ArrUserList;
    Lst_userlist.rowCount = ArrUserList.length ;
    else
    for(var i:int=0; i<ArrUserList.length; i++)
    ArrUserList[i].click=0;
    lnk_open.label="Open";
    ArrUserList.refresh();
    Lst_userlist.validateNow();
    Lst_userlist.dataProvider=ArrUserList;
    Lst_userlist.rowCount = ArrUserList.length ;
    function Click_UserName1(event:MouseEvent,data:Object):void
    loc_first_last_name=event.currentTarget.text;
    var str:String;
    for(var i:int=0; i<ArrUserList.length; i++)
    str=ArrUserList[i].label;
    if(loc_first_last_name==str)
    if(ArrUserList[i].click == 0)
    ArrUserList[i].click=1;
    else
    ArrUserList[i].click=0;
    ArrUserList.refresh();
    Lst_userlist.validateNow();
    Lst_userlist.dataProvider=ArrUserList;
    Lst_userlist.rowCount=ArrUserList.length;
    public function Find_Duplicate(test_arr:ArrayCollection):ArrayCollection
    var res_arr:ArrayCollection=new ArrayCollection();
    var flag:Boolean;
    for(var i:int=0;i<test_arr.length;i++)
    var j:int=0
    flag=false;
    for(;j<res_arr.length;j++)
    if(res_arr[j].label==test_arr[i].label)
    res_arr[j].dataCollection.addItem(test_arr[i]);
    flag=true;
    break;
    if(!flag)
    var myItem:Object = new Object() ;
    myItem.label=test_arr[i].label;
    myItem.dataCollection=new ArrayCollection();
    myItem.dataCollection.addItem(test_arr[i]);
    res_arr.addItem(myItem) ;
    return res_arr;
    ]]>
    </fx:Script>
    <s:Scroller id="id_scroller" width="100%" height="100%">
    <s:VGroup id="id_Vgroup" paddingLeft="50" paddingTop="10" paddingBottom="10"   width="100%" height="100%" >
    <mx:VBox width="850" paddingLeft="0" paddingTop="1"    color="black"  backgroundColor="#FFFFFF">
    <mx:HBox width="850" left="50" paddingBottom="3"  paddingLeft="5" backgroundColor="#6D6C6C"   paddingTop="3" color="#FFFFFF" >
    <mx:LinkButton id="lnk_open" label="Open" textDecoration="underline" click="Clink_lnk_open();"/>
    <mx:Button id="load_btn" label="Load" click="Load()"/>
    </mx:HBox>
    <mx:VBox id="Vbox_main" width="850"   horizontalScrollPolicy="off" verticalScrollPolicy="off"  >
    <mx:List variableRowHeight="true"   width="850" id="Lst_userlist" paddingTop="-3" verticalScrollPolicy="off"  horizontalScrollPolicy="off"
    buttonMode="true"  >
    <mx:itemRenderer>
    <fx:Component>
    <mx:VBox paddingTop="-5"  horizontalScrollPolicy="off" verticalScrollPolicy="off" >
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    override public function set data(value:Object):void
    super.data = value;
    Membership_Grid.dataProvider=data.dataCollection;
    Membership_Grid.rowCount=data.dataCollection.length;
    lbl_userhead.text=data.label;
    lbl_userhead1.text=data.dataCollection.length+" Datas";
    if(data.click==1)
    Vbox_main.visible=true;
    Vbox_main.includeInLayout=true;
    else
    Vbox_main.visible=false;
    Vbox_main.includeInLayout=false;
    Membership_Grid.validateNow() ;
    ]]>
    </fx:Script>
    <mx:HBox id="vbox_grid"  horizontalScrollPolicy="off"  height="25" verticalScrollPolicy="off" width="850"  paddingLeft="10" paddingTop="5"  backgroundColor="#6D6C6C" color="#FFFFFF">
    <s:Label id="lbl_userhead" click="outerDocument.Click_UserName1(event,data)" buttonMode="true"   width="250"  paddingTop="3" />
    <s:Label id="lbl_userhead1"  buttonMode="true"   width="548" paddingTop="3" />
    </mx:HBox>
    <mx:VBox id="Vbox_main" width="850" horizontalScrollPolicy="off" verticalScrollPolicy="off"  visible="false" includeInLayout="false" >
    <mx:DataGrid id="Membership_Grid"   alternatingItemColors="[#DCDCDC,#F8F8FF]"  paddingLeft="5"  horizontalScrollPolicy="off" color="black"
    horizontalGridLines="false" verticalScrollPolicy="auto"  verticalGridLines="false"  rowHeight="25" width="850"  borderSkin="{null}"
    borderVisible="false" >
    <mx:columns>
    <mx:DataGridColumn width="150" headerText="Year" dataField="label"/>
    <mx:DataGridColumn width="150" headerText="Month" dataField="data"/>
    <mx:DataGridColumn width="150" headerText="Day" dataField="day" />
    <mx:DataGridColumn width="150" headerText="Date"  dataField="date"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:VBox>
    </mx:VBox>
    </fx:Component>
    </mx:itemRenderer>
    </mx:List>
    </mx:VBox>
    </mx:VBox>
    </s:VGroup>
    </s:Scroller>
    </s:Group>

    Hi,
    You already wrote the same exact post 4 times! Don't you think it's enough?
    May 12 : http://forums.adobe.com/message/3672269#3672269
    May 20 : http://forums.adobe.com/message/3690500#3690500
    May 23 : http://forums.adobe.com/message/3696874#3696874
    May 25 : http://forums.adobe.com/message/3701649#3701649
    If you want someone help you, from my point of view it surely not the right way of doing, especially by writing Really Urgent. It just annoys people (and btw it seems not to be so urgent as you stay with it since the May12). If you want a "urgent" answer, hire a Flex expert or just be patient.
    Kind regards,
    Mich

  • Toggle button does not work correctly in project preview

    Hello,
    I am working on a project and recently discovered the "toggle button" advanced action that lilibiri posted (Love the toggle button!!). Initially i had used the rollover funktion but found out via html5 tracker, that rollover is not supported by html5 and tablets. To the problem: When I test the slides individually everything works fine. As soon I preview my project and click on my smartshape buttons that toggle the image/text, the project jumps back to previous slides. Now, i probably do not understand the conditional action in terms of what it is actually telling CP to do. So i am guessing it is a user problem. I would be super greatful to anyone who can help me solve this, since i am bound to a dead line to finish this. THANKS!!
    -N
    Here are some screenshots of the conditional actions (its in german..."Ausdruck" is Expression, "Einblenden" is Show, "Ausblenden" is Hide

    Hello,
    You are mixing up Frames with Slides. Try:
    Expression  cpCmndGotoFrame = cpInfoCurrentFrame -1
    Lilybiri

  • Integrated scroll panels and unmovable toggle buttons

    Hey,
    iam looking for an expert. I am working on an HMI development and wanted to use Flash Catalyst. However, I think I am already reached the limits of FC. But perhaps there is a FC solution because I can not program Flash.
    Problem:
    In my layer, I have different graphical objects and text blocks. A part of them I want to move with a scroll panel. That's easy, not a problem.
    However, all these objects (including the scroll panels) should be integrated in a master scroll panel. This means, that all parts, even the integrated scroll panels, should be moveable at the same time. I managed this.
    Now, I need multiple toggle buttons. With these Buttons I wanted to change the form of some of the graphical objects resp. the text blocks. But the buttons have to be unmovable. This function (to change the form of the objects) is relatively easy but in combination with the integrated scroll panels it isnt. The buttons are able to move the objects when these buttons are pasted in the "deepest" layer, the layer of the objects. But there, the buttons are moveable and slide out of the screen (with the master scroll panel) and not clickable.
    How can I manage this? I need unmovable toggle buttons, with these I want to change the forms of objects. The objects are pasted in integrated scroll panels. I hope it's understandable!
    Can someone help me? It would be glad if the answer does not depend on the learning of the flash programming!
    Thanks.

    After 2 days of banging my head against a wall (doesn't it always go that way)...
    Turns out one of my panels had sub-panels causing the problem. Visibility to the parent panel was controlled by a button on one of the child panels. Once I "promoted" the button to the parent panel, the panel (screen) flow worked great.
    Is this 'undocumented functionality'? Why should it matter how deep the button is nested? (incidentally, the reason it worked in my test environment was the lack of other components - aka the child panel)
    Well, regardless. Thanks to those who gave it thought.

  • Radio Buttons problem

    Hi i ahve developed a GUI with 2 toggle buttons options[0] and options[1],I have also created an "OK" Button.the programming is working fine ,but i now want to implement the action performed method.The user must select which option he/she wants and then click the ok button.I am not sure how to do this in the action performed method.the first button,cancels the ticking of any radio button (clears the readio buttons)and the second bottun exits
    here is my code so far
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class LogOut extends JFrame implements ActionListener{
    JRadioButton[] options = new JRadioButton[2];
    public LogOut(){
    super("Log Out?");
    setBounds(225,125,140,190);
    setDefaultCloseOperation(JFrame.Exit_ON_Close);
    options[0] = new JRadioButton("Log Out");
    options[0].addActionListener(this);
    options[1] = new JRadionButton("Cancel");
    options[1].addActionListener(this);
    JPanel pane = new JPanel();
    ButtonGroup group = new ButtonGroup();
    for(int i = 0; i < options.length; i++){
    group.add[options[i]);
    pane.add(teams);
    setContentPane;
    show();
    public static main void(String[] arguments){
    LogOut lo = new LogOut();
    public void actionPerformed(ActionEvent evt){
    Object source = evt.getSource()

    I understood it as you select a check box, and then when you click the button, it should do something based on what you have selected.
    So if you continue with the code I posted,
    public void actionPerformed(ActionEvent e) {
      // the button has been clicked:
      for (int x = 0; x < options.length; x++) {
        if (options[x].isSelected()) {
          // radio button at index 'x' has been selected.
          switch (x) {
            case 0: {
              options[x].setSelected(false); // the only radio button checked..
              break;
            case 1: {
              System.exit(0);
              break;
            default: {
              System.out.println("Not defined"); // will only occur if you add more radio buttons later.
          return;
      System.out.println("No radio buttons have been selected");
    }Or is what you really want, an action to start at the moment that you select/unselect a radio button without pressing the OK button?

  • Word 2010 Ribbon toggle button page size feedback

    For a Word template I am developing a custom ribbon for end-user ease of use and to protect the structure of the document. There is one issue I am currently running into for which I cannot find a solution.
    It started with a footer image which needs to be rescaled with the page width (page size and orientation) while retaining its aspect ratio. Apparently this is not possible without VBA (tried fill image for shape and set relative width, but that leaves
    the height fixed), so now the idea is to get a pull-down menu with toggle buttons for page size and orientation and change the image size using a macro. The options are A4 portrait, A4 landscape, A3 portrait and A3 landscape. The problem now is how
    to get the run-time feedback of page size and orientation to highlight the page setup of the active section, like the built-in size and orientation buttons.
    Hopefully this can be done.

    Hi AlexFolmer,
    Sorry for the delay.
    >> Create a custom ribbon menu with buttons to select the paper size, this can be done without too much effort. However, if this is to be implemented I would like the button representing the current paper size/layout to be highlighted in the same way
    as the Word native paper size/orientation buttons do
    Do you mean that you want to create a custom ribbon menu for user to select the Page size, and when you click the ribbon button, the current page size could be highlight. In my option, you could do as below:
    1.  Add a Combobox into the custom ribbon, set the items with “Item1”, “Item2”
    2. Add event to comboBox1_TextChanged, key code like below:
    private void comboBox1_TextChanged(object sender, RibbonControlEventArgs e)
    if (comboBox1.Text == "Item1")
    Globals.ThisDocument.PageSetup.PaperSize = Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA3;
    else if (comboBox1.Text == "Item2")
    Globals.ThisDocument.PageSetup.PaperSize = Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA5;
    For combobox, it has the function to highlist the selected item. At this time, we need to solve the issue for opening the document, the combobox would show the current pagesize. You could refer the code below:
    private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
    if (Globals.ThisDocument.PageSetup.PaperSize == Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA5)
    comboBox1.Text = "Item2";
    You could refer the link below for more information about Globals.ThisDocument.PageSetup.PaperSize
    Reference:
    https://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.pagesetup.papersize(v=office.11).aspx
    In addition, if you have issues about PageSetup.PaperSize, I will recommend you post a new thread.
    The reason why I suggested is:
    #1 There would be more community members to discuss the question.
    #2 For people who have the similar question, it would be easier for them to find the answer from a specific thread.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a toggle button which has some id associated with it

    Hi all,
    This is my problem
    <formid><some value in a text box><toggle button>
    here formid is a hidden parameter.
    There can be multiple records of this type...the user can change the text box as well as toggle any record.
    Now im unable to create a toggle button such that it is related to the formid as in when a user toggles between two values i want to be able to link that button with the form id.

    Assign an ID to the button? I don't fully understand the problem either.

  • How to place toggle buttons in webui

    Hello,
    How to add toggle buttons in webui.
    I kept three button for status in quotation as open inprocess and completed.
    But problem with button is we are unable to find in which status the quotation is.
    so I want place toggle buttons instead of button so that the selected button will be highlighted which resembles current status.
    But toggle buttons are not working in bsp application.
    Please specify how to solve this problem.
    Thanks For Upcoming Help.
    Regards,
    Tejaswy.

    Hi Teja,
                     If your requirement is to add three buttons based on the status , then here are the steps:
    1. In the view BT115QH_SLSQ/SQHOverView , redefine the method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS.
    2. Get the current context node value 'BTADMINH'.
    3. From the relations "BTHeaderStatusSet" you get the status details.
    4. write the code
        ls_button-text = 'Open'
        ls_button-on_click = 'Open'.                         
        ls_button-page_id  = me->component_id.
        IF status = 'Open'.
        ls_button-enabled  = 'X'.
        ENDIF.
        APPEND ls_button TO rt_buttons.
        ls_button-text = 'InProcess'
        ls_button-on_click = 'InProcess'.                         
        ls_button-page_id  = me->component_id.
        IF status = 'InProcess'.
        ls_button-enabled  = 'X'.
        ENDIF.
        APPEND ls_button TO rt_buttons.
        ls_button-text = 'Complete'
        ls_button-on_click = 'Complete'.                         
        ls_button-page_id  = me->component_id.
        IF status = 'Complete'.
        ls_button-enabled  = 'X'.   
        ENDIF.
        APPEND ls_button TO rt_buttons.
    Hope this helps.
    Regards,
    Ruby.

  • Multiple toggle buttons to the same destination causes conflicts

    I'm trying to set up multiple toggle buttons so that a user can click on a button at any time and set the state of the dashboard. Each toggle button has a unique value (and each one has the same static value for both on and off) and I've mapped all the toggle buttons to the same destination cell. But they all seem to be competing to set the desination to their preferred value even when they're not being clicked on and, as a result, the dashboard keeps changing state in unexpected ways. Is there a fix for this?

    When you have multiple components trying to insert to the same destination cell, the front-most object wins at load time. So, if tb1, tb2, tb3 (tb3 being the front-most object) are all set to respectively insert values 1, 2, 3 to the same cell, the cell will have value 3 initially.
    Now there is an issue when objects in different groups try to insert to the same cell. The release note for FP3 implies that this problem is resolved, but I think it is not fixed completely...

  • [svn] 3173: Toggle button would toggle on click even when it was disabled.

    Revision: 3173
    Author: [email protected]
    Date: 2008-09-10 16:35:53 -0700 (Wed, 10 Sep 2008)
    Log Message:
    Toggle button would toggle on click even when it was disabled. Fix it.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ToggleButton.as

    Hi
       I guess you will be able to create the toggle button.It will not be a big problem.What you need to handle is , you need to identify , in which row the user has clicked.For this in the button action , there is an incoming import parameter WDEVENT..in this , you have a method ..get_context_element() ..which will fetch you the row element selected.
    Thanks
    Anzy
    post if you have any more queries

  • Small problem really annoying! Reinstall does not fix issue!!

    Hi there Small problem really annoying! Reinstall does not fix issue!!
    The Next button when on Taskbar is showing back!
    Weird but really annoying!!
    Windows 8.1 64 AMD Quad Core Black

    Nothing no help?

Maybe you are looking for

  • Using page parameter causes "form" layout report to become "tabular"

    I did a diff on the HTML generated for the page and found this: Page Parameter Used: <TH ALIGN="Left" SCOPE="col"><FONT CLASS="PortletHeading1">Employer Auth Treatment</FONT></TH> Page Parameter Not Used: <TH SCOPE="col" ALIGN="LEFT" VALIGN="TOP"><FO

  • What is a Token Data String and how do I create one?

    How do I create local server scripts? I have read Chapter 2, what is a data string, how do I 'create' one and how can I 'pass' this off Apple, iTunes, whoever needs it? Chapter 2 doesn't say. Gateway   Windows XP Pro   Military

  • I can't connect my WRT310N by MacBook

    Hello, I can't use my MacBook to connect my WRT310N. When I connect the router, it's show IP is 169.254.X.X. Where can I setup to connect my router for restore use. And also please recommend how to restore the default setting. Thank you very much. Wa

  • GetColumnCount fails on ResultSetMetaData of PreparedStatement

    Help! I am trying to get metadata information of a PreparedStatement and the getColumnCount keeps failing with a "ORA-01003 no statement parsed" error. I am using the Oracle 8.1.7 thin driver with Oracle 8.1.6. Sample code is below... Class.forName("

  • Acrobat XI does not run after downloading

    Program just hangs when printing to PDF or creating pdf - error message - "acrobat failed to send DDE message"?