apex_item. RadioGroup p_idx question of value

All,

I have an interactive data report with radio buttons 3. user can select a value radiobutton for processing.

.......................................
.......................................
apex_item.radiogroup( p_idx => rownum , p_value => bestelling_id , p_selected_value => huidige_afdeling_id , p_display => 'LAB' , p_attributes => 'class="afdRadio afdLab" ' , p_onchange => 'javascript:setLab(this.value);' )  AS LAB ,
 apex_item.radiogroup( p_idx => rownum , p_value => bestelling_id , p_selected_value => huidige_afdeling_id , p_display => 'QC' , p_attributes => 'class="afdRadio afdQc" ' , p_onchange => 'javascript:setQC(this.value);' )  AS QC ,
apex_item.radiogroup( p_idx => rownum , p_value => bestelling_id , p_selected_value => huidige_afdeling_id , p_display => 'Afhaaldesk' , p_attributes => 'class="afdRadio afdDesk" ' , p_onchange => 'javascript:setAfhaalDesk(this.value);' ) AS AFHAALDESK 
..............................




Problem is that the report can return a large number of lines. Clicking a radiobutton and trying to present, sometimes an apex workflow exception is thrown. I discovered that this has to do with the value of rownum because the value of p_idx can be in 1 and 30.

So what I did, is to replace rownum with a value of 1, this seems to have solved the problem.

The other problem now is that when a user clicks a radiobutton on several lines, that is a single value according to the choice, but when to submit all the lines are subject for which the user has selected a value of the radiobutton.

Example:

The user select value LAB for 5 rows, but only to see the LAB in the last row selected radiobutton (not thinking that this line will be submitted), but all of the 5 ranks are submitted.

With rownum all selected values are shown, but there again the we have the problem with the value of p_idx.

Some tips on how I can fix this?

Thank you

Diana

Hi Diana,

This seems to be a wrong information:

Problem is that the report can return a large number of lines. Clicking a radiobutton and trying to present, sometimes an apex workflow exception is thrown. I discovered that this has to do with the value of rownum because the value of p_idx can be in 1 and 30.

Each APEX_ITEM. function has its first parameter as p_idx that can take a value between 1 and 50. Items by a column in tables which in turn when the page is submitted are mapped to the APEX_APPLICATION. G_F01 in APEX_APPLICATION. G_F50 arrays of type APEX_APPLICATION_GLOBAL. VC_ARR2 in apex session state.

For the limits of the component you should refer to the following documentation: (see tabular forms)

https://docs.Oracle.com/CD/E37097_01/doc.42/e35125/limits002.htm#HTMDB28632

dianap says:

Thanks Scott.

I took the example of Vincent. But the problem is in the population of the p_idx with rownum parameter. Rownum can sometimes be greater than 30, and when this is the case, nothing can be submitted.

Kind regards

Diana

Here the question of the solution of Vincent about the radiogroup will lines might exceed the > limit 50 when the rows in the underlying table are > 50.

