Get the number of lines per column State, dependant on the choice, even if 0 table?

Hi guys, am hoping someone can help with this query.

I have 2 tables

Search
----------
code VC2 (10)
Description VC2 (50)
domain VC2 (50)

MyTab
----------
hour date
VC2 status (10)

The data should be like this:

Search
----------
B, buy, Transaction
S, sale, Transaction
R, back, Transaction
O, old, to Condition
N, new, Condition

MyTab
---------
JANUARY 1, 2008, B
JANUARY 1, 2008, B
JANUARY 1, 2008, B
JANUARY 1, 2008, S
JANUARY 1, 2008, S
JANUARY 1, 2008, R
JANUARY 2, 2008, B
JANUARY 2, 2008, B
JANUARY 2, 2008, R
JANUARY 3, 2008, B
JANUARY 3, 2008, S

What I want to do, is go back a number of lines for each date in mytab, for each possible transaction situation, even if it's 0.

If the query returns

hour, status, County
----------------------------------
JANUARY 1, 2008, B, 3
JANUARY 1, 2008, S, 2
JANUARY 1, 2008, R, 1

JANUARY 2, 2008, B, 2
JANUARY 2, 2008, S, 0
JANUARY 2, 2008, R, 1

JANUARY 3, 2008, B, 1
JANUARY 3, 2008, S, 1
JANUARY 3, 2008, R, 0

So because there are 3 rows of transaction status in the lookup table, you always get 3 rows returned BY DATE in the table mytab.

Is it possible without using loads of trade unions?

Thank you!

Scott

Published by: Scott Hillier on November 5, 2008 15:24

Nicolas-

I don't think that you need a self-join.

(my apologies for the bad formatting, cannot understand the syntax of the citation!)

with
list of choices like
(select code 'B', 'Buy' descr, area of "Transaction" of union double all the)
Select' code, descr 'Sell', 'Transaction' of all field double union
Select code 'R', 'Return' descr, area of 'Deal' of all the double union
Select ' o ' code, descr 'Old', 'Condition' field of dual union all
Select "n" code, descr 'New', 'Condition' field of the double),
MyTab as
(select to_date (January 1, 2008 "," MON-DD-YYYY "") transdate, status 'B' of all the double union)
Select to_date (January 1, 2008 "," MON-DD-YYYY "") transdate, status 'B' of all the double union
Select to_date (January 1, 2008 "," MON-DD-YYYY "") transdate, status 'B' of all the double union
Select to_date (January 1, 2008 "," MON-DD-YYYY "") transdate, the from ' Union status double all the
Select to_date (January 1, 2008 "," MON-DD-YYYY "") transdate, the from ' Union status double all the
Select to_date (January 1, 2008 "," MON-DD-YYYY "") hour, status of 'R' of all the double union
Select to_date (January 2, 2008 "," MON-DD-YYYY "") transdate, status 'B' of all the double union
Select to_date (January 2, 2008 "," MON-DD-YYYY "") transdate, status 'B' of all the double union
Select to_date (January 2, 2008 "," MON-DD-YYYY "") hour, status of 'R' of all the double union
Select to_date (January 3, 2008 "," MON-DD-YYYY "") transdate, status 'B' of all the double union
Select to_date (January 3, 2008 "," MON-DD-YYYY "") transdate, the from ' double status)
Select trunc (a.transdate), c.code, count (decode(a.status,c.code,1))
mytab a.,
Search c
where c.domain (+) = "Transaction".
Trunc Group (a.transdate), c.code
order of trunc (a.transdate);

TRUNC (A.TRANSDATE) CODE COUNT (DECODE(A.STATUS,C.CODE,1))
------------------------- ---- --------------------------------
1 JANUARY 08 B 3
1 JANUARY 08 R 1
1 JANUARY 08 S 2
JANUARY 2 08 B 2
JANUARY 2 08 S 0
JANUARY 2 08 R 1
JANUARY 3 08 B 1
JANUARY 3 08 R 0
JANUARY 3 08 S 1

9 selected lines

Tags: Database

