Using AJAX to populate the display field only

Hello

I use APEX 3.2.1.
I try to use AJAX to get the value of a table and display it as something "view only". Everything works fine when I use a text field but it does not work when I change the element to "display only".

No idea what could be the problem?

My request is here:
http://Apex.Oracle.com/pls/Apex/f?p=25943:2

User name: admin
Password: admin

Thank you
Matthias

Hello

My example can help you
http://Apex.Oracle.com/pls/Apex/f?p=40323:30

BR, Jari

Tags: Database

Similar Questions

  • How can I automatically populate the date field after only one "digitally signs" a .pdf form? Help, please! Thank you!

    How can I automatically populate the date field after only one "digitally signs" a .pdf form? Here's a sample:

    _ Digital Signature___ (signs), Date (Auto-remplit)

    Under field properties of the signature on the signature tab, you can use a custom script, like this:

    this.getField("Date").value = util.printd ("mm/dd/yyyy", new Date());

    You know, however, that a digital signature always displays the date and time, it has been applied?

  • When I click on an address, instead of the name of domain appearing in the url field, only the IP address appears. How can I get the real domain to pop?

    When I click on an address, instead of the name of domain appearing in the url field, only the IP address appears. How can I get the real domain to pop?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • Using AJAX code for the conditional selection list.

    Hello

    I use AJAX code for the first time, I have no knowledge in java, I got the code from this forum and try to manipulate my requirement.

    My requirement is that I have two selection lists, host_name) 1 and 2) database_name.
    As soon as I pick/choose the value of host_name select list, I need to fill in only the databases on this particular host. I don't want to send the page for this action.

    Here is the code, thank you if anyone can help.


    On request the code application process:
    -----------------------------------------------------
    declare
    number of l_counter;
    l_o_name varchar2 (2000);
    Start
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN ("< select > '");
    for rec in (select "ORA_DATABASES_VW". "' Database_name ' as 'database_name ',.
    'ORA_DATABASES_VW '. "" DB_ID "as"DB_ID ".
    of 'ORA_DATABASES_VW '.
    where 'ORA_DATABASES_VW '. ("' HOST_NAME ' =: TEMP_ITEM)
    loop
    HTP. PRN ("< option value ="' | rec.db_id |) '">' || Rec.database_name | ("< / option >");
    end loop;
    HTP. PRN ("</select > '");
    end;

    Header HTML on this page:
    =================
    < script language = "JavaScript1.1" type = "text/javascript" >

    function get_List_XML (source_item, target_item) {}

    var v_Target = html_GetElement (target_item);
    var v_Source = html_GetElement (source_item);
    var ajaxResult = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = POPULATE_LIST_XML', 0);
    ajaxResult.add ('TEMP_ITEM', source_item.value);
    var v_result_xml = ajaxResult.get ('XML');

    If (v_result_xml & & v_Target)
    {
    var options_Contents = v_result_xml.getElementsByTagName ("option");
    v_Count = options_Contents.length;
    v_Target.length = 0;

    for (var i = 0; i < v_Count; i ++)
    {
    var v_opt_xml = v_result_xml.getElementsByTagName ("option");
    appendToSelect (v_Target, v_opt_xml.getAttribute ('value'), v_opt_xml.firstChild.nodeValue)
    }
    }

    }
    function appendToSelect (target_item, option_val, option_content) {}
    var v_Opt = document.createElement ("option");
    v_Opt.option_value = option_val;
    {if (document. All)}
    target_item.options.Add (v_Opt);
    v_Opt.innerText = option_content;
    } else {}
    v_Opt.appendChild (document.createTextNode (option_content));
    target_item. AppendChild (v_Opt);
    }
    }
    < /script >


    Attribute of the form in the host_name column element. P935_INSTANCE_DB_NAME is my page for database_name.
    OnChange = "get_List_XML (this,"P935_INSTANCE_DB_NAME").

    Feel free to mark the answers useful or correct ;)

  • I'm unable to play games in fullscreen. As soon as the game is activated, the display is only in the center of the screen.

    I'm unable to play games in fullscreen. As soon as the game is activated, the display is only in the center of the screen. It happens with every game.

    Have you tried to change the GPU scaling option in the control center of AMD?

    You could try re-installing the latest drivers (and therefore, the control center) and see if that fixes the freeze in order to change the option.

    Otherwise, you can try a system restore to a point before the option has been modified or when it was not gel.
    http://Windows.Microsoft.com/en-us/Windows7/products/features/system-restore

  • Displaying the time in the Date fields only when it is available

    Is it possible to display the component "hour" of a field of date only when the component "hour" is available? I know that the default behavior of not showing the component "hour" of the date fields can be changed by setting the date format NLS in the preferences to include the time as well. However, what causes the fields without component to appear with zeros. (For example: If nls date format is DD-MON-RRRR HH24:MI:SS, a date with no field component "time" will appear as * 1 January 2008 00:00:00 *). It is a configurable option in Quest SQL Navigator, with 3 options available, that says "(afficher l'heure dans les champs date: a) (never, (b) when available or c) always, who miss me dearly in SQL Developer."

    Thanks in advance for your suggestions,
    KLS.

    No, but you can vote on the feature to http://htmldb.oracle.com/pls/otn/f?p=42626:39:4403831115154402:NO:P39_ID:16221 request to add weight to implementations in a future version.

    Kind regards
    K.

  • How to use Javascript to populate a text field based on a selection in a drop-down list?

    Greetings,

    I have virtually no experience with JavaScript and I'm trying to find a way to add some functionality to basic Automation to a form of Adobe.  I have a drop down box called "Hospital_Name" which will contain about 7 possible selections.  When the user makes a selection, I would like to have the field of text (called "Hospital_Address") under the drop-down list fill with the corresponding address to the selection.  I have the "Hospital_Address" text field set up for multiple lines and want the address to have a line break between the address and the city/province/postal code.

    For example, if the user has selected "Hospital 1", the text field would display:

    123 main St

    Anytown, CA 12345

    Help or you can provide examples would be greatly appreciated.

    'Re missing you the document level script that sets the data object and setItems function.

    document level JavaScript; Could be placed in the action open to the page if you cannot access the document JavaScripts level;

    Place all the pre-population data into a single data structure
    var Location = {}
    ' - Hospital - ': {line1: "', line2:" "" "},
    'Bellevue Medical Center': {line1: "2500 BMC Drive", line2: "Bellevue, NOT 68123"},

    "CHI Bergan Mercy": {line1: "7500 mercy Road", line2: "Omaha, NOT 68124"},
    'CHI Emmanuel': {line1: "6901 N 72nd Street", line2: "Omaha, NOT 68122"},
    'CHI Lakeside': {line1: "16901 Lakeside Hills Court", line2: "Omaha, NOT 68130"},

    'CHI Midlands': {line1: "11111 s. 84th Street", line2: "Papillion, DON'T 68046"},
    'Creighton University Medical Center': {line1: ' 601 n. 30th Street ', line2: "Omaha, NO 68131"},
    'Nebraska Medical Center': {line1: "4400 Emile Drive", line2: "Omaha, NOT 68105"}
    };

    function SetFieldValues (Hospital_Name) {}
    location [Hospital_Name] .line1 = this.getField("AddLine1").value;
    this.getField("AddLine2").value = location [Hospital_Name] .line2;
    }

    end document level scripts;

    custom script hits;

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["AddLine1", "AddLine2"]); of other SetFieldValues (event.value);

    }

    end of custom keystroke script;

    Note the formatting of the elements in a column as a line we can help revise the code. Also use a text editor for processing code.

  • With the help of javascript code to validate content in the text field only if the field is visible...

    I have a "Lock of all areas" set up button and it took to run only if some fields are filled. The code works fine... except TextField13 does not validate correctly. TextField13 is encapsulated in a subform, titled busjus. The busjus subform is hidden at the disposal of the default form (it becomes visible only when a user selects some text in a drop-down list). I want the code to check if TextField13 is null only if the busjus subform is visible.

    The problematic part of the code that does not work as expected is listed below:

    partiv.nonflow.busjus.presence == visible) && partiv.nonflow.busjus.TextField13 == null ||  

    Complete code is listed below:

    if(partiandii.parti.TextField2.rawValue == null || 
    partiandii.parti.TextField1.rawValue == null || 
    partiandii.parti.DropDownList5.rawValue == null ||
    //Part II: Current Job Details
    partiv.nonflow.busjus.presence == visible) && partiv.nonflow.busjus.TextField13 == null ||  
    partiandii.partii.NumericField2.rawValue == null ||)
    {
        app.alert('Please complete all fields marked with a red asterisk and try clicking the button again.');   
    }
    else {
        myScriptObject.LockAllFields(form1);
    }
    

    Hello

    At a glance, I believe that this piece must include the rawValue call

    partiv.nonflow.busjus.TextField13
    

    This should be

    partiv.nonflow.busjus.TextField13.rawValue

    so that you compare the text in the field instead of the actual field object.

    Hope this helps

    Malcolm

  • How do I automatically populate the text field box based on data generated automatically in the drop-down list?

    I created a drop down list which includes various regions.  When a region is selected it auto-renseigne another drop-down list with places.  I would like to automatically fill a text field with predetermined phone numbers when you have selected a location in the drop-down list of "places".  I want to integrate the phone numbers in the code, since the form will not access a database.  Any help would be greatly appreciated.  Thank you, Ed.

    Hello

    Here is the link to your form. https://Acrobat.com/#d=BaCL7BKKdAcgV3JIk61nZg

    You have the updated field matches in the event changes from the 2nd menu drop-down.

    While referencing you use .page1 while your page is Page1.

    Thank you.

    Sidonie.

  • When I opened TB start page is not used. I lists the local folders only. Bar menu, tool or Nosend.

    I don't have a normal opening page, when I opened TB. The only thing on the screen is a list of local folders on the left side of the screen with only 3 listed columns. Subject, from, and Date. There is no address list, tool or menu bars, writing, sending view etc. The change of the screen that's happened several weeks ago. I pressed a button and the screen changed from normal to one that only shows the screen of the local folder. I was not able to respond to my email or write brand new. I have concluded that if there is no other choice, other than to uninstall and reinstall new TB please don't let me know. I have been without email for about 3 weeks now and that must be fixed. I'd appreciate any help you can give. I'm not a computer language and technical or program explanation writers are usually not easy for me to decipher so if there is no simple solution to my problem don't let me know and I'll uninstall and reinstall the latest version. Thank you

    First of all, try to open in safe mode:
    Hold your shift down when you start Tbird. Don't make permanent changes. Click on continue in integrated security mode.
    Any change?
    Right-click on the top border. You get an opportunity to activate the menu and mailtools? In the affirmative.

  • my iphone 5 c opens more after that I was invited to be updated with itunes. now, the display shows only itunes usb cable and logo. read some tips here, but nothing happened. any help will be much appreciated.

    My iPhone 5 c opens more after that I was invited to be updated with iTunes. now the display shows iTunes logo and the USB cable. I have read and applied some tips here, but nothing happened. Any help will be much appreciated. Thank you.

    https://discussions.Apple.com/message/30014877#30014877http ://

    Read the post from sierrawren . It helped me to fix my phone. Now it works perfectly fine. Hope it can help others too.

  • Set the signature using the API field only

    I have a situation where all PDFs you signed are created for each customer individually and on the fly.

    I must be able to define the scope of the signature using the API only.

    Is this possible? I can't change the pdf file and add any kind of labels. It must be done using an x, the value of the coordinate y.

    Hello Lawrence,.

    If you are looking to set the fields of the form through the API, you can see below reference material:

    https://secure.NA1.echosign.com/public/docs/EchoSignDocumentService21#FormField

    Kind regards

    -Usman

  • Is the uiscrollbar component for use with the text fields only

    Is the uiscrollbar component for text only fields?

    Yes, this isn't in the library, you must call using code.  It is documented in the help files, even if, which should help to get you into use.

  • How can I delete email addresses used to automatically populate the field?

    I would like to remove the auto-complete email addresses in the field in an email. These aren't my contacts addresses. I tried to erase the form data, but is not delete stored e-mail addresses. (Vista, Windows Mail 6.0.6000)

    Well, the answer of about.com directed me to the solution that helped (a bit easier than editting the registry): http://email.about.com/od/windowsmailtips/qt/et_del_autocomp.htm

    Thank you all!

  • Presentation SMS new Smartphones blackBerry OS 5.0.0.32 8 - Cant adjust the display field

    Hello.. The previous txt field (or message thread field) currently only allows you to see about 1 or 2 lines txt, which is almost useless to prepare a long thread of txts.

    I looked at bberry docs for help and found this:

    http://docs.BlackBerry.com/en/smartphone_users/deliverables/4867/View_more_of_the_history_in_SMS_tex...

    who says:

    See more history in SMS text messages

    1. In the terminal options, click SMS.
    2. Set the field number of previous items.
    3. Press the Menu key.
    4. Click Save.

    The problem is, number 2 of the section does not exist.

    Anyone knows a solution so I can see my son of sms, or how we leave blackberry know about the issue? He does pretty good txt messing around unnecessary in this verse the BONE until the answer key.

    Thanks for any help

    kiwicalifornia wrote:

    1. In the terminal options, click SMS.
    2. Set the field number of previous items.
    3. Press the Menu key.
    4. Click Save.

    ^^, Which applies to the OS 4.7, won't work here.

    For OS 5, which you are now, just gently slide your finger from the top of the keyboard display down and make the keyboard to disappear. Then, when you're ready to type, typing in the text box and the keyboard will reappear.

Maybe you are looking for

  • HP Pavilion x 360 (11.6 "): high slope howling sound

    My HP Pavilion x 360 (11.6 ") actually a acute high chirping when I turn the volume. Recently, I messed up with the settings to get my headphones to work. I have reset all sound settings and always have a high-pitched squeal noise. Please help me as

  • I have to learn WindowsServer 2003 & 2008

    Dear Sir, I have to wake up the knowledgae of operating in windows Server 2003 & 2008... can u help me

  • TravelMate P645-m where the SSD?

    I have several P645-m-5609 travelmate ultrabooks we just bought. I can't encrypt. Where is the hard drive? I opened the Panel in the back where I see the little indicator of hd, but there's nothing but memory under him. It is empty.  I need to take o

  • HP LJ 4 M more w/JetDirect Eve interfere with printing?

    I have an old HP Laserjet 4 M Plus on a home network, connected via a JetDirect to my router (Linksys E3200).  I was able to add the printer using a TCP/IP port set up and it works fine.  However, it seems that maybe the printer go in mode sleep (Pow

  • newline when entering

    It's the kind of thing that happens and it's whatetop't seem to worm me I can