Fill in the data in the text field

Hi all
Here, I'm a bit confused. In my page, I have three text boxes, they are - P10_YEAR, P10_MONTH, P10_TOTAL. I use LOV for year and month field. LOV is as for the year 2000, 2000, 2001; for the month of June 2001; June, July. ; July and so on. Month field is set to textbox to validate.
So I want to recover the data in the P10_TOTAL when the user selects the month. Interestingly, it always returns 0, but it should be more than that. I put the Source for P10_TOTAL as PL/SQL Expression * 0 = (SELECT count (*) from rtv_metro_count where record_month =: P10_month); * but it does not work. However, it does not work in the sql query and the toad. I tried to change the SQL query expression, but doesn't work anymore.

Is there another way, I can run this task, retrieve data from the table in a specific text field? Please provide your suggestions.

Thanks in advance.

Djelloul

Create a process page - on submit using the following code:

DECLARE
v_count NUMBER;
BEGIN
SELECT COUNT (*)
IN v_count
OF rtv_metro_count
WHERE record_month =: p10_month;

: p10_total: = v_count;
END;

and eliminate the source of pages by assigning static assignment - only when the current value in session state is set to zero.

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Fill in the text field when TWO radio button is unchecked

    Hello

    I don't know anything about javascript and need help.  I have a photography contract I want to offer a "discount package" of $50 when the two services will be used.  1 service is 'Photography coverage' and Service 2 'Photo Booth Rental'.

    Text field 1 = subtotal (calculates the values of checkbox and radio button)

    Text field 2 = discount (it's where I need help.  I would like this automatically filled with $50 when my default two boxes are not selected.  But only when the TWO are not selected)

    Text field 3 = Total (which has a basic calculation of the Subtotal-Discount)

    The services of two by default (it's done on purpose, I checked from the beginning) are both set to the '0' values to keep the subtotal $ 0.  If the client will use a service (which means one of the default selections will be selected), then there will be no discount, but if they decide to use photography and the cabin, they save $50.

    Can someone please help me to write a script for the text field, Discount calculation, to accomplish what I ask?

    Untitled-3.jpg

    You can use something like what the calculation script custom field discount:

    Event.Value = (this.getField("Service1").value == 0 | this.getField("Service2").value == 0)? 0: 50;

    Simply adjust the field names in the code to match the real in your file.

  • fill in the text field by clicking on another link on the page

    I have two pages. When I click on the link on the first page, it fill the text field on the second page (pull out the 'from' value). My first page abc.php codes:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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=utf-8" /> <title>Untitled Document</title> </head>  <body> <p><strong>From</strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;Subject</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Reply</strong></p> <p>biri&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deneme girdi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">click</a></p> </body> </html>

    and this is the second page lumu.php:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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=utf-8" /> <title>Untitled Document</title> </head>  <body> <form id="form1" name="form1" method="post" action=""> <label> <input type="text" name="hum" id="hum" /> </label> </form> </body> </html>

    What should I do?

    I thought about it. Thank you.

  • Drop-down lists of the fill of the text fields on a different page from the drop-down list.

    Hi all

    I have a form with multiple pages. The first page contains a number of drop-down lists. These lists, drop-down list when the option is chosen, must complete a field text on another page. I can get the drop down menu to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script does not work. Can anyone offer a solution? I used javascript on the changes to the scripts.

    Every time reference you the other object... so I guess in the code located on the DDlist.

    Paul

  • JavaScript - fill out the text field with data entered

    Hello

    I am learning javascript and need help to put in place a script that will do the following:

    I have three text fields where users enter data. I would like to take this data and provide a summary in a 4th text field. If a field is null, it should be ignored.

    TextField1

    textfield2

    textfield3

    Summary data entered above must be posted in textfield4.

    Text1

    Text2

    Text3

    Your help would be much appreciated.

    Thank you!

    Varns

    Hello

    On the calculate event of the textfield4 put the following text (or something like that):

    var str1 = "";

    var str2 = "";

    var str3 = "";

    var str4 = "";

    If (TextField1.rawValue! = null)

    {

    str1 = TextField1.rawValue + "\u000a";

    }

    If (TextField2.rawValue! = null)

    {

    str2 = TextField2.rawValue + "\u000a";

    }

    If (TextField3.rawValue! = null)

    {

    str3 = TextField3.rawValue;

    }

    STR4 = str1, str2 + str3;

    If (str4 > "")
    {
    this.rawValue = str4;
    }
    on the other
    {
    this.rawValue = "";
    }

    You may need to adjust to your exact needs - good luck!

    Stephen

  • Fill in the text fields of the select list

    I have a select list when selected will fill two text fields with values based on the SQL query

    For example. The selection list is for empno and meets ename and sal in two different fields.

    I looked at the example of the Dene http://htmldb.oracle.com/pls/otn/f?p=31517:42 it's very good, but the only problem I do face is how to fill in several fields.

    Any help will be appreciated.

    ZRH

    Hello

    It would depend where SAL data. If it's on your page, then you could probably do something with javascript. If this isn't the case, you will need to do some Ajax to retrieve the value of the database. Take a look on: http://htmldb.oracle.com/pls/otn/f?p=31517:80

    Your select list can include the ENAME and SAL and your javascript values existing would then just divide the data into two parts and insert them into the appropriate fields.

    Andy

  • Fill in the text field

    Hello

    I have a drop down that is filled from one selection of another menu drop down menu using the addItem script. This new drop-down menu will have only two values.

    Is it possible for a text field is filled with the "unselected" value in the menu drop-down?

    I have attached the document here. Text fields will replace the A - G labeled drop-down lists on the lower part of the doc.

    Joe

    Hello

    I changed the "A" in a drop-down list of a textfield and changed the SOM in the script.

    The main search script is in DropDownList4.

    I moved your script addItem event entry in the preOpen event, which is better to fill drop-down lists. Also have a look at the script, because I put these two addItems, 0 and 1 values.  This means that the user sees the team names, but the script can then reference the bound values.

    The new script is in the case of release of the first game. It looks like the value of the selected item in the drop-down list and then fills the 'A' with the other name for the teams.

    if (this.selectedIndex == "0")
    {
         TextField15.rawValue = this.getDisplayItem(1);
    }
    else
    {
         TextField15.rawValue = this.getDisplayItem(0);
    }
    

    I have the first fact, you should be able to follow for others.

    Good luck

    Niall

  • Fill in the text field of the value of select list using javascript

    Hello

    I'm editing a form where a text field is to be filled using an On-Demand application process. The process is called with an OnChange.

    Application process:
    declare
      l_CCSS_STATUS varchar2(100);
    begin
      select CCSS_STATUS into l_CCSS_STATUS from PATIENT
        where ID = :P11_PATIENT_ID;
      htp.prn(l_CCSS_STATUS);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    l_CCSS_STATUS := 'Inactive';
      htp.prn(l_CCSS_STATUS);
    end;
    In the attributes of HTML Form selection list element:

    onChange = "javascript:f_getStatus()"; "

    It fills a text field (: P11_CCSS_STATUS) when I appreciate is selected in the select list.


    I am filling a second field (: P11_COPY) with a (share) value for the same table of PATIENTS, but don't really understand how the: P11_CCSS_STATUS field is filled in from the application process.

    If I understand the request of the share in the application process, then it is appended to the value CCSS_STATUS and appears in the: P11_CCSS_STATUS text element.

    Any help is appreciated.

    Thank you
    Matt

    Hello

    visit the similar to the below application process

    declare
      l_CCSS_STATUS varchar2(100);
      l_COPAY varchar2(100)
    begin
    
      select CCSS_STATUS , COPAY into l_CCSS_STATUS , l_COPAY from PATIENT
        where ID = :P11_PATIENT_ID;
      //notice this line.... how the response is send
      htp.prn(l_CCSS_STATUS || ',' || l_COPAY);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    l_CCSS_STATUS := 'Inactive';
      htp.prn(l_CCSS_STATUS);
    end;
    

    and javascript call you to something similar to below.

    function myAjaxCall()
    {
       var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=myAppProcess',0);
       ajaxRequest.add('P11_PATIENT_ID' , $v('P11_PATIENT_ID'))
       //notice the below line.. use of split function
        ajaxResult = ajaxRequest.get().split(',')
       $s( 'P11_CCSS_STATUS' , ajaxResult[0]);
          $s( 'P11_COPAY' , ajaxResult[1]);
    }
    

    Example: http://apex.oracle.com/pls/apex/f?p=12060:110

    Kind regards
    Shijesh

  • fill in the text field with the caption for the radio list

    Hi, I'm looking for an answer to this all morning.  I need to use the value of a list of radio to populate a text field.  I can get the selected numeric value OK with

    $.rawValue = form1. #subform [0]. . Table3.Row1 #SubForm [0]. . RawValue location [0]

    but I want to get the text associated with the value element.  This could be the legend of the selected option button, since it is the same thing.  I don't want to use an if statement because I have a lot of forms to create and that would change things a few times in each shape.  How can I get the value of the text of the column of the item below?

    screenshot.17.png

    Try the following with two modifications to your hierarchy.

    (1) currently, you do not have a name for Page1. Make sure that you assign a name for ease of use. ("Page1").

    (2) define a name for the subform that contains PeriodRadio. ("Subform1").

    $.rawValue = form1. Page1. Table3.row2. Subform1. PeriodRadio.selectedMember (). caption.value.text.value;

    Thank you

    Srini

  • Current date &amp; time in the text field

    I need to automatically populate a text field with four letters so the date and current time. The field must fill out when the user clicks on a checkbox.

    For example, if it is today, April 25, 2012 and it is currently 10:27, the text field should read: UNIS0425121027.  (Time can be in time military or not - it's not bad).

    Thank you in advance for any help you can offer.

    Try the following in the initialize event of the text box.

    Change the scripting language for FormCalc.

    TextField1.rawValue = Concat ("UNITED", Num2Date (Date (), "MMDDYY"), Num2Time (Time (), "HHMM"));

    Thank you

    Srini

  • fill in the selected field of text based on the value of lov

    Hello
    Depending on the value selected in lov, I want to fill another text field. Here is the code I wrote

    Of the PFR:

    If (PageContext.isLovEvent ())
    {
    String lovInputSourceId = pageContext.getParameter (SOURCE_PARAM);
    If ("lovCategory".equals (lovInputSourceId))
    {
    java.util.Hashtable lovResults = pageContext.getLovResultsFromSession (lovInputSourceId);
    if(lovResults!=null)
    {
    = (String) lovResults.get ("lovCategory"); value string
    amobj.categorycode (value);

    }
    }
    }

    Code AMImpl:


    {} public void categorycode (string code)
    sundryCodeVOImpl vobj = getsundryCodeVO1();
    vobj.setWhereClause ("lookup_code =" + "'" + code + "'" ' ");
    vobj. Reset();
    vobj.executeQuery ();

    String desc = vobj.first ().getAttribute("Description").toString ();
    String attr = vobj.first ().getAttribute("Attribute1").toString ();

    testEOViewImpl vobj1 = gettestEOView1();
    vobj1. GetCurrentRow () .setAttribute ("CodeDescription", DESC);
    vobj1. GetCurrentRow () .setAttribute ("PurchasingCategoryCd", attr);
    vobj1. ExecuteQuery();
    }

    With this code, updates to the code attributes, PurchasingCategoryCd values get inserted in the database table, but they now appear in the text fields when a value is selected in lov.

    Please tell me what is the error that I do.


    Thank you
    Sunny

    Hi sunny

    Going through the thread, it seems that the application of LOV VO has three columns viz A, B and C. You want to put the value of the B column to a text field, if this is the case. Simply create a LOV mapping for column B.

    Also I suggest you take a messagestyledtext for the B field as value comes form LOV himself.

    Thank you
    AJ

  • How do i: fill automatically the area other sections of the text field form?

    Hello. Need help please!

    I need a script, I guess that for a field text entered by the user automatically fill the area in the headers in the form of entry.  The header is identified by all that will enter the name of the user on the cover page.

    ID be very grateful.

    Stephanie.

    If you name the field in the header exactly as the text field, then you just need to set the binding at the global level and no script is needed. You can set the binding in the object palette in the binding tab. Then in the drop-down default choose global binding.

    Paul

  • MODIFICATION OF DATA FOR THE TEXT FIELD

    Hello

    I NEED TO CHANGE THE TEXT FIELD DATA OR CHANGE THE POLICE PROMPT DURING RUN TIME.

    Kind regards

    C V S

    Hello

    Do you mean the text prompt? then replace the PROMPT_FONT_NAME by PROMPT_TEXT.

    SET_ITEM_PROPERTY('.', PROMPT_TEXT, 'COURIER NEW');
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • Print everything that is typed in the text field without printing the text fields

    Hello

    I am trying to print a form once filled the text fields I want to print just what I typed in the field, not the text field and the color in the text field. I use CS3.

    Any help would be appreciated!

    Hello Teddy and wellcome to the Group!

    If you want to change the fonts or other things, then you will need to use the PrePrint method. What I usually do is select PrePrint in the 'Show' section in the Script Editor (if you did not go to the toolbar at the top, Windows and select Script Editor). After selecting PrePrint you can now either type the name of the subform and the field you want to change (or you can place the cursor in the script dialog box, hold down the CTRL key and select the field with the mouse) and enter in the JS to change font. It's something like TextField1.fillcolor = "255, 255, 255; (which changes the background in white fill). You can also replace fillcolor fonts or border to change the color of the police or the border. I put a link to an Adobe website that goes over the color JS below changes. You just need to add a method of pre-press for each field that you want to remove the necessary on highlighting. Then once the user hits a button print that you have on the form or use CTRL + P to print the form, it will remove any highlighting.

    Now on the text field does not itself feel that I do not know what you ask for. You ask for the legend does not print or not there is a box around the data entered. If you don't want to have a box surround the text field located in the section purpose of the field (see image below). You just need to select none, if you want to just text. If you want to change that with JS, I put another link below that has the code to change the color of the border in white and the user can't see it. If you do not want to print the legend, the only method is to remove the legend from the text box and replace it with a static text that can be hidden, but I guess that it isn't what you're talking about (correct me if I'm wrong however).

    http://partners.Adobe.com/public/developer/en/LiveCycle/Designer/PDFs/ChangingFieldAndSubf ormBGColors.pdf

    https://forums.Adobe.com/thread/1409617

  • BlackBerry smartphones increase the size of the text field?

    How can I increase the size of the text field on a 8330?  I can about 5 rows of data.  Thanks in advance

    Sorry, 160 characters, and you cannot change it

  • Format mask of Crete then we enter some numbers in the text field

    Hello

    Version: Oracle Apex 5.0

    I'm trying to format mask using dynamic action. As if you enter 6 digit values in the text field, it must be auto filled with sign.i.e «-» 333 333

    Created:

    Dynamic action:

    event: key to exit

    Article: xxx

    JavaScript: $v('xxx').replace(^[[:digit:]]{3}-[[:digit:]]{3}$)

    When: touch button

    It does not any help would be great.

    Followed stops:

    Re: How to make a format for the input mask?

    Hi Pranav.shah,

    Pranav.Shah wrote:

    Version: Oracle Apex 5.0

    I'm trying to format mask using dynamic action. As if you enter 6 digit values in the text field, it must be auto filled with sign.i.e «-» 333 333

    Created:

    Dynamic action:

    event: out of key

    Article: xxx

    JavaScript: $v('xxx').replace(^[[:digit:]]{3}-[[:digit:]]{3}$)

    When: touch button

    It does not any help would be great.

    Followed stops:

    Re: How to make a format for the input mask?

    Use instead the input mask text "Text hidden v5.0" plug-in for Oracle APEX 5.0.

    Reference: Oracle Application Express Plug-Ins

    Kind regards

    Kiran

Maybe you are looking for

  • hybrid mode 9074

    I want to use the 9074 in hybrid mode but cannot get the data passed to the channels when you step up to the level of the chassis. is there something that I am missing? I was able to do this on an another cRIO model (9012). the 9074 does support this

  • Cypress AN2131 USB controller

    Hi all I'm trying to control a Hygrosens (www.hygrosens.com) - OUT32-IN32-card USB (http://shop.hygrosens.com/en/acma-acma-7/acma-acma-3/Digital-Combo-I/O-Card-OUT32-IN32.html) through LabVIEW. There is a Cypress AN2131SC on this USB controller. The

  • question on storage

    HP Slate 2800 7 8 GBSerial number [edited by Moderator]No. E0H92AA #UUFI have a problem of internal storage, after that it's been fixed in the center of HP service because of the display of garbage. 8 GB, now it's up to 1 GB. I brought it here (servi

  • Windows Movie Maker - DVD edition gives an error "cannot create the DVD-catastrophic failure."

    Try to publish the storyboard to DVD table. Opens in windows DVD Creator but when burning process is proceeding stops encoding and message appears "unable to create the DVD-catastrophic failure" of ideas where I'm wrong.

  • 'Upgrade' from Vista to Windows 7 without a clean install

    Is it possible to upgrade from Vista Home Premium 64-bit for Windows 7 Professional 64 bit. I searched through the forums and most of the responses seem to confuse "upgrade" with "clean install". I bought the Windows 7 upgrade in order to keep all of