The solution uses the paging with the whole line displayed on a page of the report must be<50 (by="" default="" it="" is="" 15="">

As Oracle APEX page submit takes into account only the game currently displayed rows (regardless what underlying table contains) for the treatment of the displayed tabular form.<50 rows="" pagination="" with="" vincent's="" solution="" will="">

NOTE: Tabular normal every column has an index and the lines have no limitations, but in a solution of Vincent as it use rownum to index, so a new table will be created for each line.

I hope that helps!

Kind regards

Kiran

Tags: Database

Similar Questions

  • SkillBuilders modal and Page point question of value

    Hello

    I created a version simplified a problem, I am trying to understand on http://apex.oracle.com (it happens on the two Apex 4.1 and 4.2).

    Workspace: EDIAZJORGE

    User name: TEST

    Password: test123

    Application: 2188

    Page: 1

    I have a field of date and a button that opens a modal page; When the date is changed, a dynamic action is triggered to assign a URL on an element hidden with the new date, for example f? p = 2188:2:105346728385780:P2_DISPLAY:21 - Aug-14

    Whenever the button is pressed, it will open the modal page and display the value of P2_DISPLAY.

    The dynamic action that opens the modal page has a defined static URL like & P1_URL.

    My confusion is that when I change the date, I can see on Session State and HTML P1_URL organizes the correct URL with the new date; However, when I click on the button to open the modal, it displays the value of the page when was initially loaded. For example:

    • If the page load with 21/08/2014, no matter how many times I change the date, it will always show 21/08/2014.
    • If I change the value at 31/07/2014 and refresh the page, then it will show the 31/07/2014 no matter how many times I change the date.

    Two questions:

    1. When the plug-in receives the value of (the Session State and the input HTML to P1_URL element have the correct date)?
    2. How can I fix without having to submit the page?

    Thank you


    Erick

    I am happy that it worked Erick. I didn't know if I explained.

    As for the suggestion of 2...

    If you run the page, as it is now (at least in a recent version I watched) you will see that when you changed the Date you can see that P1_DATE is defined in the session.

    It's b/c you have a dynamic action that works PL/SQL and declares the value of P1_DATE. So, instead of setting the value P2_DISPLAY of the session in the URL, you can use this P1_DATE session state that is set when this is handled via Ajax.

    If you were to change the action that affects your url "f?" p = & APP_ID.: 2: & APP_SESSION. "(or just use it as a static URL in the plugin) then changed P2_DISPLAY to have a value based on the value of P1_DATE it should work.

    Greg

  • APEX_ITEMS does not store the value in the SESSION after the validation error

    Hello

    I'm build dynamically using APEX_ITEMS, but it does not keep the value when the page is submitted and the validation error occurs. Here are the following steps that I am following.

    When I enter SUE (more than 8 characters), SUBMIT, validation fails and the error is displayed on the page (which is fine)
    BUT it does not keep SUE value (which I got) and filled with the old value which is ABC.

    WHY it does not keep the value that the user entered (even as the normal Page items)

    Region PL\SQL
    declare
      v_value varchar2(20);
    begin
      v_value := 'ABC'; 
      htp.p(apex_item.text(7,v_value));
    end;
    Validation (function returning the error text)
    DECLARE
     v_count number;
     v_value varchar2(50);
     v_value1 number;
    BEGIN
      v_value := apex_application.g_f07(1);
      select length(v_value) into v_value1 from dual;
    
          if v_value1 > 8 then
              return 'Field must have less than 9 character';
          ELSE
             return null;
          END IF;
    END;

    You use collections if you want the State to show if, after a validation error. Unfortunately, this is the case if you do not use the normal tabular forms.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    https://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • apex_item.date_popup formtting question

    This is my selection:

    SELECT apex_item.hidden(11,col.c001).
    apex_item.date_popup
    (4, NULL
    col.c004
    'DD-MM-RRRR', 10, 10
    ,' title = 'YYYY-MM-DD' ' |
    "onChange =" updateTabularForm (this, "SCOPESESS",'|)
    Col.seq_id |', 4.18,' |
    Decode (mod(rowNum,:P31_ROWCOUNT),
    0,: P31_ROWCOUNT, mod(rownum,:P31_ROWCOUNT)) |') ; » »
    ) start_date
    apex_item.date_popup
    (5, NULL
    col.c005
    'DD-MM-RRRR', 10, 10
    ,' title = 'YYYY-MM-DD' ' |
    "onChange =" updateTabularForm (this, "SCOPESESS",'|)
    Col.seq_id |', 5.18,' |
    Decode (mod(rowNum,:P31_ROWCOUNT),
    0,: P31_ROWCOUNT, mod(rownum,:P31_ROWCOUNT)) |') ; » »
    ) end_date
    THE NECK of the apex_collections
    WHERE col.collection_name = 'TEST '.

    The problem I have is that if the user inserts the date manually - IE 02/02/10 - it is stored in the database as February 2, 10.

    Is there something obvious that I'm missing? The original mask was AAAA so we chnaged RRRR, but it has no effect.

    Any help would be appreciated.

    See you soon

    Published by: Lisa from Aus 11/03/2010 17:16

    3 test cases, just do:

    1 insert into date_test values (to_date (February 2, 2002 ',' dd/mm/yyyy "")).

    Select * from date_test

    MY_DATE
    02/02/2002

    2 insert into date_test values (to_date (2 February 02 ',' dd/mm/yyyy ""))

    Select * from date_test

    MY_DATE
    02/02/02

    3 insert into date_test values (to_date (2 February 02 ', ' dd/mm/rrrr'))

    Select * from date_test

    MY_DATE
    02/02/2002

    --

    The apex element you create dynamically obviously know the format you want to appear in the date, but the insert statement does not work. So the best thing to do in your insert statement would be to specify the date format (because a collection is just a series of varchar columns).

    that is, of the VALUES (: P31_IMPLEMENTATION_ID)
    r_rec.session_name
    , to_date (r_rec.start_date, ' dd/mm/rrrr')
    , to_date (r_rec.end_date, ' dd/mm/rrrr')
    );

    But of course, this still doesn't answer if users he entered in a different format. that is, what happens if they decide to enter in the format: YYMMDD or mm/dd/yy etc.

    Van
    Trent

  • A question about 'value spots' in the Vision Assistant of NOR

    Hello, all,.

    I am a new learner or vision.

    When I use 'mark set' in the Vision Assistant of NOR. It works well. for example

    (The image above is the example in the Vision Assistant of NOR, please see help > Assistant Solution > Inspection of dental floss)

    However, when I put the program NI Vision Assistant to create a Labview VI program. (Tools > create a LabVIEW VI), then run the VI, it no longer works.

    The result of the system of coordinates outside is always like that.

    I can't find where is the error. I tried a few other examples in the Vision Assistant of NOR. If the command "set mark" is used in the program in the Vision Assistant of NOR. then create the LabVIEW VI.

    The problem still occurs.

    I hope some man experienced in NI Vision could help me.

    Thank you.

    Hi all

    This problem has been reported under Corrective Action Request (CAR) 441410 and has since been fixed in 2014 of VDM. I highly recommend upgrading to the latest version here: www.ni.com/download/vision-development-module-2014-f1/4971/en/ because it contains other patches. If you are unable to do so, I have attached the patched file, you need to change. Replace the following file (assuming that the default installation location): \National Instruments\LabVIEW 2013\vi.lib\vision\Vision Utils.llb Assistant with the version I have attached here, and that should solve the problem you see with NaN values of reference in the VG of the generated code.

    Kind regards

    Joseph

  • Questioning the value of property management

    Hi all

    I have a custom. ABC property, global - level, set the propertytype property node.

    I want to change the value of this property for only a few specific nodes and his descendants no overall hierarchy.

    As we know Changeprop option via the load script will change the node values, but is there another action or mechanism by which I can change the node and its descendants property values.

    To get the list of the descendant nodes for a specific node will be little process long and well of course, after that, we can load the value via changeprop Action.

    If you make the property inherited affecting then for a parent it will define also for all descendants.  -What are you looking for?

  • ADF Mobile - selectManyCheckbox - question of value

    Hello

    I have a page simple amx with selectManyCheckbox as below, I want to highlight (first / second) inside the Test bean. But don't get the value as expected

    < amx:selectManyCheckbox label = "label1" id = "smc1" valueChangeListener = "#{TestBean.getCheckBoxValue}" value = "#{pageFlowScope.pValue}" > "
    < amx:selectItem label = "Box 1" value = "first" / >
    < amx:selectItem label = 'Checkbox 2' value = 'second' / >
    < / amx:selectManyCheckbox >

    getCheckBoxValue inside the TestBean is below.

    {} public void getCheckBoxValue (ValueChangeEvent valueChangeEvent)
    try {}
    System.out.println ("vaule is" + valueChangeEvent.getNewValue () m:System.NET.SocketAddress.ToString ());
    System.out.println ("vaule is" + valueChangeEvent.getOldValue () m:System.NET.SocketAddress.ToString ());
    String selectedValuesAsString = "";
    ValueExpression ve;
    ve = (ValueExpression) AdfmfJavaUtilities.getValueExpression("#{pageFlowScope.pValue}",String.class);
    System.out.println ("1" + ve);
    System.out.println ("1" + (ve.getValue (AdfmfJavaUtilities.getAdfELContext ()) .getClass () .getName ()) ");
    String attrBinding = (String) ve.getValue (AdfmfJavaUtilities.getAdfELContext ());
    System.out.println ("2" + attrBinding.toString ());

    } catch (Exception e) {}
    TODO: Add catch code
    e.printStackTrace ();
    }
    }

    All places: I get the value as an object, this is the console output

    06-19 07:58:31.506: D/GVC (1419): vaule is [Ljava.lang.Object;@fa17c0

    06-19 07:58:31.506: D/GVC (1419): vaule is [Ljava.lang.Object;@992d6a59

    06-19 07:58:31.516: D/GVC (1419): 1 TreeValueExpression(#{pageFlowScope.pValue})

    06-19 07:58:31.516: D/GVC (1419): 1 java.lang.String

    06-19 07:58:31.526: D/GVC (1419): 2 [Ljava.lang.Object;@aea1046e

    Could you please let me know how to get the return inside the bean by using ValueChangeEvent value.

    Thanks in advance.

    Ajoy Sinha

    Here's the answer...

    valueChangeEvent.getNewValue () returns the array of object, that is, Object []. Now you should loop through the object and to retrieve each object to get the value out of it.

            Object [] value = (Object []) valueChangeEvent.getNewValue ();
           
            for (int count = 0; count)< value.length;="" count++)="" {="">
                Object checkedBox = value [count];
                String checkBoxValue = checkedBox.toString ();
                System.out.println ("value of the checkbox" + checkBoxValue);
                }
  • Question of value - default AutoFill

    I'm having a problem with a text field in my form. I am running version 11.0.7 on OS X 10.9.4.

    The text field is an email address entry and the only property on the ground is one of the built in javascripts validation email: event.rc = eMailValidate (event.value);

    When I start to fill out the form and tab for this field, it auto-remplit with my last entry. I don't have a default values and AutoFill is turned off. The oddity of this is that when I go to change the form - this default value is there.

    Any ideas?

    Try changing the script for:

    If {(event.value)

    Event.RC = eMailValidate (event.value);

    }

  • Question of value Popup Lov key (description of the poster, returns the key value) by default

    Hello

    I have a Popup Lov key (description of the poster, returns the key value) and I want a default value. It is based on a list (user name, id).
    I tried to put the id of the user logged on as default, but what I see on the screen in the field is the value of the id, not the username.
    How can I pass the user id and see the user name?

    Thank you.

    Oh! My bad, I thought you are talking about regualt lOVs not popups.

    OK, so that's what you need to do, I tried it and it worked for me:

    your popup LOV > default > type: body of the PLSQL function > and enter a query like:

    declare
    UID number.
    Start
    Select user_id from the uid of the user
    where UPPER (username) = UPPER(:APP_USER);

    This should show username and retune userid.

    Hope this helps,

    Sam
    Please give good answers by marking correct or useful.

  • Question of values-Javascript form.

    Hello

    I use this javascript to disable some form values based on other form values:

    < script language = "JavaScript" type = "text/javascript" >
    function test() {}

    Test1 var = html_SelectValue ('P2_A1') == 'Y ';
    html_disableItem ('P2_A2', lCheck);
    html_disableItem ('P2_A3', lCheck);
    html_disableItem ('P2_A4', lCheck);
    html_disableItem ('P2_A5', lCheck);
    }

    < /script >
    OnLoad = "test()";

    OnChange = test().
    It works very well. When I select P2_A1 y it disables all other fields (all fields are selection lists)

    When I am trying this javascript:

    < script language = "JavaScript" type = "text/javascript" >
    function race_Allowed() {}
    Checks to P2_A1 (any P2_A1 does not
    to Indicator2) and turns off P2_A2
    var Lcheck = html_SelectValue ('P2_HISPANIC_INDICATOR') == 'Y' or ' don't;
    html_disableItem ('P2_RACE1', lCheck);
    html_disableItem ('P2_RACE2', lCheck);
    html_disableItem ('P2_ETHNICITY1', lCheck);
    html_disableItem ('P2_ETHNICITY2', lCheck);
    }

    < /script >

    It does not work...

    I know that I am using an operator 'or' in the wrong way. Can someone help me in how to do it. ? I want P2_A1 to Y or N then she disalbes all other fields.

    Thank you

    Hey,.

    See how you have several conditions you use an if statement with a logical OR operation. A logical OR operation is represented by | (double pipe) in javascript.

    
    

    I hope this helps.
    Tyson

  • apex_item. RadioGroup

    Hello
    I need help with the apex_item.radiogroup.
    I get the table data in the report area. There is a column of State which has 'I' or 'A' idle assets. corresponding to a single record, we can have several under-reporting and
    only one is active. In the region of report I'm showing the active and inactive radiobutton by rank. and if select no matter what row as being active in the report another radiobutton lines must be off then once I hit the update button I don't have to think that all the others went to inactive.

    my query looks like

    Select apex_item.hidden (10, primary_key) | recording,
    apex_item. RadioGroup (3, h.status, 'A', 'Active'). apex_item. RadioGroup (3, h.status, 'I', 'Inactive').
    cases where rec_flag = ' only then 'NO' also 'YES' end 'flag '.
    table

    If there are 4 selected lines based on this query only one command-line option button is highlighted.

    I am new to apex and need your help.

    Hello

    For the question of the selection list - the fourth parameter of the APEX_ITEM. SELECT_LIST function allows for attributes, you can do:

    apex_item.select_list(3, h.status, 'Active;A,Inactive;I','onchange="javascript:myfunction(this);"') "Status"
    

    Then, you create a function called myfunction (ss) that is triggered by the value of the selection in evolution list - onclick is not used here. As we pass 'this' in the function, we can loop through all the lists of selection, except for the current and change their values as necessary:

    function myfunction(ss)
    {
     if (ss.value == 'A')
     {
      var sLists = document.getElementsByName('f03');
      var k;
      if (sLists)
      {
       for (k = 0; k < sLists.length; k++)
       {
        if (sLists[k] != ss)
        {
         sLists[k].value = 'I';
        }
       }
      }
     }
    }
    

    So, as long as we change the current list to A, then we change others to I.

    For radio buttons, if you need to use the two buttons by rank, you should have a radiogroup i.e. separately for each line. Your use of "pk_table' for the inactive button must also be used for the active button. When the user clicks on either active or inactive, you will need to loop through all radiogroups and set the appropriate value.

    To access all buttons, do something like:

    var x = document.getElementsByTagName("INPUT");
    var k;
    if (x)
    {
     for (k = 0; k < x.length; k++)
     {
      if (k.type == 'RADIO')
      {
       do something herre
      }
     }
    }
    

    Andy

  • Point of APEX_ITEM. Required RadioGroup

    Hello

    I use apex 4.2 with enterprise DB 11, I use APEX_ITEM.radiogroup to create a dynamic items according to the request, what I put this only required such radio group. I try to set in the process of page validation but the problem, it's that the value of the element will be reset whenever I click on the "submit" button.

    Any suggestion?

    Thanks for the reply,

    In fact I fix this by save the data into a temporary table, in my scenario, page it completely dynamic, which can include the Group of radio buttons and checkbox for X elements.

    Thank you very much

  • Apex_item.text dynamic item add or subtract value

    I have a report that creates dynamic items using the package apex_item, like this:
    select id
    ,      apex_item.hidden(1,id) 
    ,      label
    ,          decode(typ_id,
                        1, apex_item.text(p_idx=> 2, p_value=> null, p_attributes=> 'class="number"') || 'num', /*this should be a numberic field, isn't working jet*/
                        2, apex_item.text(2),
                        3, apex_item.select_list_from_query(p_idx=> 2, p_query=> 'select label, id from list where prop_id = ' || id, p_show_null=> 'NO'),
                        4, apex_item.date_popup(2, 0),
                        5, apex_item.text(2,'0') || '<a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#add.gif"/></a> <a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#substract.gif"/></a>',
                        descr
                   ) value
    from properties 
    order by id
    In the latter type of element (where typ_id is 5) I want to have a textfield allowing only numberic values. If the user clicks on the image "add.gif" the value of the element must be added by 1, and when the user clicks on 'substract.gif' value must be lowerd by 1. How can I make this work? The images can be replaced by another element, if necessary.

    Hi Mir,

    My apologies for the restructuring of the query using case. I hope this would help you. The code could be much simpler if you could take the JS logic to a JS function on the page.

    http://Apex.Oracle.com/pls/Apex/f?p=44973:2

    See you soon
    Ligon
    PS: The code for formatting here has been driving me crazy so I have to put it in a page to show you :)

  • RadioGroup question.

    When using radiogroup Apex makes the text for the buttons on the radio with < label > text < / label > element. My question is - is it possible to access the value of 'text' of javascript? I need to be able to access the query radiogroup display_value in javascript. For example I want to submit only if category 'Other' is selected in the radiogroup - checking the return value does not work in my case.

    George.

    Hello

    I have day my demo.
    Now, I have on the page HTML header

    
    

    In Firefox, it seems to work

    BR, Jari

  • apex_item. RadioGroup in editable report

    How can I build a report updated with a radiogroup created by apex_item.radiogroup?

    I know that the syntax like
    APEX_ITEM. RADIOGROUP (deptno, ' 20', dname 1)

    but I want to have 5 different options in 1 radiogroup.
    How can I handle this?

    THX so far

    P.S.: I know that you can set a column to be a radiogroup but in my case, it must defined with the apex_item package.

    Hello

    Take a look on: Re: Radiogroup user in the form - there are several methods that you can use - details for each are presented in the pages of the app themselves rather than the thread

    Andy

Maybe you are looking for

  • Satellite Z830-10 - electric shock during loading

    I recently bought a Toshiba Satellite Z830-10 PC World UK. I am experience constant electric shock when my wrist touch the body of the laptop during charging with the adapter. No problem when it's on battery power.Anyone have the same problem? After

  • Software NTX on Macbook Air

    I try to get the softwware NXT to work on my mac, but not joy. He seems ok intall but gets 90% loded, and then fails with: Error: A required file is broken Error code 1003 I saw in another post on the forum on the other wherever it is perhaps down to

  • Unknown folders in Documents and Settings

    Here is a link to imageshack for two .jpeg files. http://ImageShack.us/photo/my-images/13/fdrivedocumentsandsetti.jpg/ and http://imageshack.us/photo/my-images/29/documentsandsettings112.jpg/ Both are Documents of XP Home and settings folder, one is

  • How can I transfer photos & videos of windows for an external diving Photo Gallery?

    How can I transfer photos & videos of windows to a pilot Photo Gallery external campaigns?

  • HP Advisor has stopped working

    I have Windows Vista Home Premium 32-bit installed on my HP Pavilion dv6500. Whenever I try to open Hp Total Care Advisor, a box appears saying that Hp Advisor has stopped working. If I try to open all HP Advisor programs such as battery or pc update