without discount date when select select list

Hello

I have two field
1. select list
2-date picker

now, I want to when I select a value in to select the list, and then the corresponding date value should come to date picker point field.i want it without updating date picker.


How can I do this

Hello

I guess that your date is in the table?

Something like this in the HTML page header

function fetchDate(){
    var ajaxReq = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_DATE',0);
    ajaxReq.addParam('x01', $v('Px_YOUR_SELECT_LIST'));
    var lRet = ajaxReq.get();
    $x_Value('Px_YOUR_DATE_PICKER', lRet);
    ajaxReq = null;
}

Then the process of request GET_DATE

DECLARE
 l_d VARCHAR2(32000);
BEGIN

  SELECT TO_CHAR(your_date_column, 'DD.MM.YYYY') -- Check date format. Set same as date picker
  INTO l_d
  FROM your_table
  WHERE your_column = apex_application.g_x01;

  HTP.PRN(l_d);

EXCEPTION
  WHEN NO_DATA_FOUND THEN
    HTP.PRN('No data found !');
  WHEN TOO_MANY_ROWS THEN
    HTP.PRN('More than one date found !');
  WHEN OTHERS THEN
    HTP.PRN(sqlerrm);
END;

And add onchange = "fetchDate (); "to select the attributes of the list HTML form element
BR, Jari

Published by: jarola November 21, 2009 12:56

Published by: jarola November 21, 2009 13:05

Tags: Database

