Buliding a SELECT in the PSP using html form fields

Hi everyone, first of all to forgive me my poor English.

I do "Basis of CV" in PSP as a school project. And I have a search like this (simple version) html form:

Select list: Profession
text field: age

And my question is... How to build a select in psp that will analyze only the given parameters? For example. I'm looking for C programmer in any age, so I Selects C Pogrammer in the list and let afe field blank. The SELECTION should be sth like this: select * the person where the Profession as "C Programmer" But in another search, I need a programmer who has 25 years... Select has one OR more... I'm sure you all know what I mean

Please help me.
Martin

Hello

According to the information you provided it seems that you may need to use dynamic SQL statements, lok at the following link for more information.

http://download.Oracle.com/docs/CD/B10500_01/AppDev.920/a96590/adg09dyn.htm

It is preferable to use Bind varaibale will improve query performance you and avoid the query SQL injection attack.

Thank you

Tags: Database

Similar Questions

  • Treatment options for form (use the value of a form field to select a shared list or a web redirect page)

    Hello

    I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.

    Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?

    Thank you!

    Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:

    If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.

    I'm glad everything is working.

  • Inserting a new record in the database using a form empty ADF

    Hello

    I'm trying to insert a new record into the database using a form.

    I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.

    Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.

    When I connect to the app and go to the page used to create, I have 2 problems:
    1 - the form is filled with the logged in user info.
    2. If I try to change the news and validation, the user info is changed in the database and no new record is created.

    It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
    NB: the employee id is not part of the form, I want to be filled using the sequence.

    Kind regards
    MB

    User, please tell us your jdev version!

    To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.

    Timo

  • Can I copy the contents of a form field to another field with toggle checkbox?

    Would it not possible to copy the contents of a form field to another field in the form once a checkbox is disabled?

    I have several form fields that require form-fill to enter their initials.  Rather than repeat this 20 - 30 times on a form, they would like to be able to write their initials somewhere and that their initials copy in another form with a checkbox Toggle field.

    So, I have a field called 'initial' and each of the original boxes are "init_entry1" "init_entry2" etc.

    The boxes for these areas are "check_entry1" "check_entry2" etc.

    This would be possible with scripts?  Or are there better ways to accomplish the initial AutoComplete with a checkbox toggle?

    You can use a code like this in the MouseUp event of your box:

    If (getField("Check_Box1").value! = "Off")

    getField("Text2").value = getField("Text1").value;

    else getField("Text2").value = "";

    Of course, you have to adapt the names of the fields.

  • How to recover a selection of the screen using the tool of cross hatching? S worked on the old pc to control...

    I used to be able to select a piece of the screen using Ctrl-S, how I got a cross-hatch tool (it looks like the Selection tool in Photoshop)

    Please help - lost without this feature!

    Maybe your version of Vista has the Snipping Tool...

    Windows Vista - activate the Vista Snipping Tool
    http://www.PCWorld.com/article/137099/activate_vistas_snipping_tool.html

    Use capture tool to capture screenshots
    http://Windows.Microsoft.com/en-us/Windows-Vista/use-Snipping-Tool-to-capture-screen-shots

    Vista tutorial - How to use the tool captures of Vista
    http://www.Vistax64.com/tutorials/148532-how-use-Snipping-Tool-Vista.html

  • Composition-> featured news-> problem place the cursor using HTML.

    With the help of the composition of new feature to display a *.html page when I hover over the item triggered. The HTML code has been entered by using the object-> insert HTML in the area target. The HTML code works - however the problem I'm facing is that html does not hide in the first place.

    S ' Please advise

    Thank you in advance.

    Check initially hide in composition options.

    Thank you

    Sanjit

  • using the value of a form field in another form field

    I hope that I can describe my problem. Please bear with me

    I have a worksheet with a lot of form fields. For most of the text boxes and a few drop-down list boxes.

    I use a lot of custom calculation scripts to determine what information auto fills in most of the fields.

    But I have problems with a last form named ORTHOPLANID field.

    The value that it auto fills depends on two other fields. A field is called MEDOOP. The other field is SUPPDENPLANID. I tried to use an if/then/else statement for ORTHOPLANID but it does not work. I'm guessing it doesn't b/c, the value of the MEDOOP field is generated from an if / then statement so I don't know whether or not the script recognizes its value as a real value.

    Is there another way to get around this? I don't know if I have clearly explained the problem, but I hope someone can help

    Thank you

    Brandy

    I think I know what the problem... You did not drop-down fields

    commit their selected values immediately (under Properties - Options). As one

    result, the calculations take place when you exit the field (i.e. click)

    outside), and not when you do a

    selection.

  • by selecting only the time in oracle forms

    Hi all
    as a picker of oracle forms can I select the time in oracle forms in a text element.
    I want to display the time in this format 10:10:30, and I would also like to insert into the table
    I took the data type of this column as varchar2 (15) if I take date can I insert time or varchar2 is ok.
    my version of oracle forms is 10g.


    Please answer...

    Hi, extreme

    extreme wrote:
    Hi all
    as a picker of oracle forms can I select the time in oracle forms in a text element.
    I want to display the time in this format 10:10:30, and I would also like to insert into the table
    I took the data type of this column as varchar2 (15) if I take date can I insert time or varchar2 is ok.

    Better take column with the data type date. You can insert the date and time in the date field.
    You just change the forms.
    Change the data type Date to Datetime

    to view a single moment, use the format mask.

    Hope this helps

  • How to selectively reset the content in a form

    I have a reset button on my form to clear all user input. I have a table with Qty. price inputs and the corresponding fields that calculate amounts etc.

    I would like to add a reset button to clear only the entries in the table and corresponding totals. How can I do this?

    You can pass the path of the field to the function resetData to selectively reset the data in the form.

    xfa.host.resetData ("xfa.form.form1.Page1.Table1");

    xfa.host.resetData ("xfa.form.form1.Page1.TextField1");

    OR

    xfa.host.resetData ("xfa.form.form1.Page1.Table1, xfa.form.form1.Page1.TextField1"); Combine several fields in a single statement...

    Thank you

    Srini

  • Dynamically change the attributes of HTML form elements

    I have a form region that contains the elements, some attributes of the HTML Form readonly = 'true '.

    It is possible to dynamically set these so I can enable / disable read only to the level element is based on a function PL/SQL (or other method).


    Thanks in advance.

    A bit of Javascript can do for you.

    Put this function JS in the header HTML of the page

    
    

    And then define a process of "after a footer" which returns the items to read only according to the conditions you decide

    if pl_sql_function_to_determine_RO ('') then
       htp.script('setReadOnly(""');
    end if;
    ....... repeat for other items
    
  • How to connect to an Oracle database using acrobat form field java script actions

    I have a PDF template with buttons and form fields. One requirement is that when a key is pressed, I want to connect to an Oracle database to change the data of the table inside the DB.

    I wrote "Mouse Up" event and set a Java script to run on this event. Java script I am trying to connect to the DB and Transact on the DB.

    Any ideas how to achieve this.

    Thank you.

    Assuming you are using Acrobat (or reader) XI or newer, it is no longer possible.

    There used to be a way to connect to a PDF file using a script and ADBC, a DB defined locally, but Adobe removed in favour of this option progressively and now it is completely obsolete.

    The only type of PDF files that can still do are those created using LiveCycle Designer.

  • Acrobat XI - preventing the creation of automatic form field

    How can I stop Acrobat XI automatically creating form fields interactive when I convert a document existing (pdf) form.  I know that I can delete them manually, but I convert custom documents several times a day and I want to eliminate extra steps to remove fields that I don't need.

    You should be able to open the PDF file, select ' tools > forms > edit ' and when you are prompted to have Acrobat automatically detects form fields, answer No you will then be in the form of editing mode where you can add them manually.

  • Change the name of the custom in a form fields

    I created a custom form for a client, however, when I test the e-mail received just watch "custom field" next to the entrance instead of address, phone, ect... How do I change this?

    Select the form field in Muse, and then click the blue "play button" at the top right of this one.

    Check the "Label".

    Edit the label to your liking.

    Go back and uncheck the option label to hide on the web page.

    Republish and tada!

  • Create the calculated in PHP form field

    Hello

    I am trying to create a calculated field that will take care of the average of the ratings when a form is entered. This field will then submit the average value and the shape at the end (that's why I need the value to calculate before sending the form - that is, as the form is filled out).

    I found the following code (designed for HTML forms rather than PHP forms, but I hope that it might work). It doesn't seem to do anything - the field displays no information. Help?

    < script language = javascript >

    < !--/ /

    function dm (amount)

    {

    String = ' ' + amount;

    DEC = string.length - string.indexOf('.');

    If (string.indexOf('.') == - 1).

    Returns the string + '. 00';

    If (dec == 1)

    return string + ' 00 ";

    If (dec == 2)

    return string + '0';

    If (dec 3)

    return string.substring(0,string.length-dec+3);

    Returns the string;

    }

    function calculate)

    {

    Opp1 = 0;  Inv1 = 0;  COM1 = 0;  wlb1 = 0;  COM2 = 0;  Atm1 = 0;  PAR1 = 0;  Increase 1 = 0;  Rew1 = 0;  Env1 = 0;  Gro1 = 0;

    If (document.form1.Opportunity.value > "")

    {Opp1 = document.form1.Opportunity.value};

    document. Form1.opportunity.value = eval (Opp1);

    If (document.form1.Investment.value > "")

    {Inv1 = document.form1.Investment.value};

    document. Form1.investment.value = eval (Inv1);

    If (document.form1.Community.value > "")

    {Com1 = document.form1.Community.value};

    document.Form1.Community.Value = eval (Com1);

    If (document.form1.WLB.value > "")

    {wlb1 = document.form1.WLB.value};

    document. Form1.WLB.value = eval (wlb1);

    If (document.form1.Communication.value > "")

    {Com2 = document.form1.Communication.value};

    document.Form1.communication.Value = eval (Com2);

    If (document.form1.Atmosphere.value > "")

    {Atm1 = document.form1.Atmosphere.value};

    document. Form1.atmosphere.value = eval (Atm1);

    If (document.form1.Performance.value > "")

    {PAR1 = document.form1.Performance.value};

    document. Form1.performance.value = eval (Per1);

    If (document.form1.Inclusion.value > "")

    {Increase 1 = document.form1.Inclusion.value};

    document. Form1.inclusion.value = eval (Inc1);

    If (document.form1.Rewards.value > "")

    {Rew1 = document.form1.Rewards.value};

    document. Form1.rewards.value = eval (Rew1);

    If (document.form1.Environment.value > "")

    {Env1 = document.form1.Environment.value};

    document. Form1.environment.value = eval (Env1);

    If (document.form1.Groups.value > "")

    {Gro1 = document.form1.Groups.value};

    document. Form1.groups.value = eval (Gro1);

    Totamt =

    eval (Opp1) +.

    eval (Inv1) +.

    eval (COM1) +.

    eval (wlb1) +.

    eval (COM2).

    eval (Atm1) +.

    eval (Per1) +.

    eval (Inc1) +.

    eval (Rew1) +.

    eval (Env1) +.

    eval (Gro1);

    document. Form1.GrandTotal.value = dm (eval (Totamt));

    }

    ->

    < /script >

    Any suggestions gratefully received.

    Sorry for the explanation of the solution, this is why you shouldn't let dyslexia on the forums...

    Yes, you can put onChange = "calculate ()" within any html element, but it will only work for items that have a 'value' that can change, such as "

    The average value can be reported by adding any of the following lines:

    Happy scripting!

  • Allows to manage the events of JSP form fields

    The use of JavaScript is a way to manage the attributes of event like onClick form fields...
    What is the best way to handle this in JSP? For example, I have a form with a textarea field and wish to receive a notification every time the user enters something inside the text box.
    Thank you
    Roni

    The only way to handle this event is to use javascript. What to do exactly? JavaScript seems to be enough to pair with such things. You can also use AJAX if you need to do sth on a server side.

