Seen the condition in APEX LOV

Hi all

I have a scenario like that.

1. I have a select list with 2 values 'Source', 'target '. I'm this inserting data in the table will therefore not be able to change their values.

2. I have a second list B. B must be populated, based on the list. If "Source" is selected in a list, then the list B SQL code should be select Field2 from table where field1 = 'Pre' if 'Target' is selected, then the SQL code of the B list should be Select field3 in table where field1 = 'Post'

Please let me know how I can do this.

Merger consultant wrote:

Thanks for the information. In this way can be used in case if the SQL that is used to fill the B list is identical for the two criteria. But in my scenario, I have 2 different SQL must be executed according to the value that is available in LIST A

If a value in the list = 'Source' select Field2 from table where field1 = 'Pre '.

If a value in the list = 'Target' select field3 from table where field1 = 'Pre '.

Let me know how I can do this?

Basic SQL. Use a UNION are mutually exclusive in the item query B to select the required field under certain conditions according to the value of point A:

select
    field2 l
  , field2 v
from
    table
where
    :item_a = 'Source'
and field1 = 'Pre'
union all
select
    field3 l
  , field3 v
from
    table
where
    :item_a = 'Target'
and field1 = 'Post'
order by
    1

Note that queries LOV must return two VARCHAR2 values. As you mentioned only one column in each case I guess the display values and back are the same. If this is not the case, adjust the query accordingly.

Tags: Database

