Fill in the text field of the value of select list using javascript
HelloI'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
Tags: Database
Similar Questions
-
Link a text box to a value of selected list of the menu drop-down
I have a drop drown list 5 names in Adobe Acrobat PDF format. Based on the name of the person, that you select in the menu dropdown I would like the text box automatically fill with the telephone number of this person. For example:
Drop down the list the name of the field ('Name')
Jake
Bob
Maria
Field name of phone numbers ('number') so that the number of simplicity, Jake is 100 and so on.
Jake / / 100
Bob / / 200
Maria / / 300
My code does not work and I am close to understand, do you know what is the problem?
var x = 100;
var y = 200;
var z = 300;
If ((this.getField('Name').) Value = 'Jake')
this.getField('Number').value = x;
var a = this.getField ('Name');
var two = this.getField ('Number');
If (one.value == 'Jake') {two.value = '100'}
If (one.value == "Bob") {two.value = '200'}
If (one.value == 'Maria') {two.value = '300'}
If (one.value == "") {two.value = ""}
-
NULL text field, how to fill in another text field
I would like to be able to invite the user to fill one of two text fields, if for example they fill in A text field, then no guest would jump to the top, but if they don't fill in the text field then a prompt would leap upward by asking them to fill out the text field B.
Thank you
Hello
One way would be to place a JavaScript in the output of TextFieldA event:
if (this.rawValue === null) { xfa.host.messageBox("Please complete Text Field B", "Attention", 0, 0); }
However this fires when the user leaves TextFieldA. You may need extra script if it is likely that the user is not yet in this text field.
Niall
-
Display the values in a list in a certain way
Hello
I'm looking for a way to display the values in a list by the first value by a slash and the rest with an indentation.
In other words in this way:
/value
Value1
value2
value3
etc...
Please see the attachment for a better reference where data are received and then filled to the window list.
Thanks for your comments
Thanks guys,.
I endend up doing this:
If (i == 0)
{
sprintf (current_log_view, "/ %s", cnfg_display_db [i] "");
}
on the other
{
sprintf (current_log_view, "%s", cnfg_display_db [i]);
}
SetCtrlVal (log_panel, LOG_LOG_TB, cnfg_display_db [i]);
InsertListItem (dir_list_panel, DIR_LIST_RETR_LIST, current_log_view, i, 0);and it works very well!
Thanks again
-
Can not set a value by the executed dynamic action on the page element "selection list."
I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.
I created a dynamic action on the page element "selection list" for this.
These are the dynamic action attribute:
When:
======
Event: change
Selection type: point
Article: P29_PURCHASE_ORDER
Condition: No strings attached
Advanced:
========
Scope of the event: static
Identification:
==========
Action: Set
The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "
Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon
I want to value when the value of change of select list according to this change successfully.
Please, advice me,
Best regards
Mustafa Ezzat
Hello
you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?
Then, the SQL statement would use the current selected value.
This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»
Kind regards
Erik-jan
-
How to reset the value of a list of entry of null values
Hello
Jdev 12.1.3.0
How to reset the value of a list of entry of null values
Thank you
AR
Place this code in your ViewRowImpl (base) class and use it when you need to reset _all attributes applied by LOV
@Cvele: in fact, this will happen "by design" when you set the attribute which has attached lov to null, so there is no need of additional code.
See also this blog: binary: prevent the execution of query unwanted in British Colombia ADF when used in Non - UI applications
My previous answer is more related to this approach:
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding iterator = bindings.findIteratorBinding("IteratorName"); Row r = iterator.getCurrentRow(); r.setAttribute("SomeAttrib", null);
Dario
-
Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?
Guessing
Select nvl (x.col_a, y.col_b) the_column
from table_1 x,.
table_2 y
where x.pk = y.pk
Concerning
Etbin
-
How the value for several variables using a single guest
Is there a way to put more than one variable with a single guest?
for example, the value @CurrentYear and @PasteYear using just a single guest for @CurrentYear.
A clue?
Thank you
LukeUsing variables to repository you can set like this.
Check this link http://gerardnico.com/wiki/dat/obiee/set_variableIf brand pls help
-
Where can I find the "recent pages" selection that used to be next door buttons 'Back-Forward "?
Make a right click the back / front button.
-
Hi all
We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.
Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?
I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through
-
Is it possible to get the appid, pageid and sessionid using javascript?
Hello world
I need to get the appid, pageid, and sessionid using javascript, is it possible to do this?
Hello
If your JavaScript is in file:
$v ("pFlowId") = application id
$v ("pFlowStepId") = the page id
$v ("pInstance") = session id
Kind regards
Jari
-
How to detect the operating system to PDF using javascript
Hello
How to detect the operating system to PDF using javascript. (Javascript console)
Thanks in advance.
App.Platform will return "WIN", "MAC" or "UNIX".
-
How do I wrap text in a drop-down list using JavaScript?
How do I wrap text in a drop-down list using JavaScript?
The field name must be in quotes in the first line.
-
Fill in fields on a form based on the value of a list? (Dreamweaver CS5)
Yet once, it has been a while since I've done any work in Dreamweaver. I have two sets of records, rs1 and rs2. Fill a selection area with a dynamic field, rs1. Based on the value of the selection in the list box and use it as a primary key and a database .mdb I want to fill that second record, rs2 and respective fill some additional fields with its dynamic links.
Assuming that everyone can understand what I so badly stated, with a having a few ideas or, better yet, a few examples?
Thank you!
I agree with Nancy that using Access is a bad choice, to answer your question, it seems you want to create a montage cascading down. Dreamweaver is not integrated to manage cascading dropdown lists. You code yourself.
There are two approaches for cascading drop-down lists:
- Use Ajax to present a second query to the database when the first drop-down list is selected.
- Store the values of the dependent drop-down list in a table, and use JavaScript to fill in the options in the first drop-down list is selected.
This page of examples of cascading dropdowns: example of DropDownList in waterfall | Kendo UI Dropdownlist demo. A Google search for the cascading drop down list will produce other results.
-
How do fill you a text field based on the entries in other text fields?
I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.
For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".
How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.
Please point me in the right direction!
Try the script below. I put this on the calculate for Field1 event
If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}
Field1.RawValue = "incomplete."
}
on the other
Field1.RawValue = "complete."
Maybe you are looking for
-
I've recently updated WIndows Vista with Microsoft updates. After the reboot, the fonts on most of the pages in Firefox and my word processing program, (StarOffice not MS Word), light, incomplete, appearance part of the letter low while the rest is d
-
Cannot get my gmail on firefox yahoo
I could get my gmail a few months. Now, I can't sign it on Firefox Yahoo.
-
Satellite L - Wave descriptions of the BIOS update
TEMPRO caught my eye on an update of the BIOS which "increases the features.So far I did not worth to install updates TEMPRO as none of them seem to be important.A more detailed explanation of what a particular update BIOS will improve would not be u
-
TCP works on different networks
Hello I have a problem with the TCP/IP communication. I write a program of communication TCP/IP (client-server) and it works fine when I tested it at the office (same network). But when I tested the program when server and client VI are connected to
-
Victorinox original title: Windows problem Im a senior looking for a job. When I'm craig's list and to to load my windows exployer RESUME come with a window that says "cannot perform this operation because the default mail is not properly installed.