Similar Questions

  • Limit the number of lines per group

    Hi guys,.

    I would use a query that returns only n number of lines per group and always show all columns in a table.

    For example:

    We have a table_customer, I would like to get a 100 records per dealer in a sql


    What would be the best way to do this? This isn't really my question saves back them, the top 100 or random, etc.

    Thanks in advance

    Hi and welcome to the forum!

    You can use the ROW_NUMBER() analytic function with a subquery to get the results you need. For example the following pseudocode (given that I have no definitions or column names) could be modified to work for your case

    SELECT     *
    FROM
    (
         SELECT     TABLE_CUSTOMER.*
         ,     ROW_NUMBER() OVER (PARTITION BY  ORDER BY 
    

    HTH!

  • Number of records per column in each table

    Hi all

    I need to get the number of records by column for each table in a schema.

    Is there a way I get the list of columns in each table in a schema and get the number of records per column where the count > 0?

    We have oracle 10g

    Thank you

    Smidreb wrote:
    You are right, but we're going to run the script as soon as we move

    the script below gives me a correct result.

    If it works well for you, then it works OK for me.

    Realize that Oracle is that I/O block-level.
    As a general rule, any LINE is a single block.
    Realize that is 1 column "count (*)" is correct, then all the columns in the same row are correct.
    This obsessive compulsion to count each COLUMN in each LINE borders on real PARANOIA!

  • Maximum number of lines per Page to include

    <! - this Configuration setting is managed by Oracle Business Intelligence Enterprise Manager - >

    < DefaultRowsDisplayedInDelivery > 75 < / DefaultRowsDisplayedInDelivery >


    I'm unable to change the maximum number of lines per Page to be included in the EM. This will automatically return to 75 after acivating changes.

    Can someone please help on this.


    Thank you

    Abhilash.K

    8506060755

    Hi Virginia,

    After the edition of the MA,.

    • Apply
    • Activate changes
    • Restart presentation Services

    Presentation Services restart will make the change.

    Thank you

    JP

  • Add a table with the number of lines and columns JS

    Hello

    Simple question: what is the syntax for adding a table with a specified number of rows and columns? I don't get it. (I don't know how to add them later, but I want to do when I create the table). Here is the entry in the ESTK:

    Tables.Add (to: LocationOptions, reference: all, withProperties: Object): array

    Creates a new table.

    (optional): Data Type: LocationOptions, by default: LocationOptions.UNKNOWN
    The location of the new table to the object within the container object or reference. (Optional)

    Reference: Data Type: no
    The reference object. Note: Required when the value specifies before or after. Can accept: Table, XmlStory, XMLElement, TextFrame, text, character, Word, line, paragraph, TextColumn, PointInsertion, story, cell or TextStyleRange. (Optional)

    withProperties: Data Type: object
    Initial values for the properties of the new Table (optional)

    Thank you

    Ariel

    After much experimentation, I found this works:

    t = app.selection [0].tables.add (LocationOptions.AT_BEGINNING, undefined, {columnCount:2, headerRowCount:1, bodyRowCount:5, footerRowCount:3});})

  • Sort sort the columns number of lines n columns in the RTF PivotTable but hide them.

    Hello

    I'm trying to sort on the columns number of sort for lines n columns in the PivotTable but hide them. Any help appreciated.

    Attached model RTF, XML and output required. Thank you

    Please check your email that I have forwarded to update the model.

    by default, it performs a sort on the column, we used to pivot rows and columns. If we need custom sort, we must specify that column in the logic that was present in the C form field.

    by default, you are as below

    Custom sort

    {INDUSTRY_sort, o = a, t = n} « ; » MONTHS {Month_sort, o = a, t = n} '; SALES '; "' sum '? >

  • How to get the value of an af:Table SelectOneChoice

    V11.1.2.4.0 - JSF JDeveloper

    Greetings,

    Im having a problem getting a column value that is an object of a select choice.

    This isn't a common problem, as I actually did something that others so please follow my problem

    Description and if you have questions/answers please answer below.

    I create a database view that returns me 3 columns, say TestValue TestCode, TestDescription.

    I added an extra temporally column in my OV and called Temp.

    I drag / drop my OV, remove value Temp and its position of the column, I drag / drop a LOV, who comes from a different view.

    that shows me the doctor name & first name and identification number of the back doctor select a value of choice.

    I'm using a function that go through the iterator, gets the lines and save them in the database (no matter how).

    The problem is my selectonechoice, are not row.bindings.DoctorId.InputValue, but the links. DoctorId.InputValue instead, so I can retrieve value selectonechoice of the current line.

    Then when my loop is finished and insert rows in my database, id of the doctor of the line everyone is the same as the binding do not change through the loop.

    I don't know how to add value to the current line select only one option to use the correct value to each loop of the line.

    Here is my loop function:

            DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding iterator = bc.findIteratorBinding("ExaminationsIterator");
            DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    
    
             RowSetIterator rsi = iterator.getRowSetIterator();  
             int i=0;
             
            OperationBinding save_exams = bindings.getOperationBinding("SAVE_EXAMINATION");
            OperationBinding save_exams_commit = bindings.getOperationBinding("SAVE_EXAMINATION_COMMIT");
               
            try{
             while(i < rsi.getRowCount()){
                 
                 Row r = iterator.getCurrentRow();
                                 
                 save_exams.getParamsMap().put("CodeTest", r.getAttribute("CodeTest"));
                 save_exams.getParamsMap().put("Dates", r.getAttribute("Dates"));   
                 save_exams.getParamsMap().put("CodeId", orderid.getValue());   
                 save_exams.getParamsMap().put("Times", r.getAttribute("Times"));    
                 save_exams.getParamsMap().put("DoctorId", resolveExpression("#{bindings.DoctorId.attributeValue}").toString()); 
                 save_exams.getParamsMap().put("IdPatients", patientid.getValue());   
                 save_exams.execute();
                 rsi.next();
                 i++;
             }
            
                save_exams_commit.execute();
    

    I get the connection id of the current doctor and the value of the rows no.

    Can you help me on this please?

    I created a work around solution, until an expert that I come with a more advanced solution.

    (1) I add a LOV at the id of the doctor on the view target object.

    (2) on the duration, I fill my view of database

    3) go through all my DB view iterator lines

    (4) appends each line on the View object target (missing id of the doctor, because I want it to be on common language runtime) & commit lines

    (5) after the loop ends and the target object from view show me results from the view of DB, I choose the runtime id of the doctor and commit the changes if

    the new lines, with the new update will be finally filled to the database.

    I hope this helps if anyone has a similar task.

    Please let me know if you find a more direct solution, this work with 2 tables to fill 1.

  • How to get the QDR of ADF Pivot table datacell

    JDeveloper 11.1.1.5 version
    Java 1.6
    The ADF faces

    I want to click commandlink in a data cell that sends the value of the header cells to a bean of support. I think that we must get the QDR of a clicked data cell, but how?

    I created the PivotTable: column headers consist of a variable number of dates; row headers consist of the names of the units. The data that cross are a percentage of variance using energy over time. (There is no calculation in the PivotTable, just displaying data from the view).

    ........ 11 Jan 12 13 Jan Jan jan 14. .etc
    Module-1 2.00 5, 25 - 9.30-11.15
    Unit-2 - 554.22 497.00 7.70 2.00
    Unit-3 10.00 - 5, 00 5.00 1.00

    To the cell above it with 497.00 value, the user must click this value (commandlink) and the bean 1) calculate the values of the unit and the date to use as parameter values for ExecuteWithParams under another iterator and 2) navigate to another page using this another iterator.

    It seems that the QDR (reference data) is involved, but can't find enough information about how to implement the same.

    Here are the PivotTable on the jspx:

    < dvt:pivotTable id = "pivotTable1".
    Summary = "reading analytical pivot table.
    value = "#{bindings." CdsaReadingsItfVwView1.pivotTableModel}.
    var = 'cellData.
    varStatus = "cellStatus" >
    < dvt:dataCell >
    < af:commandLink id = "cl".
    Text = "#{cellData.DataValue} '"
    action = "#{pivot_bean.commandlink_action}" / >
    < / dvt:dataCell >
    < / dvt:pivotTable >



    In the bean, we try to getPivotTable(), but it is always null.

    Any direction is welcome.

    David K

    Check how the PivotTable selection demo was created:
    http://jdevadf.Oracle.com/ADF-richclient-demo/faces/feature/PivotTable/pivotTableSelection.JSPX
    Code for this demo here:
    http://www.Oracle.com/technetwork/developer-tools/ADF/documentation/ADF-faces-RC-demo-083799.html

  • How to get the value of row current table when press the button submit

    Hello

    I want to get the current value of the SuccessionPlanId line which is part of the column in a table that is advanced.

    I created a (created using customization, from action through CO) button in the table as column, so each line with a single key, if I press the button of the first line means so I want to extract the first line SuccessionPlanId and if it's the 3rd way so I want to get the value of the value of the third row.

    How in the post of controller?

    Please answer soon, its urgency.

    Thanks in advance,
    SAN

    OK, need to go with a delicate way,

    1.) create a new table with Jdeveloper and there shud be a replica of the room once except the button submit newly added, pls note button type shud be present the type of button.

    2.) hide the existing table area and create a new stacklayoutbean.

    (3.) this stacklayout bean will have the property to extend, you give the full path of the new custom of advanced table box.

    Now you should be able to get the reference of the line during the click on the "submit" button

  • How do I get the separate elements of a table in a bean method?

    Hey everyone, how are you?

    I use Jdeveloper 12.1.2.0.0.

    I have a bean method that gets the items on a table-adf and I need the separate elements (of a given attribute) this table to highlight in the other table.

    For example: my table elements:

    ID name Tecnolgy

    1 oracle ADF

    2 oracle Jdeveloper

    3 Microsoft Visual Studio

    And I need the separate names in this table:

    Oracle; Microsoft

    So I highlighted them in another table.

    Normally I use an iterator and I will one by one and highlight what I want (as you can see, with a large table it can take a long time) and I wanted only to get the separate elements.

    My method of beans as something like this:

    DCIteratorBinding conIter = ADFUtils.findIterator ("VFactSalesNewView1Iterator");

    Line r [] = new Row [conIter.getAllRowsInRange () .length];

    r = conIter.getAllRowsInRange ();

    for (int i = 0; i < conIter.getAllRowsInRange () .length; i ++)

    {

    long productsInt = (Long) r [i] .getAttribute ("FkProduct");

    ...

    matchEmFactSalesProducts (r [i]);

    ..

    }

    I was wondering if it was possible to put a query and return the items in the request as lines (as I do with the iterator) or another possibility here.

    The request for my first table (the one in the example) is the following:

    SELECT VFactSalesNew.N_SALES,

    VFactSalesNew.QUANTITY,

    VFactSalesNew.ID_ANO,

    VFactSalesNew.QUARTER

    OF V_FACT_SALES_NEW VFactSalesNew

    WHERE

    ((nvl(:var_dimCoin,'0') = '0' OR FK_COIN IN (select * from THE (select cast (in_list(:var_dimCoin) as mytableType) double) a)))

    and the table I emphasize only has a select * from tableX;

    Any ideas?

    Kind regards

    Frederico.

    Hi Frederico,

    Hope you are well. Your VFactSalesNew table is filtered by any chance? Approach, you could do is to try to create a new VO with the following query:

    SELECT DISTINCT (yourTable.NAME)

    From yourTable

    But if your table is filtered, then I recommend you create a method in your implementation ViewObject that returns a LIST and there you iterate over the result set. In all cases, you will need to browse the whole list to get distinct values.

    Concerning

  • Get the error when switching from table


    Hi all

    I'm moving my procedure table values but no luck. your help in this regard will be highly appreciated. Thanks in advance.

    I created the following procedure:

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

    CREATE OR REPLACE PROCEDURE send_coll

    IS

    TYPE c_dept_no IS TABLE OF THE dept.deptno%TYPE;

    v_dept_no c_dept_no: = c_dept_no();

    BEGIN

    SELECT DeptNo

    TO COLLECT FEES IN BULK

    IN v_dept_no

    EMP;

    END;

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

    Now, I want to spend all the values of v_dept_no to one of my name of the procedure as rec_coll that receives the value of v_dept_no and print the value against v_dept_no. for example:

    When v_dept_no = 10 then print all empno against deptno 10 and so on...

    I think I have to do something like below but no luck so far.

    CREATE OR REPLACE PROCEDURE send_coll

    IS

    TYPE c_dept_no IS TABLE OF THE dept.deptno%TYPE;

    v_dept_no c_dept_no: = c_dept_no();

    BEGIN

    SELECT DeptNo

    TO COLLECT FEES IN BULK

    IN v_dept_no

    EMP;

    I'm looping 1.v_dept_no

    rec_coll (v_dept_no (i)); - call the rec_coll procedure and pass in the value

    end loop;

    end;

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

    create another procedure that will receive the value for v_dept_no

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

    CREATE OR REPLACE PROCEDURE rec_coll (v_emp_no c_dept_no) - create collection with c_dept_no type

    IS

    BEGIN

    I'm looping 1.v_emp_no.count

    dbms_output.put_line (v_emp_no (i));

    END loop;

    END;

    -----------

    I get the error message to create these procedures and if someone help me so I really appreciate it. Thank you

    Concerning

    Shu

    I would just write a single SELECT statement joining EMP and Dept. If this exercise is University (collections of learning PL/SQL types), then you can do something like that.

    I used a PACKET to this implementation. Again, this is not how things are done in the real world.

    SQL > create or replace package coll_pkg
    2 as
    3 type dept_no_tbl is table of the dept.deptno%type;
    4
    5 procedure rec_coll (p_dept_no in dept_no_tbl);
    6 procedure send_coll;
    7 end;
    8.

    Package created.

    SQL > show err
    No errors.

    SQL > create or replace package body coll_pkg
    2 as
    3 procedure rec_coll (p_dept_no in dept_no_tbl)
    4 is
    5. start
    6 because me in 1.p_dept_no.count
    7 loop
    8 d in)
    9 select empno, ename
    10 of PEM
    11 where deptno = p_dept_no (i)
    12                 )
    loop 13
    14 dbms_output.put_line (p_dept_no (i) |) ':' || j.EmpNo | ':' || j.ename);
    15 end loop;
    16 end loop;
    end 17;
    18
    procedure send_coll 19
    20 is
    21 l_dept_no dept_no_tbl: = dept_no_tbl();
    start at 22
    23 deptno select bulk collect into l_dept_no
    24 of the Department;
    25
    26 rec_coll (l_dept_no);
    27 end;
    28 end;
    29.

    Package body created.

    SQL > show err
    No errors.

    SQL > set serveroutput on
    SQL > exec coll_pkg.send_coll
    10:7782:CLARK
    10:7839:KING
    20:7369:SMITH
    20:7566:JONES
    20:7788:SCOTT
    20:7876:ADAMS
    30:7499:ALLEN
    30:7521:WARD
    30:7654:MARTIN
    30:7698:BLAKE
    30:7844:TURNER

    PL/SQL procedure successfully completed.

    SQL >

  • How do I get the output of a function table

    Hi all

    Kindly share your idea.


    I need the outputs of a function table only.

    Database version: oracle 10.1.0.2.0

    login_details:

    login_id branch_code

    admin 1
    Admin1 2
    Test 1
    user 1

    I need output for the query function below.

    Select login_id from login_details where branch_code = '1';

    If I create a function:


    FUNCTION to CREATE or REPLACE fn_get_login (pvBranch varchar2)
    IS BACK SYS_REFCURSOR
    REF_TEST SYS_REFCURSOR;
    BEGIN
    OPEN FOR REF_TEST
    Login_id SELECT FROM login_details WHERE branch_code = pvBranch;
    RETURN REF_TEST;

    END;
    /


    Select * from login_master where login_id in (select fn_get_login('01') from double);


    and get

    ORA-00932: inconsistent data types: expected - got CURSER

    Edited by: 887268 October 8, 2012 12:25

    You cannot use a Ref cursor in a table, because it isn't a result set of data, it's just a pointer to a request for enforcement.

    {: identifier of the thread = 886365}

    A ref cursor must be used if you want to refer the request to an external application.

    Transfer data back to a function is to use a pipeline for example function

    SQL> CREATE OR REPLACE TYPE num_descript AS OBJECT(num number, descript varchar2(30))
      2  /
    
    Type created.
    
    SQL>
    SQL> CREATE OR REPLACE TYPE tbl_num_descript AS TABLE OF num_descript
      2  /
    
    Type created.
    
    SQL>
    SQL>
    SQL> CREATE OR REPLACE PACKAGE reftest AS
      2    FUNCTION pipedata(p_choice number) RETURN tbl_num_descript PIPELINED;
      3  END;
      4  /
    
    Package created.
    
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY reftest AS
      2    FUNCTION pipedata(p_choice number) RETURN tbl_num_descript PIPELINED IS
      3      v_obj num_descript := num_descript(NULL,NULL);
      4      v_rc  sys_refcursor;
      5    BEGIN
      6      IF p_choice = 1 THEN
      7        OPEN v_rc FOR SELECT empno as num, ename as descript FROM emp;
      8      ELSIF p_choice = 2 THEN
      9        OPEN v_rc FOR SELECT deptno as num, dname as descript FROM dept;
     10      END IF;
     11      LOOP
     12        FETCH v_rc INTO v_obj.num, v_obj.descript;
     13        EXIT WHEN v_rc%NOTFOUND;
     14        PIPE ROW(v_obj);
     15      END LOOP;
     16      CLOSE v_rc;
     17      RETURN;
     18    END;
     19  END;
     20  /
    
    Package body created.
    
    SQL> select * from table(reftest.pipedata(1));
    
           NUM DESCRIPT
    ---------- ------------------------------
          7369 SMITH
          7499 ALLEN
          7521 WARD
          7566 JONES
          7654 MARTIN
          7698 BLAKE
          7782 CLARK
          7788 SCOTT
          7839 KING
          7844 TURNER
          7876 ADAMS
          7900 JAMES
          7902 FORD
          7934 MILLER
    
    14 rows selected.
    
    SQL> select * from table(reftest.pipedata(2));
    
           NUM DESCRIPT
    ---------- ------------------------------
            10 ACCOUNTING
            20 RESEARCH
            30 SALES
            40 OPERATIONS
    
    SQL>
    

    but of course, it is wise to just use pure SQL that in order to mix the PL/SQL in queries in the form of best performance features.

    Perhaps explain what problem you are trying to solve when trying to use a function, and we can advise you on the best options.

  • How do I get the geometric limits of a Table

    I searched the DOM and the forum and cannot find information on obtaining of the geometric boundaries of a table. How can I achieve this? Kurtis

    Hi Kurtis

    Get the width of tables and height and the horizontal and vertical it is containing the character set and you should be able to calculate offsets.

    Trevor

  • How to get the last records of a Table

    Hey Geeks,

    I have this 'conflict '.

    I need to get the 'current balance' for each account, the newest "current_Balance".

    The table looks like this

    ACCOUNT_IDBUSINESS_TRANSACTION_IDCURRENT_BALANCETRANSACTION_AMOUNTTRANSACTION_DATE
    1 062 570238 043 51751'022-20'00031.03.2014 17:49:00.808000
    1 062 570238 042 40771'022-20'00031.03.2014 17:33:55.666000
    1 062 570238 042 36891'022-26'00031.03.2014 17:33:20.067000
    1 062 570238 041 273117'022-50,00031.03.2014 17:18:25.189000
    1 062 570238 041 174167'022-10,00031.03.2014 17:16:59.361000
    1 062 570238 038 702177'022-2'50031.03.2014 16:44:58.332000
    5 607 555238 046 7131'026-28'50031.03.2014 18:35:16.212000
    5 607 555238 040 59229'526-100,00031.03.2014 17:10:15.474000

    I need this result:

    ACCOUNT_ID CURRENT_BALANCE

    5 607 555 1'026

    1 062 570 51'022                   


    How we handle this?


    Thxs for your help


    Ineffective :-)

    SELECT Account_id

    MAX (current_balance) KEEP (DENSE_RANK LAST ORDER BY transaction_date) current_balance

    MAX (business_transaction_id) KEEP (DENSE_RANK LAST ORDER BY transaction_date) business_transaction_id

    Of account_balances

    GROUP BY account_id

    See on Oracle: clause to keep

    Concerning

    Marcus

  • API: get the contents of a lookup table?

    Hello

    I have a small application that automates the deployment of applications. He, among others, should be able to make calls in VSM.

    I used a previous version of the API with infraEnterpriseAPI.asmx as an entry point, so I'm not totally familiar with that.

    Now, to make a call, the user of my application needs to fill out some information:

    -Call description

    Status - IPK

    -The group in support of the appeal must be sent to

    And that's all. There is another piece of information that is too full, but I put all those automatically.

    Now, I want to give my menus drop down users about the status of the IPK and the "Forward To" field, because I want to choose what type of call, it should be and who to send it to. They don't know the names or the refs of the IPK statutes or support groups, and they shouldn't have to.

    Problem is that I have no idea how to do to get the content of the API lookup tables. Is it possible to do? Or should I (as I did for the previous version) that information straight out of the database?

    Best regards

    Kris

    I think I'll just query the database directly... which seems quite a lot easier.

Maybe you are looking for