Similar Questions

  • Is this a bug? HTML is not escaped in the conditional read only LOV page elements

    Then test my application for injection HTML filling HTML for each column in my data injected datamodel HTML running when a field only LOV ready, I noticed



    I have dynamic LOV in use in my form, so their share, users can select. That sometimes I don't want to make them able to change a value, they chose earlier.

    For this reason I condtionalu readonly my LOV. by using the conditional read only an option for the items on the page.



    That's when a dynamic LOV made readonly HTML code inside is done instead of escaped



    is this a bug or is it intentional?

    At least, I think I should be able to choose the behavior.



    Geert

    Geert - Thanks for the info. I think that's not a bug. With the read-only option, it displays the data as it would for a display text (does not save the State) items for which source of HTML element, that is, unescaped. If you want the text escaped by using your dynamic lov query simply use htf.escape_sc:

    Select htf.escape_sc ('data') d, 1 r of the double

    Scott

  • conditionally display name of the field page apex LABEL in the email of the Apex.

    Hello
    I'm using Apex email process.

    I have a page where I have check conditions. ONLY WHEN the checkbox is enabled in the 'yes', I need to display this field in emails.
    Please notify

    field 1-birthday card order YES NO
    field 2-marriage card order YES NO



    If 1 is checked YES and 2 - is checked that NO, I need to insert only

    The NAME of the field LABEL 1. like...

    * 1 - birthday card order *. How? Please notify.

    Thank you
    KP

    Published by: user8612301 on March 7, 2013 13:47

    You can query the integrated views apex

    select LABEL from apex_application_page_items
    where application_id =110
    and page_id = 18
    //OR
    where ITEM_NAME = 'PX_ITEM_NAME'
    
  • Display of the conditional field of Apex Oracle

    Hello

    I created two Wizard page in Oracle Apex.

    I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.

    Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.

    On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.

    SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "

    I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.

    Thank you

    Fields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)

    It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".

    Howard

  • Click on the button conditional and alert when the condition is not met

    Hello

    I have a problem with the click of a button; in my form when the user clicks on a button I have to run the True action only if an element has the value; otherwise I would show an alert message like "enter value < element >...". ».

    It seems a simple problem, I tried to insert the condition "Is not null" and warning that the action of false, but it does not work.

    Who is the Apex way to solve?

    Thanks in advance.

    Cry

    1. replace the button URL type

    Code - javascript:validate();

    2. create a javascript function in the page function and declaration of global variables

    function validate()

    {

    If ($v ('YOUR_ITEM_NAME') == ")

    Alert ('XYZ');

    on the other

    Apex. Submit ('BUTTON_NAME');

    }

  • Merge the queries based on the conditional

    Apex 4.2

    I have a pretty complex question. I have a page that will have a selection list on the data entry form. The selection list contains a list of both 1) Active only or 2) active and inactive areas. We show the active areas when we create a new record (P101_ID IS NULL), we appear active and inactive sectors when you edit a record (P101_ID IS NOT NULL). I have therefore two separate queries to account for each case. Simple so far.

    Problem I am seeing that create two lists of selection on the page and put a separate condition on each one (hiding one of selection lists depending on the case the ID IS NULL or the ID IS NOT NULL) does not work. So I was wondering if there was a way to combine queries for that to work based on a conditional statement. I did experiment with the instructions box and unions, etc., but my questions are a bit complicated. They are as follows:

    LIST OF ASSETS SECTORS (P101_ID is NULL)

    Select unique
    ISEC.inspection_sector_name,
    ISEC.inspection_sector_id
    From
    INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where (ISEC.hurricane_protection_flag = :P157_IS_HURR and ISEC.river_protection_flag = :P157_IS_RIV) AND
    ISEC.superseded_date is null AND
    ISEC.commenced_date is not null AND
    ISEC.inspection_sector_id not in (
    Select ISEC.inspection_sectors_id
    From INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where SCH.high_water_event_id = :P157_high_water_event_id AND
    SCH.inspection_date = :P157_inspection_date)
    OR ISEC.inspection_sector_id = :P157_inspection_sector_id AND
    ISEC.superseded_date is null
    Order by inspection_sector_name
    

    LIST ACTIVE AND INACTIVE SECTORS (P101_IS is NOT NULL)

    Select inspection_sector_name, inspection_sector_id From (
    Select ISEC.inspection_sector_name, ISEC.inspection_sector_id, '0' as this
    From dual, INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where (ISEC.hurricane_protection_flag = :p157_IS_HURR and ISEC.river_protection_flag = :P157_IS_RIV) AND
    ISEC.superseded_date is null AND
    ISEC.commenced_date is not null AND
    ISEC.inspection_sector_id not in (
    Select ISEC.inspection_sector_id
    From inspection_sectors ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where SCH.high_water_event_id = :P157_high_water_event_id AND
    SCH.inspection_date = :P157_inspection_date)
    OR ISEC.inspection_sector_id = :P157_inspection_sector_id AND ISEC.superseded_date is null
    UNION
    Select unique
    ISEC.inspection_sector_name|| ' [CLOSED]', ISEC.inspection_sector_id, '1' as this
    From dual, INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where ISEC.superseded_date is not null and ISEC.commenced_date is not null AND
    ISEC.river_protection_flag =:P157_IS_RIV and ISEC.hurricane_protection_flag = :P157_IS_HURR AND
    ISEC.inspection_sector_id not in (
    Select ISEC.inspection_sector_id
    From INSPECTION SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where SCH.high_water_event_id = :P157_high_water_event_id AND
    SCH.inspection_date = :P157_inspection_date)
    OR ISEC.inspection_sector_id = :P157_inspection_sector_id NAD ISEC.superseded_date is not null
    Order by this, inspection_sector_name asc
    

    If the requests are quite complex. I tested the times and they work in APex, separately from the course. Forgive me if I have mispeled anything. But any help on this would be greatly appreciated. Thanks in advance.

    Thank you for taking to your friend Frank. You are a bird-guy (my attempt at sarcasm). Nobody has questioned whether its knowledge base; more so in the way he responded to my original post did not «do» Like the people who come on this forum looking for help to those who have greater knowledge, it would be nice to be greeted a little more friendly, lol. Just my thoughts. But, feel free to correct my spelling test, grammar and syntax in my sentences so (the effort once again to emphasize that I misspelled 'AND', and that the request would not be performed--> of course... smh... you are funny)

    Apparently I failed to explain the issue in its entirety. I should start by saying... "I have two separate petitions that I tested and already working and am looking to put on a list of selection (at the top) with a conditional execution statement one or the other, through the conditional statement, but again, I was looking for more so for syntax and structure." I'm sorry, I forgot to mention that.

    Anyway, enough of this. I found a solution to my problem:

    Within the Apex 4.2, you can have a list of selection as a page element. I want to display different results depending on whether Yes or no P101_ID is set to Null or NOT NULL

    P101_ID is a primary key for a table.

    P101_ID is not the exact name I use in my application / request however.

    In addition, you don't need to include double; It's not make or break the query. Something that I forgot to omit them.

    In addition, something along the lines of

    Select inspection_sector_name, inspection_sector_id From (
    .....all the stuff in query 1.......)
    Where P101_ID is null
    UNION
    Select inspection_sector_name, inspection_sector_id From (
    ....all the stuff in query 2.....)
    Where P101_ID is not null
    

    will work on a selection list in the APex. So problem solved. Thank you for all your wonderful insight, of words and thoughts. Thank you.

  • Better display of the values of shuttle LOV in a report

    Hello
    I created a LOV shuttle service in a form, then a report indicating (among others) the values chosen this LOV shuttle.
    If the user choose multiple values I don't like how they appear in the report (they must go in a single cell) because
    the user sees a list of items separated by ': '.
    Is there a simple way to show them for example as a list of points of ball or another form readable nicer human?

    Thank you
    Antonella

    Hello Antonella,.

    use

    select case when your_column_name is not null then '
    • '||replace(your_column_name,':','
    • ')|| '
    ' end as shuttle_column from your_table

    to avoid the ball when you have a NULL value.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Change the color of PopUp Lov

    I have the following code for a popup lov
    select a,b from
    (
    select '1' res, htf.escape_sc(su.sukey) a, htf.escape_sc(su.sukey) b
    from udm_su su, udm_lde lde
    where su.ldeid = lde.ldeid
    and su.sukey in (select su_generic 
                     from vrp_cfg_gensuconv)
    and lde.ldekey = :F140_LDEKEY
    union
    select '2' res, htf.escape_sc(su.sukey) a, htf.escape_sc(su.sukey) b
    from udm_su su, udm_lde lde
    where su.ldeid = lde.ldeid
    and su.sukey not in (select su_generic 
                     from vrp_cfg_gensuconv)
    and lde.ldekey = :F140_LDEKEY
    )
    order by res, a, b
    What I want to do is to display the result of the first statement select in red
    and the second in blue

    See you soon

    Gus

    Gus C wrote:
    Apex 3.2

    Don't have around 3.2 to experiment. If the above does not work in 3.2, then I am inclined to think that it won't. Which is strange, because the indications are that the restrictions were unconstitutional in APEX 4.0:

  • {: identifier of the thread = 1338180}
  • {: identifier of the thread = 2126522}

    Part of the problem is that LOVs rendered as select list (which is the most frequent) cannot contain any HTML elements (+ {: identifier of the thread = 898835} +), but the less common popup LOV.

    If it is an essential requirement, then 2 possibilities come to mind:

    1. fairly complex model changes of Page/LOV popup to include JavaScript/AJAX that will run for this list, include the number of entries must be of each color and navigate through the options add styles require.

    OR

    2. use a report on a pop up, rather than a LOV page.

    Both look like more trouble than it's worth.

  • Hide the conditions of the IR

    Hi all

    I'm building an IR and me using line highlighter to highlight a few lines. This is my default report.
    Is it possible to hide the conditions (which is displayed above the report).

    I cut, but I was told to hide it completely. I have not found this option.


    I use 10g DB and Apex version 4.1

    Thank you in advance,
    Daniel.

    Daniel wrote:
    Hi, VC.

    Another highlight, I just need the menu actions for download purposes.

    Thus, it will block that too?

    Menu Actions will be available, but you have IR research field? don't forget when you search it will add a filter that are not visible to the end user to delete.

    Here's what you get

    http://Apex.Oracle.com/pls/Apex/f?p=46417:4

    Test/test connection

    Try searching for 'plugin', the filter is applied, but you won't see it

  • spend the conditional statements

    Hello everyone I've been working on a duty where we created a game of the match.  It is for me to find a way to tell the script action what difficulties the game of the user of the game to.  There are 3 easy buttons, mediym, hard.  Each sets out an increased number of cards say 4 to 8 easy for way etc.

    We are supposed to use the conditional switch to do this.  My problem is how do you know what button was clicked the switch?

    Here's the code so far, he is only set up for the easy right now.  It works fine until I tried to set up the switch.

    Thanks for any help you might be able to give.

    package {}

    import flash.display.MovieClip;

    import flash.display.Sprite;

    import flash.events. *;

    import flash.text.TextField;

    import flash.utils.Timer;

    import flash.utils.getTimer;

    import flash.media.Sound;

    SerializableAttribute public class Match extends MovieClip {}

    var showingCard:Card = null;

    const DELAY_TIME = 1000;

    public void Match() {}

    trace ("Match");

    introscreen.btnMenu.btnEasy.addEventListener

    addChild (introScreen);

    If a card is displayed showingCard refers to it

    card otherwise

    introScreen.btnMenu.btnEasy.addEventListener (MouseEvent.CLICK, onClickButton);

    } / / end of the constructor

    function onClickButton(e:MouseEvent):void {}

    trace ("onClickButton");

    {Switch (e.Target.Level)}

    'easy ': case study

    layoutCards (2);

    break;

    }

    }

    //

    function layoutCards(gridSize:int):void {}

    trace ("layoutCards");

    put gameScreenOnTop

    addChild (gameScreen);

    creat bridge of the faceValues valid

    var Bridge: Array = [];

    var lastFrame:int = gridSize * gridSize / 2 + 1;

    for (var k: int = 2; k < = lastFrame; k ++) {}

    Deck.push (k, k);

    }

    trace (Deck);

    layout maps

    for (var i: int = 0; i < gridSize; i ++) {}

    for (var j: int = 0; j < gridSize; j ++) {}

    trace (i, j);

    Map: map of var = new Card();

    size

    Card.Width = stage.stageWidth/gridSize;

    Card.Height = stage.stageHeight/gridSize;

    location

    Card.x = i * card.width;

    Card.y = j * card.height;

    important assign a face value, drawn randomly from the deck

    card.faceValue = randomInteger (2.19).

    card.faceValue = deck.splice (randomInteger (0, deck.length - 1), 1);

    Listening

    card.addEventListener (MouseEvent.CLICK, onClickCard);

    Add

    card.gotoAndStop (1)

    gameScreen.addChild (card);

    } //j

    } //i

    } / / end of method of positioning cards

    makecard start clickable

    function onClickCard (e:MouseEvent) {}

    trace ("onClickCard");

    var clickedCard:Card = (e.target) Card;

    Turn the card clicked

    clickedCard.visible = false;

    Click on the first map in pair

    3 cases

    1 card clicked is the first in the bet

    See the map and remomber it

    make it not clickable at the moment

    If (showingCard == null) {}

    trace ("FirstCard")

    clickedCard.gotoAndStop (clickedCard.faceValue); external

    showingCard = clickedCard; internal

    clickedCard.removeEventListener (MouseEvent.CLICK, onClickCard);

    }

    2A - click map is a second pair, and friendly the FirstMatch

    both take-out

    Else if (clickedCard.faceValue == showingCard.faceValue) {}

    trace ("match")

    gameScreen.removeChild (clickedCard);

    gameScreen.removeChild (showingCard);

    showingCard = null;

    }

    2B - clickedCard is second and not a match for the first.

    Return both

    else {}

    clickedCard.gotoAndStop (clickedCard.faceValue);

    freeX during a short period of time

    addChild (blockScreen);

    var: timer = new Timer(DELAY_TIME,1);

    timer.addEventListener (TimerEvent.TIMER,

    function onTimer(e:Event) {function //annonymus

    delay this code

    clickedCard.gotoAndStop (1);

    showingCard.gotoAndStop (1);

    clickable map list

    showingCard.addEventListener (MouseEvent.CLICK, onClickCard);

    showingCard = null;

    addChild (gameScreen);

    }

    );

    Timer.Start ();

    }

    }

    } / / Match class

    } / / packages

    When I click on the easy button in the swf file I get this message.

    ReferenceError: Error #1069: property not found on flash.display.SimpleButton level and there is no default value.

    to Match / onClickButton)

    The switch statement checks the 'e.target.level' to see which option has been selected, the part level of this being the word "Easy" or anything else.  e.Target points to the object that sent the event, which seems to be a SimpleButton object.  But a SimpleButton object cannot have the properties created for her as a movieclip can, in order to verify his 'level' property is looking for something that is not normally.

    Where assign you the level of ownership, of what object it give you?

    (hindsight: don't want to jump on the reaction of Dave.)  This meets an ask me if... I always check before submitting a message to see if someone answered while I was devise a response and normally go back on the forum to check... If if I don't post unless there is a marked difference is answers this time I just went back one level and not seen no response, so I thought that none received... it looks like going back to the forum is the right path to follow)

  • Reports - the values of the checkbox and the conditional column visibility

    Although I use Oracle databases for many years, I must admit that I am rather new to APEX. I build a first prototype project to convince our project managers and managers of the usefulness of the product for future projects (as for interfaces Visual of the database where the focus is on forms and reports, it is often quicker and cheaper to build an APEX application instead of a webapp in Java or c# full blown).

    I have a few problems however.

    I'll start with a quick description. I have the following structures of parent/child:

    Provinces > cities > Intersections > earrings > detections in loop.

    Basically, I want to do a report on detections of loop. Now, as we have thousands of detections someday, I did kind of a mining structure down. First, you choose your province, then the city, then the intersection and finally the loop. Do not use the lists to make the selection. Instead, I did a (classic) report on each side because it allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the identifier of the province of cities report and use it in the query to restrict my report to these cities in the province. I repeat these step for different parts, which, in the end, gives me the selected loop loop detections. The good news is that all this works very well. However, the person who will use this application made a suggestion and asked if it would be possible to select different loops and thus get the detections for several loops (the rest of the application remains the same). However, this means that I can't use the link in the column more. Now, I thought in the sense of a checkbox control. The link to the column is still there, but the user would also have the possibility to select several items in the report. I have managad to add a checkbox control to the report, associated with the loop identifier column. It's not really hard. I can't understand, however, how I can pass the identifiers found in the next report (detections for the selected loops) and use it in the report's underlying query. The problem is, I do not know how to pass the values checked to the next page and how to use these values in the request of the State of this page. I guess it must be possible, but I couldn't figure out how. I tried to play with APEX_APPLICATION. G_Fxx and others. Don't forget I'm a newbie and this seems to be more advanced features.

    I downloaded the images from the 2 on the pages of the report to illustrate:

    http://img96.imageshack.us/img96/1497/apex01.jpg

    http://img140.imageshack.us/img140/9868/apex02.jpg

    A second point that's bothering me is this. In the loop detection report, I show a link column (I chose an icon instead of the value of the column) for each line. I also have a column that displays the number of detections for the given line (and one day). Now, for some lines, there is no detection that has emerged. Therefore, there is no point in the selection of this loop, because the result will be a blank report. However, I still want to show the loop in the loop selection report, as it is always present (it is not as if he suddenly disappeared). Of course, no big problem and most users probably have sufficient intelligence to understand this. However, it would be nice if I could do the icon (link colum) visible only for these loops with detections, or in other words, for these recordings in which number_of_detections (COUNTY of underlying column) is greater than 0. I couldn't find a way to do it either. The conditional display for a column option didn't really offer me a solution here.

    Before I forget, I use APEX 4.0.1 on an Oracle XE database.

    Any advice or suggestions would be welcome! :)

    Thank you.

    Erwin

    Hello

    You mean something as in this example
    https://Apex.Oracle.com/pls/OTN/f?p=40323:55

    You can store the values checked into collection and then use it in another report where clause

    See for example this post for how you can memorize checked lines to the collection
    Re: Need help with APEX_Collection

    In the sample report DEPT query is

    SELECT
      CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN
        APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true')
      END AS row_selector,
      c.c002 AS checked,
      d.DEPTNO,
      d.DNAME,
      d.LOC
    FROM dept d,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND d.deptno = c.c001
    

    And the report on EMP

    SELECT e.EMPNO,
      e.ENAME,
      e.JOB,
      e.MGR,
      e.HIREDATE,
      e.SAL,
      e.COMM,
      e.DEPTNO
    FROM emp e,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND c.c002 = 'true'
      AND e.deptno = c.c001
    

    Kind regards
    Jari

  • Class CSS custom to the conditional formatting

    Hello

    I am applying the css custom class to the conditional formatting
    like what I saw in http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_string_number_in_one_column

    I modified the custom.css located in C:\OracleBI\web\app\res\s_oracle10\b_mozilla_4...I added the ff:

    . {ClassIsLess}
    background-color: #FFFF00;
    }


    then copy pasted into C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4

    Restarted the presentation service, oc4j, and erased the IE cache.

    When I apply it in the Style tab > custom Css section > class use CSS custom custom class works!

    But when I use it in a conditional formatting as if $ is not null, the custom class is NOT applied...

    Help, please. Am I missing something?

    Thank you
    Felicity

    Hey felicity.

    U have seen this?

    http://obiee101.blogspot.com/2008/09/OBIEE-custom-CSS-style-class.html

    Last three note mentioned by Jhon

    Note 1: Somehow the font size of the cell is dominant on the personal class...
    NOTE2: Disable your browser cache when developing with this... (some changes may take time to be visible).
    Note3: even if the option is available in the form of conditional formatting, it seems to work...

    Thank you
    Saichand.v

  • How to pass the value to query LOV of rows in the table.

    simple table on the page of the ofa:

    col1 col2
    ABC lov-activated
    PQR lov-people with disabilities
    MNO lov-activated

    Col2 is lov and turned under condition if it meets certain conditions. I am capable of until.
    How to pass values in col1 to the co of lov lov query?

    Help, please
    Thank you

    Hello

    You can pass the value to LOV in this way in a region of the table.

    col1 col2

    DEPTNO empname (Lov field)
    1 lov1
    2 lov2

    requirement: lov1, you will need to pass the value of deptno 1.

    If deptno is message style text then you need to create a value of the deptnoFormValue with the attribute in the base page table area, and the same instance of vo.

    danslechamp empname lov

    fields of lov region:

    EmpName,
    DEPTNO,
    and deptnoFormValueinLov

    lov mappings: a first return to the basic page.

    a second part of the criteria

    Point lov region: deptnoFormValueinLov
    Return article: -.
    Point of criteria: deptnoFormValue
    Required: true
    Query programmatically: true

    Now create a controller for the region of Lov

    the code example is:

    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.OAViewObject;
    java.util.Dictionary import;

    in the process request:

    OAApplicationModule m = pageContext.getApplicationModule (webBean) (OAApplicationModule);
    Dictionary passiveCriteria = pageContext.getLovCriteriaItems ();
    String deptno = (String) passiveCriteria.get ("deptnoFormValueinLov");

    System.out.println ("org code in controller of lov is" + orgcode);

    OAViewObject vo = (OAViewObject) am.findViewObject ("view instance of lov");
    vo.setWhereClause ("Organization_code =" "+ deptno +" ' "");

    System.out.println ("request after adding where clause." + vo.getQuery ());

    hope this is useful

    Kind regards
    Barros.
    [email protected]

  • Customize the search box on LOV - basic mode

    I created a text of entry with a list of values in JDev 11.1.1.2 and designed the search box this LOV in basic mode (mode in advance) for fields in the drop-down list box to choose the search as condition: contains, begins with, equal to... disappear.
    I wonder if there is way to all fields of research in a State 'Contains' in this basic mode (because now, by default, in my region, the search for some research fields 'Contains' and some in "equal to").
    We know how, please help. Thank you.

    Published by: Mun on January 30, 2010 22:11

    I use JDev 11.1.1.2.
    With the help of your LOVSearchRegion, I can't access the search list in the tab Interface user Hint If the LOV_DepartmentName Edit list values editor because he is disabled.

    Change the "default list" for a type LOV (no choicelist).

    In addition, it is possible if the display criteria and the list of values belong to the same object in view.

    Yes. It is possible.

  • show/hide the button with the icon enabled when the condition is met

    Hello

    I created a B button with an icon of a sign of the green check mark.
    It must appear next to another A button when a condition is met.

    How can I better get this working B key, without using something else than the APEX.

    The condition is that some data has been inserted by clicking A button or simply exist in the database table.

    I tried conditional display of point with conditiontype "PL/SQL Expression.
    but could not make it work.

    TNX to tide me over.

    Cara

    Hello

    If you use the condition EXISTS (SQL query returns at least one row)?

    This could give idea how
    http://Apex-SMB.blogspot.com/2009/05/How-to-determine-if-user-can-view-apex.html

    BR, Jari

    Published by: jarola 18 November 2009 16:07

    Oh,.
    I paste the wrong link and can not find more good.
    Well anyway in this link is also example to condition EXISTS

    To meet this requirement I can add a condition (SQL Exists) to the Report 2 region on Page 2:
    

    It takes something similar and your table selection

Maybe you are looking for