Get information from a line in a report region to use in conditions

Hello

I have a page with 2 regions.

First region is a report of a table (departments) and the other is another region (employees) report.

One of the columns in the departments report is a link when I click it, it will refresh the second region to view employees by Department.

My problem is when I open the page for the first time or get back into another page, I want to display by default the first Department employees. I don't know how to get that value and assign it to an an element on the Page and use this page point in the second report.

I appreciate all help.

Thank you

andrèse

Andrèse

To the question page (that fill you in when the user clicks on the link report Department), write by default as plsqlfunction body and try something like

DECLARE
v_dummy tbl_dept.dept_id%TYPE;
BEGIN
SELECT dept_id INTO v_dummy FROM tbl_dept WHERE ROWNUM = 1;
RETURN v_dummy;
END;

I guess that you meet dept_id in the page element, when users click the link report Department. You can change it according to your requirement. Also, make sure that the SELECT query matches the Department report query so that the top of your Department report always corresponding with above the results of the SQL query.

Please note that this may not work if your Department report query contains any GROUP BY / ORDER BY / WITH clauses

See you soon,.
Hari

Published by: Hari_639 on October 5, 2009 21:04

Tags: Database

Similar Questions

  • How to get information from the owners of devices (NMP and Powerpath) using the VI SDK

    Hello

    I just started to work with VI SDK in C++ using gsoap. I am

    facing a problem. Using VI SDK, where can I get more information

    regarding who manages the paths. Inside of the VI GUI client we can

    see that in the owner field. The GUI shows if the owner is NMP

    or powerpath. Can I get the same information by using VI SDK API? I'm not

    able to conclude within ScsiLun HostMultipathInfoLogicalUnit or

    HostMultipathInfoPath Dataobjects.

    Kindly help me.

    Thank you

    Gesner

    Ah good to know it is where it is located.

    national immunization days , you can find more info here: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.PlugStoreTopology.html#path

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • get information from inside a trigger of the other tables in the schema even

    Addendum:

    ... Sorry I forgot: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64 bit

    *******************

    Hello

    I'm trying for a few hours to get information from inside a trigger to another table in the same pattern.

    My trigger is PSE_BKB. NUM_PHANTOM_BP

    I first tried a simple solution...


    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN

    ...
    Select count (*)
    in anz_num
    of pse_bkb.num_objekt o
    where o.obj_key in
    (select distinct (ov.obj_key)
    of pse_bkb.num_objekt_verb ov
    where ov.phantom_key =: old.phantom_key
    )
    and o.typ = "NUM";

    ...

    Explanation: my trigger table is PSE_BKB. NUM_PHANTOM_BP.

    On the pse_bkb.num_objekt_verb of the table, I have a relationship 1: n to one or several object-key (field named obj_key!) on my referenced key: old.phantom_key. With this obj_key, I want to watch the weather, I have one or more lines in the table type num_objekt "NUM". So the internal selection gives me all the num_objekt_verb obj_key with my: old.phantom_key and with whom I count the number of lines I have on num_objekt with type "NUM".

    The problem is that the trigger does not see the table.

    I tried many variations.

    The latest version I tried was with a cursor inside the trigger definition as in the block of code below.

    For debugging purposes, I inserted a RAISE_APPLICATION_ERROR in the inner loop - see below. The v_obj_key variable is never defined, as in all the other variations, I tried-, I still see the predefined "gugus" in the declare section.

    It seems that oracle can not read other tables at this point. La: old.phantom_key is defined (in this simple example there would come a return obj_key).

    Thanks in advance for your help - and excuse my English.

    Trigger code:

    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN


    Start
    declare

    cursor nums is

    Select obj_key
    of PSE_BKB.num_objekt_verb
    where phantom_key =: old.phantom_key;

    Start

    for the RC looping nums
    v_obj_key: = cr.obj_key;

    RAISE_APPLICATION_ERROR (-20099,' AGAIN 9 v_obj_key: ' | v_obj_key |) ': old.phantom_key ' | (: old.phantom_key);

    When the exit nums % NOTFOUND;

    Select count (*) in the pse_bkb.num_objekt anz_num_tmp where obj_key = v_obj_key and type = "NUM";
    anz_num: = anz_num + anz_num_tmp;
    end loop;

    end;
    end;

    Published by: user832075 on 14.01.2013 06:18

    The reason why you get count_n = 0 in tr_c is that there is no line in B with key_c = 17, to the moment you arrive at tr_c. The removal of B has already occurred, and since you're in a single transaction, the application for tr_c:

    select count(*)
      into   counter_n
      from   a aa
      where  aa.key_a in (select distinct(bb.key_a)
                          from   b bb
                          where  bb.key_c = v_ph_key
                         )
      and    aa.typ = 'n';
    

    'knows' that the row has been deleted then gets a number of 0.

    I added a set of instructions dbms_output to show the order in which triggers run, and that's what I get:

    SQL> delete from b_vw where key_a = 1 and key_c = 17 ;
    in trigger b_tr_vw
    In tr_b
    in tr_c
    delete from b_vw where key_a = 1 and key_c = 17
                *
    ERROR at line 1:
    ORA-20077: Remark: counter_n: 0 counter_s: 0 v_ph_key: 17 old.key_c: 17
    new.key_c:
    ORA-06512: at "OPS$ORACLE.TR_C", line 38
    ORA-04088: error during execution of trigger 'OPS$ORACLE.TR_C'
    ORA-06512: at "OPS$ORACLE.B_TR_VW", line 17
    ORA-04088: error during execution of trigger 'OPS$ORACLE.B_TR_VW'
    

    Thus b_tr_vw trigger is triggered first and deletes a B. trigger fires tr_b as part of this statement to remove and check against A, happening apparently so no error is triggered and succeeds the removal of B. Now tr_b_vw takes back control and deletes C. Since the B line which has key_c = 17 already deleted a control for counter_n > 0 and counter_s = 0 fails and raise you the-20002 error. Note that I'm assuming that the error of-20077 you lift is just to see the values and is not intended to be part of your actual code.

    Because I have really no idea what you're trying to accomplish here I can't offer a lot of advice that you might want to try entering two tr_c of the tr_b_vw trigger validation queries before deliver you the removal of b and put the counter_n > 0 and counter_s = 0 control under tr_b_vw to decide whether or not you want to remove.

    John

  • Why can't get information from frequency of NI USB-5132

    Hello

    I use NI USB-5132 and try OR Scope example measure a library.

    I wonder why I can't get information from the input signal frequency.

    Thank you

    In the flexible Panel, you need to adjust the time/Div and, possibly, the Volts/Div to get a consistent result. Make a note of the settings.

    Based on what you used in the soft cover, you must change the parameters of the VI until you see a signal. If you don't see something here, then obviously you can not perform a measurement. Try other examples to see if you can capture at least the waveform.

  • get information from the sms message

    How to get information from sms

    ex: 1. the sender's phone number

    2. sms text

    Check the interface messages and methods like getAddress(), text, getPayLoadText.

  • currently still have PP CS5.5 & want to install on another office, understand that I can only use one at a time. don't have a CD, can I get information from the current installation and a link to download PP CS5.5?

    currently still have PP CS5.5 & want to install on another office, understand that I can only use one at a time. don't have a CD, can I get information from the current installation and a link to download PP CS5.5?

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.

  • How to get information from web interface tables

    Hello

    How to get information from web interface tables

    as in the forms... Go to help-> Diagnostics-> review
    Block = SYSTEM field is LAST_QUERY.

    Kind regards.

    Salvation;

    Please see the paragraphs below:

    How to determine the Table and the name of the column to a field in a form in 11i [ID 259722.1]
    How to find the query that succeeded recently? [241628.1 ID]

    Respect of
    HELIOS

  • How can I get information from performance on disc with vFoglight 6.5 latency?

    Can someone tell me where I can get info from performance on disc with vFoglight 6.5 latency?

    There are also alarms that deal with the latency of disk. You are looking for a report or dashboard? Check the alarm Viewer and define a filter on the "latency". This will show you all the current latency time, then you can explore the host or logical unit number that is having the problem.

  • Get information from the low level of the Subvi ni5660

    A quick explanation of the problem: I need to create several VI just to return a value of the PXI-5660 (ex: Center frequency, Span, etc.) while the entries are only a "VISA" and one "error in.»

    Detailed explanation of problem: I need to create multiple VI that the properties 'Set' or 'Get' of the PXI-5660 module (ex: the Central frequency value, get frequency, etc...).  Each VI must have a VISA in/out and in/out Error, but the only other present in/out should be the property of game/called.  Global variables are not allowed.

    One of the biggest problems for me is that ni5660 drivers do not contain a property node.  I managed to (apparently) set some of the properties by feeding only a single entry in the icon 'configure ni5660 for spectrum', but the only tool that seems to be able to output all information is the icon «MT get Attributes»  The release of 'MT get Attributes' does not contain many of the properties that I need good output.

    I tried to use the icon 'MT get Attributes' linked to "ungroup by name" which has the value "handle receiver.handles.niScope" which feeds on the reference to a property niScope node, hoping that I would be able to obtain information through the niScope 5660 (it seems that ni5660 software uses the niScope on a lower level software ", correct me if I'm wrong).  This VI finished, when put online with the 'ni5660 Initialize.vi' and ' ni5660 Close.vi, ' returned the error (-1074135028) with the explanation 'ID attribute not recognized.' ""  (The error occurred on the property node in the Subvi "Get the Central frequency")

    The goal is to make the action of PXI chassis similar to a HP8563E Spectrum Analyzer.  With this in mind, the list of attributes that I will need in the end to set and get (the separate VI) are the following: Center frequency, Span, window, number of Points, resolution bandwidth, level of reference, mitigation and time sweep.

    I apologize for my (very probably) simple question, but endless (I only started programming in LabVIEW there about 2 weeks).  If someone would be able to point me in how to make apparently PXI-5660 current property settings from thin air, I would be very grateful.  If more information or details are needed, feel free to ask.

    Thank you

    zdunn wrote:

    ....

    but unfortunately, I'm still at a loss, how to create a VI that "calls" that same property back and the fate, while using only 'VISA In' and 'In Error' as inputs.

    Located on how silly that statement. You want to create a function where (for example) you want to set the resolution bandwidth and do not want to pass as a parameter the name of the instrument. You have created the programming language that is able to read minds?

    You can use a function where you can pass a parameter in (or use a function that retrieves a parameter) or do nothing at all with the instrument. It is more complicated than that.

    There are tutorials available that can help yu with LabVIEW to learn, but I think that there are certain fundamentals means.

    Edit: Sorry, I may have misunderstood. to query does not require an entry but I don't understand what you want to query. The parameters of the instrument are all under control stripped - a program you or any other writing. Unlike a GPIB instrument, there is no one '?' command to read a rear frame. It is assumed that you know how the instrument has been configured in the first place.

  • Get information from my computer about the details of the graphics card and so on, in order to install games.

    From the control panel > Performance and tools > can't view and print details of the basis of the normal English Windows experience index. See below. This is what is displayed in Notepad.  The reason why I'm doing this is because I was not able to install Games 2/2, I bought. The guy at EB Games says print a list of information on the computer so that I could buy the appropriate game. I would like to have a game on my computer. My friend recommended to Doom 3. Is there something that exists and why I receive this report not readable?


    Check this similar thread:

    Printing performance information

    In the end, make sure that HKEY_CLASSES_ROOT\htafile\Shell\Open\Command is set to one of the following values, depending on the architecture of the operating system:

    x 64:
    c:\windows\syswow64\mshta.exe "%1" % *.

    x 86:
    c:\windows\system32\mshta.exe "%1" % *.

  • Get information from the Bank of Tables HZ

    Hi I mostly use CE_BANKS_V for the information of the Bank, but in case I want this HZ_PARTIES table information so how I can get because there is presented data of parties, people, etc.. i don't know which one I should mention to get only the condition information stores.

    Kind regards
    Shakeel Khan

    Hi Shakeel

    If you see the script for ce_banks_v, it uses the table hz_parties only. You can use the following query (this one is taken by the script of ce_banks_v only):

    Select * from
    hz_parties bankparty, hz_code_assignments bankca
    where
    bankparty.party_type = "ORGANIZATION".
    AND bankca.class_category = 'BANK_INSTITUTION_TYPE. '
    AND bankca.class_code IN ('BANK', 'CENTRE')
    AND bankca.owner_table_name = 'HZ_PARTIES. '
    AND bankca.owner_table_id = bankparty.party_id
    AND NVL (bankca.status, 'A') = "A".

    Thank you
    Serge

  • How to get information from my old iPod to my mac

    I have an old iPod touch without the camera. It was on the manual settings and now I can't get my laptop to synchronize with it. I get this message "iTunes could not connect to the iPod"xxx"because an invalid response was received from the device." I tried to access from devices, but it just does not recognize. Anyone know how I can get it working with my laptop. Its fully functioning, play music and charge, but I cannot sync.

    Help, please. Thank you

    try to reset the unit.

    Learn how to reset your iPod - Apple Support

  • I have received a request - think it might be an attempt to get information from me?

    / * potentially dangerous link removed by moderator * /.

    I received a request from schironize my hotmail to a global account - it read as follows: I believe that it is undesirable and I didn't click on the link as they were instructed.

    Dear * address email is removed from the privacy *,.

    We use this medium to warn you that your email account has generated errors on our MySQL database and that you need to follow all instructions that you are given in order to correct this problem.

    During our regular account verification procedure, we had a technical problem and we could not verify your information we have on record. Your account information could not be retrieved due to system errors resulting from the fact that your system has not been synchronized with the global e-mail server updated. As a result, your information we have on file is incomplete and the functions of your account are abnormal.

    About the above, you are indispensable to synchronize your account with the global e-mail server; otherwise, your access to the e-mail services will be disabled.

    We firmly demand that you click here to sync your account

    Note that failure to immediately synchronize your account with the global e-mail server will lead to permanent deactivation of your account to e-mail without warning.

    We are sorry for the inconvenience that this may cause and we assure you that everything will return to normal once you have done the necessary.

    Technical team global Email

    © 2012 global Mail Server. All rights reserved.

    It is a scam... DO NOT respond and DO NOT click on links in the message.

  • Widget - getting information from a url

    Hello, first, please excuse my English is not very good...

    I'm developing a widget with SDK WIDGET and I have a question, I need to retrieve some information about the 1 page on php hosted on an external web server, but I do not find any function to call at this url, can someone help me?

    Example:

    I have a url such as: www.enterprise.com \open.php then the url of this one back to 1 or 0, I need to get this result.

    Kind regards! Sorry if it's a bubsy request but I am a novice.

    In my opinion, using AJAX is a style much more clean and organized the retrieval of content.

    AJAX also allows that it runs asynchronously, which means that you can do something else while you wait for the results to come back.

    In addition, AJAX can be used to remove the content, when you don't want it to be displayed to the user via an iframe.

  • Get information from Netapp in VCOPS

    I managed to install adapter netapp for vcops and able to gather all the information.

    However, how can I have any widget showing me netapp volume/aggregate/system specific to a data store.

    In other words, using my overview of the application, I fed my vc relationship. Then I click on my store of data and I want that it show me

    health of the aggr, the lun, the volume and the system staying on the dastore. How can I get a receiver such widget?

    It can be done, but it is a custom job. It says relationship running scripts in the manual, but which requires either another adapter in relation to a request file to face the Database postgres which is JOINS the data to determine the parent/child. The problem is, you may or may not have data in the identifiers of resourcekind to make this association... e.g. canonicalname NetApp LUN to vCenter Datastore or anything of the sort... YMMV Yes. The new adapters have this logic of relationship already included, so no need to script.

    I had earlier suggested looking at the adapter of the BM NetApp IS the adapter for NetApp to go forward with the brand VMW MP getting EOL old.

    You run the old adapter EOL or the more recent SolutionsExchange (BM)?

Maybe you are looking for

  • whenever I update itunes or my ipod by the dozen songs disappear.  How to recover?

    whenever I update itunes or update my ipod songs disappear.  How to make a comeback?

  • Want to m6 - on keyboard num lock button

    M6 - envy I can't tell when the num lock key is on when I use the keyboard on the right side. This creates a problem when you type the number of password and I need to stop and remember to use the keys on the top. How will I know if it's on or not? N

  • Several acquisition module and the error

    Let me start by saying: this is the first written time code to communicate with the DAQ hardware and I'm learning.  I develop a test bed that will have different inputs and outputs listed below: cDAQ 9172: Mod1: NOR-9211 (4 Thermocouples) Mod2: NOR-9

  • Cannot open mappoint trial, 2013

    When I try to download I get a window asking what program I want to use to open this file.  None of the choices will open the file. Trial version of point 2013 card is so downloaded on my computer but not running.

  • Driver ODBC for SQL Server 2005

    There's a fileDSN configured to connect to SQL Server 2005 with the driver - 6.01.7600.16385. We have a few machines that have the SQL Server 2000.85.1132.00 driver installed in them. Is it necessary to upgrade the version of the driver (2000.85.1132