Checkbox and 2 functions

I have a form that lists all games for a college football
week. I am allowing users to select up to 7 teams. I am using
checkboxes b/c it is easier to unselect a game. One thing that is
important is if a user has select Team 1 for Game 1 and then for
some reason select Team 2 of the same game I need to have a script
that deselects Team 1. I have script that works for this. My
problem becomes when I use a cfif statement and do not have
consecutive GameID. For example, if a game has kicked off I do not
want to show that game. Or if a user has selected a game already I
do not want to show that game. This throws off my javascript and
while I can still deselect an opponent if the opposite opponent is
selected I can no longer use the count. Code is below, thanks.

I have but if I use radio then a user cannot uncheck as
easily. If I use a reset then it would reset all.

Similar Messages

  • How to Add Checkbox and icon in ALVGRID

    Hi Experts,
      i have one Requirement. i need to add Checkbox, Selectall,icon(Unlock or inactive) infront of Contracts of ALV GRID.How to achive that.
    Thanks,
    Venkat.

    Hi
    For check box
    At declaring field catalog using structure LVC_S_FCAT
    mark CHECKBOX = 'X' and also EDIT = 'X'.
    For reference check below subroutine in program BCALV_EDIT_05.
    form build_fieldcat changing pt_fieldcat type lvc_t_fcat.
    data ls_fcat type lvc_s_fcat.
    call function 'LVC_FIELDCATALOG_MERGE'
    exporting
    i_structure_name = 'SFLIGHT'
    changing
    ct_fieldcat = pt_fieldcat.
    *§A2.Add an entry for the checkbox in the fieldcatalog
    clear ls_fcat.
    ls_fcat-fieldname = 'CHECKBOX'.
    * Essential: declare field as checkbox and
    * mark it as editable field:
    ls_fcat-checkbox = 'X'.
    ls_fcat-edit = 'X'.
    * do not forget to provide texts for this extra field
    ls_fcat-coltext = text-f01.
    ls_fcat-tooltip = text-f02.
    ls_fcat-seltext = text-f03.
    * optional: set column width
    ls_fcat-outputlen = 10.
    append ls_fcat to pt_fieldcat.
    endform.
    For Icon:
    CONSTANTS:
         icon_id_failure            LIKE icon-id   VALUE ' ((Content component not found.)) @',
         icon_id_okay              LIKE icon-id   VALUE ' ((Content component not found.)) @'.
    TYPES: BEGIN OF ls_tab,
           matnr LIKE equi-matnr,
           maktx LIKE makt-maktx,
           b_werk  LIKE equi-werk,
           b_lager LIKE equi-lager,
           lgobe LIKE t001l-lgobe,
           sernr LIKE equi-sernr,
           icon LIKE icon-id,
           objnr LIKE equi-objnr,
          END OF   ls_tab.
    *Table that display the data for the ALV.
    DATA: itab  TYPE ls_tab OCCURS 0 WITH HEADER LINE.
        PERFORM get_h_date .
        IF h_date => sy-datum .
          itab-icon = icon_id_okay.
        ELSE .
          itab-icon = icon_id_failure.
         ENDIF.
    Regards
    Sudheer

  • Checkbox and report page in new window

    Hi team,
    I have the following problem.
    On a page I display a report where each row has a checkbox.
    The user can check a row and press a button (button in region)to produce a more detailed report. I want to display this report in a new window. I know that I can use the javascript PopUpURL or PopUp2. The issue I have is that I have to process the checkbox with function htmldb_application.g_f01(i). I can't use that directly. So what I have done is create a hidden field and assign the return value of the formentioned function to it in a Page processing computation. The problem I hit is that page processing is/has not taken place. Therefor the call to the new page is missing a paramater because the hidden field is empty.

    Hi Raymond,
    1. Create a URL redirect branch back to the same page when the VIEW button is pressed
    "f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:&REQUEST.:&DEBUG.:"
    2. Create an Hidden Item P1_HIDDEN_ITEM
    3. Create an after submit computation to null the hidden value item
    4. Create an after submit computation to find out which check box is checked.
    Dynamically generate the popup URL you would like to view into the Hidden Item.
    P1_HIDDEN_ITEM
    3. Create a JavaScript function called showpopup in the page HTML Header region
    <script>
    function showpopup () {
    if ("&REQUEST." == "VIEW")
    if ("&P1_HIDDEN_ITEM." != null)
    popupURL('&P1_HIDDEN_ITEM.');
    </script>
    4. Call the showpopup function in on load JavaScript region. onLoad="showpopup();"
    Try this and see if it works for you.
    Also I would have changed the Checkbox to a Radio button group because this will limit the user to select only one row.
    Vivek Ananda

  • How to find out list of procedures and functions inside a package

    How I can find out the list of Procedures and Functions inside a Package.

    Look at ALL_PROCEDURES and ALL_ARGUMENTS.

  • Unit testing, integration and functional testing

    Hello all,
    I would like to know the difference between Unit testing, integration and functional testing. And also what are the testing tools that are more commonly used?
    Thanks,
    Maxx

    Hi,
        Unit testing :
                    A complete cycle of each  module will be tested
                    ie for PP Right from requirements to planned orders /production orders
                    confirmation .
        Integration testing:
                    Here cross module testing will be carried out.
                     ie PP and MM integration
                        After confirming production order a GR is made /billing is carried out
                        and delivered.
          Functional testing:
                    This testing is carried out to see whether the system can with stand l the loads during processing by users.
                    Stress test and volume test.
                Regards,
                nandha

  • Diff b/w BAPI and Function Module.

    What is the difference between BAPI and Function Module....
    By Interface programming do we mean posting data thru  BAPI,BDC....

    Hi Alex,
    BAPI: Standard Interface in the R/3 system that allows the system to communicate with components of other business suites.
    FM: These are the procedures that are defined in the Function Groups and can be called from any ABAP Program. FM allow you to encapsulate and reuse global functions int he R/3 system.
    The main basic difference between BAPI and FM are
    1) All BAPIs are FM but not all FMs are BAPIs
    2) BAPIs are remote enabled
    3) BAPIs interface will not have a changing and exceptions. They can not be used to have use dialog.
    Interface programs can post data to SAP either through a BDC, BAPI, IDOC etc. It depends on the type of requirement.
    Hope this solves your question.
    Enjoy SAP
    Rajasekhar

  • Use of Procedure and Functions in ADF BC

    Hi,
    In ADF 11g
    1. can I use oracle function and procedures ( having in and OUT parameters) to expose as service interface
    2. if yes , How can this be done. and what are the allowed data types as input to procedure/function and can be returned by procedure/function
    3. How the transaction control will be achieved using ADF BC service interface.
    E.g. one ADF BC creates orders in order details and second creates Order lines in Order lines table. Now if order is created successfully but line creation fails then I want order to be rolled back also.
    Thanks.

    google it out.
    How to get two out param which is used in Procedure
    http://sameh-nassar.blogspot.in/2010/01/create-plsql-function-and-call-it-from.html
    http://adf-tools.blogspot.in/2010/09/adf-function-call-from-el-statement-in.html
    http://adf-tools.blogspot.in/2010/03/adf-plsql-procedure-or-function-call.html
    http://adfhowto.blogspot.in/2010/11/call-db-procedure-or-function-from-adf.html
    Re: use of Procedure and Functions in ADF BC

  • Problem with checkbox and drop down menu

    I am using DW8 with PHP/MySQL.
    I made a insertion form and a couple of the fields are
    checkboxes and another is a drop down menu. Everything works fine,
    however, when I create an update form and the recordset calls the
    data it doesn't retain its values on those items.
    For example, if I checked a box when inserting the record and
    then call the data up for the update form, the box is not checked,
    making the user believe it was never checked in the first place.
    The same thing goes for the drop down menu. If I have 3
    options in the menu and someone selects the third one, when the
    update form is used it defaults to the first option automatically
    instead of actually calling up the original value selected.

    The fact that two scripts do not work together does not mean
    there is a bug in the RH script. It is simply that they were not
    designed by their respective developers to work together. This
    happens with multiple scripts in any html file.
    Try creating a new project and then importing just this topic
    into it. Does it still have the problem?

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • How to realize Checkbox and Radio Buttons based on Attributes in JHeadstart

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    The module "ORDER" contains, among other things, a checkbox and radio buttons based on database columns(VARCHAR2).
    The column(checkbox) named PAYMENT_TYPE contains the values CASH and CREDIT and the column(radio button) called ORDER_FILLED contains the values Y and N.
    After creating the business components, I set in JHeadstarts Application Definition the Display Type of these two attributes to checkBox and radio-horizontal.
    I created a dymanic domain for the radio-horizontal and a static domain for the checkBox.
    The radio-horizontal within the dymanic domain works nearly correct.
    I set the Data Collection in this dynamic domain to the required Group and the Value and Meaning Attribute to the necessary Attribute.
    Within the JSF- Page the values are shown right but unfortunately there are too many radio buttons available. Instead of displaying the two radio buttons CASH and CREDIT were many CASH and CREDIT radio buttons shown.
    I can´t find any solution for this case.
    The problem with the checkBox is that therfore a static domain is required but I want to show the value of the checkBox based on the described attribute, like the handling of the radio horizontal.
    But I don´t know how to implement this, if it is possible.
    I´m using JHeadstart v10.1.3.2 and I´m pleased about any reply or solution.
    Best regards
    Chris

    Chris,
    If you run the application module tester, and query the view object usage underlying your dynamic domain, how many rows does it return? It should return only two rows, one for CASH and one for CREDIT. If more than two rows are returned, your query is wrong.
    What is the problem with using a static domain for the checkbox?
    Steven Davelaar,
    JHeadstart Team.

  • Qosmio X300 - Remote control and function bar for windows seven

    Hi,
    I have bought this PC with Vista x64. I have upgraded it to windows 7 (x64)
    But I didn??t find driver for remote control and function bar. The drivers for Vista *64 don't work.
    Help me plz.
    Thanks for reading
    (Sry for my bad English)

    Hi
    The Win 7 drivers are not available for this unit at this time.
    But I found some Win 7 drivers on the Toshiba US driver page.
    Of course you will not find exactly the same X300 series but you can choose the drives released for Qosmio X305-xxxx
    There is no big difference between X300 and X305 so the Win 7 drivers should work too

  • The message function on my Ipad just quit working.  I was using it while in Mexico and it just quit.  I have come home and synced my Ipad with Itunes and function still does not work.  How do I get this function to work again?

    The message function on my Ipad just quit working.  I was using it while in Mexico and it just quit.  I have come home and synced my Ipad with Itunes and function still does not work.  How do I get this function to work again?

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • Creation and Change Date for Tcode and Function Groups

    Hello All,
    I need to display the Creation and Change Dates for Custom Tcodes and Function Groups in a Report. Can anyone please let me know the logic of retrieving it.
    regards,
    Mahesh

    Hi,
    TADIR and TRDIR is the tables where you can find all these data
    Regards
    Sudheer

  • Are the Pl/sql procedure and function atomic by themself

    i want to ask a question does oracle pl/sql procedure and function support Atomicity for the database by themself , or they became atomic incase we call them using begin -- end;

    You appear to be discussing transaction scope which is completely independent of PL/SQL blocks like procedures or how you call procedures. It's all in where commits (or rollbacks) are issued.
    If you have a procedure like this
    CREATE PROCEDURE p1
    AS
    BEGIN
      INSERT INTO some_table( key, value ) VALUES( 1, 'Foo' );
      INSERT INTO some_table( key, value ) VALUES( 1, 'Bar' );
    END;where the first statement succeeds and the second statement fails as a result of a duplicate key, there will still be a Foo row in the table but the procedure will have thrown an exception. The caller of the procedure may choose to commit or rollback the change-- that will determine whether the first statement's results are made permanent. If you have a procedure like this,
    CREATE PROCEDURE p1
    AS
    BEGIN
      INSERT INTO some_table( key, value ) VALUES( 1, 'Foo' );
      commit;
      INSERT INTO some_table( key, value ) VALUES( 1, 'Bar' );
    END;the commit will make the first insert permanent regardless of whether the second statement fails no matter what the calling code does (that's one reason that putting commits in stored procedures is generally a bad idea-- the caller is in a much better position to know what other uncommitted work has been done and whether it is safe to commit.
    Justin

  • Compare methods in C # to connect to SQL Server database in terms of speed,quality and functionality.

    Please compare
    methods in C # to connect to SQL Server
    database (for example,
    3-tier architecture of traditional and 
    entity Framework(linq to entity or linq to sql object model)
    and Linq to SQL) in terms of speed, quality and functionality
    to give me tips.
    Thank you.
    Mojtaba Malakouti.

    That means we need to compare and post the results here?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Difference in between account currency and functional currency

    Hi Sap Experts,
    What is the difference in between account currency and functional currency.
    In which table account currency and functional currency will be stored.
    Regards,
    Rajprabhakar
    Moderator: Please, avoid asking basic questions

    A Payer is the individual or company who settles the invoices foa a service or for delivered goods.
    Whereas the account group determines:
    Which screens and fields are necessary for entering master data
    Whether you can or must make an entry in these fields
    How master record numbers are assigned (externally by you or internally by the system) and the number range from which they are assigned
    Which partner functions are valid
    Whether the business partner is a one-time customer or one-time vendor.
    Reward if useful.
    Amruta

Maybe you are looking for

  • Specify custom download path for PDF files in Reader 9 ?

    Instead of having Adobe Reader 9 save downloaded PDF files in IE7's temporary internet files folder, I would like to save them in a different folder. Is there a setting to change this (registry or otherwise?)

  • How to convert a DVD disc for use in Final Cut Express 3.5

    I have a DVD disc of a conference which I would like to edit in FCE 3.5. I would like to be able to import it into my FCE project, ad use it without having to the render it in FCE. Is it possible to rip or import the disc (with Handbrake?) and then e

  • Please help me to create the BAPI

    I AM CREATING CUSTOM BAPI  IN sap BOR. IN THE FUNCTION MODULE I HAVE USED ONE ITERNAL TABLE AND ONE WORK AREA. I HAVE CREATED THE STRUCTURE OF THE ITAB ASSOCIATED WITH THE FUNC MODULE. dO I NEED TO CREATE THE STRUCTURE OF THAT WORKAREA ALSO ? IF SO 

  • Incompatible Objects in Designer

    Hi, I am having 4 Folders(classes) in my Universe, how to set incompatible objects. Ex: Folder1: Folder2: Folder3: Folder4: Compatible folders(combination): 1-->Folder1 & Folder2 2-->Folder1 & Folder3 3-->Folder1 & Folder4 If i selected one object fr

  • Default values for dependent drop down menu

    Hi! I did create an insert record page that lets the user put in information using text fields. In addition the form has a dependent drop down menu for a category and then depending on the chosen category, the user is presented with choices in a seco