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.

Similar Messages

  • How to place a button in last page....

    Hi,
    I want to place a button in last page, which is used for calling a report. i created a button and place in bottom of the page... and set the property of print object On : last page then i m getting an error message rep -1216.
    Invalid property setting.... pls suggest me what i have to do????
    Thanks In Advance...

    Hi,
    Last page in the sense u have place the button at the bottom of the canvas.
    Can you please double check the Set_item_property Parameters or else please paste the code here and what error message you are getting exactly.
    Regards
    Sri

  • How to place a button anywhere in a frame ?

    I'd like to place a button anywhere in a frame for example at the coordonates (10, 10) without specifying the type of th layout. (I work with jdk1.2 and j2sdk1.4)
    I used setLayout(null) and then btn.setLocation(10, 10) with btn the name of the button.
    The problem is that the button is not displayed in the frame so could you give the solution for that ?
    Thanks !

    try this code to add button anywhere on frame
    watch for function setbounds()
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class NoLayout extends Frame{
         static Container c1 = new Container();
         public NoLayout(){
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e){
                        dispose();
              c1.setLayout(null);
              JPanel p1 = new JPanel();
              c1.add(p1);
              JButton b1 = new JButton();
              b1.setBounds(50,50,100,50);
              b1.setText("ABCD");
              c1.add(b1);
         public static void main(String [] args)
              NoLayout f1 = new NoLayout();
              f1.add(c1);
              f1.setTitle("My Program");
              f1.setBounds(0,0,400,400);
              f1.setVisible(true);
    hope it helps
    bye

  • How to place push button on right corner of a screen

    Hi,
    I am creating push button on application tool bar of a  screen using set pf-status,usually the push button is created on left hand side of the screen. But I want to put this push button on right hand side of the screen.Is it possibe.....?
    Regards
    Sudha Mettu

    Hi sudha,
    1. I dont think its possible.
    2. Either u have to put empty
       buttonS on the left,
      so that your required button,
      comes at the right.
    regards,
    amit m.

  • How to resize and place a Button in the middle of a Region

    Hi,
    I have a requirement where I have to place a button in the middle of a region. This is the only Region on this page and only one button on this region. I made the region bigger by placing the following code in the Region Footer:
    <div style="height:300px; width:300px;"></div>
    Now the Region is big and in the middle of the page. Now I have to place one button in the middle of this region. I am using HTML Button. I also want to increase the size of the button from the default. Can anyone suggest how to do this ?
    Thanks
    Naresh

    Hi,
    I have a requirement where I have to place a button in the middle of a region. This is the only Region on this page and only one button on this region. I made the region bigger by placing the following code in the Region Footer:
    <div style="height:300px; width:300px;"></div>
    Now the Region is big and in the middle of the page. Now I have to place one button in the middle of this region. I am using HTML Button. I also want to increase the size of the button from the default. Can anyone suggest how to do this ?
    Thanks
    Naresh

  • How to place the "go" button at left size in dashboard prompt

    how to place the "go" button at left size in dashboard prompt

    Change your code to this and it should work:
    PARAMETERS : p_date LIKE sy-datum ,
                  p_uname LIKE sy-uname.
    DATA: field1(8) TYPE c .
    AT SELECTION-SCREEN .
       IF p_uname IS INITIAL.
         field1 = 'P_UNAME'.
         SET CURSOR FIELD field1 .
         MESSAGE e001.
       ENDIF .
    I think you need to have the MESSAGE statement (or something similar).  If you don't have a message class assigned to your program, instead of
    MESSAGE e001.
    you can use
    MESSAGE 'Please fill in all required fields' TYPE 'E'.
    - April
    Message was edited by:
            April King

  • How Do I Make a Toggle Button

    How would I do this?
    I want to create a toggle button, so when the button is in
    it's default position it says "Sound On" and when clicked again it
    says "Sound Off" etc.

    Comp. 792 wrote:
    > How would I do this?
    >
    > I want to create a toggle button, so when the button is
    in it's default position it says "Sound On" and when clicked again
    it says "Sound Off" etc.
    There is many ways to achieve that.
    You could have movie clip with two frames, button in frame 1
    with action go to nextFrame()
    and button in second frame with action go to prevFrame(); so
    they would toogel each other
    back and forth.
    You could have one movie clip with single frame and just an
    action on timeline frame:
    sound1 = new Sound(this);
    sound1.attachSound("loopSound");
    sound1.start(0, 999);
    buttonName.onPress = function() {
    (playing=!playing) ? sound1.stop() : sound1.start(0, 999);
    (give button instance name "buttonName" and you all set ....
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • HT201263 how to place your device into recovery mode without home button?

    How to place your device into recovery mode without home button?

    Try these programs:
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    The Firmware Umbrella - TinyUmbrella

  • How can I place active buttons in keynote?

    hellooo,
    how can I place active buttons in keynote?
    thx in advance

    answered in
    /message/4078825#4078825 [original link is broken]
    kindly avoid duplicate posts for the same issue.
    Raja

  • How to Place Approve and Reject Button in every row to approve and reject the particular order in sapui5

    Hi Experts,
       How to Place Approve and Reject Button in every row  to approve and reject the particular order in sapui5.
      Please Kindly help me.
    Thanks & Regards
    Chitti Babu

    Hi Chitti,
    You can achieve this using sap.m.CustomListItem.
    View :
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc"
      xmlns:l="sap.ui.layout" xmlns="sap.m" controllerName="demoallinonegrid.tablewithscroll"
      xmlns:html="http://www.w3.org/1999/xhtml">
      <Page title="Title">
      <content>
      <ScrollContainer horizontal="true" width="100%">
      <Table id="empTable">
      <headerToolbar>
      <Toolbar>
      <Label text="Employees"></Label>
      </Toolbar>
      </headerToolbar>
      <columns>
      <Column width="12em">
      <Label text="Employee Id"></Label>
      </Column>
      <Column width="12em">
      <Label text="Last Name"></Label>
      </Column>
      <Column width="12em">
      <Label text="First Name"></Label>
      </Column>
      <Column width="12em">
      <Label text="Title"></Label>
      </Column>
      <Column width="12em">
      <Label text="Approve"></Label>
      </Column>
      <Column width="12em">
      <Label text="Reject"></Label>
      </Column>
      </columns>
      </Table>
      </ScrollContainer>
      </content>
      </Page>
    </core:View>
    Controller:
    var model = new sap.ui.model.json.JSONModel();
      model.loadData("http://services.odata.org/Northwind/Northwind.svc/Employees?$format=json",null,false,'GET',false,null);
      this.getView().byId("productTable").setModel(model);
      var template = new sap.m.ColumnListItem({
      cells:[
            new sap.m.Text({text:"{EmployeeID}"}),
            new sap.m.Text({text:"{LastName}"}),
            new sap.m.Text({text:"{FirstName}"}),
            new sap.m.Text({text:"{Title}"}),
            new sap.m.Button({text:"Approve"}),
            new sap.m.Button({text:"Reject"})
      this.getView().byId("empTable").bindAggregation("items","/value",template);
    Output:
    Regards,
    KK

  • How do i correctly place my buttons?

    I have a button on my landing page that I was having trouble placing. I used "position: fixed;" after "position: absolute" did not work, but I'm not sure that was the right course of action. The button jumps around on me when viewed in chrome and it is not present in firefox. How do i properly place my button?
    Thanks
    www.kurtesposito.com

    Where do you want the button placed? By the way, do not use position:fixed or position:absolute until you completely understand how they work and why. Otherwise you will always encounter unexpected results.

  • How to use multiple connections for xcelsius dashboard via toggle button

    Can anyone shed some light on how to apply a toggle button for multiple connections using xcelsius dashboard.
    I created two SAP connections in my xcelsius dashboard.  The first connection uses query 1 (bottom ten customers) and the second connection uses query 2 (top ten customers).  I wanted to use a toggle button where the user would click Top Ten customers versus Bottom Ten customers.  Which ever the user clicks in the toggle botton would run that query.
    If the toggle button is not the way to handle this can someone explain a better approach to run either query in the same dashboard.
    Thanks,
    Joe

    Hi,
    I've never had to do this so have no practical experience.  However in theory you should be able to do the following (assuming the data connection type youu2019re using has the "Usage" tab):
    Set up the two connections as normal - On the usage tab set the detail query to Refresh before components are loaded and make sure that this is unchecked for the other query.  Set both queries to populate the same range so that one query will overwrite the other in the Xcelsius spreadsheet.
    Bind a toggle button to a cell e.g. A1
    Back to the data connections again and set the "Refresh on trigger" trigger cell to A1.  And set the "When Value Becomes" to either "On" or "Off" dependent on how you've set up the toggle button.  Repeat for the other query.
    Hope this helps,
    Paul

  • How best to handle a start button and a play-pause toggle button?

    Hello,
    Still new to AS3, on a project for a client. I'd appreciate advice on how best to handle the navigation for 5 movieclips set inside 5 separate frames on the main timeline. I have a play button on frame 1 to start the animation, but I'd like to include a play/pause toggle button on the other frames to finish the navigation. Everything works except the toggle button, when clicked, does toggle but does not stop the animation. I've copied the code, including the toggle button code on frame 4 below. How best to handle both a start button and a play-pause toggle button?
    Thanks for any help in advance.
    Frame 1:
    PlayBtn_mc.buttonMode = true;
    stop();
    PlayBtn_mc.addEventListener(MouseEvent.CLICK,startMovie);
    function startMovie(event:MouseEvent) {
    gotoAndPlay(2);
    Frame 2:
    stop();
    Frame 3:
    stop();
    Frame 4:
    RewindBtn_mc.buttonMode = true;
    RewindBtn_mc.addEventListener(MouseEvent.CLICK,rewind);
    function rewind(e:MouseEvent) {
    prevFrame();
    FFBtn_mc.buttonMode = true;
    FFBtn_mc.addEventListener(MouseEvent.CLICK,forward);
    function forward(e:MouseEvent) {
    nextFrame();
    ToggleBtn_mc.buttonMode = true;
    ToggleBtn_mc.addEventListener(MouseEvent.CLICK, doToggle);
    function doToggle(myevent:MouseEvent):void {
    ToggleBtn_mc.play();
    Frame 5:
    (Loops back to Frame 1)

    I can't tell you how appreciative I am of all your assistance.
    Could you double-check on this, I may have stumbled upon somthing- I tweaked your last code, which toggled, but didn't seem to call the scene_test_mc into action.
    But I copied below what both toggles the play/pause button and calls the mc into action. Could you verify this as reliable code and not a fluke that will break? Thank you so much! :
    ToggleBtn_mc.buttonMode = true;
    ToggleBtn_mc.addEventListener(MouseEvent.CLICK, doToggle);
    scene_test_mc.buttonMode=true;
    scene_test_mc.addEventListener(MouseEvent.CLICK, doToggle);
    function doToggle(myevent:MouseEvent):void {
    var mc:MovieClip=MovieClip(myevent.currentTarget);
    if(mc.currentFrame==1){
    mc.gotoAndStop(2);
    scene_test_mc.play();
    } else {
    mc.gotoAndStop(1);
    scene_test_mc.stop();

  • How to Validate an order once "Place Order" button is pressed

    Hi,
    We have a requirement which is, When customer places an order, we need to check if that order has Item 'ABC' in it.. If so, There should be another item 'XYZ' should also be in there. if not, we should throw error message on Checkout page itself. We don't want to customize the JSP as we don't have expertise. Can any one suggest the PL/SQL APIs where we can include this logic? or any other logic?. We just want to understand which API will get executed as soon as they hit that 'Place Order' Button on Check out page.
    Thank you.

    Hi,
    I think it is too late to validate items during Place Order.
    I would suggest you should do it when you click the Checkout button.
    If you refer to ibeCScpViewA.jsp (which is used when we click on Checkout button)
    you can find ready code which loops over all the items in the cart.
    You can easily customize this page.
    If you still want to stick to Place Order, then you need to customize ibeCCkpOrdReview.jsp.
    but you will have to write a lot of code on your own.
    Hope it helps!
    Hrishikesh

  • 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.

Maybe you are looking for

  • Problem when I call a perfor using ALV report

    Hello my dear expert. I showed an ALV report when the user do double clic in any colunm  of this ALV I needo to the program show a other ALV report whit five columns. so In this case I made a internal table and put my option on it. El problem is that

  • SMQ1 NOSEND Status

    Hi, I am performing delta on the datasource 0CRM_SALES_ORDER_I from CRM system into BW. Although delta records are flowing into BW, the queue from SMQ1 in CRM system is not getting cleared. The queue remains in the status NOSEND. How do I clear the q

  • Where can I get a compiler?

    Where can I get a compiler that I can use that is like sun's but doesnt use an IDE?

  • Periodic billing in CRM

    Hi, I would like your assistance on a billing topic in CRM. System: CRM 5.0 and ECC6 Scenario: - Customer calls to purchase service - Once the price is given to the customer the customer decides not to purchase because it is too expensive to pay it u

  • New to infra red

    I was asked to write a server apps that uses infra red to receive information. the information is sent using an imbedded device (sends strings outside to anyone listens). Where should I start ? my device supports java, is there a package for implemen