Multiple buttons for a given validation

I want the same validation to be done on the click of two buttons. In the "Conditional Validation Processing", I see we can
"select a button" which allows us to select only one button.
How can I select multiple buttons for a given validation?
Is there a way or do I need to create another validation for the second button.
Please advice.

When you submit a page with a button the "request" value is set to the button name (not the displayed button label). After-submit events can check the request using :REQUEST or v('REQUEST') so you can build a condition like:   :REQUEST in ('APPLY','CREATE')..or you can use a built-in condition type that checks the request value like 'Request is Contained within Expression 1'.
Scott

Similar Messages

  • Multiple values for a given property in a Master Record

    I have a requirement to maintain multiple values for a given property of a master data as shown in the above example. Appreciate your help on the above.
    Regards
    SAP BOSS

    Hi,
    As you said
    How do I use the property values in my input values.
    I thought you are talking about input form, that's why I said you can crate input form using dimension over ride.
    But if your requirement is about scrip logic then it is better to ask question with reference to  following guide by Vadim Kalinin so that we can understand your requirement properly and you will get right solution.
    http://scn.sap.com/community/epm/planning-and-consolidation-for-netweaver/blog/2014/01/31/how-to-ask-questions-about-script-logic-issues
    Regards,
    Shrikant

  • Multiple buttons for same action page

    I have a cfform with an action page.
    I have two buttons at the bottom with different labels, like
    button 1 and button 2, that call this action page to insert data.
    After the insert, the page needs to be redirected page 1 if button
    1 was selected, and redirected to page 2 if button 2 was selected.
    How can I separate the two so that they go to different forms
    I tried passing a variable in the cfform action, but it
    applies to both buttons, thus both go to the same place, and I
    cannot seem to separate.

    trojnfn wrote:
    > <script language="javascript">
    >
    > function validateForm(pack_slip_form){
    >
    > var returnStatus = true;
    >
    >
    > if (pack_slip_form.supplier_name.value == ""){
    > alert("Please Enter The Supplier Name");
    > pack_slip_form.supplier_name.focus();
    > returnStatus(false);
    > }
    >
    >
    > if (returnStatus){
    > pack_slip_form.submit();
    > }
    >
    > returnStatus(true);
    > }
    >
    as far as i can see, returnStatus is not a function, so what
    is
    returnStatus(true) ???
    change that line instead to
    else {return false;
    > This is my form tag, from the other example :
    > <cfform action="pack_slip_action.cfm method="post"
    name="pack_slip_form"
    > onSubmit="return ValidateForm()">
    >
    > And here are my two buttons below :
    >
    > <input type="submit" name="button_1" value="SAVE AND
    ADD PACK SLIP"
    > onClick="validateForm(document.pack_slip_form)">
    >
    > <input type="submit" name="button_2" value="ASSIGN TO
    PROCUREMENT"
    > onClick="validateForm(document.pack_slip_form)">
    >
    >
    you only need to call your validateForm function either from
    the <from>
    tag OR your submit buttons, not both.
    and the function call in the form tag is incorrect - a) the
    function
    name is spelt wrong and b) it does not pass required argument
    to the
    function. change that to onSubmit="return
    validateForm(document.pack_slip_form)" and remove the onCLick
    events
    from your buttons
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Multiple values for one key in hashtable k, v

    So, I know that java.util.hashtable (as of Java 1.5) uses separate chaining to handle collisions. What I want to know is how to get a certain value somewhere in that bucket if they all share a common key? Javadoc says I have to search it sequentially but doesn't say how.

    OK, there's a lot of confusion on here for such a short thread :-)
    Firstly, HashMaps pick which "bucket" to store your object in based on the hash value of your object (see Object.hashCode()). However, the actual object equality test (applied to the keys during a search) is based on Object.equals(). Therefore which bucket your object is in is irrelevant - the bucketting concept is just used as a way of quickly locating a subset of all the keys in the map which might match your search value. There could very well be just a single bucket in a map and it wouldn't change its logical behaviour.
    This statement: "any Map including Hashtable, can only have a single (key,value) pair" is poorly worded. What it should say is that for any given key, a map can only hold a single value.
    Really, you don't need to think about the internal structure of maps (i.e. buckets, etc.).
    If you want to store multiple values for any given key, then make your value a list (java.util.List) and store your multiple real values inside that list.

  • Building Multiple Apps for Distribution Advisory

    Has anyone read the "Building Multiple Apps for Distribution and Validating Your Distribution Builds" advisory yet? Am I the only one who's jaw is dropping that they've changed the rules again?
    See here's the thing... I've already released an iPhone application. What is going to happen if I submit an updated version of the application using a new distribution profile? Is that going to cause problems for my customers? In other words, is the upgrade process going to work for them? How do I know the answers to these questions?
    Furthermore... the instructions reference "company name". What are individual developers supposed to do? My application was already rejected at least twice because I had "iPhone Distribution: Developer Name" in the Code Signing Identity field instead of just "iPhone Distribution". Now you're telling me this has changed? Could you just confirm that please, before I go through another week+ of submission ****?
    And seriously, could we get a show of hands: What developer here thinks they'll never want to develop more than one application for the iPhone?
    Sorry, but my mind is just boggling.

    This gives rise to a few questions for me as well.
    We currently have one application in the App Store (app 1) and is looking to launch a second (app 2).
    App 1 is signed with a distribution provisioning (pp 1) created particularity for that app before the new guidelines and is in the App Store.
    We have created a new distribution provisioning profile (pp 2) for a wildcard app ID as advised in the new guidelines. This will be used going forward.
    Questions:
    1. Will we need to rebuild the old App 1 signed with the new wildcard provisioning (pp 2) and resubmit it to iTunes Connect testing in order to get both apps running at the same time? Seems impractical.
    2. Can app 2 be assigned any valid app-id (e.g. com.mycompany.newapp) created in the program portal in its info.plist file?
    3. If there at a later stage is a new version of app 1 should it be built with the new profile (pp 2) instead of the one used originally for that app (pp 1)?
    I can see in the program portal that the old pp 1 (non-wildcard) expires 10/02/2008 while the newly created pp 2 is valid way into 2009.
    Looking forward to know the answers to these questions - as are a lot of developers who had titles for the App Store launch and is currently putting new ones out I would imagine.
    Thanks.

  • Common GO button for multiple prompts created in OBIEE Dashboard

    Hi,
    Is there any possibility to have a common GO button for multiple prompts created on the OBIEE dashboard.
    Any response to this would be appreciated.
    Regards,
    Rajkumar.

    Hey i used the java script given in link :- http://sranka.wordpress.com/2008/11/09/how-to-replace-multi-go-button-prompt-by-one/#comment-96
    to hide multi-go-button in prompts and it works for IE 7 and firefox 2.0* with 10.3.4.1.
    Now since 10.1.3.4.1 is certified with firefox 3.0* ,when i use this same script in firefox 3.0* for my prompts it doesn’t work .
    Any idea why ? Please help me with this,as i want to use this hide go button feature in firefox 3.0* too.
    Are these scripts browser to browser incompatible ? If yes from where can i get the script for firefox 3.0* ?
    Awaiting for the inputs.
    Thanks,
    Nisha

  • Can I use the "same" button multiple times for multiple galleries?

    OK so I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work. Please help...and don't laugh at my poor scripting. This is what I have now because I do not know where to put the other button names without getting errors.
    stop();
    next_btn .addEventListener(MouseEvent.CLICK, nextImage);
    var imageNumber: Number=1;
    function checkNumber(): void{
        next_btn.visible=true;
        back_btn.visible=true;
        if(imageNumber==15){
            trace(imageNumber);
        next_btn.visible=false;
        if(imageNumber==1){
            trace(imageNumber);
        back_btn.visible=false;
    function nextImage(evtObj:MouseEvent):void {
        imageNumber++;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();
    back_btn .addEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent):void {
        imageNumber--;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();

    I'm still a novice with Flash myself, but I have two comments.
    First, at this point, won't your buttons control all galleries at the same time? Which means, if I go to image 5 in one gallery, then move to another gallery, I'll start at image 5, because the actions are all connected.
    Second, you can definitely use the same buttons for multiple galleries. It seems to me that as long as you've assigned the buttons an instance name, these actions should already work to control all the galleries (see the note above). I guess I would need to understand a bit more about how your project is built.

  • Need Multiple Units of Measure for a given material due to multiple vendors

    Hello,
    We have a requirement where we must have multiple units of measue (each, box, case, pallet) for a given material.
    Background:
    We have multiple vendors for one SAP material number. We need to store 4 levels of units of measure for each vendor+material combination.
    Unit of Meaure levels
    1. Each
    2. Innerpack (ex: 12 each = 1 innerpack)
    3. Box (ex: 36 eaches = 1 box)
    4. Pallet (ex: 100 eaches = 1 pallet)
    Standard SAP allows in MM01 additional data --> Units of Measure only 1 Ea, Box, Plt, etc.
    Our requirement is to allow multiple Units of Measure due to multiple vendors providing the same material.
    So, our unique combination is by a Material+Vendor.
    We are considering adding the vendor name and vendor number to the material master --> additional data --> Units of Measure tab.
    Does this seem like a good solution? What impacts do you foresee with approach?
    Any alternatve solutions?
    We thought we could enhance the purchasing info records to allow multiple units of measure too but then we need to also add many fields to hold the weight, lenght, height, width, volume, country of origin, etc.
    Please recommend a best practice or solution to handle this requirement.
    Thanks in advance!!!

    Hi,
    Maintain the alternative units in Material Master in Additional Data -> Units of Measure section with proper conversion factors.
    Create individual info-records i.e. per mtl-vendor combination & in the info-record maintain the order unit, along with other details as required.
    Now when you create a PO, the details will be read from the info-record. To test the same, create them in your sandbox & see if it meets your requirement.
    Hope the above clarifies your query.
    Regards,
    Vivek

  • Print MULTIPLE sales order for a given date

    Hi Gurus,
    My requirement is to print sales order for a given date like the one given below.
    VL71  - Output from Outbound Deliveries
    VL74  - Output from Handling
    VF31  - Output from Billing
    VOK4- Output Determination: Inventory mgmt.
    Is there any T.code for printng multiple sales order instead one-by-one printing using VA02/VA03?
    Please hlep me in this regard.
    Regards,
    Anbu

    Hi anbu,
    This is very much possible to mass printing for sales orders.
    Goto SE38 T.Code.
    Enter the program name as "RSNAST00".
    Press Execute or F8
    Select output application as "V1" which is sales.
    Enter your object key here.
    Enter your output type.
    Select the transaction medium as "1".
    Tick "send again".
    Press on Execute or "f8".
    Regards,
    Krishna.

  • Multiple Buttons in JTable Headers:  Listening for Mouse Clicks

    I am writing a table which has table headers that contain multiple buttons. For the header cells, I am using a custom cell renderer which extends JPanel. A JLabel and JButtons are added to the JPanel.
    Unfortunately, the buttons do not do anything. (Clicking in the area of a button doesn't appear to have any effect; the button doesn't appear to be pressed.)
    Looking through the archives, I read a suggestion that the way to solve this problem is to listen for mouse clicks on the table header and then determine whether the mouse clicks fall in the area of the button. However, I cannot seem to get coordinates for the button that match the coordinates I see for mouse clicks.
    The coordinates for mouse clicks seem to be relative to the top left corner of the table header (which would match the specification for mouse listeners). I haven't figured out how to get corresponding coordinates for the button. The coordinates returned by JButton.getBounds() seem to be relative to the top left corner of the panel. I hoped I could just add those to the coordinates for the panel to get coordinates relative to the table header, but JPanel.getBounds() gives me negative numbers for x and y (?!?). JPanel.getLocation() gives me the same negative numbers. When I tried JPanel.getLocationOnScreen(), I get an IllegalComponentStateException:
    Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
    Can someone tell me how to get coordinates for the button on the JTableHeader? Or is there an easier way to do this (some way to make the buttons actually work so I can just use an ActionListener like I normally would)?
    Here is relevant code:
    public class MyTableHeaderRenderer extends JPanel implements TableCellRenderer {
    public MyTableHeaderRenderer() {
      setOpaque(true);
      // ... set colors...
      setBorder(UIManager.getBorder("TableHeader.cellBorder"));
      setLayout(new FlowLayout(FlowLayout.LEADING));
      setAlignmentY(Component.CENTER_ALIGNMENT);
    public Component getTableCellRendererComponent(JTable table,
                                                     Object value,
                                                     boolean isSelected,
                                                     boolean hasFocus,
                                                     int row,
                                                     int column){
      if (table != null){
        removeAll();
        String valueString = (value == null) ? "" : value.toString();
        add(new JLabel(valueString));
        Insets zeroInsets = new Insets(0, 0, 0, 0);
        final JButton sortAscendingButton = new JButton("1");
        sortAscendingButton.setMargin(zeroInsets);
        table.getTableHeader().addMouseListener(new MouseAdapter(){
          public void mouseClicked(MouseEvent e) {
            Rectangle buttonBounds = sortAscendingButton.getBounds();
            Rectangle panelBounds = MyTableHeaderRenderer.this.getBounds();
            System.out.println(Revising based on (" + panelBounds.x + ", "
                               + panelBounds.y + ")...");
            buttonBounds.translate(panelBounds.x, panelBounds.y);
            if (buttonBounds.contains(e.getX(), e.getY())){  // The click was on this button.
              System.out.println("Calling sortAscending...");
              ((MyTableModel) table.getModel()).sortAscending(column);
            else{
              System.out.println("(" + e.getX() + ", " + e.getY() + ") is not within "
                                 + sortAscendingButton.getBounds() + " [ revised to " + buttonBounds + "].");
        sortAscendingButton.setEnabled(true);
        add(sortAscendingButton);
        JButton button2 = new JButton("2");
        button2.setMargin(zeroInsets);
        add(button2);
        //etc
      return this;
    }

    I found a solution to this: It's the getHeaderRect method in class JTableHeader.
    table.getTableHeader().addMouseListener(new MouseAdapter(){
      public void mouseClicked(MouseEvent e) {
        Rectangle panelBounds = table.getTableHeader().getHeaderRect(column);
        Rectangle buttonBounds = sortAscendingButton.getBounds();
        buttonBounds.translate(panelBounds.x, panelBounds.y);
        if (buttonBounds.contains(e.getX(), e.getY()) && processedEvents.add(e)){  // The click was on this button.
          ((MyTableModel) table.getModel()).sortAscending(column);
    });

  • Fiding valid idoc for the given sales document

    hi,
          Please send me the code for the 'finding whether valid IDOC  exists for a given sales document'..
    It is very urgent.....................
    Thanks in advance............

    If you are not familiar about manual steps check below..or else you can read directly from EDIDS table, just straight forward selection.
    VA02 or VA03
    >From menu>click System
    -->Click service for object
    -->Click Relationship
    -->You will see idoc number in case if order created from idoc
    Thanks,
    Narayan

  • The specified index is not valid for the given resource

    I am trying to follow the tutorial on how to get Labview working with Solidworks and the demo CNC robot that the example comes with. After I deploy all the axes and my computer and the assembly file I try and switch the scan engine to active mode but it won't let me. It pops up with an error;
    "An error occured while attempting to switch the I/O scan mode. The specified index is not valid for the given resource".
    I'm just trying to do a basic straight line move with one axis. Does anyone know how I can fix this? I updated softmotion with Sp1 already and did all the recommended updates.

    I talked to some of our developers to get some more ideas for this error. Try the following:
    Go to the file path C:\ProgramData\National Instruments\DeploymentFramework (it is a hidden file so you may need to change your settings to see it)
    Delete the contents of that folder.
    Restart LabVIEW
    Redeploy your axes and see if it works.
    If it does not, repeat the process but create a new project after LabVIEW restarts.
    Cameron T
    Applications Engineer
    National Instruments

  • 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

  • Using "All Calls" button for multiple lines on one phone

    I have several executive assistants that have multiple lines for executives that they answer calls for. We have added the "All Calls" button so they don't accidentally make outbound call using one of the executives lines. When the All Calls button is selected, all outbound calls are made using line 1. However, when a call comes in on one of the executives lines it doesn't show the name and number of the calling party unless you select the line.
    How can we make it so the name and number show on the inbound call while having the "All Calls" button selected?

    Little confused still by this, just want to make sure I'm clear.  My current set up with Asterisk is you make users which are extensions, and then enable voicemail on them, so for example:
    Extension 300 - Voicemail enabled
    Extension 301 - Voicemail enabled
    Extension 302 - No Voicemail
    Etc.  And it's there that you set the username/password for each extension.  So on a SIP phone, under Line 1 registration I'd have it register Extension 300, and line 2 could register Extension 301 and so on.  If someone calls extension 300, line 1 rings and if no answer goes to the voicemail box for 300.  If someone calls Extension 301, then line 2 on the phone rings and if no answer goes to voicemail for Line 2.
    I do understand what you mean how each phone is it's own "User", and so the way I have it set up now is my 7970 is my user, and it has Extension 300 with voicemail assigned to Button 1 which works fine.
    I just simply need a way so that Extension 301 shows up on Button 2 on the phone, so that I can select that line to make an outbound call (with a different caller ID), and if someone calls Extension 301, then that line on my phone with also ring, BUT will go to the voicemail box for 301.  I don't need my 7970 to light up that there's a vm or anything like that, it just needs to capture the vm.
    If I make a floating extension or extension mobility for a new user with extension 301 and enable voicemail, then calling 301 does go to its voicemail box, but I'm just not sure how I would have that show up on my 7970 as line 2 and ring on there and make outbound calls on there as well.  Thank you so much!

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

Maybe you are looking for

  • Ver. 7.1.3 will not install

    I have been trying to upgrade from an older version and kept getting the message "Cannot uninstall older version." I manually deleted the QuickTime folder, rebooted just to keep Windows happy and downloaded the installer. Now I am getting a msg. that

  • "From" header in Mail no longer working correctly.

    The "From" header in Mail is working differently, and not of any use, in Yosemite. Prior to the update I could click on a recipient's name, then click the "From" header above, and get a list of all emails from that particular recipient. Now, regardle

  • Component Panel ( Design mode) loosing custom components

    Wonder if anyone else encounter this phenomenon? After placing custom Flash components ( compiled intoa SWC file) in the project's <Libs> directory, they are available and working in Source mode, but you can't see them in the custom Folder (In the De

  • Sticky notes not saved - default notes on every start

    I could not save my sticky notes. When I start the Sticky notes, two default nots appear with some description about the application. I can delete them, add new notes, but after quit and restart the application, the two default notes appear again and

  • Flash movies in html

    I am having difficulty impanting a flash movie into my homepage. You can see my problems at the link below: VIEW SITE HERE problems: 1. The drop down menus from my navigation bar fall behind the flash movie. I've tried working with layers, but I can'