Similar Questions

  • Call the process via the selection list to submit page?

    Hello guys!

    I have a quick question that I couldn't find any info on. Is it possible to appeal a process page using a pick with mailing list.
    Instead of redirecting to another page on submit, I want to call a process that inserts data into a table.
    Any info is appreciated!

    Brgds,

    SEB

    Hello

    Create process page after submit that do your things.

    Create then creates a branch to the same page that is conditional to your selection list request.
    Make sure that the sequence is before the other branch.

    If necessary change page other processes and conditional validation to those who are not executed when select list send your page

    BR, Jari

  • selection list loading using the ondemand/ajax process data

    Guys,

    Ive has a selection list that has a query default LOV (select jobname d, jobid r of the work) but now iam trying to create application processes to pass new values LOV (like select ename d, empno from emp by 1 r) replacing the previous lov when a button is clicked

    any idea please?

    Apex 4.2.x

    Kind regards

    Gor_Mahia wrote:

    fac586

    good idea to use the function in the pipeline, but I really want to use ondemand/ajax call here I don't mind spending extra energy so long as its feasible

    I never mentioned in pipeline functions.

    A dynamic LOV can be created as either a static SQL query:

    select ename l, empno v from emp order by 1
    

    or in the body of a function that returns a SQL query:

    declare
    
      lov_sql varchar2(4000);
    
    begin
    
      if :foo > :bar
      then
        lov_sql := 'select dname l, deptno v from dept order by 1'
      else
        lov_sql := 'select ename l, empno v from emp order by 1'
      end if;
    
      return lov_sql;
    
    end;
    

    This will allow you to create a dynamic data source for the LOV using some logic is required. LOV options can be modified using standard dynamic action of refreshment. There is no need to create an additional On demand process or write complex AJAX code. Use declarative when possible.

    "Less code is less than bugs. Seek ways to write less code. "- Tom Kyte

  • How to move grid in a region with the selection list, dates selector and buttons?

    Hello

    I'm on Apex 4.2.4 and using the theme 25.

    Most of the time the reactive model is great when you want to align things. But in this case, I want just the displayed items from left to right.

    I have the setting on the top bar and I want the elements all in one line.

    [Date Picker] [30 days] [60 days] [90 days] [Site selection list]

    The date picker is so that they can choose a specific date and the three buttons are there to make the date of the report to jump to sysdate + 30, 60 or 90. And the list of location selection, is that they can specify the type of report.

    I can't get them to single-line layout. I tried several different combination, including the specification of the column and the extent of column. And none of them does not seem to work.

    Apex login

    workspace: bulbcharts

    user: guestdev

    password: graphics

    ID of the App: 73911

    Page: 1

    TC-army wrote:

    Is there a way to disable just grate inside this one region? I just want to bring to the left of the battery (float). But the grid is not able to handle this.

    Could not drop.  Credit for going to this thread:

    https://community.Oracle.com/message/10914920#10914920

    Here's a demo which I believe meets your needs:

    https://Apex.Oracle.com/pls/OTN/f?p=61859:1

    Jeff

  • Failed to create a dynamic action ALERT to build a Select list when selecting a particular value.

    Hi everyone, this should be so easy, and yet I'm stuck.

    I have a form with a P110_VESSEL_ID element.   This article is a list of selection.   It is based on the query:

    Select distinct v.vessel_name, v.vessel_id

    of ships v, frequent_fishermen ff

    where ff.dea_permit_id =: G_PERMIT_ID and

    FF:vessel_id = v.vessel_id

    UNION

    Select v.vessel_name, v.vessel_id

    of apex_collections v, vessels

    where collection_name = "SUPVES_COLLECTION" and

    a.C002 = v.vessel_id

    If the user decides from the values in the selection list query, they can opt to SELECT all THE VALUES.  This SELECT all VALUES is a TEXT of ITEM POST on P110_VESSEL_ID.

    < a id = "popVessels" href = "#" > < font color = blue > select all < /a > ships

    It all works very well.

    The problem is that when the user selects a boat name = "UNKNOWN" and it is corresponding to the value of vessel_id, I want an ALERT to appear indicating that they should check that the boat is UNKNOWN and no one's any ship.

    I created a dynamic action

    event = change

    Select type = item

    Item = P110_VESSEL_ID

    Real ACtion #1 is the ALERT.

    Currently, I have no other logic, but can't even get this working.  All thoughts.   I also tried the SELECT TYPE = jQuery Selector = select [name = "P110_VESSEL_ID"], but that does not work either (although I am not sure if the value must be P110_VESSEL_ID or static VESSEL_ID name).

    Any help is appreciated.

    PS. the page is not submitted when the ship is changed.  There are other data that should be in this region and others and many validations run when submit to submit would not be an option.

    Thanks again,

    Karen

    Is (BOAT = UNKNOWN) a single value with a single vessel_id? If Yes and for example if the vessel_id is 99, then proceed as follows:

    Add an expression "JavaScript" in your dynamic action.

    In the Condition value, enter:

    this.triggeringElement.value == "99"
    

    -Jeff

    And I agree with Nicolette, there is something wrong with some other DA who is at the origin of the DAs after that does not work.

  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

  • Element of the selection list appears when the cursor is placed

    Hi all

    Version: Apex 4.2.5

    I need when the user places the cursor over a selection list, it should display the list. I need to implement this approach to all the selection in my application list.

    Can anyone suggest me how to do the same?

    Thanks in advance.

    Best regards

    Patrick

    Did you mean something like this:

    JQuery: Expansion of the bubble option - Stack Overflow

    See this violin as well:

    http://jsfiddle.NET/bplumb/GE86L/1/

    Thank you

    Sunil Bhatia

  • refresh the html region when the selection list or selected ir line chang

    Apex 4.2

    Hello

    I made a simple page for test actions.

    I have

    -an interactive report and a selection in my first area list.

    -a field of text (P5000_indid) to keep the selected indid

    -region of html where the source is:

    DECLARE

    CURSOR c_ind IS

    SELECT indid, ind, industry

    IND

    WHEN indid as: P5000_INDID;

    BEGIN

    FOR a c_ind IN LOOP

    HTP.p ("< style b =" white-space: nowrap;) "> Indid: ' |" a.indid |' ---> ' || a.Industry: '< /b > < br / >');

    END LOOP;

    END;

    I'm sorry, but I m a bit confused with all the things I read before and do not know what is possible or not and what is the best practice to:

    1. select in the selectList (is it also possible to retrieve the selected (highlighted) or line in the IR)

    2 update the P5000_INDID

    3. refresh the html box according to the value of P5000_INDID (I was able to refresh an IR according to value, but there was the possibility to say what variable to present, but I have no

    see for the region of html)

    I m doing this test, because in the end, I would like to be able to regresh a small chart according to the selected line of the IR.  Do you think that it is possible to s?

    Sorry for my newbie question

    Thanks for your help

    L.

    OK, I finally found everything that I needed,

    You can test it on:

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

    Demo/demo

    the content of the output area now is the result of an application process, according to a parameter.

    It is called with javascript onChange and response replace the contents of the region

    and you can also see that I can now select a line and show it by changing the color of the line, and then update the output.

    and when a line is selected, it resets the selection on the selectList to avoid triggering the event on the selection list.

  • 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.

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • Reset the other values in the list of selection when it is clicked on a selection list.

    I'm currently developing a report based on various selection lists. I have three selection lists. When I select a value in that I want them to have the value zero. Like that when I select my button GB the report displays only the information related to the value in the selection list, I clicked. (I've already worked my report based on a function, plsql referring to different queries depending on the valuses of selection lists and he needs 2 of the three to 0).

    Thank you
    Greg

    Greg,

    I've made a few changes (no worries, you can export your application as x min there is to get him back if you like):
    1. I have modified your reports to simple sql queries and put logic in the where clause.
    2. I changed the first to the elements to make them more standard.

    Play with the page a bit and I would like to know if it's on the right track...

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • How do the value in a selection list to a text field without submit?

    Hi all

    I have a Select list that looks like:
    Select short_name | ' - ' || country d
    SHORT_NAME r
    of mo.eu_country
    order by 1

    Then I have a text field (persons with reduced mobility, saved state).

    What I want to do: when a country is selected in the list-> set the value of text field with the short name of the country from the selection list (short_name r).


    Anyone know how I can get this done? (should I use AJAX?)

    Kind regards
    Ana-Maria

    Here is alink to Scott Spendolini autopopulate generator:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=33867:2:1496599659878861:no:

    I use it and it works fine.

  • When selecting a "select list with redirect', all variables are losing value

    I have a form where a field (: P38_CUSTOMER_ID) receives its value from the parent report and it appears as: "display text (saves the State)).".

    I have 2 fields from selection list. The first (: P38_COUNTRY) is shown in the form "select list with redirect.
    As soon as I select the value (name of the country) in this list box, I lose the value: P38_CUSTOMER_ID.

    An idea on what I need to do to ' P38_CUSTOMER_ID to avoid losing its value?

    Thanks in advance.

    You are welcome. There are many options to choose from ;-)

    Be sure to note the answers as people only get points if you do.

    Thank you
    Dimitri

  • change the results of the report with the selection list using dynamic action

    This is one of those situations where if I could understand the appropriate search terms to use, someone else must have asked this question in the past.

    I have a report with a SQL query with a condition based on a list of selection on the same page. So I have a list of selection -: P177_FISCAL_YEAR

    My request for my report is:

    Select md_id, display_name, description
    of media_tbl
    where fiscal_year =: P177_FISCAL_YEAR

    When a person makes a selection on the selection list (: P177_FISCAL_YEAR), I would like to report up-to-date without having to submit the page. I was hoping that I could do something like this using a dynamic action but have not found a way to do it.

    Thanks in advance!

    John

    Create dynamic Action:

    When
    Event: change
    Selection type: product (s)
    Article (s): P177_FISCAL_YEAR
    Condition: - unconditionally.

    Real Actions (add 2 real actions)
    -the first is to load the value in session state so that the report can see.
    Sequence: 5
    Action: execute the PL/SQL Code
    Code PL/SQL: null;
    Items to submit page: P177_FISCAL_YEAR

    -the second to refresh the report
    Sequence: 10
    Action: Discount
    Selection type: region
    Region:

  • Invalid results based on the select list

    Hello
    I've set up 4 LOVs cascading in a test application. They fill each value based on the value of the parent cascading with success. My example is based on the query Ajax Denes Kubicek - Section III - for example - http://apex.oracle.com/pls/otn/f?p=31517:135:1771969688591802:NO. But I use 4 Cascading Select list not 4 text fields. My problem is that I am not able to scroll through records using the previous and next unless I select all 4 list selection of waterfall to fill the data in the record. I would like to be able to select the 1st list select then click on the search button to fill in the data of the registration for the selected value. Then use the previous and next to scroll through the data in the record. This code allows selection of cascade 4 list to keep focus when the key search selected. But the correct data are not returned if I only select 1 list select value and then click on the search button.
    //  alert('TagName=' + l_El.tagName + ' id=' + l_El.id)
                    if(l_El.tagName == 'INPUT' || l_El.tagName == 'SELECT') {
                        l_El.value = l_Value;
    Published by: Charles was October 8, 2009 07:53

    Hi Charles,

    OK - it works now.

    I made a few changes here and there. Basically, I defined by default for four '-1' lists and accounted for this through the page and processes. You had the wrong name for the last item in your function onLoad(), so I've changed that. Also notes that the question of the "closing date" must be formatted with a date MM/DD/YYYY formats to ensure that these are properly (the date of default real format came in the form DD-MON-AA, so you would have questions there if you don't stick to a single format). For each item, you can choose another value by default if it makes more sense for you, but you go through every place where the list is mentioned/used for updating the-1 for her to this new value.

    The processes themselves also tried to update the four lists as you go through the records. As the lists would not necessarily have all the values on them (you can click on search without making any selection, for example), I disabled these bits. However, you you should consider adding to the class section of THS page as new, so that the user can view all the information. The alternative would be to have all the lists display all the values unless otherwise filtered by their parent list - always feasible, but may be confused?

    Andy

