How to make list items UNDER

Hi all!
I'm quite new in Oracle Forms and Oracle usually. I want to do under the list items, for example, I made two list items, one is called "F_Ime" which means the name of the Faculty and the other "Smer" which means what directions of schools that I have on each Faculty eg on the Faculty of mathematics and information technology I have this route: computer science, mathematics, Phisics and so on.

So I wrote this trigger to dynamically fill my list items:

DECLARE
rg_fakultet RECORDGROUP;
rg_smer RECORDGROUP;
rg_fsmer VARCHAR2 (20): = "F_IME";
rg_ssmer VARCHAR2 (20): = 'SMER ';
flist_ID Item: = Find_Item('SMERI.) F_IME');
slist_ID Item: = Find_Item('SMERI.) SMER');
nDummy NUMBER;

BEGIN
rg_fakultet: = Find_Group (rg_fsmer);
rg_smer: = Find_Group (rg_ssmer);

IF this is Id_Null (rg_fakultet) THEN
Delete_Group (rg_fakultet);
END IF;
IF this is Id_Null (rg_smer) THEN
Delete_Group (rg_smer);
END IF;

rg_fakultet: = CREATE_GROUP_FROM_QUERY (rg_fsmer, 'SELECT F_IME, TO_CHAR (F_IME) OF FAKULTETE');
rg_smer: = CREATE_GROUP_FROM_QUERY (rg_ssmer, 'SELECT SMER, TO_CHAR (SMER) OF SMERI F_IME ORDER');

Clear_List (flist_ID);
Clear_List (slist_ID);

nDummy: = Populate_Group (rg_fakultet);
nDummy: = Populate_Group (rg_smer);

Populate_List('SMERI.) F_IME', rg_fakultet);
Populate_List('SMERI.) SMER', rg_smer);

END;

But instead falling into the element of the 'Smer' list ONLY the indications of the Faculty elected I get instructions and is not like under item in the list of the item in the list 'F_ime '.

Please help me with this.

Thank you!

You still not filter your query list using the value selected in the list F_IME item. You will need to modify your query SMER, so that it uses the value of the F_IME element. This means yout SMERI table must have a column F_IME (or something similar).

Assuming that you have the F_IMR column in the table SMER, you query should look like this:

/* I added a variable to hold the SQL Statement for readability. */
DECLARE
  rg_smer RECORDGROUP;
  rg_ssmer VARCHAR2(20) := 'SMER';
  slist_ID Item := Find_Item('SMERI.SMER');
  nDummy NUMBER;
  v_Sql  VARCHAR2(500);
