setting the selection list values in the tabular presentation

Hi all

I have a form of a table with a column that contains lists of selection I need to set the values for all rows in the form of tables.
I'm trying to set the values on the click of a button, but apparently not enough to work.

Is there another way to do it, perhaps with javascript?

Any help would be appreciated.

Kind regards
Cleo

Cleo,

He's working now, sorry I missed the fundamental thing that you try on a selection list and not entry, as says my above entry script...

Just use this code

$('select[name="f10"]').val('Y');

//OR this if you need to loop through them

function approveAll(){
   jQuery.each($('select[name="f10"]'), function(i) {
    this.value ='Y';
  });
}

It was me!

Published by: VC on July 13, 2012 15:57

Tags: Database

Similar Questions

  • Get the selected value of a select list item in a tabular presentation.

    Hi, I have a tabular form and I'm trying to get the selected value of a select list item and store the selected value in a page element hidden elsewhere on the form of tables, so I can use this value.

    I already have something similar to the input on the tabular presentation elements.

    Get the initial values
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $(' input [nom = "f12"]', ligne) [0];

    numberOfItems = 123456.123

    What I want to do is soemthing similar as above but capture the value of a select element in tabular form. I thought I could do something like:

    Get the selected value
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $('selected [name = "f08"] .val ()', line) [0];

    But this method leaves the as undefined var numberOfItems.

    Please help me to find a way to identify the item 'select' in the tabular form called "f08" and get this value.

    I am a newbie to jQuery selectors etc...

    Thank you.

    Strange that you do not get an error when you run your 2nd selector.
    In any case for this kind of thing, see the HTML code of your tabular form and tell us what triggers, the element can be useful. Or better create an example at apex.oracle.com.
    In any case, I see two errors:
    (1) is there any html element "not selected" instead, the LOV in the APEX element has the select tag
    (2) you can not write a. val() inside a selector that you must place it after your selection.

    So I'd like to rewrite your code to:
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems = $("select_[nom_="f08"]",_row).val () var [0];

  • How to set values in a tabular presentation?

    Hi all

    Is it possible to set all column values in a tabular presentation of a button (or another element on the page)?

    I have a tabular form and when you click on a button, I want to set all the values in a column some (say Col2 below), the value of X. Any ideas on how can this be achieved?
    Please see my example here...


    In the form of:

    Col1 - Col2 - Col3
    1----------2-----------3
    1----------2-----------3
    1----------2-----------3


    The user clicks on a button, and the values in the form of tables are changed for this column.



    In the form of:

    Col1 - Col2 - Col3
    1----------X-----------3
    1----------X-----------3
    1----------X-----------3


    Thanks for any help.

    -Chris

    Haven't tried, but I think that:

    1 have the button call a javascript function onclick.

    2. the function should perform a loop on document.wwv_flow.fxx (where xx is the column number, assume that it is 03 for this example) and set (have not tried this but just guess offhand):

    function myFunc(pSomeValue) {
      for (i=0;i,pSomeValue);}
    
    Might take a few tweaks to get it right but something along those lines is what I'd try. 
    
  • Moving columns in the tabular presentation

    Hello
    I am newbie to Disco.Is it a shortcut to move columns the way we want in the tabular presentation or we have manually move column by column?

    Thank you
    Kiran

    Hello

    I am newbie to Disco.Is it a shortcut to move columns the way we want in the tabular presentation or we have manually move column by column?

    Not really, but it is often useful to drag the columns you want to play elements of page first before sliding down to set required in the tabular presentation.

    Rod West

  • The selection list value does not change when the page is sent

    Hi all

    I have a selection list that acts as an entry for the report. the page is submitted using a button.
    The button uses the branch option "redirecting to page in the application. I select the same page.

    The problem is when I change other values in the value list always takes the first value

    I want to know if the problem is with the key or select list. What should I do about it?

    Concerning
    REDA

    Renon wrote:

    I tried your suggestion. Now that I ask, is the report is expected to show only when the button request is passed. I read to present the action of page the name of the button acts as a request.
    so now my report status is request = Expression1 and value of expression1 takes GO tell button name.

    The report does not appear but. I checked the session. It has the value of the selection list and the page is submitted as but the report is not displayed.

    ASK is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why it has no value when they are referenced in your State in the region.

    Set the attribute request in your branch for & request to make available at the course to see the page the current value of the demand for treatment.

  • By the way Select list value to another page via report link

    Hello

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    1013248 wrote:

    Please update your forum profile with a real handle instead of '1013248 '.

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    Use the exact static text substitution method to reference the value of the element. This requires an end point ('.) ») :

    &SLI.
    
  • Get the display of selection list value

    Hello

    I use Apex 4.1 and I have a selection list in my page. I know that I can access the value of the element selected by: P1_SelectList, but I would like to know how to access the display value for the selected item.

    Thanks in advance,
    DS

    Hello

    I don't know what are your exact needs. I mean why you need display the selected value?

    If you want to access the List select using JS, then the element should be available on the page. If it is already display the value to display for the user.

    That's what I wanted, but I am trying to add this script in page 0, I want it, it is available in all applications except page 1 where the select control is there and the "Execute when loading the page" you mentioned article is not available in page 0. Any idea?

    Create a dynamic action which will trigger the Page load and who will do the following JS code.

    $("div#select-val").html($("#P1_SELECTLIST option:selected").text());
    

    Also create the region HTML DIV on the page 0. And again, the P1_SELECTLIST element must be accessible to all pages, so you can create this article in page 0 as well?

    Kind regards
    Hari

  • The highlight in the selection list values

    I have a list of selection of a code that display additional values. Usually I would only code values where the obsolete_ind = "N" and limits the selection to these codes, but when a record is displayed with a code rendered obsolete once the record was initially created, I MUST allow display additional values. IIF, that I don't have, the first value in the list by default, and it seems that it is the current value, which is not true!
    So, I have 'show extra values', but I would like to avoid the registration of 'saved' by using the now obsolete value. Of course, a validation that will solve, but the user will not know who are the valid codes to select.
    Can specific values highlighted in red or something? If the tag selectlist < option value = "" > id has also been = "", a code for the dynamic action, but I do not see how to add this 'id' to the tag option. "
    Any suggestions?

    Some options that come to mind
    -use apex_item to build your selection list, the parameter cattributes allows you to easily add custom attributes to color some entries
    -Several times in the past, I've seen some old values of code marked with an asterisk, then users are educated to know that they are the older options and validation (browser or submit) it applied.
    -Having a display-only field that shows the current value and a selection list that offers only the current options

    Scott

  • Select list value is changed to the previous value.

    I have a selection list. When the user leaves the page, I reset the selection list to a default via javascript. However, when the user returns to the page, the selection list is in some sort to reset the previous value, the user has selected.

    What is the cause, or how I can fix this problem?

    Hello

    You could have what ever in the HTML by JavaScript document.

    Check the status of the database session. In the developer toolbar, there is option for that.
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref108

    Also check that you have all the calculations and what is your source of point.

    Kind regards
    Jari

  • The selection list value is not in the table

    Hi people

    I have a DML page; I put an a field at the top of the HTML to a selection list, of a dynamic LOV.

    I put it to display the name and return the value of the corresponding id.

    However, nothing gets entered or changed in the table (or on the pages in the Apex, in the table that I have reviewed in SQL * workshop)

    For the parameters of the ARTICLE: what should be the specifications from the Source?

    Should I pay something in the Page processing: Panel process?

    Thank you-
    Marion

    Hello

    Try to write the name of the column to uppercase.
    I think that wrap apex double quote when inserting

    BR, Jari

  • Referring to the display of a selection list value?

    I have a table shape with a non editable column (display text, saved state).
    When I 'add the line' I want this column to be empty, but instead have a defined value.

    I put this to help

    default type: point (the name of the application or page element)
    default value: XXXX

    the default value is the problem. This value is (or should be) decided by a selectlist. The problem is that the value I want to put it is the value display of the selectlist, not the return value.

    If I just put the name of the selectlist P66_SELECTLIST as value by default, get the return value...

    Is there a way to access the the selectlist displayvalue instead?

    Thank you

    Andreas

    Well, create a more hidden element on your page that will display value and use this element hidden as Source as a table.

    For the hidden item, you can set the default value as a PL/SQL function

    declare
    v_dummy varchar2(100);
    begin
    select display_value into v_dummy from tbl_name where return_value = :P66_SELECTLIST;
    return v_dummy;
    end;
    

    See you soon
    Hari

    Published by: Hari_639 on October 22, 2009 13:22

  • Change the value of the playlists selection to another selection list value

    Hi friends,

    I have a column select list(Yes/No) in an interactive report that has a default value as No.
    This interactive report realized extraction thousand lines.
    Users will check a batch of records and change the value of the selection to Yes and submit.
    They do the same process with the next Recordset.

    To remedy this, starting by selecting each selection list Yes in report users want a mass update selection list for Yes and no.
    Here's an example of what I meant: https://apex.appshosting.com/pls/apex/f?p=898:1:4477178916616585:

    Anyone can throw some light on this issue?

    Thank you very much.
    Raj.

    Raj:

    Edit and add this javascript in your page

    
    
    
    For the 'Html Attributes' of the 'Mass Update' select list specify
    
      onChange='doStuff(this)'
    
    Varad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • Dynamically set read-only columns in the tabular presentation at record levels

    Hello

    Is it possible to activate and deactivate fields at the level of the line in a tabular presentation... I use OFA to create a page that should give the possibility to activate and deactivate certain fields in the table on the fly...

    Here's the requirement:

    examples of data

    Item_code |   Review | Point Attrib1 | Article attrib2 | Article attrib3 | Columna | ColumnB

    1.234               100           A                         B                    _                  A               _

    1.235               100          B                              _                 B                 _                   A

    fields point attrib3 and Columnb should be read-only if the value of attrib1 point is A

    Even if point value attrib1 is B columna and attrib2 of the element must be read-only...

    I have PPR on item_attrb1 to manage the change of value in the attrib1 element, but I'm not able to make fields read only at the level of the line... Please help me if someone has work around this

    Is this possible?

    Thank you

    Dilip

    Hello..

    It is possible. Made myself.

    You must use SPEL for this.

    Steps to follow:

    1. the Caisse one type of transitional say as Boolean column ReadOnly

    2 set the Readonly property for that column as ReadOnly

    (Syntax FRO SPEL-> {oa. VO. ReadOnly})

    3 al ' PPR after checking the status, the ReadOnly Anaïs value accordingly.

    .

    You can get the idea here.

    https://blogs.Oracle.com/manojmadhusoodanan/entry/hiding_an_item_conditionally_through

  • Asynchronous flash chart where update select list value changes

    Hi devs,

    I groped with flash graphics with dynamic when update select list point of changes in value.

    First of all, I used the function of Denes Kubicek [http://htmldb.oracle.com/pls/otn/f?p=31517:229 | http://htmldb.oracle.com/pls/otn/f?p=31517:229:3039869356317498] update the value of the session from my dynamic selection list after change:
    &lt;script language="JavaScript" type="text/javascript">
    
    function fnc_setItem (pItem)
    { 
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
      get = null; 
    }
    &lt;/script>
    That has worked well. Then has been to change the update interval chart flash and:

    Home > Application Builder > application 150 > Page 1 > Flash chart attributes > update >
    Asynchronous update = Yes
    Update interval (seconds) = 5

    My report is automatically updated every 5 seconds. But how can I make it work just with the change in the value of the selection list?

    The function is used to refresh the report: apex_RefreshChart (1, '2258227549390282', ' de');

    Patrick Wolf was a good example for her: [http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/ | http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/]

    But I couldn't make it work properly.

    Thanks in advance


    Tobias

    Hello Tobias,.

    Having defined with function of the Dene session state, you can refresh the table to help:

    apex_RefreshChart ($v ('pFlowStepId'), $v('Pxx_REGION_ID').substr (1), navigator.language);

    PXX_REGION_ID is the ID of the region of the chart area. You can set that in the bottom of the region to help;

    $s ("Pxx_REGION_ID", "#REGION_ID #");

    See [example: http://apex.oracle.com/pls/otn/f?p=41715:29]

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • report of initialization does not not account selection list values

    Hello
    I have a problem to understand the way in which apex treats the sequence of events.

    I have a little select lists and checkboxes, which stores the settings for a report) the sql is issued by a plsql stored procedure).
    The items in the lists change according to different users, and values from LOV (with sql). A go button to refresh the report if you change the settings.

    Although where the view, the report seems to be after the selection lists, the first time the report not displayed with the settings selected in the lists (the first elements), but rather the default values... even if they do not exist in the current list.
    When you press the Go button it appears correctly.

    I also tried to put the report with the conditional formatting, with a request for status = expr 1 (setting like name th button expr1 go)... but the report would never display.

    I'm sure there must be a simple explanation... but I can ' t find.

    Thank you very much for your help.

    See you soon,.
    Boris

    Boris,

    The default was just an example, you can use the code you like in the query to make sure by default to the correct setting for the user. The point is that you (or rather business case) dictate how this default view should look like.

    You will need to fill in a few gaps for us here and tell us how each case should be handled (don't forget, we don't know anything about your precise needs other than that tell us;).

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

Maybe you are looking for