The value for a key in a PopupScreen "Cancel"

Hello:

I have a small problem to define a 'close' by default in a PopupScreen key. My PopupScreen has some EditFields, LabelFields and other things and I need when a press the button 'back' on the keyboard the PopupScreen person has to close.

It's the "structure" of my class:

public class ConfigureScreen extends PopupScreen
{
    protected ButtonField _close;

    public Configure()
    {
        // Create and display ObjectChoiceField, EditField
        // the "_close" ButtonField and other things...
    }

    public void onClose()
    {
        // this is invoked by the _close ButtonField
        // and the "back" key
    }
}

As you can see I have a ButtonField 'close' which has FieldChangeListener set and call the onClose function that listens, I need that when the person press 'Return' ky, he should perform the onClose function.

Sorry for my English and thanks for any help or reference you can give me.

Peace.

It's the complete solution:

/**
 * Override the keyChar() method from PopupScreen.
 */
protected boolean keyChar(char c, int status, int time)
{
    switch(c) {
        case Characters.ESCAPE:
            onClose();
            break;
        default:
            return super.keyChar(c, status, time);
    }

    return true;
}

Thanks to YamilBracho for his help.

Tags: BlackBerry Developers

Similar Questions

  • Discover the value of binary key blank

    Is it possible to display the Raw binary value key that is stored in the cache without involving any serialization?

    Hello

    If you want to just see the binary for all keys try this

    NamedCache cache = CacheFactory.getCache(cacheName);
    ConverterCollections.ConverterSet keys = (ConverterCollections.ConverterSet) cache.keySet();
    for (Binary binaryKey : (Collection) keys.getCollection()) {
        System.out.println(binaryKey);
    }
    

    JK

  • What is the value of registry key "Default" in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    What is the value of registry key "Default" in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    Hello

    (Default)                            REG_SZ (value not set)
    {3D644C9B-1FB8-4f30-9B45-F670235F79C0} REG_EXPAND_SZ %PUBLIC%\Downloads
    Common AppData REG_EXPAND_SZ ProgramData %
    Common REG_EXPAND_SZ Office %PUBLIC%\Desktop
    Common REG_EXPAND_SZ %PUBLIC%\Documents Documents
    Common programs REG_EXPAND_SZ %ProgramData%\Microsoft\Windows\Start start\program
    Common Start Menu REG_EXPAND_SZ %ProgramData%\Microsoft\Windows\Start Menu
    Common Startup REG_EXPAND_SZ %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
    Common models REG_EXPAND_SZ %ProgramData%\Microsoft\Windows\Templates
    REG_EXPAND_SZ CommonMusic %PUBLIC%\Music
    REG_EXPAND_SZ CommonPictures %PUBLIC%\Pictures
    REG_EXPAND_SZ CommonVideo %PUBLIC%\Videos

    You can do a Reg file copying between the lines and paste into Notepad and save as a. REG file as
    UserShellFolders.REG

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

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders]
    "Common Desktop" = hex (2): 25, 00, 50, 00, 55, 42, 00, 00 4 c 00, 49, 00, 43, 00, 25, 00, 5 c, 00,------.
    44,00,65,00,73,00, 6B, 00, 74, 00, 6f, 00, 70, 00, 00, 00
    "Common document" = hex (2): 25, 00, 00, 50, 00, 55, 00, 42, 00, 4 c, 49, 00, 43, 00, 25, 00, 5 c,
    00,44,00, 6f, 00, 63, 00, 75, 00, 6 d, 00, 65, 00, 6F, 00, 74, 00, 73, 00, 00, 00
    "CommonPictures" = hex (2): 25, 00, 50, 00, 55, 42, 00, 00 4 c 00, 49, 00, 43, 00, 25, 00, 5 c, 00,------.
    50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,00,00
    "CommonMusic" = hex (2): 25, 50, 00, 00, 55, 00, 42, 00, 4 c 00, 49, 00, 43, 00, 25, 00, 5 c, 00, 4 d,
    00,75,00,73,00,69,00,63,00,00,00
    "CommonVideo" = hex (2): 25, 00, 50, 00, 55, 42, 00, 00 4 c 00, 49, 00, 43, 00, 25, 00, 5 c, 00, 56,------.
    00,69,00,64,00,65,00, 6f, 00, 73, 00, 00, 00
    "{3D644C9B-1FB8-4f30-9B45-F670235F79C0}" = hex (2): 25, 50, 00, 00, 55, 00, 42, 00, 4 c, 00,------.
    49,00,43,00,25,00 5 c 00, 44, 00, 6f, 77, 00, 00, 6F, 00, 6 c, 00 6f 00 61 00, 64, 00, 73,------.
    00,00,00
    "Common Start Menu" = hex (2): 25, 00, 50, 72, 00, 00 6f 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 44,------.
    00,61,00,74,00,61,00,25,00, 5 c, 00, 4 d, 00, 69, 00, 63, 00, 72, 00, 6f, 00, 73, 00, 6f, 00,------.
    66,00,74,00 5 c 00, 57, 00, 69, 00, 6F, 00, 64, 00, 6f, 77, 00, 00, 73, 00, 5 c, 00, 53, 00, 74,------.
    00,61,00,72,00,74,00,20,00, 4 D, 00, 65, 00, 6F, 00, 75, 00, 00, 00
    "Joint programmes" = hex (2): 25, 50, 00, 00, 6f 72, 00, 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 44, 00,------.
    61,00,74,00,61,00,25,00, 5 c, 00, 4 d, 00, 69, 00, 63, 00, 72, 00, 6f, 00, 73, 00, 6f, 00, 66,------.
    00,74,00 5 c 00, 57, 00, 69, 00, 6F, 00, 64, 00, 6f, 77, 00, 00, 73, 00, 5 c, 00, 53, 00, 74, 00,------.
    61,00,72,00,74,00,20,00, 4 d, 00, 65, 00, 6F, 00, 75, 00, 5 c, 50, 00, 00, 72, 00, 6f, 00, 67,.
    00,72,00,61,00, 6 D, 00, 73, 00, 00, 00
    "Common Startup" = hex (2): 25, 00, 50, 72, 00, 00 6f 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 44, 00,------.
    61,00,74,00,61,00,25,00, 5 c, 00, 4 d, 00, 69, 00, 63, 00, 72, 00, 6f, 00, 73, 00, 6f, 00, 66,------.
    00,74,00 5 c 00, 57, 00, 69, 00, 6F, 00, 64, 00, 6f, 77, 00, 00, 73, 00, 5 c, 00, 53, 00, 74, 00,------.
    61,00,72,00,74,00,20,00, 4 d, 00, 65, 00, 6F, 00, 75, 00, 5 c, 50, 00, 00, 72, 00, 6f, 00, 67,.
    00,72,00,61,00, 6 D, 00, 73, 00, 5 C, 00, 53, 00, 74, 00, 61, 00, 72, 00, 74, 00, 75, 00, 70, 00,------.
    00.00
    "Common AppData" = hex (2): 25, 00, 50, 72, 00, 00 6f 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 44, 00,------.
    61,00,74,00,61,00,25,00,00,00
    "Models of communes" = hex (2): 25, 50, 00, 00, 6f 72, 00, 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 44,------.
    00,61,00,74,00,61,00,25,00, 5 c, 00, 4 d, 00, 69, 00, 63, 00, 72, 00, 6f, 00, 73, 00, 6f, 00,------.
    66,00,74,00 5 c 00, 57, 00, 69, 00, 6F, 00, 64, 00, 6f, 77, 00, 00, 73, 00, 5 c, 00, 54, 00, 65,
    00, 6 D, 00, 70, 00, 6 C 00, 61, 00, 74, 00, 65, 00, 73, 00, 00, 00

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

    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

  • Getting the values for the attributes of the user in IOM

    Hello

    I have it here is the snippet of code that retrieves the values for all the attributes user OIM 11g. But this code returns the exception of null pointer for attributes with null values. I also put if condition to check for null pointer exception, but always the null value is thrown in the newspapers whenever this code snippet is executed in the event handler.

    Any thoughts?

    private Map getUser(String userKey) {
      Map users = new HashMap();
      User user = null;
      UserManager userManager = (UserManager) Platform
      .getService(UserManager.class);
      try {
      user = userManager.getDetails(userKey, null, false);
      logger.log(ODLLevel.FINE, "User: {0}",new Object[] { user });
    
      } catch (NoSuchUserException e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      } catch (UserLookupException e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      }
      Set AttrNames = user.getAttributeNames();
      logger.log(ODLLevel.FINE, "User Attributes: {0}",new Object[] { AttrNames });
    
      Iterator itr = AttrNames.iterator();
      while (itr.hasNext()) {
      try {
      String AttrNAme = itr.next().toString();
      logger.log(ODLLevel.FINE,"Current Attribute is : {0}::",new Object[]{AttrNAme});
      if( user.getAttribute(AttrNAme).toString()!=null && user.getAttribute(AttrNAme).toString().length()!=0){
      String AttrValue = user.getAttribute(AttrNAme).toString();
      logger.log(ODLLevel.FINE,"Attribute: {0} and Value: {1}",new Object[]{AttrNAme,AttrValue});
      users.put(AttrNAme, AttrValue);
      }
      } catch (Exception e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      }
      }
      return users;
      }
    

    TIA

    A call to ToString on null will give you the exception. You should check that the value is not null before calling toString() on it.

    In addition, you must perform an additional control on the user object that you receive after your try catch block. If the user object is null, then there is no need to run code on the user object.

  • Enter the value for the data files:

    Hi all
    I use 10.2.0.1.0
    I have a tablespace "hg" with two data files.
    whenever I use after an order to drop this tablespace I hv asked values for data files
    Welcome is:

    SQL > drop tablespace hg, including content and data files;

    SQL > drop tablespace hg, including content and data files;

    I have two data files to the tablespace named as hg.dbf, hg1.dbf

    now what I hv value to enter? or how to calculate the value.


    Thank you

    Honey says:
    Yes I know its 'AND' but when I using the '&' then oracle asked me of ' enter the values of the data files: "k".
    Please try first, then the calculation of the value.
    It can be a variable binding value.
    If you find the answer please suggest steps

    Simple words, the "DROP TABLESPACE" command does not support '&' character. & is a substitution of placeholder for SQL variable * more.

    Even if you provide the value for the "data files" prompt, the command does not work as it would lead to "drop tablespace including contents tsname *"details of your file *.

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • The values for the items in the list of the other data blocks appear not when running.

    Hello

    I have a new problem again.

    I'm a new form in which there is about 8 blocks. All blocks have their tables in the oracle database.

    Each block has 18 columns with the same column and the column names. But the values in these columns are different and do not match.

    The problem is while I sign the form, it fills only the first data block. Other blocks do not display or fill in the values.

    I can't create a master relationship because all column values are different.

    How show or fill in the values of all the tables?

    Please help me. Thank you.

    Hello

    If your form has really separated tables, then you can simply use a trigger key-exeqry at the level of forms of travel in each block in turn and perform a built-in query execute, eventually returned the starting block.

    That is to say

    go_block('..');

    execute_query;

    go_block('..');

    execute_query;

    etc.

    go_item (...);

    In this case, you would use the block where clause to constrain each table for the game proper.

    If, however, the database has no relationship between the tables, but the content of the data has a correlation, then you could create a relationship of forms manually.

    see you soon

    Stem

  • Why can I not use hidden or display point only to store the value for insertion?

    Hi, gurus:

    I have a question:

    I implemented a form with the region of report in a page, the update works OK, but the add function has a problem:

    There is a column, offender_ID, which is a foreign key to another table, it must not be null during insertion. However, even I pass the ID of the author of the offence of master page when user click on the button create and he did watch in the form, it must be a text tabled for insert success, why can I not use hidden or display point only to store this value for insert? (If I use hidden or display single element insert will be successful, apex reports I tried to insert a null value for the offender_ID column.)

    Thanks in advance.

    Sam

    Hello

    There is a column, offender_ID, which is a foreign key to another table, it must not be null during insertion. However, even I pass the ID of the author of the offence of master page when user click on the button create and he did watch in the form, it must be a text tabled for insert success, why can I not use hidden or display point only to store this value for insert? (If I use hidden or display single element insert will be successful, apex reports I tried to insert a null value for the offender_ID column.)

    I think that both hidden and display elements have attributes that can cause problems because of different ways these function elements as the only non-display and feature no hidden items. The only items have a "Save Session State' yes/no 'control'? This can be a problem.

    Would you do that? Do these regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.

    Howard

    Congratulations. I'm glad you found the solution.

    Published by: Howard (in training) April 11, 2013 10:26

  • Can not see the values for the value of the field Position Flex games

    Hello

    I want to see the values associated with the Position to flex fields segments set of values. The valueset is the section of Position Flex field of the HRMS.
    When I go on request > FlexField > key > values and look for the defined value, it does not appear in the list of value games. I am unable to find a game for any segment of values. The two sets of value are at table in function.
    Can someone tell me why I can't see them?

    Abdul Wahid

    Base table of values defined value, you can see until you go in application where this segment is used... you can still run the SQL derived from table according to value set where the conditions (if any) to see the values. I hope I understood your question

  • The value for the attribute Transient

    Hi Expert,

    I use JDeveloper 11.1.1.6.

    I want to put the value of pageflowscope value as for example #{pageFlowScope.userInfoBean.orgid} for a Transient attribute

    so I added a transitional attribute to the object View (VO), but in the value of the expression I put #{pageFlowScope.userInfoBean.orgid}

    This expression, it cannot be used.

    How can I do to set the value to the Transient attribute?

    Please advice me, really appreciate your help

    Thank you

    As someone has already said, this is not recommended (access to bean managed layer model), BUT try to put

    userInfoBean.orgid

    pageFlowScope first and then access this value as I told you

  • The value for an item hidden in a tabular form in detail.

    I use Apex 5.0 with database 12 c.

    I created a detailed form maser, in detail, that I need a value for the hidden element set.

    the code used is

    FOR I IN 1..APEX_APPLICATION.G_F02.COUNT LOOP 
    APEX_APPLICATION.G_F02(I) := '111'; 
    END LOOP;
    

    but it is only useful if the item is displayed on the form.

    Reference:--

    https://docs.Oracle.com/CD/E14373_01/apirefs.32/e13369/apex_item.htm#AEAPI196

    You can use the apex_item.hidden function

    for creating hidden point

    APEX_ITEM. HIDDEN)

    p_idx in NUMBERS

    p_value IN VARCHAR2 DEFAULT

    p_attributes IN VARCHAR2 DEFAULT NULL,

    p_item_id IN VARCHAR2 DEFAULT NULL,

    p_item_label IN VARCHAR2 DEFAULT NULL

    )

    Select

    apex_item. Hidden (p_idx-online 1, p_value-online 111) |

    apex_item.date_popup2 (p_idx-online 2, p_value => null, p_size,-online 20, p_maxLength => 2000) as "datepicker".

    Double;

  • Remove the automatic sequence and trigger the DDL for surrogate keys?

    Is there a way to remove the shutter and the sequence of creation for surrogate keys when export file DDL?

    I know that most of the time the auto sequence and trigger creation is welcome and very convenient.

    However I'm migrating from an old model of Designer and here only the necessary sequences are created.

    They have a different name and logical trigger is personalized (and generated outside of the Designer).

    There is a lot of code package accordingly. So, I prefer to create and use different sequences.

    Is there a way to do this? Tips are welcome. Create

    Hello

    you change preferences - "Data Modeler > model > physics > Oracle"-set "Default auto-increment DDL" and "Identity default DDL" voices against ZERO and generate the DDL for Oracle12c


    Philippe

  • Recommended to refer to the calculation of the values for parameters of Linux (kernels, etc.) before installing Oracle

    Hi all

    Hope you are fine...

    Please, I need to install Oracle... WEU it will be (DB Oracle 10 g - 11 g or E-Business suite 12.1 - 12: 2), how can I specify the parameters of Linux values especially grain before proceed with the installation?

    Is there a reference that I can follow which help me to specify the correct values for parameters/kernels Linux?


    Thanks in advance.


    Kind regards

    Mohammed

    Mohammed... wrote:

    Thank you, Hussein...

    If I need to install 12.2 but "RAC ASM", is there another note for the purposes of operating systems?

    Kind regards

    Mohammed

    Mohammed,

    You must follow the same doc, just make sure that you install first - CRS refer to the Documentation online database Oracle 11 g Release 2 (11.2) for more details.

    Thank you

    Hussein

  • Need Dinstinct values, not the values for pidm (id) of a cursor

    Hello! I use 11g.  I'm trying to get values distinct pidm in the crusor to ap_rec for inclusion in a couple of tables.  However, I also need the set of values for insertion on another table and do not know how to do this.

    Set serveroutput on;

    game check

    coil ap_credit.txt;

    declare

    The CNT number;

    default varchar2 (6) sbgi_code 'Z00162 ';

    user_id varchar2 (7) default 'BANWORX ';

    number of trit_seq_no;

    number of tram_seq_no;

    number of trcr_seq_no;

    number of trce_seq_no;

    number of credit_hours;

    term_desc varchar2 (12);

    cursor test_scores

    is

    Select sortest_pidm,

    sortest_tesc_code,

    sortest_test_score,

    Sortest_Test_Date,

    (Select Max (A.Stvterm_Code) in Stvterm

    where A.Stvterm_start_Date < = Sortest_Test_Date) STVTERM_CODE;

    (Replace select (B.STVTERM_DESC,'Term ", null") Stvterm b)

    where b.Stvterm_start_Date < = Sortest_Test_Date

    AND B.STVTERM_CODE = (Select Max (A.Stvterm_Code) of Stvterm A

    where A.Stvterm_start_Date < = Sortest_Test_Date)) STVTERM_desc;

    -STVTERM_CODE,

    -STVTERM_DESC,

    -f_sgbstdn_fields(sortest.sortest_pidm,'201380','MAJOR_1')

    SGBSTDN. SGBSTDN_MAJR_CODE_1,

    SGBSTDN. SGBSTDN_MAJR_CODE_CONC_1

    of sortest, SGBSTDN

    where

    sortest_pidm = SGBSTDN.sgbstdn_pidm

    and SGBSTDN. SGBSTDN_TERM_CODE_EFF = (select max (b.SGBSTDN_TERM_CODE_EFF)

    of SGBSTDN b

    where b.SGBSTDN_PIDM = SGBSTDN. SGBSTDN_PIDM)

    and sortest_tesc_code in (select distinct sxvapcred_tesc_code from ttubanr.sxvapcred)

    - and A.STVTERM_CODE = (Select Max (b.Stvterm_Code) From Stvterm B

    (- where b.Stvterm_start_Date < = Sortest_Test_Date)

    and sortest_activity_date > sysdate - & & numdays;

    cursor ap_rec (pidm_in sortest.sortest_pidm%TYPE, tesc_code_in sortest.sortest_tesc_code%TYPE,

    test_score_in sortest.sortest_test_score%TYPE, major_in sgbstdn. SGBSTDN_MAJR_CODE_1% TYPE,

    conc_in SGBSTDN. TYPE OF SGBSTDN_MAJR_CODE_CONC_1%, TERM_IN STVTERM. TYPE OF STVTERM_CODE %, TERM_DESC_IN STVTERM. STVTERM_DESC % TYPE)

    is

    Select pidm_in,

    TERM_IN,

    TERM_DESC_IN,

    SXVAPCRED_TTU_SUBJ_CODE,

    SXVAPCRED_TTU_CRSE_NUM,

    A.SCBCRSE_TITLE,

    When case A.SCBCRSE_CREDIT_HR_LOW > 0

    then A.SCBCRSE_CREDIT_HR_LOW

    of other A.SCBCRSE_CREDIT_HR_HIGH

    end SCBCRSE_CREDIT_HR

    --(select case quand A.SCBCRSE_CREDIT_HR_LOW > 0)

    -then sum (A.SCBCRSE_CREDIT_HR_LOW)

    -of another sum (A.SCBCRSE_CREDIT_HR_HIGH)

    (- end of SCBCRSE A sum_hours) sum_hours

    of ttubanr.sxvapcred, SCBCRSE A

    where

    SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE

    and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB

    and sxvapcred_tesc_code = tesc_code_in

    and test_score_in > = sxvapcred_min_test_score

    and test_score_in < = sxvapcred_max_test_score

    and major_in = SXVAPCRED_MAJR

    and conc_in = SXVAPCRED_CONC

    and A.SCBCRSE_EFF_TERM = (SELECT MAX (B.SCBCRSE_EFF_TERM) FROM SCBCRSE B

    WHERE A.SCBCRSE_CRSE_NUMB = B.SCBCRSE_CRSE_NUMB

    AND A.SCBCRSE_SUBJ_CODE = B.SCBCRSE_SUBJ_CODE)

    -Group of

    -pidm_in,

    -SXVAPCRED_TTU_SUBJ_CODE,

    -SXVAPCRED_TTU_CRSE_NUM,

    -A.SCBCRSE_TITLE,

    -A.SCBCRSE_CREDIT_HR_LOW,

    -A.SCBCRSE_CREDIT_HR_HIGH;

    Union

    Select pidm_in,

    TERM_IN,

    TERM_DESC_IN,

    SXVAPCRED_TTU_SUBJ_CODE,

    SXVAPCRED_TTU_CRSE_NUM,

    A.SCBCRSE_TITLE,

    When case A.SCBCRSE_CREDIT_HR_LOW > 0

    then A.SCBCRSE_CREDIT_HR_LOW

    of other A.SCBCRSE_CREDIT_HR_HIGH

    end SCBCRSE_CREDIT_HR

    of ttubanr.sxvapcred, SCBCRSE A

    where

    SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE

    and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB

    and sxvapcred_tesc_code = tesc_code_in

    and test_score_in > = sxvapcred_min_test_score

    and test_score_in < = sxvapcred_max_test_score

    and major_in = SXVAPCRED_MAJR

    and SXVAPCRED_CONC IS NULL

    and SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE

    and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB

    and A.SCBCRSE_EFF_TERM = (SELECT MAX (B.SCBCRSE_EFF_TERM) FROM SCBCRSE B

    WHERE A.SCBCRSE_CRSE_NUMB = B.SCBCRSE_CRSE_NUMB

    AND A.SCBCRSE_SUBJ_CODE = B.SCBCRSE_SUBJ_CODE)

    Union

    Select pidm_in,

    TERM_IN,

    TERM_DESC_IN,

    SXVAPCRED_TTU_SUBJ_CODE,

    SXVAPCRED_TTU_CRSE_NUM,

    A.SCBCRSE_TITLE,

    When case A.SCBCRSE_CREDIT_HR_LOW > 0

    then A.SCBCRSE_CREDIT_HR_LOW

    of other A.SCBCRSE_CREDIT_HR_HIGH

    end SCBCRSE_CREDIT_HR

    of ttubanr.sxvapcred, SCBCRSE A

    where

    SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE

    and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB

    and sxvapcred_tesc_code = tesc_code_in

    and test_score_in > = sxvapcred_min_test_score

    and test_score_in < = sxvapcred_max_test_score

    and SXVAPCRED_MAJR IS NULL

    and SXVAPCRED_CONC IS NULL

    and SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE

    and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB

    and A.SCBCRSE_EFF_TERM = (SELECT MAX (B.SCBCRSE_EFF_TERM) FROM SCBCRSE B

    WHERE A.SCBCRSE_CRSE_NUMB = B.SCBCRSE_CRSE_NUMB

    AND A.SCBCRSE_SUBJ_CODE = B.SCBCRSE_SUBJ_CODE);

    Hello

    Sorry, I can't say what you want.

    Whenever you have any questions, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    If you ask on a DML statement, such as UPDATE, the sample data will be the content of the or the tables before the DML, and the results will be the State of the or the tables changed when it's all over.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    Is the problem you need to do some things for all lines and other things only once by pidm?

    If so, maybe you should add ROW_NUMBER... PARTITON OF pidm in the query.  What you have to do for the separate pidms, do it when ROW_NUMBER returns 1.

  • Record the value for checkboxes deselected in interactive report

    Hello.

    We have an interactive relationship with checkbox column.

    Created under APEX_ITEM. CHECKBOX2...

    Check box is selected, if the database column element value is 1 or disabled if the value is 0.

    Users can also check boxes for all the lines they want and save the changed check box.

    Save us the value with the process as... BECAUSE me in 1... apex_application.g_f09. COUNTY...

    and update the value 1 in the database.

    Now the question.

    Is it possible to uncheck the checked value and update the value of database to 0?

    1 line FOR i... apex_application.g_f09. COUNTY counties only checked checboxes.

    How can we determine the lines where unchecked and update the value of database?

    the reason is, that users want to use interactive report already in use and not of new application, in the form of new.

    Thank you.

    Concerning

    Hi DejanH,

    Yes it is possible. Please read my blog on how to do this:

    http://blog.iAdvise.EU/2013/06/12/checkboxes-in-editable-reports-in-apex/

    Kind regards

    Joni

Maybe you are looking for