Insert several lines of Radio button

I need to do multiple inserts in an Access table from a form her you choose multiple of any number of questions answers. As the fields of the form are radio buttons I can't loop through a list to process inserts. I'm struggling with the creating a loop to do inserts since each form field response boxes each has a different/unique name. Any suggestions on how to configure the loop would be appreciated. Here is a code example.

The solution that solved the problem is the code "["Answer"& loop] #orm # I initially tried "#form." Answer ' & loop # ", but once I applied your code, the loop worked fine.
Thanks for the help.

Tags: ColdFusion

Similar Questions

  • Insert several lines in trigger?

    can someone tell me how can I insert several lines in a trigger. I tried several ways, and so far nothing works.

    create or replace

    USER_GROUPS_TRIG RELAXATION

    before INSERT ON USER_GROUPS

    FOR EACH LINE

    DECLARE

    number of max_id;

    BEGIN

    SELECT TO_NUMBER (new_id) + 1 as new_id in max_id OF NEW_ID_VW;

    INSERT THE TBL1

    (USER NAME)  VALUES

    (max_id,: NEW.) (NEW); -It works very well and needs no adjustment, 1 inserted row.

    MERGE INTO GROUP_MAPPING HAS

    USING (SELECT USER_ID, GROUP_ID ADMIN_GROUPS_VW) B

    ON (A.USER_ID = B.USER_ID)

    WHEN NOT MATCHED THEN

    INSERT (A.USER_ID, A.GROUP_ID)

    values (b.user_id, b.group_id);

    -FOR V IN 1.10 IN LOOP

    -INSERTION IN GROUP_MAPPING (user_id, group_id)

    -(select user_id, group_id from admin_groups_vw);

    -END LOOP;

    -INSERT IN GROUP_MAPPING

    --(USER_ID, GROUP_ID) VALUES

    -(max_id, (select group_id from admin_groups_vw));

    -None of these POPs an error, just does not have the insert (there are several records, so there should be several inserted rows), I tried to insert, loop and fusion.

    END;

    Thanks for any help.

    Hello

    Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.

    Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

    If you ask on a DML statement, such as CREATE TABLE, INSERT, INSERT statements must re-create the tables as they are to the DML, and the results will be the content of the or a modified tables when it's all over.

    In this case, after complete relaxation and a DML statement that triggers, too.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    Is admin_groups_vw a notice?  This it is, and the view depends on the table you are inserting (user_groups), then you will get a runtime error because the picture is changing.  A FOR EACH ROW trigger on user_groups can't question user_groups.  You said: "none of these POPs an error", but are you sure you're not getting a runtime error and just hide?

  • How to manage the current line with radio button selection?

    Hello world

    I have an ADF page with a table and a search"" button.
    I created a new attribute with VARCHAR2 (1) in the VO and dragged this attribute as the first column of the table. And changed this first column of the option button to select only a single line at a time.
    By clicking on the "Search" button, I need to get the current selected row values.

    How can I get the values of selected line?
    What code should I write to get the values of the selected line in the method of binding the button 'search '?

    All suggestions will be really useful.

    Thank you.

    Hello Kumar,
    I have a few comments on your case.
    >
    I created a new attribute with VARCHAR2 (1) in the t
    >
    1. you should create this attribute in the object of the entity, and then add it to the view object.
    2-do you need this radio that a button is defined for all lines? If yes then you need handle the case where the user set several lines and clear the value of the attribute for all other lines.

    >
    How can I get all the values of the current row in backing bean, binding of the Find method (method)?
    can u please give me the code for this?
    >
    If you mean by the current row is the row for which the value of the selected attribute is defined (the radio button is set to the rank), then you can write a method in the viewObjectImpl class and expose it to the customer interface and call it from your bean.
    Here is a sample Department table in the HR schema.

    //This method is written in DepartmentsViewImpl
    public Row getSelectedRadioRow(){
                //create a second row set to not impact the row set used in ADF
                RowSet duplicateRowSet = this.createRowSet("duplicateRowSet");
                //get the current row of the table to set it back after re-executing the VO
                DepartmentsViewRowImpl currentRow = (DepartmentsViewRowImpl)this.getCurrentRow();
                Row[] filteredRows = duplicateRowSet.getFilteredRows("IsSelected", "1");
                DepartmentsViewRowImpl row=null;
                if(filteredRows.length>0){
                    row = (DepartmentsViewRowImpl)filteredRows[0];
                    System.out.println("Department Name " + row.getDepartmentName());
                     }
                this.setCurrentRow(currentRow);
                duplicateRowSet.closeRowSet();
                return row;
            }
    
  • Insert several lines with dynamic data

    Hello
    When I do an insert into a table that has several lines of dynamic information. on
    a page, it inserts all rows that are dynamically filled. I want only what he
    to insert the lines that I choose the initials on. How can I do? Let's say I
    have 5 items that are displayed on a page and I want to insert only original
    the first 2 because the last 3 are left blank, how should I do this? I tried
    implementation of an if statement that says:

    < cfif "form. "Help of # PNR_Approval_Initials #" NEQ "" > "".

    Then make the insertion in the table

    < cfelse >
    < / cfif >

    I have this game were also up in a loop that says:

    < cfloop index = "help" list = "" #form.listofids # "delimiters =",">"

    Here is the code for just the insertion. I also have a code here
    Update another table. I got this to work, so I just try to get the insertion
    works fine for the moment. I can not use this where the query statement:
    Where ItemID = #id # because I'm trying to insert into the table of approval, not
    the items table. The table is just updated with some other info. in
    a few other input boxes.

    < cfloop index = "help" list = "" #form.listofids # "delimiters =",">"
    < cfif "form. "Help of # PNR_Approval_Initials #" NEQ "" > "".

    < cfquery Datasource = '#application. DataSource #">"
    Insert into accreditation (APV_ItemID,
    APV_ECID,
    Document_Type,
    Approval_Initials)

    Values (' #Evaluate ("form.) (' ItemID # help # ") #',
    ' #Evaluate ("form. ("ECID # help #") #',
    < cfif isDefined (form '. ') ("Help of # PNR_Doc_Type # ') and
    "form. "Help of # PNR_Doc_Type #" NEQ "" > "".
    ' #Evaluate ("form. ("Help of # PNR_Doc_Type # ') #',
    < cfelse >
    NULL,
    < / cfif >

    < cfif isDefined (form '. ') ("Help of # PNR_Approval_Initials # ') and
    "form. "Help of # PNR_Approval_Initials #" NEQ "" > "".
    ' #Evaluate ("form. (Aide de # PNR_Approval_Initials #») #
    < cfelse >
    Null value
    (< / cfif >)

    < / cfquery >

    < / cfif >
    < / cfloop >

    On the page display, just a table of dynamic info. Here are the 4
    things that I have on this page that needs to be inserted to the database.

    < input type = "hidden" name = "' ECID #ItemID #" value = "#ECID #" > "
    < input type = "hidden" name = "' ItemID #ItemID #" value = "#ItemID #" > "
    < input type = "hidden" name = "" PNR_Doc_Type #ItemID # ' value = "PNR Req" > "

    < td align = "center" >
    < cfif Approval_Initials is not "" > "".
    #Approval_Initials #.
    < cfelse >

    < select name = "PNR_Approval_Initials #ItemID #" >
    < option value = "" > select initials < / option >
    < cfloop query = "ShowInitials" >
    < Cfif Engineer_Initials EQ 1 >
    < option value = "#Initials #" > #Initials # < / option >
    < / cfif >
    < / cfloop >
    < / select >

    < / cfif >
    < table >

    Can someone help me please on just the insertion in the database so that it
    will insert on the lines that I chose the initials on and not others? Thank you.

    Andy

    You almost managed, but I see that you have commented.

    (" The help of # PNR_Approval_Initials # ') AND form ["PNR_Approval_Initials # help #" ""] NEQ "" >

    Do things here

  • Several groups of radio button

    I use Dreamweaver CS4 and I'm creating a purchase order on my site and I have added several radio button groups, but whenever you select one, it cancels the other. Example: I

    t-shirts: 1 2 3 4 5

    caps: 1 2 3 4 5

    etc., whenever you chose 2 caps, it cancels your order of t-shirt etc. How can I fix? Who would have thought forms would be so difficult. And then try to make a work form... sheesh. I spent too many hours on it wayyyyy. Can anyone pleaseeeeee help me. I am eternally grateful

    Exactly what I said.  The name attribute on each of these groups of radio are all 'amount '.  You must name them stuff like "Quantity_Tshirts" and "Quantity_Caps" for each group.  Otherwise, the HTML code reads all groups as a place of distinct groups.

    In the properties of the window now for each group, go through the options and the value to the far left is the name.  Make sure that each group has the same name in this field.

    In the future when you add a group of Radio make buttons that each name you give is unique on this page, otherwise it will treat you just as if it was the same group.

  • Several sets of radio buttons no longer works

    Hi all:
    My first post so I apologize in advance if I don't do it correctly.

    I have a few web forms with multiple groups of radio buttons on them that are suddenly errorring on since we moved to CF 7. I started tinkering with a single shape that I posted the code and kept cutting down to simpler code which begins to produce the error. If I use only 1 group of radio buttons, everything works fine, but the minute I add the second, all up a message "syntax error (lack operator) in a query expression. Each radio button group has its own group name and a checked value. This is the very simple code and very frustrating, why it suddenly stopped working so any help is welcome.

    Here is the code for the form:
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < title > Untitled Document < /title >
    < / head >
    < body background = "white" marginheight = "0" marginWidth = "0" >
    < action = "testSub.cfm cfform" method = "POST" > "
    < table width = "95%" border = "0" cellpadding = "0" >
    < b >
    < td width = "24%" > < img src = "survey.jpg" border = '0' > < table > "
    < td width = "76%" > < p > This is our desire to ensure that this MID meets the needs of
    our customers. XXXXXXX
    < p > < / p >
    <p>*****************************************************<br>
    < /p > < table >
    < /tr >
    < b >
    < td colspan = "2" > < p > please answer questions 1-4 with a rating of 1-5, 1 being POOR and 5 being EXCELLENT. < /p >
    < p > you are not required to provide this information. < /p >
    < p > < police = "Arial, Helvetica, sans-serif" size = "2" > My Name (first & amp;
    The last): < / police > < police = "Arial, Helvetica, sans-serif" size = "2" >
    < cfinput type = "Text" name = "poc" required = "" size = "50" maxlength = "50" >
    < br >

    < b > 1. Has been
    your polite and courteous service technician? < /b > < br >
    < cfinput type = "radio" name = "polite" value = "1" >
    1
    < cfinput type = "radio" name = "polite" value is "2" >
    2
    < cfinput type is "radio" name = value "poli" is checked "3" >
    3
    < cfinput type is "radio" name = "polite" value is "4" >
    4
    < cfinput type = "radio" name = "polite" value = "5" >
    5 < /p >
    < p > < br >
    < br >
    2.
    your polite and courteous service technician? < /b > < br >
    < cfinput type = "radio" name = "knows" value = "1" >
    1
    < cfinput type = "radio" name = "knows" value = "2" >
    2
    < cfinput type = "radio" name = 'knows' value '3' = checked >
    3
    < cfinput type = "radio" name = "knows" value = "4" >
    4
    < cfinput type = "radio" name = "knows" value = "5" >
    5 < /p >

    < input type = "submit" name = "btnSubmit" value = "Submit my comments!" >
    < input type = "reset" name = "reset" value = "reset form" > < br >
    < br >
    < / cfform >
    < b >
    < td > < table >
    < td > < table >
    < /tr >
    < /table >
    < / body >
    < / html >
    ****************************************************************************************** **********************************
    The ACTION code
    < html >
    < head >
    < title > test < /title >
    < / head >

    < body >
    < IsDefined ("FORM.btnSubmit") CFIF >
    < CFQUERY NAME = "Add" datasource = "newMID" >
    (Survey) INSERT INTO
    POC,
    polished,
    not know
    )

    VALUES)
    "#poc, #
    "#polite #
    "#know, #

    )

    < / CFQUERY >
    < / CFIF >

    < cfoutput >
    Thank you. Your COMPUTER has been forwarded to our mailbox NHCPR IT.

    < / cfoutput >

    < intrusion via cfmail to = "[email protected]."
    FROM = "[email protected]".
    OBJECT = "investigation form" >

    Polish: #polite #.
    Find out: #know #.
    POC (opt.): #poc #.


    < / intrusion via cfmail >
    < / body >
    < / html >

    I think that TIME is a word reserved in most of the db - do not use it as
    table/column name, or use your specific db escape reserved words
    table/column names (i.e. in MS Access surround with [] like [time]

    HTH

    ---
    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com

  • Procedure to insert several lines

    create or replace procedure relevent_doc_after_insert (JOBNUMBER IN varchar2,
    DOCNAME IN VARCHAR2)
    IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    vDocName VARCHAR2 (80);

    CURSOR insertAfterdata
    IS
    SELECT mnd_doc_name
    OF clm_min_doc_to_process
    WHERE mnd_doc_name! = DOCNAME;


    BEGIN
    OPEN insertAfterdata.
    LOOP
    EXTRACTION insertAfterdata
    IN
    vDocName;

    EXIT WHEN insertAfterdata % NOTFOUND;

    INSERT INTO clm_relevent_doc (rd_id,
    rd_job_no,
    rd_doc_name,
    rd_created_user,
    rd_created_date,
    rd_status)
    VALUES (relevant_doc_sequence. NEXTVAL,
    JOBNUMBER,
    vDocName,
    'system ', he said.
    To_char (SYSDATE, "yyyy-mm-dd HH12:MI:SS"),
    'pending');

    COMMIT;
    END LOOP;
    CLOSE InsertAfterdata;

    EXCEPTION
    WHILE OTHERS THEN
    NULL;

    END;



    Above is my procedure

    I pass below the settings during the execution
    JOBNUMBER = 123
    DOCNAME = driving licence



    When the CURSOR query get the 3rows as a result but insert several rows in the clm_relevent_doc table, why did this happen.

    It does not work properly, is it not? If this isn't the case, then please point where.

    Also as knani questioned, and so I did (although not confirmed), you really need the independent transaction? can you justify using autonomous transactions, in this procedure?

    select *
      from clm_min_doc_to_process;
    
    MND_ID                 MND_DOC_NAME       MND_DOC_CODE
    ---------------------- ------------------ --------------------
    1                      Driving Licence    DL
    2                      SA Report          SARPT
    3                      Estimate           EST
    4                      Photos             PHOT    
    
    select *
      from clm_relevent_doc;
    
    RD_ID                  RD_JOB_NO       RD_DOC_NAME    RD_CREATED_USER   RD_CREATED_DATE  RD_ADD_DOC_NAME  RD_UPDATE_USER   RD_REQUEST RD_REQUEST_METHOD RD_STATUS RD_RECEIVED_DATE_TIME
    ---------------------- --------------- -------------- ----------------- ---------------- ---------------- ---------------- ---------- ----------------- --------- --------------------- 
    
    set serveroutput on;
    begin
      relevent_doc_after_insert(123, 'Photos');
    end;
    
    anonymous block completed
    3 rows inserted
    
    select *
      from clm_relevent_doc;
    
    RD_ID                  RD_JOB_NO       RD_DOC_NAME     RD_CREATED_USER RD_CREATED_DATE     RD_ADD_DOC_NAME RD_UPDATE_USER RD_REQUEST RD_REQUEST_METHOD RD_STATUS RD_RECEIVED_DATE_TIME
    ---------------------- --------------- --------------- --------------- ------------------- --------------- -------------- ---------- ----------------- --------- ---------------------
    1                      123             Driving Licence system          2013-01-21 06:43:23                                                             pending
    2                      123             SA Report       system          2013-01-21 06:43:23                                                             pending
    3                      123             Estimate        system          2013-01-21 06:43:23                                                             pending                        
    
  • Insert the statement with the subquery to insert several lines

    Hi friends,

    Please find below mentioned query and error. Also suggest me to go forward.

    SQL > INSERT INTO FM_TRAN_DOC_NO (TDOC_COMP_CODE,

    2 TDOC_TRAN_CODE,

    TDOC_ACNT_YEAR 3,.

    TDOC_CUR_NO 4,.

    TDOC_MAX_NO 5,.

    TDOC_CAL_YEAR 6,.

    TDOC_PERIOD 7,.

    TDOC_DIVN_CODE 8,.

    TDOC_DEPT_CODE 9,.

    TDOC_CR_UID 10,

    TDOC_CR_DT 11,

    TDOC_UPD_UID 12,

    13 TDOC_UPD_DT)

    14 SELECT '001',

    15 (SELECT DISTINCT FM_TRAN_DOC_NO TDOC_TRAN_CODE

    16               '6',

    17               '0',

    18 '9999',

    19 NULL,

    20 NULL,

    21 NULL,

    22 NULL,

    23 "AGT,"

    24 TO_DATE (SYSDATE),

    25 NULL,

    26 TO_DATE (SYSDATE) FROM DUAL;

    (SELECT DISTINCT FM_TRAN_DOC_NO TDOC_TRAN_CODE),

    *

    ERROR on line 15:

    ORA-01427: einreihig subquery returns multiple rows

    +Untested.

    When values except 'TDOC_TRAN_CODE' are hardcoded, there is no need to select double.

    Something like that?

    INSERT INTO FM_TRAN_DOC_NO)

    TDOC_COMP_CODE,

    TDOC_TRAN_CODE,

    TDOC_ACNT_YEAR,

    TDOC_CUR_NO,

    TDOC_MAX_NO,

    TDOC_CAL_YEAR,

    TDOC_PERIOD,

    TDOC_DIVN_CODE,

    TDOC_DEPT_CODE,

    TDOC_CR_UID,

    TDOC_CR_DT,

    TDOC_UPD_UID,

    TDOC_UPD_DT

    )

    SELECT DISTINCT

    '001',

    TDOC_TRAN_CODE,

    « 6 »,

    '0',

    "9999",

    NULL,

    NULL,

    NULL,

    NULL,

    "AGT,"

    TO_DATE (SYSDATE),

    NULL,

    TO_DATE (SYSDATE)

    OF FM_TRAN_DOC_NO;

  • Need help to insert several lines using PL/SQL

    Hi gurus,

    I wrote a simple PL/SQL to insert the recrods in a table. It works fine if the sql script that is stored in the column to the table TEST_VALIDATION SCRIPT returns a single line. Can you get it someone please let me know a better way to insert multiple results returned by the script? Rest columns can be duplicated.

    DECLARE

    p_rows default NUMBER of 0;

    CURSOR C1_TV
    IS
    SELECT ID, DESCRIPTION, TEST_VALIDATION SCRIPT;

    BEGIN

    FOR C1_TV_REC in C1_TV
    LOOP

    Run immediate C1_TV_REC. SCRIPT in p_rows;

    INSERT INTO THE VALIDATION
    (END_DATE,
    VALIDATION_ID,
    VALIDATION_DESCN,
    VALIDATION_COUNT
    )
    VALUES
    (
    (select sysdate to DOUBLE),
    C1_TV_REC.ID,
    C1_TV_REC. DESCRIPTION,
    p_rows
    );

    COMMIT;

    END LOOP;

    END;
    /

    Please let me know if this isn't clear.

    Thank you
    Shash

    You need something like that

    declare
      p_rows dbms_sql.number_table;
      i pls_integer;
    begin
      execute immediate SCRIPT bulk collect into p_rows;
      i:=1;
      loop
        exit when i>p_rows.count;
        insert... p_rows(i)....
        i:=i+1;
      end loop;
    end;  
    

    or the much faster method (if it works in your case)

    declare
      p_rows dbms_sql.number_table;
      i pls_integer;
    begin
      execute immediate SCRIPT bulk collect into p_rows;
      forall i in p_rows.first..p_rows.last
         insert into table (field) values (p_rows(i));
    end;  
    

    And why you use

    (select sysdate from DUAL)
    

    Just use

    sysdate
    

    Published by: Oleg Gorskin the 12.01.2010 06:51
    Add method with forall

  • Insert several lines of table1 from table2

    $selectSQL = sprintf ("SELECT * FROM 'completetransaction'")

    WHERE "merchant_id" = %s

    (AND "com_tran_date" = %s", GetSQLValueString ($merchantid,"text"), GetSQLValueString ($tran_com_date, 'date'));

    $Result1 = mysql_query ($selectSQL, $conn) or die (mysql_error ());

    for example, the above query returns two rows

    How can I insert it to table (deposit_transaction) another

    How should I fetch the data from the query above and insert it into deposit_transaction.

    If I need to use the loop... How should I build it

    $insertSQL = sprintf ("INSERT INTO ' deposit_transaction'('transactionid', 'merchantid', 'quantité', 'rolling_reserve', 'tdr', 'merchant_money', 'depositdate') VALUES (%s, %s, %s, %s, %s, %s %s)", GetSQLValueString ($transactionid, "int"), ")

    GetSQLValueString ($merchantid, "text"),

    GetSQLValueString ($amount, "int"),

    GetSQLValueString ($rr, "int"),

    GetSQLValueString ($tdr, "int"),

    GetSQLValueString ($mm, "int"),

    GetSQLValueString ($depositdate, 'date'));

    $Result1 = mysql_query ($insertSQL, $conn) or die (mysql_error ());

    Looks good except that your SELECT statement does not include the column 'depositdate' the insertion fails. Fix that and it should work.

    I also ask you to standardize on your database table and column name conventions. You have some with underscores and other free features. It should be consistent. Also, make sure that your column names clearly have their meaning. That means "tdr"?

  • Database Connectivity Toolkit (insert multi line)

    Hi all. I recently got the toolkit of connectivity (DBCT) database on LabVIEW 2016 and I try to insert several rows in a database.

    Using a sine signal input I tried to insert 50 rows in an iteration, but each method I tried returned 50 values in a line. The end of the constant of the line and table using chain worksheet, returned what looked like 50 lines, but when I questioned "SELECT COUNT (*) FROM... "the number of rows equals the number of iterations.

    On another post on the forum, someone suggested that it is not possible to insert several lines using the DBCT. Can anyone confirm this?

    I wrote a code that allows me to insert 3 rows in an iteration, under a single connection. However, this method is very time consuming and would not work for large amounts of data.

    Can anyone think of a better way to do it?

    Thanks in advance,

    Lisa

    Create your own query, and use the query execute VI.

  • How to insert multiple lines using a single query

    Hi all

    How to insert multiple lines using a single query to the emp table?
    I have the number of rows to insert into table x. consumes a lot of time. I tried to insert several lines using a single query, but get errors. I know exactly the query to do this.


    Thank you
    Sunil

    Like this?

    SQL> create table test(id number , dt date);
    
    Table created.
    
    SQL> insert into test values(&a,&b);
    Enter value for a: 1   --- It asked me and I entered 1
    Enter value for b: sysdate  --- It asked me and I entered sysdate
    old   1: insert into test values(&a,&b)
    new   1: insert into test values(1,sysdate)
    
    1 row created.
    
    SQL> 
    

    g.

  • Several radio buttons per line in the interactive report

    I added the code by radio buttons using Vincent Deelen "in a report of the APEX.

    Vincent Deelen: Using radio buttons in a report of the APEX

    It works exactly like his blog says that it will be a problem.

    My interactive report has more than one page of data. Whenever I click to go to the

    second page of data, the click event on the radio buttons in the dynamic action no longer works.

    I leave the page elements that stores my key no hidden values, and they do not change, once I have change the pages in my interactive report.

    Any ideas as to what to do or something I'm missing.

    Apex 4.2.1

    Oracle 11g Server

    theme of blue reagent 25

    Here's my query

    *********************************************************************************************************

    Select q_cev,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'Y ',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'yes ', he said.

    p_attributes = > "class ="gmpickflag01 flagY"") "

    as RBYES,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'n',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'no ', he said.

    p_attributes = > "class ="gmpickflag01 flagN"')"

    as RBNO.

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > "U."

    p_selected_value = > decode (gmpick_flag01, null, 'U',

    'U', 'U', gmpick_flag01),

    p_display = > "undecided."

    p_attributes = > "class ="gmpickflag01 flagU"')"

    as RBUND,

    sort_qkey1, sort_qkey2, sort_qkey3,

    q_key1_trans, q_key2_trans, q_key3_trans

    from cts_ajha_q_ref LEFT OUTER join cts_gen_multipick

    on (cts_ajha_q_ref.q_cev = cts_gen_multipick.gps_cev

    and cts_gen_multipick.gmpickcode = 'CTS551HZGRCKLIST01. '

    and cts_gen_multipick.op_cev =: P155102_OP_CEV)

    where cts_ajha_q_ref.cts_no_show is null

    and cts_ajha_q_ref.cts_showflag01 is not null

    *********************************************************************************************************

    I created a dynamic Action

  • EditEditCopyCopyDeleteDelete4005Leaseinfo2100003007002014 01-02
    EditCopycopyDeleteDelete4006Leaseinfo250001503502014 01-02
    Event:Click
    Selection type:jQuery Selector

    jQuery Selector: .gmpickflag01

    Run the JavaScript Code

    var rbyes = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbyes"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbno = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbno"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbund = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbund"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    Send the Q_CEV bounded on the hidden page to submit items.

    $s ('P155102_RBYES', rbyes)

    $s ('P155102_RBNO', rbno)

    $s ('P155102_RBUND', rbund)

    Also have the code to step through the elements of the page to be inserted in the database.

    Try to define the scope of the event on the dynamic action to "dynamic".

  • How to insert a line checked several

    Hi friends,

    IM facing a scenario. Let me explain.

    I have a page with a report and a button (these two in a homepage).

    I have a tabular presentation based on a table that opens in a pop-up window by pressing a button located on the home page. In this sick in tabular form be select several lines and if I press Add button in the pop - up, then all the lines checked must insert in the table report located in the home page.

    How can I achieve this.

    Can someone help me with this problem.

    Brgds,
    Mini

    Mini,

    I've updated my example for you.

    There are several ways to accomplish what you're looking for, here are two options:
    1. make an ajax call on beforerefresh pop-up report.
    2 persists the values checked in a page element and use it instead of an array.

    In my example, I used the second option. Instead of using an item hidden, I used a text field you can see the selected values. Here are the changes I made:

    1. Add a new region and an article about her, I called my article "P33_SELECTED_WIDGETS".
    2. in the declarations of global variables in your definition of the page, add the following text:

        var pkArray = [];
    

    3. change the report query to refer to the element on the page and ensure that the State of the check box reflects the values that you have seaved in your page element.

    select
        SEQ,
        APEX_ITEM.CHECKBOX2(
          2,
          SEQ,
          'class="pk-selector" ' || SEQ_CHECK
        ) SEQ_CHECK,
        NAME,
        READY_DATE,
        COMMENTS
      from(
          select
              SEQ,
              case
                 when instr(':' || :P33_SELECTED_WIDGETS || ':',
                            ':' || SEQ || ':') > 0 then
                     'checked="checked"'
                 else ''
              end SEQ_CHECK,
              NAME,
              READY_DATE,
              COMMENTS
            from widgets_broken
    )
    

    4. create a dynamic action to manage the persistence the checked values.

    * Name: * bind_click_handler
    * Event: * after refresh
    * Type selection *: region
    * Region: *
    Real actions:
    * Seq *: 10
    * Fire on Page Load *: Yes
    * Execute JavaScript Code *:

    $('.pk-selector').bind('click',function(){
      $this = $(this);
      var checkVal = $this.val();
    
      if($this.prop("checked")){
        pkArray.push(checkVal); //save checked value
      }else{
        pkArray.splice( $.inArray(checkVal, pkArray), 1 ); //remove unchecked value
      }
      $s('P33_SELECTED_WIDGETS',pkArray.join(':')); //update page item with new values
    });
    

    Edit
    I left a decisive step. In your background report, ensure that this partial page refresh is enabled and P33_SELECTED_WIDGETS builds page elements to present the attribute.

    Finally, change the proceudure files add to refer to the page instead of globl table element.

    BEGIN
    
        insert into widgets(NAME,READY_DATE,COMMENTS)
        select name, ready_date, comments
          from widgets_broken
         where instr(':' || :P33_SELECTED_WIDGETS || ':', ':' || SEQ || ':') > 0;
    
        delete from widgets_broken
          where instr(':' || :P33_SELECTED_WIDGETS || ':', ':' || SEQ || ':') > 0;
    
        :P33_REC_CNT := SQL%ROWCOUNT;
    END;
    

    See you soon,.
    Janet Tyson

    Published by: Tyson Janet January 3, 2012 13:13

  • Need to align the two radio buttons in one line

    Hi all

    In my BlackBerry Application, I have a part of the user interface where I need to align two radio buttons in one line.

    I used the code to design the user interface, but the two radio buttons below are overlapping.

    SerializableAttribute public class BBSettingsScreen extends form {}

    Rbg RadioButtonGroup = new RadioButtonGroup();

    RadioButtonLayout raButtonLayout = new RadioButtonLayout();

    raButtonLayout.add (new RadioButtonField ("ONE", rbg, true, RadioButtonField.FIELD_RIGHT));
    raButtonLayout.add (new RadioButtonField ("TWO", rbg, false, RadioButtonField.FIELD_LEFT));

    Add (raButtonLayout);

    SerializableAttribute public class RadioButtonLayout extends Manager {}

    public RadioButtonLayout() {}
    Super(Manager.VERTICAL_SCROLL |) Manager.RIGHTMOST);
    }

    protected void sublayout (int width, int height) {}
    Field field;
    get the total number of areas falling under this Manager of
    int numberOfFields = getFieldCount();
    int x = 0;
    int y = 0;
    for (int i = 0; i)< numberoffields;i++)="">
    field = getField (i); get the field
    setPositionChild(field,x,y); set the position of the field

    layoutChild (field, width, height); Spread the field
    x += 30;
    }

    width = 70;
    height = 20;

    setExtent (width, height);
    }

    }

    }

    Please help on this...

    Thank you & best regards

    Chintada Ravikumar

    Try this:

    RadioButtonGroup rgb=new RadioButtonGroup();
    HorizontalFieldManager hr1=new HorizontalFieldManager(FIELD_HCENTER);
    RadioButtonField radioOne=new RadioButtonField(" RadioOne",rgb,true)
    {
        protected void layout(int width, int height)
        {
            super.layout(75,30);//Width and height according to the button name;
            setExtent(75,30);//width and height according to the button name;
        }
    };
    hr1.add(radioOne);
    RadioButtonField radioTwo=new RadioButtonField(" RadioTwo",rgb,false)
    {
        protected void layout(int width, int height)
        {
            super.layout(75,30);//Width and height according to the button name;
            setExtent(75,30);//Width and height according to the button name;
        }
    };
    radioTwo.setPadding(0, 0, 0, 20);
    hr1.add(other);
    add(hr1);
    

Maybe you are looking for

  • Start Apple Mail error message

    Whenever I run Mail, I get the following message is displayed: The operation could not be performed. No other information is available on the problem. I have to close the message 2 - 4 times so he can stop appearing. Now his appearance each time try

  • How to stop her "enter network password" pop-up? (Windows XP Pro)

    I'm unable to send or receive e-mail, but also a problem.The server does not recognize my name and my password.

  • Cannot start my PC

    Today, I received an e-mail from my security system (PC Tools) announcing their new 2010 edition available for download.  I went on their website and in the middle of the download, my screen went white.  I was unable to boot my computer since then as

  • Android keyboard

    I'm new on this I hope forgive me if I ask fundamental questions that I should know the answer.  I've owned an A2109 Ideapad for two weeks.  Yesterday that I got an error message that says that "Unfortunately the android keyboard has stopped".  It ap

  • Buzz 60 seconds

    I have a humming noise every 60 seconds which interrupts audio playback and games.  I have installed McAfee.  I did a search of viruses and nothing came.  I did a search of malicious programs and a newplayer.exe file has been quarantined, but the pro