Maybe you are looking for

  • Pavilion 15 ab108ax: Hp Pavilion 15 ab108ax windows 7 64-bit

    Hello, my laptop came with windows 10 preistalled. It was a kind of lag, so I installed windows 7 64-bit. My laptop has (amd a8 7410 apu with the processor with amd radeon r5 2.20 ghz graphics card). Please help me find the pilot network for windows

  • How to combine digital charts

    Hello How to combine or merge the table 1 d of digital waveforms with a simple digital waveform. As givien in the attached VI, I want to display the datalines chart & graph of control lines in a simple graph of digital waveforms. Thanks in advance

  • (Redirected) Time to upgrade the server

    I need to upgrade my server. I've been using a 400SC for about 12 years with Server 2003 and it has served us well. I have 8 client machines. The server is a domain controller and a file server for 2 programs. No mail electronic or other uses. I am t

  • Ringtones official classic blackBerry

    Hello When I was with BB9790, I downloaded official ringtones of RIM 5.0 to the BB world. Because I liked ringtones 5.0 for OS 6 / 7, I used it. As you know, classic BB doesn't have the same ring tones. In particular, I want BB pro (name of Notificat

  • Any difference between these 2 types of installation of Windows?

    Hello, I usually install Windows 7 or 8 with DVD. (start) but, when I realized that I can just install Windows 7 or 8 my hard drive (I have 2 dosks: C and D.)  course, I start installation of disk D because C is the system) Just run the installer and