BEGIN
  rg_smer := Find_Group(rg_ssmer);

  IF NOT Id_Null(rg_smer) THEN
    Delete_Group(rg_smer);
  END IF;

  v_SQL := 'SELECT SMER, TO_CHAR(SMER) FROM SMERI where F_IME = '''||:SMERI.F_IME||'''';
  rg_smer := CREATE_GROUP_FROM_QUERY(rg_ssmer,v_SQL);

  Clear_List(slist_ID);
  nDummy := Populate_Group(rg_smer);
  Populate_List('SMERI.SMER',rg_smer);
END;

Please change change to suit your table.

Craig...

Tags: Oracle Development

Similar Questions

  • How to make a flag under cover opened or saved sms

    How to make a flag under cover opened or saved sms

    No API for this

  • How to make transparent workspace under 10 items

    It is not an option to make the transparent workspace under the tag 'General' preferences.  Where is it located?  Thank you.

    If your Mac, then in the editor of PES 10 go to window > Application frame.

    Click on the words, the Application framework to remove the check mark.

    Not this option if your using a windows operating system.

  • Everything is suddenly more small; How I make lists of messages, and the messages themselves appear larger?

    All got smaller during the night. When I open Thunderbird this morning, everything was in very small print. How can I make all adults?

    Tip: install https://addons.mozilla.org/en-us/thunderbird/addon/theme-font-size-changer/

    A little less than simple, but not dependent on an add-on: Add the following text to chrome/userChrome.css in your Thunderbird profile.

    /*
     * Do not remove the @namespace line -- it's required for correct functioning
     */
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
    
    /*
     * Make all the default font sizes 10 pt:
     */
    * {
        font-size: 10pt !important;
     }
    

    Everything you need to replace 10pt .

  • How to make an item in the menu drop-down open another field when selected?

    For example; I'm doing a drop down menu and one of the options is 'other '.

    I want to 'Others' to open top/to highlight another field when its elected officials. is this possible?

    Pls help

    Thanks in advance.

    Yes, it can be done using a simple, written script in JavaScript.

    Basically, it would be something like this (as a script validation custom from the drop-down list):

    "this.getField("Others").display = (event.value =="Others)? Display.visible: display.hidden;

    A script more complex can also be used to clear the value of the 'other' field, set its fill color, etc..

  • How to make links available under Windows, Images.

    Windows 7 Professional and PSE-11

    Under the Windows images, only the first tile link is active. This means I can have only a layout open at the same time. Four of this section are grayed out. I need to use the last one, consolidate all to tabs.

    I've recreated the preferences and also a system restore to an earlier date without success. I'm working on a paper and presentation of digital scrapping class. I need help desperately.

    Thank you for your help.

    First of all go in Edition > Preferences > General and turn on allow floating documents.

  • How to deletions has selected list item from a list item.

    How delete a list item selected in a list item.

    My question that I should write to list_index so that it indicates the selected list item

    DELETE_LIST_ELEMENT (Nom_liste, list_index);

    -----
    Form of Oracle 10g

    Hello

    The trigger when-list-changed fires whenever the value has been changed.
    You get this value/index with the following:

    DECLARE
       LC$Liste  Varchar2(61) := :system.cursor_item ;
       LC$Valeur Varchar2(30) := Name_In( LC$Liste ) ;
       LN$Nbre   Pls_integer ;
    BEGIN
    
       LN$Nbre := Get_List_Element_Count( LC$Liste ) ;
    
       For i IN 1 .. LN$Nbre Loop
          If Get_List_Element_Value( LC$Liste, i ) = LC$Valeur Then
             -- you get the selected value, and index there --
             :BLOC2.LABEL := Get_List_Element_Label( LC$Liste, i ) ;
             Exit ;
          End if ;
       End loop ;
    
    END;
    

    François

  • How to make a fusion of photo in items 10?

    How to make a fusion of photo in items 10?  I just bought a copy of version 10 and cannot find the merger of Photo features.  Someone help me learn how to use the photo 10 worm merger? TNX

    It's under file > new > Photomerge

    Adobe Photoshop Elements 10 * create a Photomerge panorama composition

  • How to change the border style of the list items in the apex


    Hi all

    We have created a few items from the selection list in the Apex and ask users to make changes to the border.

    I tried many ways, but he was not able to make changes, some could help me how we can change the border style of list items in Apex. By, the approach has been used by us

    Attributes of the element in the HTML form -> style = "" border: 1px solid #E5E4E2; "" [I speak that way] but no luck.

    Kind regards

    Sheikh tayeb.

    SruthiTamiri wrote:

    Hello

    Please find the details below

    APEX version # 3.2

    Internet Explorer version #7

    Mozilla version 12.0.

    Used theme #Blue

    Topic identification number is #12

    It is not possible to change the appearance of the borders of the selection list in IE7.

    To the borders of all the elements of the selection list style on a page in other browsers, include the following style sheet in the HTML Header page:

    .formlayout select {
      border: 1px solid #E5E4E2;
    }
    

    APEX 3.2 is no longer supported, and IE7 is obsolete. Upgrade to the current version is recommended.

  • How to fill the text of list item element?

    I have a list item and a text element. I want that, when a user selects a value of element from list... the text element should filter and display the values on this basis.
    How can I do?

    SAMPLE of the values in table-

    list_item_column text_item_column
    _____________ _______________
    a               1
    a               2
    a               3
    a               4
    b               5
    b               6
    c               7
    c                8

    (12345678 is under text_item_column)

    For example - if the user selects A list item, the test item must indicate these values - 1, 2, 3, 4

    will be able to fill in a piece of text multi row and values on different lines?

    No, it will display the values in a single line, separated by commas, as you showed in your initiall question. If you want to separate them into lines, use Chr (10) instead of «,»

  • UI - how to make columns in the selection on a Drop Down list?

    I change a code from Peter Kahrel "start Script UI. I'm trying to make a searchable dropdown list has 4 columns. Research so far and I have positions in research, but I can't seem to make the columns for actual data. I think I need to change the type_ahead as the table is looking at these data. I'm stuck in the water. Can someone tell me what I need to do to get the list is displayed as a column? How can I activate the chosen = type_ahead given in four columns? Code and screenshot below:

    Window Capture.jpg

    picked = type_ahead (["bat", "bear", "beaver", "bee", "cat", "cats_and_dogs",
    "dog", "maggot", "moose", "moth", "mouse"]);
    
    function type_ahead (array)
    {
    var w = new Window ("dialog", "Quick select");
    var entry = w.add ("edittext", [0, 0, 800, 22]);
    entry.active = true;
    
    var list = w.add ("listbox",  [0, 0,800, 500], "",
    {numberOfColumns: 4, showHeaders: true,
    columnTitles: ["Non-Approved Word", "Approved Alternative", "Approved Use", "Non-Approved Use"], columnWidths: [200,200,200,200]});
    
    list.selection = 0;
    
    entry.onChanging = function ()
    {
    var temp = this.text;
    list.removeAll ();
    for (var i = 0; i < array.length; i++)
    if (array[i].toLowerCase().indexOf (temp) == 0)
    list.add ("item", array[i]);
    if (list.items.length > 0)
    list.selection = 0;
    }
    entry.onChange = function () {w.close (1)}
    if (w.show () != 2)
    return list.selection.text;
    else
    
    w.close ();
    }
    

    Yes, you can do as a palette, but you will have to change two things.

    1. target engine. At the beginning of the script, add the following:

    #targetengine "session."

    2. you may not use this code:

    If (w.show ()! = 2)
    Return list.selection.text;
    on the other
    w.Close ();

    Just use w.show (). You then add a control that, when clicked, determine what you want to do. For example, add a "Stop" button and a Manager in this sense:

    stopButton.onClick = function)

    {

    to do this

    Update

    w.Close ();

    }

    Peter

  • How to make the list of instrumental music

    How to make a list of all my player someone help

    Alan

    iTunes is not a method to determine what tracks have vocals. You can create a normal playlist and put what you want in it.

    TT2

  • When I press the tab button all my favorites in a show from the list-how to make that happen?

    When I press the tab key to open a new page, all my favorites in a show from the list-how to make that happen? It should be a correct white page or the home page?

    said CWEB

    When I press the tab key to open a new page, all my favorites in a show from the list-how to make that happen? It should be a correct white page or the home page?

    OK this question I figured it adds on the deletion settings

  • Desktop items have disappeared, including sound; How to make a comeback?

    Desktop items have disappeared, including sound; How to make a comeback?

    Hi Adrianne,

    I need more information, are all the missing desktop icons? The sound disappeared, you have a speaker with a red circle and slash inside icon down by the clock?

    I recommend you to run a virus scan with the Microsoft Malware removal scan. If that does not help, then download and install Malware bytes.

    Let me know if that does or does not work.

    Jim

  • HOW TO MAKE A PHOTO TO SEE HER ON A LIST OF E - BAY?

    HOW TO MAKE A PHOTO TO SEE HER ON A LIST OF E - BAY?
    Original title: I AM NOT VERY well INFORMED WITH MY COMPUTER, ABOUT the PHOTOS.  I HAVE MY PHOTOS IN THE PHOTO GALLERY AND I WANT TO SHOW ONE OF THEM FOR SALE ON E - BAY.  HOW CAN I DO THIS? SUE

    EBay will have it's characteristic own upload site here when you post your article, don't forget to seek restrictions of size for picture formats.

    If you encounter a situation on how to resize a picture, go back and ask here.

Maybe you are looking for

  • Satellite C70D-B - 30 d: how to access back after ~ 16 removed screws

    Would be grateful for any advice to remove the rear panel. I removed the battery, ~ 16 live + 1 small screw on the optical drive and while he "uncheck" everywhere else, there seems to be something stopping the Panel being removed just above the compa

  • PC (Win7 64 bit) freezes completely after some time due to the CVI 9.0.1 32-bit application: question in cvirte.dll

    I have a strange problem with my app CVI. After a while, no constant time (especially on a day or two), the PC freezes completely when running my application. Examine the system event logs, I see a lot of entries from the CVI, sometimes 8fois per sec

  • simplepass chrome extension

    Because google locks extensions not webstore fingerprint reader no longer works. Please put the extension chrome "Site Web Logon 6.0.100": HP SimplePass logon Extension Web site: wearing the Id: kanflfepiobnpjbljmngfgegijhdpljm which comes whit lapto

  • Cannot install the printer on the laptop

    Point question: Product name: HP Photosmart e-all-in-one printer-D110a Model name: CN731A Portable printer is installed: Operating system: Windows 07-34 bits Brand: Dell I'm unable to install my photosmart D110a printer.  Previously, I have installed

  • Looking for the \\localhost\C$

    I found several of these files stored in my temporary folder and I was wondering how I can find where these files to and remove it from my computer? Here is an example of one of them. \localhost\C$\@GMT-2015.09.29-21.15.37\Users\sexviva\AppData\Local