Select list THAT LOV based on the selection of the Parent list


Hello

I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.

So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.

I think this question been here before, so could someone just tell me the answer?

Thank you very much

Leo.

Leo_Y wrote:

I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.

So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.

I think this question been here before, so could someone just tell me the answer?

To get the right answer, you must ask the right question.

Integrated support in cascade LOV is addressed in the documentation.

Tags: Database

Similar Questions

  • Show LOV based on the criteria of display

    Hello
    I have a list of SelectOneChoice in the column of the table. I want to display its elements dynamically based on the criteria of display. So that when I select a row in the table, the list should have only filtered points.
    I use Jdeveloper version 11.1.1.6.0. Here is the code SelectOneChoice.

    < af:selectOneChoice value = "#{row.bindings.IntegrationName.inputValue} '"
    label = "#{row." Bindings.IntegrationName.label}.
    required = "#{bindings." ManageProjectIntegration1.hints.IntegrationName.mandatory}.
    shortDesc = "#{bindings." ManageProjectIntegration1.hints.IntegrationName.tooltip}.
    ID = "soc5".
    readOnly = "#{rank." EnabledFlag eq 'ACTIVE' or backingBeanScope.managed_ManageProjectIntegrationBean.singleIntegration}.
    valueChangeListener = "#{backingBeanScope.managed_ManageProjectIntegrationBean.validateIntegrationName} '"
    Binding = "#{backingBeanScope.managed_ManageProjectIntegrationBean.integrationChoiceList} '"
    autoSubmit = "true" valuePassThru = "false".
    immediate = "false".
    contentStyle = "width: 180.0px;" >
    < f: selectItems value = "#{row.bindings.IntegrationName.items} '"
    ID = "si7" / >

    Thank you
    Harish

    Henin,

    Have you tried to create a list of model engine using the view criteria?

    http://www.baigzeeshan.com/2010/03/how-to-create-ADF-lov-with-view.html

    Arun-

  • Is it possible to show/hide something on the car (registration - buy) page that is based on the name or the productId?

    I need to show some of my form of payment based on the name or the productId. I have 2 types of products, family and individual. If they have product in the family is selected they need to add dependent information.

    I was able to do this based on the total. Amount but it is a product that has the same price as a product of the family, so it won't really work for me.

    {% If globals.cart.totalAmount is '165.40' or globals.cart.totalAmount is '22.95' or globals.cart.totalAmount is "249.40" or globals.cart.totalAmount == "29.95" %}

    I have the following available on the payment page:

    'basket': {}

    'itemCount': 1.

    'Amount': 165.40.

    "countryCode": "US", he said.

    "currencyFormat": "$."

    "items":]

    {

    "id": 7155959,

    "productId": 9712238.

    'catalogId': 191952,

    "name': 'Combo Plan - annual family Plan."

    'code': '73VNVW7RI9 ',.

    "description": ","

    'Price': 155.400000,

    'quantity': 1.

    "totalPrice": 155.400000.

    "smallImage": "/ _assets/img/products/dbm-family-annual.png"

    "url": "/ store/dental-benefits-max-family-plan-annual-1".

    }

    I don't know how things to access points. I tried globals.cart.items, globals.cart.items.code etc.

    Store is located here.

    http://uGuru-dentist2015-us-nov62015-826.BusinessCatalyst.com/store

    Hi James,

    You're right, the points are located inside the globals.cart.items

    {{ globals.cart.items | json }}

    {% assign NomTableau = globals.cart.items | map: 'name': json-%}

    {% assign idArray = globals.cart.items | map: 'id' | json-%}

    {% If NomTableau contains 'Unique string name'-%}

    Found the name

    {endif %}

    {% If idArray contains '9712238'-%}

    Found the id

    {endif %}

    Map filter is very useful in these situations, it generates a string of property of an object.

    Hope this helps,

    Stoiky

  • SQL that are based on the values of the corresponding fields.

    Hi my name is Hawk.

    I'm new to the Forum, and I wanted to just introduce myself and say hi.

    I have a daunting task to summarize values and filling in a spreadsheet with columns. I have 600 lines to go, and I was wondering if

    someone knows a way in sql to sum (a body of numbers) based on the existence of a value being the same on another field of varchar2.

    For example, here is an example of the data table that I have.

    CREATE TABLE EXAMPLE

    ("FIRSTNAME", VARCHAR2 (20 BYTE),

    VARCHAR2 (20 BYTE) "LASTNAME."

    NUMBER OF "SUMVALUE."

    NUMBER OF "ROW_ID".

    );

    Insert into SAMPLE (FIRSTNAME, LASTNAME, SUMVALUE, ROW_ID) values ('Charlie', 'chocolate factory', 100, 1);

    Insert into SAMPLE values (FIRSTNAME, LASTNAME, SUMVALUE, ROW_ID) ('Johnny', 'Desire', 200, 2);

    Insert into SAMPLE (FIRSTNAME, LASTNAME, SUMVALUE, ROW_ID) values ('P', 'Frankenstein', 300, 3);

    Insert into SAMPLE (FIRSTNAME, LASTNAME, SUMVALUE, ROW_ID) values ("Charlie", "chocolate factory", 400, 4);

    Insert into SAMPLE (FIRSTNAME, LASTNAME, SUMVALUE, ROW_ID) values ("Charlie", "chocolate factory", 500, 5);

    and Yes, I have 600 lines having to ask and things to the top score on manually, it's just bs data...

    So what I do is the following.

    Write some sql that will total the number field (sumvalue) based on data with firstname = lastname = chocolate factory and Charlie.

    It seems so simple, but still I can not understand how do.

    Is that what I'm trying to make sense?  Also, I hope this is the right place to post this. I looked on this before I posted to make sure.

    Hawk.

    Hi, Hawk,

    Here's one way:

    SELECT SUM (sumvalue) AS total_sumvalue

    SAMPLE

    WHERE firstname = 'Charlie '.

    AND lastname = 'chocolate factory '.

    ;

    Welcome to the forum!

    There are those who use the forum for years and have not yet learned to post CREATES instructions TABLE and INSERT for their sample data, as you did.  Keep up the good work!

    You should also post the exact results you want from the data provided.  For example

    TOTAL_SUMVALUE

    --------------

    1000

    (this is what produces the query I posted).  As you can see, without that David and I came with 2 different interpretations of what you want and maybe aren't exactly what you need.

  • How to generate a sql script that is based on the structure of the table

    I want to generate a sql script that is based on a table structure.

    For example:

    If the table is:

    CID id c_value
    -----------------------------
    1 1 zz
    2 1 yy
    3 2 zz
    4 2 xx
    5 3 ss
    6 tt 3


    The expected output is:

    WITH
    CHILD_tab like)
    SELECT 1 cid, 1 id, 'zz' c_value of all the double union
    SELECT 2 cid, 1 id, 'yy' c_value of all the double union
    SELECT 3 cid, 2 id, 'zz' c_value of all the double union
    SELECT 4 cid, 2 id, 'xx' c_value of all the double union
    SELECT 5 cid, 3 id, 'ss' c_value of all the double union
    SELECT 6 cid, 3 id, 'tt' double c_value)


    11.1.0.7.0 release

    I do a lot of XML these days (maybe too well) so here is a solution involving XQuery.
    We pass a query string and it generates a CLOB containing the WITH clause:

    SELECT DBMS_XMLGEN.Convert(
    XMLQuery(
    q'[concat(
    "WITH t AS (
    ",
    string-join(
     for $i in /ROWSET/ROW
     return concat( " SELECT ",
                    string-join($i/*/concat("'",ora:replace(text(),"'","''"),"' ",local-name()),", "),
                    " FROM dual" ),
    " UNION ALL
    "
    ),
    "
    )")]'
    passing dbms_xmlgen.getXMLType('SELECT * FROM scott.emp')
    returning content
    ).getClobVal(), 1) AS WITH_CLAUSE
    FROM dual;
    
    WITH_CLAUSE
    --------------------------------------------------------------------------------
    WITH t AS (
     SELECT '7369' EMPNO, 'SMITH' ENAME, 'CLERK' JOB, '7902' MGR, '17/12/80' HIREDATE, '800' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7499' EMPNO, 'ALLEN' ENAME, 'SALESMAN' JOB, '7698' MGR, '20/02/81' HIREDATE, '1600' SAL, '300' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7521' EMPNO, 'WARD' ENAME, 'SALESMAN' JOB, '7698' MGR, '22/02/81' HIREDATE, '1250' SAL, '500' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7566' EMPNO, 'JONES' ENAME, 'MANAGER' JOB, '7839' MGR, '02/04/81' HIREDATE, '2975' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7654' EMPNO, 'MARTIN' ENAME, 'SALESMAN' JOB, '7698' MGR, '28/09/81' HIREDATE, '1250' SAL, '1400' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7698' EMPNO, 'BLAKE' ENAME, 'MANAGER' JOB, '7839' MGR, '01/05/81' HIREDATE, '2850' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7782' EMPNO, 'CLARK' ENAME, 'MANAGER' JOB, '7839' MGR, '09/06/81' HIREDATE, '2450' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7788' EMPNO, 'SCOTT' ENAME, 'ANALYST' JOB, '7566' MGR, '19/04/87' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7839' EMPNO, 'KING' ENAME, 'PRESIDENT' JOB, '17/11/81' HIREDATE, '5000' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7844' EMPNO, 'TURNER' ENAME, 'SALESMAN' JOB, '7698' MGR, '08/09/81' HIREDATE, '1500' SAL, '0' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7876' EMPNO, 'ADAMS' ENAME, 'CLERK' JOB, '7788' MGR, '23/05/87' HIREDATE, '1100' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7900' EMPNO, 'JAMES' ENAME, 'CLERK' JOB, '7698' MGR, '03/12/81' HIREDATE, '950' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7902' EMPNO, 'FORD' ENAME, 'ANALYST' JOB, '7566' MGR, '03/12/81' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7934' EMPNO, 'MILLER' ENAME, 'CLERK' JOB, '7782' MGR, '23/01/82' HIREDATE, '1300' SAL, '10' DEPTNO FROM dual
    )
    

    It may be useful for small datasets only because we reached quickly ORA-01706.

  • Error definition day LOV based on the month and year

    Select ' 1 ', ' 01' day_aff union double val
    ...
    Select '29', ' 29 "double where '29' < = to_char (last_day (to_date ('01.' |)))" '02'. '.' || (((', 'dd.mm.yyyy')), 'jj') union
    Select '30', ' 30 "double where '30' < = to_char (last_day (to_date ('01.' |)))" '02'. '.' || (((', 'dd.mm.yyyy')), 'jj') union
    Select '31', '31' from dual where '31' < = to_char (last_day (to_date ('01.' |))) '02'. '.' || (((', 'dd.mm.yyyy')), 'jj')
    order by 2

    That works well.

    If I replace '02' by: P10_MONTH & P10_MONTH. or v ('P10_MONTH') and 2008 by: P10_YEAR & P10_YEAR. or v ('P10_YEAR'), I get the following error on the creation of LOV (in shared components or LOV section of the element):

    LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

    No work around?

    Igor

    Hi Igor,.

    I think it's the | in the SQL that is causing the problem. You can get around this by the presence of a hidden page element which is calculated at the point of process before header which calculates the first day of the selected month.

    I did it on this page: [http://apex.oracle.com/pls/otn/f?p=35917:16]

    In addition, you can simplify your SQL statement to something like:

    SELECT LEVEL d, LEVEL r
    FROM DUAL
    CONNECT BY LEVEL <= TO_NUMBER(TO_CHAR(LAST_DAY(TO_DATE(v('P16_FIRSTDATE'),'DD/MM/YYYY')),'DD'))
    

    (P16_FIRSTDATE is the element that contains the calculated date)

    Andy

  • Reposition the LOV based on the value received

    Jdev/Adf 11.1.1.4 stack full


    Hello


    I have a table of Bank and an array of countries.

    Each bank has a country.

    The two tables are related through Bank_Country_Nr - Country_Nr

    A VO and EO are created for the table of the Bank.

    Only a VO was created to the country table.

    A transitional attribute for the designation of country of banks has been added to the VO-BankCountryDesignation Bank

    A model based on the list of values was created on the BankCountryDesignation using the VO of the country.

    The lov defines the Bank_County_Nr with the Country_Nr and the BankCountryDesignation with the CountryDesignation

    On the user interface, the BankCountryDesignation has been placed as an af:InputComboboxListOfValues.

    All the functions above as expected.

    Now I have a use case in which a new country is created in another transaction, while the user creates a new Bank and I get the Country_Nr as a page flow scope parameter.

    What I need to do, is to automatically set the af: InputComboboxListOfValues to the Country_Nr received in order to offer the country newly created by the user in the list of values.

    What I have so far is:

    BindingContext bctx = BindingContext.getCurrent ();

    BindingContainer links = bctx.getCurrentBindingsEntry ();

    List JUCtrlListBinding = bindings.get ("BankCountryDesignation") (JUCtrlListBinding);

    list.getListIterBinding () .getViewObject () .executeQuery ();

    Key = new key (new Object() {receivedCountryNr});

    list.getListIterBinding () .setCurrentRowWithKey (key.toStringFormat (true));

    is essentially get the Vo behind the LOV, run the query to pick up the new line, and then set the list on the new line.

    However, I can not the user interface to display the new value, how can it be done, what I am doing wrong?

    Concerning

    Paul

    Thanks for the comments, the code following the deal for me.

    Basically, get the VO behind the list of values, execute the query to pick up the new country

    Find the new country and set with attributes on the vo of the Bank.

    BindingContext bctx = BindingContext.getCurrent ();

    BindingContainer links = bctx.getCurrentBindingsEntry ();

    List JUCtrlListBinding = bindings.get ("BankCoutryDesignation") (JUCtrlListBinding);

    list.getListIterBinding () .getViewObject () .executeQuery ();

    Key = new key (new Object() {receivedContryNr});

    list.getListIterBinding () .setCurrentRowWithKey (key.toStringFormat (true));

    Line currRow = list.getListIterBinding () .getCurrentRow ();

    DCIteratorBinding iter = toolBean.getIteratorByName (iteratorName);

    Line MyViewRowImpl = (MyViewRowImpl) iter.getCurrentRow ();

    row.setAttribute (attributeName, receivedCountryNr);

    row.setAttribute ("BankCountryDesignation", currRow.getAttribute ("Displayid"));

    Concerning

    Paul

  • Calculate fees that pay based on the number of days in a month

    Hello

    I'm writing the BR to fresh wages, based on the number of days in the month.

    Fix(Jan:DEC)

    "Salary" = ("Annual salary"-> "BegBalance" / 12) * "workforce";

    The existing calculation was ' wages divided by months no .of (12) ", now instead of number months wages that need to be calculated ("BegBalance"/ No..) OF DAYS IN THE MONTH) * 12.

    Can someone pls guide me, how to begin writing the BR for 'No. DAYS OF THE MONTH.

    You can do an admin enter number of days in the month. I remember CL reminding me the rhyme thirty days has September - Wikipedia, the free encyclopedia

    Jokes aside, you can use SQL to get the number of days. You will get different options for SQL and Oracle.

    If you want to continue to do this in BR then

    Fix(Jan:DEC)

    IF (@ISMBR (SEP) OR @ISMBR (Apr) OR @ISMBR (Jun) OR @ISMBR (Nov))

    ("Salary" = ("annual salary"-> "BegBalance" / 30) * 12) * "workforce";

    ELSEIF (@ISMBR (Jan) OR @ISMBR (Mar) OR @ISMBR (May) OR @ISMBR (July) OR @ISMBR (Aug))

    ("Salary" = ("annual salary"-> "BegBalance" / 31) * 12) * "workforce";

    ELSE (@ISMBR (Feb))

    IF (@Remainder($CurrYr/4) == 0)

    ("Salary" = ("annual salary"-> "BegBalance" / 29) * 12) * "workforce";

    ON THE OTHER

    ("Salary" = ("annual salary"-> "BegBalance" / 28) * 12) * "workforce";

    ENDIF

    ENDIF

    ENDFIX

    Concerning

    Celvin

    http://www.orahyplabs.com

    Post edited by: CelvinKattookaran

  • How to perform account on a Table hierarchical Oracle based on the Parent link

    Hello


    I have the following to Oracle 11 g R2 hierarchical table definition:


    Table Name: TECH_VALUES:
      ID,
      GROUP_ID,
      LINK_ID
      PARENT_GROUP_ID,
      TECH_TYPE

    Above the hierarchical table definition, some examples of data might look like this:


    ID      GROUP_ID      LINK_ID      PARENT_GROUP_ID      TECH_TYPE 
    ------- ------------- ------------ -------------------- --------------
    1       100           LETTER_A     0
    2       200           LETTER_B     0
    3       300           LETTER_C     0
    4       400           LETTER_A1    100                  A 
    5       500           LETTER_A2    100                  A 
    6       600           LETTER_A3    100                  A 
    7       700           LETTER_AA1   400                  B 
    8       800           LETTER_AAA1  700                  C 
    9       900           LETTER_B2    200                  B 
    10      1000          LETTER_BB5   900                  B 
    12      1200          LETTER_CC1   300                  C
    13      1300          LETTER_CC2   300                  C
    14      1400          LETTER_CC3   300                  A
    15      1500          LETTER_CCC5  1400                 A
    16      1600          LETTER_CCC6  1500                 C
    17      1700          LETTER_BBB8  900                  B
    18      1800          LETTER_B     0
    19      1900          LETTER_B2    1800                 B 
    20      2000          LETTER_BB5   1900                 B 
    21      2100          LETTER_BBB8  1900
                     B


    Keeping in mind that there are only three Types of technology, i.e. A, B and C, but could not span on different LINK_IDs , how can I do a count on these three different TECH_TYPEs based solely on the ID of parent link where the parent group id is 0 and there are children below them?

    NOTE: It is also possible to have parents in dual link ID such as LETTER_B and all values of children but different group ID.

    I'm basically after a table/report query that looks like this:

    Link ID        Tech Type A         Tech Type B          Tech Type C
    -------------- ------------------- -------------------- -------------------
    LETTER_A      
    3                   1                    1
    LETTER_B      
    0                   3                    0
    LETTER_C      
    2                   0                    3
    LETTER_B      
    0                   3                    0

    Be hierarchical and my table can consist more of 30 000 files, I must also ensure that performance to produce the report above shown here query is fast.

    Obviously, in order to produce the report above, I need to gather all necessary County outages based on TECH_TYPE for all parents of the link id where the PARENT_GROUP_ID = 0 and store it in a table according to the guidelines of this report layout.

    Hope someone can help with maybe a combined query that performs the counties as well as stores the information in a new table called LINK_COUNTS, which will be based on this report. Columns of this table will be:

    ID,

    LINK_ID,

    TECH_TYPE_A,

    TECH_TYPE_B,

    TECH_TYPE_C

    At the end of this entire requirement, I want to be able to update the LINK_COUNTS table based on the results returned by the sample data above in a SQL UPDATE transaction as the link ID parent top-level already exists within my table LINK_COUNTS, just need to provide values for breaking County for each parent node link , i.e.

    LETTER_A

    LETTER_B

    LETTER_C

    LETTER_B

    using something like:

    UPDATE link_counts

    SET (TECH_TYPE_A,TECH_TYPE_B,TECH_TYPE_C) =

       (with xyz  where link_id = LINK_COUNTS.link_id .... etc

    Which must match exactly the above table/report

    Thank you.

    Tony.

    Hi, John,.

    Thanks for posting the sample data.

    John Spencer wrote:

    ...  If you need to hide the ID column, then you could simply encapsulate another external query around me. ...

    Or simply not display the id column:

    Select link_id, -id,

    Count (case when tech_type = 'A' end then 1) tech_a.

    Count (case when tech_type = 'B' then 1 end) tech_b,.

    Count (case when tech_type = "C" then 1 end) tech_c

    of (connect_by_root select link_id link_id,)

    the connect_by_root ID, tech_type

    of sample_data

    Start with parent_group_id = 0

    connect prior group_id = parent_group_id)

    Link_id group, id

    order by link_id, id;

    Same results, using SELECT... PIVOT

    WITH got_roots AS

    (

    SELECT CONNECT_BY_ROOT link_id AS link_id

    Id CONNECT_BY_ROOT ID

    tech_type

    OF sample_data

    START WITH parent_group_id = 0

    CONNECT BY PRIOR group_id = parent_group_id

    )

    SELECT link_id, tech_a, tech_b, tech_c

    OF got_roots

    PIVOT (COUNT (*)

    FOR tech_type IN ('A' AS tech_a

    'B' AS tech_b

    'C' AS tech_c

    )

    )

    Id ORDER BY link_id

    ;

  • SELECT with the matter in that statement based on the procedure returning a Boolean

    Hi all

    I try to build a select statement with a case where the condition.
    SELECT COL_ID, COL_TITLE, COL_COMMENT,
               ( CASE WHEN COL_IT = :USER_ID THEN 'Y' 
                           WHEN COL_USER = :USER_ID THEN 'Y'
                           WHEN REGEXP_LIKE(COL_IT_ADD, '(^|:)(' || :USER_ID || ')(:|$)') THEN 'Y'
                           ELSE 'N' END ) MY_COL,
    FROM   MY_TABLE
    WHERE  ( CASE WHEN MY_PACKAGE.AUTHORIZE('IT') = TRUE THEN 'Y'
                           WHEN MY_PACKAGE.AUTHORIZE('IT') = FALSE AND COL_USER = :USER_ID THEN 'Y'
                           WHEN MY_PACKAGE.AUTHORIZE('IT') = TRUE AND  REGEXP_LIKE(COL_IT_ADD, '(^|:)(' || :USER_ID || ')(:|$)') THEN 'Y'
                           ELSE   'N' END ) = 'Y'
    The case for the calculation of the value of the column works fine. Run this query without the where also works in condition.
    But in the condition, I get the following error: SQL error: ORA-00920: invalid relational operator 00920. 00000 - "invalid relational operator.
    The MY_PACKAGE procedure. AUTHORIZED (pValue) returns a Boolean value. Is it possible to use a case statement in the WHERE condition to calculate a value and check for this? If not, is there another way to do something like this in a query?

    Thanks for your help
    Chrissy

    The Boolean data type is unknown in SQL... you cannot use functions that return Boolean values in SQL.

    You can add a function overloaded in the package which returns a 'Y' or a 1, or something else that is a data type in SQL.

  • Dynamic LOV based on the number

    I paint a blank on this one, but I am trying to create a dynamic LOV to a selection list where a user can select a number from 1 to the quantity of an item.

    (ie. count (asset_id) where asset_type =: PAGE_ITEM would be the maximum of the selection list)

    Hello

    What about...

    SELECT LEVEL d, LEVEL r
    FROM dual
    CONNECT BY LEVEL < = (
                          SELECT COUNT(asset_id)
                          FROM   your_table
                          WHERE  asset_type = :PAGE_ITEM
                         );
    

    ?

    See you soon

    Ben

    Published by: Munky on Sep 30, 2010 15:19 - added display and return the value for the purposes of the LOV

  • How do I create a form that redirects based on the entry of the form?

    What I'm trying to do, is to have a form with a single entry. Lets call it "ID".

    There are several pages that form can lead to the ID according to user input.

    All extensions page ends with the code. For example, www.page.com/0001.html.

    So I want the user to "0001" then submit. The user will be directed to the page www.page.com/0001 if they put one is not valid user ID is directed to the "Not found" page

    Any help would be much apreciated! Thank you.

    on form.php put a form like this:


    on redirect.php put this:

    <>

    If (isset($_POST['id'])) {}

    Header ('Location: http://yoursite.com/'. $_POST['id']. 'html');

    "exit";

    } else {}

    Header ('Location: http://yoursite.com/form.php');

    "exit";

    }

    ?>

    best,

    Shocker

  • to limit the reports based on the responsibility of the user

    Hello

    is it possible to limit the reports displayed in the request for enforcement THAT LOV based on the responsibility of the user

    for example a person in operations are not able to see the report, which belongs to the admin of the lov

    kindly guide me

    thanking in advance

    is it possible to limit the reports displayed in the request for enforcement THAT LOV based on the responsibility of the user

    for example a person in operations are not able to see the report, which belongs to the admin of the lov

    You can achieve this by creating a new responsibility and exclude these concurrent programs of the Group requested that is attached to this new responsibility. Then assign the new responsibility of the user.

    Thank you
    Hussein

  • How to create a dependent list of values based on the relationship master detail

    Hello

    I'm on jdev 11.1.2.4.

    1. I have a table main 'Reception' with the columns receipt_id and student_id (ReceiptVO)

    2. as well as an array of details 'Receipt_Detail' with the columns receipt_id, course_id (ReceiptDetailVO)

    (There are some othere columns in the two tables, but I've only mentioned those which is relevant to this example.)

    3. the two tables are related with receipt_id.

    I want to create a dependent class LOV that filter courses related to the student selected in the main table. (There is a student_course table that holds student_id, relationship of course_id, StudentCourseVO)

    to do this, I have

    1 created VO based on the student_course table

    2 Add a view that filters based on the id of the student

    3 assigned this VO to receipt_detail tables course_id

    It comes

    in the accessor receipt_details VO view, I do not show the ability to select the student_id of the main table (IE ReceiptVO). It only shows the columns in the ReceiptDetailVO.

    Please can you help me?

    Thank you

    What you need in your ReceiptDetailVO is the StudentId of master ReceiptVO attribute.

    To do this, you can:

    1. for your ViewLink (between ReceiptVO and ReceiptDetailVO), you must generate the Source accessor:

    In this way, in the VoRowImpl Java to ReceiptDetailVO class, you will get a way to access master ReceiptVO line (you can find a new method with the name that you gave the name of the accessor in the top of the dialog box)

    2. then, in the ReceiptDetailVO, create Transient attribute, say, MasterStudentId. Access Java's VORowImpl class, within the get for this new attribute accessor method, use the previous step name accessor method to get the line main and finally master StudentId.

    3. the rest is easy - use this new attribute transitional to filter LOV about the student teacher ID...

  • lov filter based on the setting of the page

    Dear all,

    I'm having a selectOne on page and filter lov based on the parameter(as queryString) page so how I have applied?
    I created a Vo and also affected the bind variable. but it does not work... someone can help me on this...

    -Thank you

    Published by: Santosh Vaza January 7, 2011 19:55

    Here's an example of how you can set your VO to have only specific lines that you want before the loading of the page:
    http://blogs.Oracle.com/Shay/2010/10/passing_parameters_to_adf_appl.html

Maybe you are looking for