Maybe you are looking for

  • How can I add an additional search engine, if it is not found in the Department of the add-on?

    my favorite search engine cannot be found among the Add - ons.Other browsers out to add any user-defined what research enfine.Why Mozilla does not offer important characteristics of Thais? Kind regards

  • Why firefox always crashes no matter what I do?

    Firefox always breaks down and ask to restart or stopI tried to reinstall firefoxtried to use an older versioneven to reinstall the whole windows xp, 7 and 8 by train after fresh installed (after replacing the os) it works well, but then (maybe 3 day

  • Microsoft Lifecam VX-6000 not detected by Skype.

    My Skype is 6.20My operating system is Windows 7 Home PremiumI found my old webcam and I wanted to Skype with a few people, but for some reason any my Lifecam VX-6000 will not be detected by Skype. I already tried to reinstall the drivers and revert

  • IMAQ Vision: image not valid type

    I use the evaluation version of LabView Pro and Vision Builder to process a video taken from a Webcam from Microsoft. I try to apply a part of the function as a filter of treatment or look at a histogram as graph below but LabView always returns inva

  • Sansa Fuze 8 GB - battery not charging

    When I connect the Sansa to the PC, the battery shows it is charging for about 15-20 seconds, then stops. Of course, the battery is exhausted. I can't turn on the Sansa because "the battery is low." Any ideas how to fix this? Thank you.