APEX4: Filling of fields of database based on the value of SelectList

Hello

I have a Select list and 4 fields of text on a form. By choosing a value in the select list, I have to fill out text fields from its values from the database by using the value in the list select as primary key.

How can I do this in 4 APEX?

Thanks for the help.
-Hozy

OK, the problem was solved on apex.oracle.com

You were not able to access the application because your application uses DB account as the authentication scheme, who obviously would not work on apex.oracle.com.

I have change the authentication to Apex on apex.oracle.com scheme.

About 3-4 truggers were not valid for account forms, the customer and transfer did not work. Who sets also.

There is no data, then finished by create minimal records juices.

Now take a look at the Page 14 and dynamic Actions. Only Address1 and Address2 are Benoit updated, based on the customer account. You will need to add additional Dyna for the zip code and city Actions.

Next time around, please make it easier for someone to help out you by
1. the manufacture of safe objects are valid
2. it some (dummy data) in the relevant tables

Kind regards

Tags: Database

Similar Questions

  • Delete in the database based on the values of the multiple selection list

    Hello

    I have a selectlist in Apex and a function in the database to make a deletion based on the value selected in the selection list.
    FUNCTION delete_batch (v_batch VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    IF v_batch like 'M%'
    THEN
       RETURN ('A monthrun cannot be deleted');
    ELSE
       DELETE FROM so_disco_pa
       WHERE  batch = v_batch
       ;
       DELETE FROM so_batch_pa
       WHERE  batch = v_batch
       ;
       COMMIT;
       RETURN ('Batch '||v_batch||' has been deleted');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
        RETURN ('Batch could not be deleted');
    END delete_batch;
    The package is called when the user clicks on the button Delete with the rest of the process:
    BEGIN
    DECLARE
    x   varchar2(100);
    BEGIN
    x := pa_control.delete_batch (:P3_BATCH);
    :F105_MESSAGE := x;
    END;
    END;
    Now, I want to change the selectlist for a multiple-selection list to make several batches can be deleted.

    How can I change my procedure and the procedure to remove lots based on the values selected?

    Thank you

    Diana

    dianap says:
    I got this far, but only the first batch selected in the list is being deleted. The other values of selected package are not removed.

    Help please.

    Move the RETURN statement out of your loop.

  • 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

  • error message Popup on change based on the value of selectlist

    Hello


    I am new to Oracle Apex. I have a selectlist in my page. I need popup, an error message when the value is changed according to the value of selectlist. For example, the selectlist can have "Approved", "Rejected", "Started", value "not started". When I changed the value "Rejected" if it is already "approved" a popup/inline error message should appear and say that we cannot change "Approved" to "rejected". Similarly, I need to have 5 these validations on the fly (when the selectlist is changed). Also when the condition is the error value will not change (in the previous example, the value will not change to 'Rejected'). Is there a way to do this?

    ~ Best regards,.

    Nadège

    Hi Jeevin,

    You can use jQuery or Javascript to manage validations customized to your selection list onchange.

    Something like

    OnChange = "your_custom_function (this.value); »

    and you can define your function as

    function your_custom_function (value1)

    {

    If (value1 == "Rejected")

    Alert ('Test Alert');

    }

    Logic may be all you need.

    It may be useful

    Thank you

    Sunil Bhatia

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

  • Fill a field value based on the value of another field

    Hello
    Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
    Any help would be appreciated
    Thank you


    <? choose:? >
    <? When: IssueStatus = "Open"? >
    <? 1? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "closed"? >
    <? 2? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "Unresolveable? >
    <? 3? >
    <? end when? >
    <? end otherwise? >
    <? end to choose? >

    Use the following syntax.

    
    
    Display 1
    
    
    Display 2
    
    
    Display 3
    
    
    
  • Fields hide APEX 4.1 show based on the value of the checkbox/radio

    I'm trying successfully, hide and show fields based on the value of a selected checkbox.  I use a dynamic action, but it does not work.

    I followed the example in the is Oracle Apex 4 enable the following AJAX features? (IE without the written Javascript dev) - stack overflow

    I even tried an option button, but it did not work.  I can not uncheck the option button.  What I am doing wrong?  Thanks for any help you can provide.

    Hello

    For example, the point of view refer Packaged application > application sample database > page 11

    Kind regards.

    GO

  • Is there an easy way to filter a 2D table based on the values in two fields?

    Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:

    Ident Frame Type bytes TimeStamp data

    10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame

    10:57:07.622 3AD00017 CAN data frame 8 000005E000000000

    10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame

    10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame

    10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame

    I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?

    Thank you.

    Hi chuck72352,

    After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.

    Mike

  • Apex 5 schedule: different color based on the value of data field

    Dear Experts,

    I need to have a different color for each record on the calendar based on the value of the data field (eg. category).

    How can I achieve this?

    Thank you!

    See: -.

    You don't have to wait for APEX 5 integration FullCalendar ~ Blog of Doug Gault...

  • How to fill a field of electronic signature in the form of interactive PDF file (created in Indesign)?

    How to fill a field of electronic signature in the form of interactive PDF file (created in Indesign)? This form will serve as an application on a Web site. The goal is to have access to anyone (interested to apply for a job via Internet), fill out and electronically sign the form on presentation.

    Please follow the steps and let me know if this helps

    1. Open the PDF in Acrobat
    2. Click on tools in the upper right > select Forms > click on edit
    3. It would ask you if you want to make changes, select Yes
    4. Then it will give you options to add a Signature field on the right side of Acrobat
    5. Add the field and save the form
  • ADF Table cell color based on the value of this field

    Dear all,
    I want to create a table for our new application that contains a table that is used to represent the data in a table or matrix format.
    and each cell of the table should be filled with a color of three colors, based on the value belongs to who will for example: (1-8-> green, 9-20 - yellow etc.).
    I don't know how to implement this. Help, please...

    Rognard

    Please post in the subforum that is appropriate for your question.

    http://forums.Oracle.com/forums/Ann.jspa?annID=599

    This blocking thread

  • Web page open based on the value of the text field

    I want to open a web page that is based on the value of a text field.  How to bind the value of a text field to a command which will open the web page?

    For example, the value of the text field is: 8 t - EXT

    and the web page I want to open when you press a button is: http://hqms/doc.asp?dn=8T-EXT

    As you can see that the 8 t - EXT is something that a person enters the form and is what is needed to open the web page.  The other text in the link of the webpage is always the same.

    Thank you

    Hello

    In the click event of the button, place the following JavaScript code:

    if (TextField1.rawValue !== null) {
         var vURL = "http://hqms/doc.asp?dn=" + TextField1.rawValue;
         app.launchURL(vURL, true);
    }
    else {
         app.alert("Dear user, please put a code in the text field. Thank you!");
    }
    

    You need to change the object references based on your shape.

    Niall

  • Redirect to 3 different pages based on the value of the Auto complete field.

    Hi friends,

    I use a "Auto complete field" in a page for research (Apex version 4.0). But I need to get the values of the 3 tables and when you click on the redirection of the value to one of the 3 pages based on the value.

    For example, I have 3 tables. 1 customer 2 Sites 3.Employees. When I enter "c" in the search field, I need to get values of 3 tables in this area "AutoComplete". That is to say, if I have a customer with the name "cusotmer1", "customer2" and the location with the names of "cisc1", "cisc2" and employees with the name "cid1", "cid2"; When I enter "c" in the FQDN of the auto all 6 values must be given in the "AutoComplete" box and clicking on "customer1" / "customer2" need to redirect to the 'customer' page When you click on 'cisc1' / 'cisc2' redirect to 'site' when clicking on "cid1" / "cid2" redirect to the page of the employees. Is there a way to do this. Help, please.


    Kind regards
    NAV

    Net asset value,
    Here is a sample page that uses the code I proposed works fine for me with FF and IE (8.0).

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

    Note: I've added a warning message before being submitted

    This page works by your side?

  • Prevent the print page based on the value of the field

    Hello. Is it possible to prevent certain pages to print based on the value of a field in the form?

    Similarly, is it possible to prevent certain pages according to a field value?

    I'm not a JS coder accomplished.

    Windows XP

    LiveCycle Designer ES2

    Thanks in advance

    Gary, NJ

    Hello

    I doubt that your condition if works or not. You can try with the couple of things:

    (1) write the same code in the Textfield output event instead of the current enter event.

    (2) check if the if condition works for value "xyz" or not by means of simple alert.

    If (topmostSubform.Page1.TextField1.rawValue == "xyz") {}
    Page2.presence = 'hidden ';

    App.Alert ("State of the hidden page"); just for testing purposes... Remove it at a later time
    }
    else {}
    Page2.presence = "visible";

    App.Alert ("visible condition to page");
    }

    This will help you know whether or not this condition actually works.

    'Hidden' will do a page hidden as well as it will not print it.

    Hope it should work for you.

    KC

  • Show/hide subform based on the value of digital field

    Hi all


    I created my first form in LiveCycle Designer, but jammed with coding. Any help would be greatly appreciated.

    In the attached form, based on the value of field digital "number Total points" (calculated from the user of entry), I want two things to happen.

    The 'field' text should display different text depending on the points,

    • Less than 10 points is "beginner."
    • 10-14 is "intermediate."

    and just like that...

    If the total number of points is less than 10, 'Course for beginners' and 'Language' DropDownList must appear.

    Is there a way to do this? I tried posting 'If' 'else' statement, but it does not work. I looked in the previous discussions, but cannot find that anything will be based on the numeric value.

    You are looking for assistance.
    R

    The joint responds to your needs. The JavaScript on the TextField1 calculate event anime.

    Form1. #subform [0]. TextField1::calculate - (JavaScript, client)

    If (NumericField1.rawValue! = 0) {}
    If (NumericField1.rawValue< 10)="">
    DropDownList1.presence = "visible";
    DropDownList2.presence = "visible";
    this.rawValue = "beginner."
    }
    else {}
    DropDownList1.presence = 'hidden ';
    DropDownList2.presence = 'hidden ';
    If (NumericField1.rawValue< 15)="">
    this.rawValue = "middle";
    }
    else {}
    this.rawValue = "";
    }
    }
    }

    Steve

Maybe you are looking for