Change the funcionality y a ALV button

Hi, I need to change the funcionality of the buttons "+" and "-" in an ALV.
I need to throw a function when I push the button "+" or "-" (add line, delete line).
What events do I have to use ?
Thanks

REUSE_ALV_GRID_DISPLAY
The important parameters are :
I. Export :
i. I_callback_program : report id
ii.<b> I_callback_pf_status_set</b> : routine where a user can set his own pf status or <b>change the functionality of the existing pf status</b>
iii. I_callback_user_command : routine where the function codes are handled
iv. I_structure name : name of the dictionary table
v. Is_layout : structure to set the layout of the report
vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE
vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.
II. Tables :
i. t_outtab : internal table with the data to be output
Regards
vasu

Similar Messages

  • How can i change the color of a blinking button?

    Dear all,
    how can i change the color of a blinking button with property nodes, when the button changes from "normal" state to blinking state? I can change the color of the normal state, but how can I change the color when the button is in blinking state?
    thanks

    jus an example
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Blinking_Indicator_2003.vi ‏27 KB

  • How can I change the slide to 8 Radio buttons mutually exclusive?

    How can I change the slide to 8 Radio buttons mutually exclusive?
    I saw the example in Labview. but it only contains upto 5 radio
    buttons. I need 8. How can I change it? Is there any shortcuts?

    I made this with NI's radio button control found in the boolean palette.  Just resize the cluster border, and move the buttons to where you want.  To add a button, select one of them, hold down Control and Shift keys, then drag the button to a new location.  The button gets duplicated.  Do this until you have enough buttons.
    Message Edited by tbob on 10-31-2005 01:07 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    RadioButtons.PNG ‏2 KB

  • Change the background color in a button

    I want to change the background color in a button that have a text(It not have an icon).
    DO you know how to do it?

    Hi suasna
    i have a solution for your ask actually i did when i wanted to change the bgcolor of a button ....but i this case u need to use Icon editor to create the icon with the color u want and add to it the text u want to apply ...then set the inconic ptoperty of the button to YES and set the Icon name that u have created with the software ..
    hope this helps u
    thanks

  • Changing color of a field after changing the data using OOPS ALV.

    Hi Experts,
    I have displayed three fields (price, no. of products and total amount) in my ALV grid using OOPS.
    Then am changing the data in either price or no. of products fields. When I click ENTER key the value in total amount changes correspondingly. Am able to achieve till this point.
    Now I have to change the color of the three fields( price, products and total amount) of the affected row alone and not the entire set of rows in the output grid.
    Please provide suggestions.
    Thanks in advance.

    Hi,
    You have to use Layout and Output data in your OO ALV. The below code is using FM you can replicate it in OO ALV
    types: begin of t_data,
             flg(3) type c,
             sty    type lvc_t_styl,
             col    type lvc_t_scol,
           end of t_data,
           t_tdata type table of t_data.
    constants: c_red type i value '255',
              c_g   type i value '1'.
    DATA: i_fcat type LVC_T_FCAT,
          s_fcat type lvc_s_fcat,
          s_lay  type lvc_s_layo,
          s_sty  type lvc_s_styl,
          s_col  type lvc_s_scol,
          i_data type t_tdata,
          s_data type t_data.
    s_lay-stylefname = 'STY'.
    s_lay-CTAB_FNAME = 'COL'.
    s_fcat-FIELDNAME = 'FLG'.
    APPEND s_fcat to i_fcat.
    CLEAR: s_data.
    s_data-flg = 'Yes'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT.
    insert s_sty into TABLE s_data-sty.
    s_col-fname = 'FLG'.
    s_col-color-col = 6.
    s_col-color-inv = 1.
    insert s_col into table s_data-col.
    APPEND s_data to i_data.
    CLEAR: s_data.
    s_data-flg = 'No'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT_NO.
    insert s_sty into TABLE s_data-sty.
    APPEND s_data to i_data.
    CLEAR: s_data.
    s_data-flg = 'No'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT_NO.
    s_col-fname = 'FLG'.
    s_col-color-col = 6.
    insert s_col into table s_data-col.
    insert s_sty into TABLE s_data-sty.
    APPEND s_data to i_data.
    CLEAR: s_data.
    s_data-flg = 'Yes'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT.
    insert s_sty into TABLE s_data-sty.
    APPEND s_data to i_data.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
       IS_LAYOUT_LVC                     = s_lay
       IT_FIELDCAT_LVC                   = i_fcat
      TABLES
        T_OUTTAB                          = i_data
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
    ENDIF.
    Thanks,
    Kiruba

  • How can I create a navigation bar in the template so I can change the down state of a button on a page made from the template in DW3?

    We're creating pages from a template in DW3. The template includes a header, footer and a navigation bar. We've made the navigation bar an editable region so that we can change the down state of the buttons on pages where it is required. However, when we make a new page from the template and try to change the behaviors of the buttons in the navigation bar it will not allow us to make those changes. 

    Have you considered using CSS styled text/list menus instead of image rollovers.  It isn't hard really and it's actually a much better choice for   web accessibility and for search engines to find and follow your links.   Here are some links to several CSS menu systems you can try:
    CSS Express Drop-Down Menus (tutorial)
    http://www.projectseven.com/tutorials/navigation/auto_hide/
    CSS Tab Designer creates 60+ CSS Styled Button and Tab Menus  (download)
    http://www.highdots.com/css-tab-designer/
    List-O-Rama  (DW Extension)
    http://www.dmxzone.com/go?5618
    CSS  Menu Maker (On-Line Menu Generator)
    http://www.cssmenumaker.com/
    Pop-Menu  Magic2 by PVII (DW extension purchase)
    http://www.projectseven.com/products/menusystems/pmm2/index.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to change the background color of a button when the button is emphasized

    Hi,
    I have a button that is in the "emphasized" state, I realized there is a default color "light blue" when the button is emphasized. is there any way I can change this default color? so if mu button goes to emphasized state I can control which color it should be
    I am using "Halo" for the theme, and I was not able to change the Focus color through the "Appearance Window" in Flash Builder 4
    any help would be appreciated

    Take a look at the accentColor flag of <s:Button>. It looks like you can do it there. But, it also looks like emphasized needs to be "true" and that you may need to interrupt the button's automatic update event... I've never tried to do this though. And, I imagine you only need to listen to button state changes if you want to dynamically control the emphasized color. If you just want to set a static value other than the default, it looks like setting emphasized to true and the uint of the accentColor will do the trick...

  • How do I change the behaviour of an update button.

    I have a variable - $UpdateFlag, which contains a string and updates a table with it on the click of the update button.
    The problem I have is that if the string is blank, I don't want to update, and I want the button to exit instead.
    here's the code. At the moment the button does nothing if $UpdateFlag is blank.
    How do I change the behaviour of the button so that it can update or exit based on $UpdateFlag?
    <?php
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1") and $UpdateFlag !='' ) {
      $updateSQL = sprintf("UPDATE offer SET status=%s WHERE offer_id=%s",
                           GetSQLValueString($UpdateFlag ,"text"),
                           GetSQLValueString($_GET['offer_id'], "int"));
      mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
      $updateGoTo = "Member2.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
        echo OK;
      header(sprintf("Location: %s", $updateGoTo));

    Add an else statement to do what you want if the flag is empty.
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1") and $UpdateFlag !='' ) {
      $updateSQL = sprintf("UPDATE offer SET status=%s WHERE offer_id=%s",
                           GetSQLValueString($UpdateFlag ,"text"),
                           GetSQLValueString($_GET['offer_id'], "int"));
    mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
    $updateGoTo = "Member2.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
        echo OK; // <-- This will cause a parse error
      header(sprintf("Location: %s", $updateGoTo));
    } else {
      //do something else
    Note that your echo statement will cause a parse error. OK is a string, and should be in quotes. Also, it will prevent the redirect from working.

  • Changing the "Browse..." button label in input type file

    Hi,
    I am facing a problem. I have got an HTML page. On this page, I have got a file selector(input type = file) in which I want to change the label of the "Browse..." button. Does anybody have an idea, how can it be done?
    Thanks,
    Mayank

    I dont think it is possible...
    zakir

  • How can I change the function of a flash button?

    Hello,
    Not sure if this should go in the Flash forum or Captivate forum, but does anyone know how where to find ActionScript 3 commands for Captivate?
    I downloaded a pre-made Flash button (source file) for Adobe Captivate that was originally made to make a video go to the next slide, when pressed. It does that fine, but I wanted to know how to use the ActionScript code in Flash Professional CS5 to have the button JUMP to a specific slide in Captivate, instead of just go to the NEXT slide. I know generally how code works, but have never really used it, and don’t know the specific command to make that happen. Currently the relevant part of the code in the Flash button reads:
    function clicked(e:MouseEvent):void{
                    var myRoot:MovieClip = MovieClip(root);
                    var mainmov:MovieClip = MovieClip(myRoot.parent.root);
                    mainmov.rdcmndNextSlide = 1;
    I suspect that I just have to change the last line to something else and it should work, but I would need the command. Can anyone tell me what needs to be changed in the above code to make that happen?
    The full code is below. Thanks.

    You are awesome. Thank you. That was extremely helpful. Michael also gave me a list of variables to use. However, when I use:
    cpCmndGotoSlide = 5
    It always jumps to slide 9, regardless of the value I put in the place of the '5'. So it does jump to a slide, but I can't yet get it to jump to the slide I want. In other words,
    cpCmndGotoSlide = 7
    or
    cpCmndGotoSlide = 13
    or
    cpCmndGotoSlide = 44
    etc,
    produces the same result: jump to slide 9. I followed the same format... Any idea why it wouldn't be working?
    Here is the full script:
    this.stop();
    // Set up event listeners
    main.btn2_mc.addEventListener (MouseEvent.MOUSE_OVER, over);
    main.btn2_mc.addEventListener (MouseEvent.MOUSE_OUT, out);
    main.btn2_mc.addEventListener (MouseEvent.MOUSE_DOWN, clicked);
    // functions for eventlisteners
    function over(e:MouseEvent):void{
        main.button1_mc.gotoAndPlay("s1");
    function out(e:MouseEvent):void{
        main.button1_mc.gotoAndPlay("s2");
    function clicked(e:MouseEvent):void{
        var myRoot:MovieClip = MovieClip(root);
        var mainmov:MovieClip = MovieClip(myRoot.parent.root);
        mainmov.cpCmndGotoSlide = 5;   

  • Is it possible to change the 'accessibility' messages of a button?

    I have buttons that control navigation in a subform.  These buttons are one instance - then addInstance as related subforms are added.
    I would like to be able to control the accessibility message (since we use it more as a hover/mouseover) based on the user interaction.
    Anyone know how I can change or adjust the message during user interaction?

    Are you talking about the tooltip for the button? What would you want to change the message to?
    Paul

  • OBIEE 10 - Is Possible change the Presentation Variable without GO BUTTON ?

    OBIEE 10:
    Is Possible change the Presentation Variable only changing the Value on the prompt ??
    Or the presentation variable only change if click on "GO BUTTON" ????
    Thanks.

    You need to click the "Go" button. That is what sets the variable.

  • In DW6 how to I change the border radius for a button in CSS panel

    We have used Microsoft's Expression 4 and it was simple to change the border radius when doing say a button. We have now moved to DW6 but in the CSS Rules Definition area you can do a border but not alter the radius to give rounded edges. When we want to do this we have to go back to Expression 4 as DW6 doesn't seem to have this facility. I can't beleive that it doesn't so I must have just missed it. If anyone can point me in the right direct I would appreciate it.

    I rarely use the CSS editor panels in DW.  I find it's faster to switch to Code View and edit CSS properties manually.
    Nancy O.

  • Change the color/style of a button dinamically?

    Hi,
    I want to change the style(color, font-size,..) of a button whenever clicked. following function works fine to change the value when the button clicked. What can i do to change the style too.
    <SCRIPT>
    function BtnTestClicked(){
    if (document.form1.BtnTest.value=="1"){
    document.form1.BtnTest.value="2";
    }else{
    document.form1.BtnIndirect.value="1";
    </SCRIPT>
    Thanks.

    Hello,
    You probaly didnt get any answers because this is a JavaScript question on a JavaServer Pages[tm] forum.
    But I'm bored and I only have answers to the 'easier' (its all relative) questions so...
    You can access the style properties of an object using objectName.style.propertyName=newValue
    eg. to change color:
    document.form1.BtnTest.style.color="green";
    http://javascript.internet.com/ to learn more.
    Hope this helps.

  • How to change the "Address is Residential" radio button to default "off"

    Hello, I am attempting to set the "Address is Residential" radio button under UPS shipping option to default "off". Our company sells mainly to business locations, and the button is causing confusion and incorrect shipping rates with our customers. Sorry if this has been covered before, I have seen a few discussions when googling the topic, however their links are not working.
    Thanks!

    Hi,
    The option cannot be changed but a possible workaround to avoid client confusion is to hide this div, using some custom JavaScript script that will hide it after is rendered by the shipping option tag.
    Unfortunately I do not have the exact script but will leave this topic open for the community to assist if possible.
    Kind regards,
    -Sidney

Maybe you are looking for