Morph on button selection

Trying to get a square to change to different shapes when you select a button from the menu, it changes from one size to the next. Can anyone help me find a way to get this done, I am more on the designer side of the board but trying to do the back ground work. It need to change shape back and forth no matter which button is selected, without it looking like there is a hitch in the morphing of the square. Thank you for the assistance.

That would be a one to one relationship. If that's the case then you could use a tween to resize the box for each button's use. So, for instance, you have the box on the stage as a movieClip and you have the five buttons. You don't say which version of Actionscript you are using, so I'll give you both.
Let's name the box instance "box" and the buttons "button1" through "button5".
in AS2:
import mx.transitions.Tween;
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,100,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,120,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,140,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,160,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,180,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,100,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,120,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,140,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,160,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,180,2,true);
button1.onRelease = function() {
    boxTween1x.start();
    boxTween1y.start();
   // whatever else happens when this button is hit...
// and similarly for each button.
in AS3:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,100,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,120,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,140,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,160,2,true);
var boxTween1x:Tween = new Tween(box,"_xscale",mx.transitions.easing.None.easeNone,box._xscale,180,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,100,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,120,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,140,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,160,2,true);
var boxTween1y:Tween = new Tween(box,"_yscale",mx.transitions.easing.None.easeNone,box._yscale,180,2,true);
button1.addEventListener(MouseEvent.MOUSE_UP,button1Up);
function button1Up(event:MouseEvent):void {
   boxTween1x.start();
   boxTween1y.start();
   // whatever else happens when this button is hit...
// similar for each addtional button, just change the names of the tweens

Similar Messages

  • Safari 5 doesn't open new pages after website button selected

    Hi. I am unable to load some websites after selecting some buttons on popular sites including PayPal and www.ryanair.com.
    Actually I am unable to book a flight ticket and I had to visit my friend to do so on his computer. The same happens when I try to log in into PayPal account. After hitting *"Log In"* button there is NO action with Safari 5. No new Tab, no new window, no progress bar... Nothing.
    The same happens with my MacBook. At ryanair.com after selecting the flight I am unable to proceed by hitting the button *"Select and Continue"*. Button *"New Search"* works normally.
    Exactly the same situation on both Macs. Latest Safari 5 update. Both websites works under Firefox on both computers.
    Does anybody has any idea what might be the problem?
    I have repaired permissions already - no help.
    Thanx a lot for any ideas.

    Ok...
    Uppps, there is one change - PayPal site shows some action in the status bar, but without an effect.
    If you are connecting to the internet using a cable modem, try disconnecting for 5 minutes, then reconnect and relaunch Safari.
    See if you have any Safari third party plugins... Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    If the problem isn't third party plugins, install the v10.6.3 Combo Update It's ok to do this even if you are already running v10.6.3.
    Then repair disk permissions (again).
    Also, have you tried using a different browser??? Always good to have a back up.
    Logging into another user account, try Safari there. If you have the same problems there, then it's a system wide glitch, not just isolated to your user account.

  • Using radio button selection in multiple tables

    Hello All,
    I've got a bit of a design issue and it being a Friday my brain is a bit foggy and I can't seem to figure out a solution.
    what I want to do is have 3 tables. The user should only be able to select one line from any of the three tables.
    I can do this by having events that clear down selection on the two other tables on any selection of the third, but the select buttons of tables don't really give the UI impression that only one row can be selected. To do this I'd like to use the radio button element.
    so
    table A
    choice - name
    (o) - Anne
    (o) - Bob
    (o) - Charlie
    Table B
    choice - name
    (x) - David
    (o) - Ellen
    (o) - Fran
    Table C
    choice - name
    (o) - George
    Here the entry in table B for David is selected. But any selection of any of the other options should deselected.
    My thoughts are to use a radio button ui element, bind the "selected" value to a unique id for each row/table (an attribute of the node element for each table) and the value to a common shared attribute (not table specific).
    Any better ideas - and certainly any which would mean I'm not going to have to maintain a lookup table of my unique ids and node elements to find out which one is selected?
    Cheers,
    Chris

    Ok - here's how I did it.
    I created another lookup table which had a guid and reference to the element.
    in the each elements I had a guid which I bound to the key for selection property of the radio button in the table.
    I then bound the selected key property to an attribute that was common to all elements.
    in my "processing" logic I read the selected key, read the lookup table - and therefore got the reference to the selected element.
    Would have been an awful lot easier if I could have used a reference to the element itself as the "key" - but that was required to be a character field.
    [image showing radio button selection working across multiple tables|http://i51.tinypic.com/bi79dx.jpg]
    End result works quite nicely.
    Cheers,
    Chris

  • Clearing radio button selection

    Guys, iam stuck in a situation where iam not able to clear the radio button selection in the SINGLESELECT tableview. I am using MVC approach and my layout is similar to bookshop example in SAP  tutorial_4_mvc.
    I found that even in the SAP example the raio button is not cleared when a new search is used. The radio button remains selected and it has to be clicked again to refresh and retrieve new values. But I would like to clear the selection.
    Any help on how to clear previous radio button selection every time the page is reloaded?
    Thanks.

    hi,
    i tried this but for some reason the index of the prviously selected row still gets applied to the new selection and is checked.
    in my do_handle_event:
    IF htmlb_event IS BOUND  AND
         htmlb_event->name = 'tableView'.
        table_event ?= htmlb_event.
        selectedrowindex = table_event->selectedrowindex.
        READ TABLE i_result INDEX selectedrowindex INTO wa.
        IF sy-subrc EQ 0.
          CLEAR: imatfact1, iagrfact1, iagrhead1, iabgru1, v_part_detail,
    selectedrowindex.
    processing data
    ENDIF.
    In my DO_REQUEST:
    result_view->set_attribute( name = 'i_result' value = i_result ).
      result_view->set_attribute( name = 'iterator' value = me ).
    result_view->set_attribute( name = 'selectedrowindex' value =
    selectedrowindex ).
      call_view( result_view ).
    In my page:
    <htmlb:tableView id              = "result"
                     headerText      = "Header Text"
                     onNavigate      = "onMyNavigate"
                     selectionMode   = "<%= v_sel_mode %>"
                     emptyTableText  = "No data found matching your query!"
                     onRowSelection  = "<%= v_onrow_sel %>"
                     table           = "<%= i_result %>"
                     iterator        = "<%= iterator %>"
                     visibleRowCount = "10"
                     selectedRowIndex = "<%= selectedrowindex %>">
      <htmlb:tableViewColumns>
        <htmlb:tableViewColumn columnName          = "MATNR"
                               width               = "100"
                               horizontalAlignment = "left"
                               title               = "PART" >
        </htmlb:tableViewColumn>
        <htmlb:tableViewColumn columnName          = "ZFLAG"
                               width               = "100"
                               horizontalAlignment = "left"
                               title               = "DISCOUNT" >
        </htmlb:tableViewColumn>
      </htmlb:tableViewColumns>
    </htmlb:tableView>
    I am also using the interface methods u tthere is no code inside:
    IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
    Please suggest what could be wrong.
    I have debugged this and saw the selected rowindex as '0' also but it gets applied somewhere again.
    Thanks.

  • I want to add radio button selected value in shopping cart

    hi
    i am new to java
    and i am doing shopping cart project
    and i want to aad radio button selected value in cart but only one value.
    i am doing that in jsp.
    when iam adding that value the name of radio button is printed.
    and in remove page nothing displyed
    pls help me
    Thanks in advance.
    my code is-
    index.jsp
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <html>
    <head>
    <title>Shopping cart</title>
    <style>
    * { font-size: 12px; font-family: Verdana }
    input { border: 1px solid #ccc }
    </style>
    </head>
    <body>
    <jsp:declaration>
    java.util.Enumeration parms;
    java.util.Enumeration values;
    </jsp:declaration>
    <jsp:scriptlet>
    parms = request.getParameterNames();
    values = request.getParameterNames();
    while(parms.hasMoreElements()) {
    String name = (String) parms.nextElement();
    String value = (String) values.nextElement();
    session.setAttribute(name, value);
    </jsp:scriptlet>
    <img src="images/add.png" onclick="document.location='index.jsp'">
    <img src="images/remove.png" onclick="document.location='remove.jsp'">
    <img src="images/cart.png" onclick="document.location='cart.jsp'">
    <h2>Add to shopping cart</h2>
    <form method="POST" action="index.jsp">
    <table>
    <tr>
    <td><input type="radio" name="radio" value="$10.00" checked></td>
    <td>$10.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$15.00"></td>
    <td>$15.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$20.00"></td>
    <td>$20.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$25.00"></td>
    <td>$25.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$30.00"></td>
    <td>$30.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$35.00"></td>
    <td>$35.00</td>
    </tr>
    </table>
    <br><br>
    <input type="submit" value="submit">
    </form>
    </body>
    </html>
    cart.jsp
    <html>
    <head>
    <title>Shopping cart</title>
    <style>
    * { font-size: 12px; font-family: Verdana }
    </style>
    </head>
    <body>
    <jsp:declaration>
    java.util.Enumeration parms;
    </jsp:declaration>
    <img src="images/add.png" onclick="document.location='index.jsp'">
    <img src="images/remove.png" onclick="document.location='remove.jsp'">
    <img src="images/cart.png" onclick="document.location='cart.jsp'">
    <h2>The shopping cart</h2>
    <jsp:scriptlet><![CDATA[
    java.util.Enumeration content = session.getAttributeNames();
    while (content.hasMoreElements()) {
        out.println(content.nextElement());
        out.println("<br>");
    ]]></jsp:scriptlet>
    </body>
    </html>
    remove.jsp
    <html>
    <head>
    <title>Shopping cart</title>
    <style>
    * { font-size: 12px; font-family: Verdana }
    input { border: 1px solid #ccc }
    </style>
    </head>
    <body>
    <jsp:declaration>
    java.util.Enumeration parms;
    </jsp:declaration>
    <jsp:scriptlet>
    parms = request.getParameterNames();
    while(parms.hasMoreElements()) {
    String name = (String) parms.nextElement();
    session.removeAttribute(name);
    </jsp:scriptlet>
    <img src="images/add.png" onclick="document.location='index.jsp'">
    <img src="images/remove.png" onclick="document.location='remove.jsp'">
    <img src="images/cart.png" onclick="document.location='cart.jsp'">
    <h2>Remove items from cart</h2>
    <form method="get" action="remove.jsp">
    <table>
    <% if (session.getAttribute("$10.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$10.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$15.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$15.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$20.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$20.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$25.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$25.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$30.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$30.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$35.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$35.00</td>
    </tr>
    <% } %>
    </table>
    <br><br>
    <input type="submit" value="submit">
    </form>
    </body>
    </html>

    i used this where park .visits is the java class for
    visit object that contains getResort() method
    now error has gone but nothing is stored in the
    actionform class I would take that to mean the List
    1. does not contain a collection of Visit. You can check that by printing some debug statements inside the loop
    2. contains collection of visit objects. However the visit objects return null for getResort().
    Why dont you debug by printing out the objects from wherever you sit it in request/session scop (i.e in your servlet/web-handler)
    ram.

  • Radio Buttons selection

    Hi to all,
    I am using 5 radio buttons.
    i did some fire partial action for radio buttons.(means call some procedures).
    My problem is
    i select the first radio button,suppose it throws some exception then radio button selection is goes to last radio button.
    but in my requirement when ever exception is raiise,that time first radio button is selected or all radio buttons are deselected.
    please give the suggestion.

    You have to do the following things:
    1. Attach a radio group to all these radio buttons.
    2. Give them all different names.
    3. And when one of the radio button is clicked, u need to set that VO attribute attachhed to radio button as "Y" and rest as N... then it works..
    CO -> PR
    OAMessageRadioButtonBean periodicRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("PeriodicallyItem");
    periodicRadioButton.setName("FREQUENCY_GROUP");
    periodicRadioButton.setValue("PERIODIC");
    OAMessageRadioButtonBean specDaysRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("SpecDaysItem");
    specDaysRadioButton.setName("FREQUENCY_GROUP");
    specDaysRadioButton.setValue("SPECIFIC_DAYS");
    OAMessageRadioButtonBean specWorkRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("SpecWorkDaysItem");
    specWorkRadioButton.setName("FREQUENCY_GROUP");
    specWorkRadioButton.setValue("SPECIFIC_WORK");
    OAMessageRadioButtonBean specWeekRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("SpecWeekDaysItem");
    specWeekRadioButton.setName("FREQUENCY_GROUP");
    specWeekRadioButton.setValue("SPECIFIC_WEEK");
    CO -> PFR
    String radioGroupValue = pageContext.getParameter("FREQUENCY_GROUP");
    if(eventName.equals("frequency"))
    am.invokeMethod("handleFreqSchEvent",paramList);
    AM
    if("PERIODIC".equals(freqValue))
    schFreqRow.setPeriodically("Y");
    schFreqRow.setSpecDays("N");
    schFreqRow.setSpecWorkDays("N");
    schFreqRow.setSpecWeekDays("N");
    else if("SPECIFIC_DAYS".equals(freqValue))
    schFreqRow.setPeriodically("N");
    schFreqRow.setSpecDays("Y");
    schFreqRow.setSpecWorkDays("N");
    schFreqRow.setSpecWeekDays("N");
    else if("SPECIFIC_WORK".equals(freqValue))
    schFreqRow.setPeriodically("N");
    schFreqRow.setSpecDays("N");
    schFreqRow.setSpecWorkDays("Y");
    schFreqRow.setSpecWeekDays("N");
    else if("SPECIFIC_WEEK".equals(freqValue))
    schFreqRow.setPeriodically("N");
    schFreqRow.setSpecDays("N");
    schFreqRow.setSpecWorkDays("N");
    schFreqRow.setSpecWeekDays("Y");
    Hope this helps..

  • Keep Radio Button selected after action

    Hi All - This is a strange situation.
    I have 3 context node for Radio Buttons
    the 1st context node is for 2 radio buttons
    the 2nd context node is for 6 radio buttons
    the 3rd context node is for 4 radio buttons
    Scenario: 1st Context node has "DEFAULT VALUE" so is initially selected, the other two context node doesn't have DEFAULT VALUE.
    I select a radio button (that belongs to the second node) and also select a radio button (that belongs to the 3rd context node) now I click a custom button that will trigger an ACTION.
    1st & 3rd Radio buttons keep the RADIO BUTTON SELECTED but 2nd Radio Button now is like INITIAL, WHY??? if everything is designed the same way.
    I want to keep the selected value so the user can see which options they selected.
    A1          B2            C3      <----
    First time (after initialization)
    X
    A1         B2            C3      <----
    I selected values
    X            X              X
    A1         B2             C3     <----
    After Action is trigger
    X                             X
    thanks!
    Jason PV

    Hi,
    I dont see any reason other than selected value getting lost in wddomodify method or in action event handler.
    Check in WDDOMODIFYVIEW or in Action Handler method you are not playing modifying the context node bound to 2 group of radio buttons .
    Or you can fetch the selected value in your action handler store it in some view attribute and bind the node back again with same value on wddomodifyview.
    Regards
    Manas Dua

  • How to get Radio button select event in my co

    Hi,
    I want to get the radio button selection event in my co,how can i get the event?

    Hi,
    841475 wrote:
    I want to get the radio button selection event in my co,how can i get the event?---There is no event for radio button.
    ---U need to explicitily set the event for the radio button.
    Action:FirePaatialAction
    Event:RadioEvent---Get the event in co by below code:
    if("RadioEvent".equals(pageContext.getParameter(EVENT_PARAM)))
    ---In radio button event..:)
    Regards
    Meher Irk

  • Slow button selection on DVD players

    I've done my menus on photoshop and used layered menus in DSP. Everything works fine, what layers are shown at what state etc.
    But once I play the disc in a DVD player, I've noticed that moving down the buttons in the menu is really slow and takes about a second when you press enter to select something, before it does anything. The speed varies on different players and is the fastest on the most recent computers and laptops.
    So I guess it really depends on the player, but is there anything I can do to speed up the button selection in DSP? I've heard that with layered menus, each button state is like a different menu, is this true? Anyone got any ideas?
    Thanks.
    iMac G4 flat-panel 1GHz   Mac OS X (10.4.7)   DVD Studio Pro 3

    Not really seperate menus as people think of it (which is why I said sort of), when you add different non-layered menus in DVD SP a different VTSM PGC is added for each menu, while the layered menus place different PGs in the same VTSM.
    But I say the same thing, do not use layered menus if you can avoid them
    It is not different then what happens with a loop menu, and actually stays in the same PGC other than when jumping from one PGC to another as with "seperate" menus.
    Maybe Jake, Hal, Teal or others have some more details on performance issues

  • HIdidng input field depeding on radio button selected

    Hello Experts,
    Can any let me know  or point to a tutorial ?
    how I can hide a input field another input field depending on the selected radio button.
    The radio button I have are fax and email.
    If Fax is selected I want to dispaly input field for fax and vice versa.
    Thanks,
    Raj

    Hi raj,
    (1)Create two context attribute of type "Visibility".
        (a) faxVisible
        (b) emailVisible
    (2)And bind the "visible" property of inputfields to these attributes.
    (3)On radio button selection in the action handler do following thing  for fax selection and vice versa.
    wdContext.currentContextElement().setFaxVisible(WDVisibility.VISIBLE);
    wdContext.currentContextElement().setEmailVisible(WDVisibility.NONE);
    Regards,
    Praveen

  • Button "Selected State" bug confirmed for Blu-ray on Mac

    I just confirmed today with Adobe tech support that, at the moment, menu button selected states are invisible on Blu-ray discs created with Encore on a Mac.
    Meaning, if you have 5 buttons linked to 5 different places, the buttons will all work, but you will have no idea what you're selected on- because they are invisible! There will be no "highlight" or "selected" state for the button. Once selected, you will see the "activated state" for the button for a split second, then it will take you to the proper target track. But again, no way of knowing what buttons are selected.
    They said if the video/menu assets are 4:3, the buttons work fine. Good to know, but a completely ridiculous suggestion.
    At the moment, there is no solution. They are "working on it."
    This is only a problem with Blu-ray projects on the Mac platform. Lucky me. To a hobbyist, this isn't a completely devastating problem- you can still watch the content of the disc. But this is enough of a problem for that I can't deliver it to clients like this. Wasted time and money troubleshooting this. This is a major problem.

    Adam. When you see the LAYERS window, click on and off on your highlights. There is a small white looking box. Deactivate and activate this. This will activate the selected and activated states. We had this problem a long time ago and found this to be the solution!
    DARREN

  • How do I have the learner perform a conditional action based on a button selection?

    The learner needs to select a checkbox on the screen of a performance exercise.  I've put the widget in for the checkbox and it works fine.  After the select the checkbox, they need to select OK on the screen to move them onto the next screen.  However, I don't want the learner to just select OK without selecting the checkbox in order to replicate the sequence correctly. 
    I have a slide which shows the message  which tells them as to what they did wrong when they select OK without checking the box, but when I tie that to the correct response, it will go there whether they select the checkbox or not.
    I've tried adding multiple actions to the button, which doesn't work, becuase the OK button has to be tied to the learner conditionally selecting the checkbox to move on to the correct slide.  If I use multiple actions, and the first action is to SHOW  the slide with the incorrect message, if they correctly check the box and then hit OK, it will first SHOW them the incorrect slide.
    I think what I need is a variable and then add an advanced action with a conditional statement.  However, I don't really know how to do that.  Here's the variable I created, but I don't know what value I should assign.  Here's the screen shot of the variable and conditional statement.  Could someone tell me how to do the variable and the conditional statement so that the learner when selecting OK WITHOUT selecting the checkbox first will be redirected the the error slide and if they select the checkbox FIRST, and then OK, they move on to the next screen?  Thanks,

    Thanks, you definitely got me started on the right track on variables and advanced action statements.  The screen shots helped.
    Here's how the actual fix went to make sure the OK button on the screen had a conditional statement attached to it, with
    an advanced action:
    I created parameters for the widget to link to the variable:
    I created a variable:
    Then I created an advanced action conditional statement for that variable which enabled the button to advance to the next slide when the clickbox was checked:
    Then where I finally realized my final mistake was not setting the button properties to execute advanced action:

  • Disable an Input field with the help of a radio button selection.

    Hi Guys,
    I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
    Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
    Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
    AT SELECTION-SCREEN OUTPUT.
      PERFORM screen_grace_on.
    AT SELECTION-SCREEN ON p_grace.
      PERFORM check_grace_days.
    FORM screen_grace_on .
      DATA: l_v_grace TYPE char2.
      CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
    l_v_grace = p_grace.
    CLEAR p_grace.
      IF rb_selgr EQ c_x.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-required = 1.
           screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " SCREEN_GRACE_ON
    FORM check_grace_days.
      IF rb_selgr EQ c_x AND  p_grace EQ 0.
        PERFORM screen_grace_on.
        MESSAGE e492(/ams/ramfcmess1).          " Enter the number of Grace days
      ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
        PERFORM screen_grace_on.
      ENDIF.
    ENDFORM.
    Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
    I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
    Thank you

    Hi,
    Go through this following code,
    selection-screen begin of block B2 with frame title TEXT-005.
    selection-screen begin of line.
    parameters:     P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
    selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_COLRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_PAYRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
    selection-screen end of line.
    selection-screen end   of block B2.
    selection-screen begin of block B1 with frame title TEXT-001.
    select-options: SO_KTOKD for  KNA1-KTOKD modif id M4,
              SO_BLART for  BSIS-BLART modif id M2.
    parameters:     P_PAID   type ZCLEAR     modif id M3 as listbox visible length 20.
    selection-screen end   of block B1.
    at selection-screen output.
      loop at screen.
        if P_BIRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2' or SCREEN-GROUP1 = 'M3' .
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_COLRPT eq 'X'.
          if SCREEN-GROUP1   = 'M3'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_PAYRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
          if SCREEN-GROUP1   = 'M4'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks
    Anil D

  • Video in button Selected state?

    I'm rusty in DVDSP - been a couple of years since my last DVD menu project, but I have one now and the client has provided the menu art and description of what they want - but there are 2 items I'm not sure if I can include the way they want, and before I re-prep their art for Studio Pro (because, of course, it was prepped as if for print), I want to determine the best course to take, and reset their expectations, if necessary.
    1) They want video to play in a button, but only when it is selected - I can drop video in using shapes, but it's playing in all states. I can't use a layered menu, because the background also is motion (subtle looping, but motion just the same). Thought maybe I'd build the motion in the buttons and mask over with a still in normal state, reveal in selected, but can't seem to get there. So any ideas, or am I spinning my wheels trying to accomplish?
    2) They've prepped the buttons as if rollovers in a Flash presentation - the normal state has an image with a white border around it and title underneath - but the selected state has those as black PLUS a small arrow pointing at the title. I can't do a straight shape with text, because the arrow element will be present in all states. I can't do a layered menu because of the motion background. So what I've come up with is embedding the normal states of the button (white, without the arrow) into the motion background, and then create a shape with the text (black, with the arrow) but with only the highlight layer and no shape layer so that only the black highlight layer shows up over it when selected. This works, but I have to position it PRECISELY over the background normal button, or else white edges show and it gets ugly. So, is there a better way to do this that I'm overlooking?
    Thanks very much to anyone who has taken the time to read this novel, and even more thanks to anyone who has some insight into any possible solutions (or lack thereof).

    There is another way, but it's tricky.
    You create a series of menus that are almost identical. In the first, all buttons show still images, and the button auto activates to a copy of the menu where the appropriate button shows a video. If you have four buttons, you'll need five menus all exactly the same except in the last four, single buttons have video, others are stills. Every button that is a still auto activates to go to the appropriate menu where that button has video. Every video based button links to the relevant track.
    In practice, the user will see a still image, and when they select it (or roll over with a mouse if on a computer) the menu will jump to the associated sub menu where that button now has video and the others show stills.
    The problem here is that on some (most) players there will be a pause between the menus, and it won't be a slick and quick change.
    Using the masking technique is better in lots of ways, however as Drew said it will be hard to match the colours. Also, the mask shape will need to be your 'still' image (which might help obscure the colour differences) and this can only have four colours.
    A further consideration is that the mask shape will be part of the button highlight (well.... it will BE the button highlight) and as such will exist in the subpicture stream. It is impossible to guarantee that this will stay in place or be in place when leaving or entering a menu. In effect, when you click a button the first thing to disappear is the sub picture stream, which means all of your videos will be visible for a fraction of a second, or perhaps slightly longer. Secondly, when entering a menu, the last thing to be created is the subpicture stream, which means that all of your button videos will be showing for a fraction of a second until they get covered.
    The amount of delay in each case will depend on the player. For some it'll be tiny. For others it'll be seconds and will ruin the effect you are looking for.
    I would probably prefer the delay as you change menus to the revelation of all the button videos, but you'll have to decide for yourself which is better!

  • After submit button selected dropdown entry is lost!

    Dear All,
    I have a problem as below..
    I created a static dropdown list of Webdynpro enumerated type.
    Using online scenario after I press webdynpro native submit button, the selected entry is getting lost.
    I guess this is due to the control is given to Webdynpro and the form is loaded again with default entries in Initialzation
    I want to keep/retain the selected entry even after hitting SUBMIT button.
    Please advice me how to resolve.
    Regards,
    Srinivas
    Edited by: srinivas aare on Mar 2, 2010 9:09 AM

    Hi Robert,
    Thanks for the reply.
    Submit(Webdynpro Native) is giving the control back to Webdynpro but user can still stay on the same page after hitting submit button, Ideally I should have taken the control back to the main screen to avoid this issue after submitting. But I want the user to see what information they have submitted in read only mode.
    Can you tell me what do you mean by temporary structure Do I have to maintain the same structure twice in Webdynpro context?
    Can you please explain me clearly on "save my info in a temporary structure (matching my context)"?
    Where do we maintain the structure in WebDynpro copntext or is there any other place like interface?
    And how can we influence the same binding to tell the elements on form to get values from temporary structure?
    Many tanks in advance..
    Regards,
    Srinivas

Maybe you are looking for

  • Swithing to Mac and OSX - is it worth it for me?

    I've been a Windows user for the longest time... ever since Dos became replaced with Windows 3.1 as that's what my dad used, all the way up to Windows XP, which is what I'm running now on my desktop computer, in dual-boot with SuSe Linux 10.1. I've b

  • MSI 9643 / Super Q965 Single Board Computer

    I have an MSI Super Q965 Single Board Computer.   It will work with an E2200 (800 Mhz FSB) processor.  But it wont work, is dead, with a Pentium® Processor E6300 (2.80 GHz, 1066 MHz FSB)  The bios version is 1.3 the lastest from the web site.  The sp

  • No history in the dropdonw list of transaction Code Field

    Hi Expert, Now there is no history in the dropdown list of transaction code filed. who could tell us how to solve that ? Thanks and Regards Shubin

  • Stuck in kernel panic lope after Time Machine Restore

    Alright so I tried to download Mavericks recently only for the installer to say that the hard drive needed repaired. I tried to repair the disc using Disc Utility, it didn't work. So I backed everything up to an external hard drive and wiped the hard

  • How to save music?!

    I have a 5th gen 80GB iPod and it appears to be corrupted. Of the 74.xx GB formatted capacity, I have 5.5 free. I have music from my Mac, along with music from 2 or 3 other computers. Recently, the iPod locks up OSX when it is plugged in, and when I