Easy way to display lookup value of a foreign key reference vs value itself

I've figured out how to do this for a Form
http://www.dba-oracle.com/htmldb/t_lov_list_values_master_parent_child.htm
...but not for a report which lists the data row by row.
Given table Centre with the following columns:
ID
Name
Department_ID
and given table Department with the following columns:
ID
Name
When the report runs on the Centre table it simply queries ID, Name and Department_ID from the database, and then displays each column as is.
Instead of displaying the Department_ID from the Centre table (which is a number and not very informational), how can I make it display the Name from the department table?
I have lots of other similar fields which need to be displayed in this way so I'm hoping there isn't a ton of configuration/coding I need to do.

Hi,
Try report query
SELECT a.id,
  a.name,
  b.name dept_name
FROM centre a,
  department b
WHERE a.department_id = b.idBr,Jari

Similar Messages

  • Urgent! Display lookup value and return value at the same time.

    We are using pop up lov.
    How can we display lookup value and return value at the same time. let me claer..
    Our lov query is like fallowing
    select dname, deptno from dept
    we want to return deptno column into a database bind text item and dname column into a display item (look up)
    can we do it (we need to do)
    thanks for your help.

    We did it .
    But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
    (Report Attributes pages Tabular Form Element section display As property list)
    can we set or not.
    Thank you.

  • Insert a flash file to iweb 09 or an easy way to display photos

    Goal: have a photo space on my home page that plays automatically - dissolving one to the next.
    I am trying to either insert a flash file to my home page http://web.me.com/ksporterproductions/PWF/Home.html
    I've used the html widget with this code:
    Flash Files in iWeb - Adding Flash to iWeb
    If you value and use Artotems iWeb Tips and Tricks please consider making a $5 donation to support more assistance in the future as well as the charitable work Artotems Co. does for others around the world.
    <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/ flash/swflash.cab#version=6,0,40,0" border="0" width="800" height="600"><param name="movie" value="http://web.mac.com/youriDisk/docs/flash.swf"><param name="quality" value="High"><embed src="http://web.mac.com/youridisk/docs/flash.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="800" height="600"></object>
    I've also tried doing an imovie - but it doesn't play automatically
    Any suggstions for an easy way to do this?? I've been working on it forever!!

    Hi,
    Check out this site. http://iwebfaq.org/site/iWeb_Movies.html
    More help here with tutorials http://discussions.apple.com/thread.jspa?messageID=7301535
    And if that doesn't help, you could post in the iWeb forums here: http://discussions.apple.com/category.jspa?categoryID=188
    Carolyn

  • Display lookup value for update in a form field

    OK, this seems like a simple thing to do, but for some reason I can't seem to figure it out.
    I have a table with several foreign keys which are number ids. I've created a form using shared component dynamic LOVs for those fields where the LOV retrieves display values from the foreign key related tables . So far, so good. If I run the form to create a new record, it works fine. But if I call the form from a report with a link column (ala Master-Detail Form) for update purposes, all the data is fetched into the form properly except the foreign key related table LOV display data. The LOV data fetched into the fields is always the first value in the LOV list, and not the value based upon the foreign key values in the record. I want the value displayed to be based upon the foreign key in the record.
    What am I doing wrong?
    Edited by: 950335 on Aug 7, 2012 2:52 PM

    Figured it out.

  • Displaying information other than a foreign key in 'interactive reports'

    I would be very grateful if someone could help with the following query. I have 2 tables (*Table1* and Table2). Table1 has the following columns:-
    Tbl1PrimaryKey, Tbl1Description
    Table2 has the following columns:-
    Tbl2PrimaryKey, Tbl2Description, Tbl1ForeignKey
    Where Tbl1PrimaryKey is the 'primary key' in Table1, Tbl2PrimaryKey is the 'primary key' in Table2 and Tbl1ForeignKey is a 'foreign key' and uses the 'primary key' from Table1.
    I would like to create a page which displays the description of Table2 and Table1 on a web page, however, using an 'interactive report' in APEX, the resulting web page displays:-
    Tbl2PrimaryKey, Tbl2Description, Tbl1ForeignKey
    I would like to change the underlying code to display Tbl1Description instead of the primary key, but I can't get the SQL coding correct. The region source sql code at present is:-
    select "Tbl2PrimaryKey",
    "Tbl2Description",
    "Tbl1ForeignKey"
    from "#OWNER#"."Table2"
    Any help regarding the above query will be appreciatiated.

    Try one of the following in the Source:
    in-line query...(My favorite)
    select "Tbl2PrimaryKey",
    "Tbl2Description",
    (select Tbl1Description from Table1 where "Table2"."Tbl1ForeignKey" = Table1.Tbl1PrimaryKey) Tbl1Description
    from "#OWNER#"."Table2"
    -or-
    Classic Join (if Tbl1ForeignKey is NOT NULL)
    select "Tbl2PrimaryKey",
    "Tbl2Description",
    Tbl1Description
    from "#OWNER#"."Table2", Table1
    where "Table2"."Tbl1ForeignKey" = Table1.Tbl1PrimaryKey
    Hope that helps,
    Russ

  • Easier way to display report POVs - Financial reporting

    Currently I add a text box in the lower left hand corner of each report and type in the POVs used for the report.
    For example:
    POVs
    Version: <<MemberAlias('Grid1', Version)>>
    Business Line: <<MemberAlias('Grid1', BusinessLine)>>
    Is there are way to generate this similar to when export to excel from a Financial Snapshot? Pretty tedious ( I save it as a reporting object but still have to tweak based on different POVs per report)
    thanks
    JTS

    I believe my text boxes export as well... but then, I do not use the snapshot, I run the report as an export from the live report book.

  • Easy way to display duplicates

    What's best way to reveal all my duplicate images or movie files? I want to delete duplicates....
    Thanks.

    Oops. I meant to say Tidy Up, which is talked about here: http://osxmactips.blogspot.com/2009/01/delete-duplicate-iphoto-photos.html
    My previous link was about removing duplicate email files.

  • Display parameter values in separate sheet in Crystal Reports 2008

    Dear all,
    I am using CR 2008 SP6 and I want to provide/display the values of the parameters which the user has entered before executing the Crystal report.
    Is there any way to display this values, maybe on a separate sheet or area within the report?
    Any idea would be great.
    Best regards,
    Stefanos from Munich/Germany

    For single-value parameters, simply drag them to the report canvas to display them.  For more complext cases, see Printing Parameter Selections for Multiple or RangeValues in Crystal Reports&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;!…

  • How to display Zero values in the chart

    Hi,
    In BO design studio 1.3 we are using bar chart and line chart for one of the dashboard. we have enabled the data labels and data is also displaying in the chart, but for certain criteria the data is itself zero in the database. In such scenario chart is not showing zero as the data label and it is simply blank. Is there any way to display the values even though it is zero?
    Thank You,
    Palani. 

    Hi - I don't see a way to do that; if you want that in the future I recommend posting something on Idea Place - ideas.sap.com

  • Displaying target value in certificate

    Hi Experts,
    Is there any way to display target values maintained in inspection plan on quality certificates.
    in certificate profile the text elements are available. But no text element can be used to display target value.
    Can we create a new text element which will display target value.?
    Please provide your valuable suggestions.
    S Dey

    Hello Sarves,
    Please have a look at the following links. They describe the process in much better clarity than I can offer
    http://scn.sap.com/thread/3345795
    Additional details start on page 17 in this document:
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/qmca/qmca.pdf
    Regards,
    John

  • Displaying BLOB value

    Hello,
    Working on Oracle 10G R2/Windows
    There is a way to display BLOB value from SQL*PLUS or other tools?
    Thank for your help

    from sql*plus you can only display first 32767 character from the blob ,however you can write to file using pl/sql and read that file.
    DECLARE
    l_file UTL_FILE.FILE_TYPE;
    l_buffer RAW(32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob BLOB;
    l_blob_len INTEGER;
    cursor c1 is SELECT RAWCONTENT FROM BLOCK;
    BEGIN
    -- Get LOB locator
    -- Open the destination file.
    l_file := UTL_FILE.fopen('BLOBS','Myfile.lst','w', 32767);
    open c1;
    loop
    fetch c1 into l_blob;
    exit when c1%notfound;
    l_blob_len := DBMS_LOB.getlength(l_blob);
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw(l_file, l_buffer, TRUE);
    l_pos := l_pos + l_amount;
    END LOOP;
    end loop;
    -- Close the file.
    UTL_FILE.fclose(l_file);
    EXCEPTION
    WHEN OTHERS THEN
    -- Close the file if something goes wrong.
    IF UTL_FILE.is_open(l_file) THEN
    UTL_FILE.fclose(l_file);
    END IF;
    RAISE;
    END;
    /

  • Interactive Report Displaying Multiple Values (Chart)

    Hi guys,
    Is there a way to display multiple values into a chart report. Normally there is a combobox and you can only select one value. But i want to display multiple values into one chart and i have to use interactive report because sql report is not enough for me.
    Apex product build is 4.0.2.00.07.
    Thanks

    Any ideas ?
    Thanks.

  • Displaying Array values in Details section

    Hi All,
    I am having trouble with Arrays in Crystal Reports.
    I have made a Shared string array in my main report and am using the same in a sub report. In the sub report I need to print the values in the array one below another like a table.
    Say the array MyArray has values (INDIA, USA, CHINA, JAPAN, UK)
    Right now I have made a formula in which I iterate through each of them and use Join(MyArray[i], ChrW(10))
    ChrW(10) as you might know is used to make a new line. So the formula output essentially looks like the way I want it, that is
    INDIA
    USA
    CHINA
    JAPAN
    UK
    But its still a formula and acts like a single cell. If I export it into Excel, all the values will come in single cell. Moreover, When I use it like this, I cannot do proper formatting on it either.
    Is there any way to make Array behave like a table and use the same in Detail section. I do not want to hit the DB again for this purpose.
    Thanks

    Hi Antony,
    The only way to display the values on the Detail section is to 'get those values from the database'.
    Instead of using a shared array variable, use a comma separated string. Here's what you need to do:
    1) In the Main Report, open your existing shared variable formula and add a new variable:
    shared stringvar array <exisiting variable name>;
    stringvar new_variable;
    existing code line 1
    existing code line 2
    existing code line 3
    new_variable = Join(array_variable_name, ",");
    2) Right-click the Subreport > Select change Subreport Links > Move the above formula to the pane on the right > Uncheck the option at the bottom right that says 'Select data in Subreport based on field'.
    3) Get into the Subreport and use this as the Record Selection Formula:
    {database_field} IN Split({@Pm-formula_name}, ",") //Replace {@Pm-formula_name} with the parameter name that is automatically created in the Subreport.
    -Abhilash

  • Display multiple values for a characteristic for Equipment.

    Hi is there any way to display multiple values for characteristics of an equipment. Ex. An equipment (Presss) produces multiple ROH Parts. The class VN_TOOl with charactersistic "Part Produced" . When I run IH08 and execute the query, >Show , hide classification I can only get just one part instead of multiple parts. How do I get multiple values for the characteristic

    Yes Chandra,
    You are not getting it in IH08, but you are getting it in IE07. See this.
    IH08
    IE07
    If you want the report in the ALV layout, then you need to go for a development using FMs in Classification areas such as:
    'BAPI_OBJCL_GETCLASSES'     'ALM_ME_CLASS_CHAR_GETDETAIL'
    Jogeswara Rao K

  • How to Display Hierarchy of depending database tables (Key Comparison)

    Hi there,
    is there a transaction available to display the hierarchy of depending database tables? Like:
    TABLE A -> Key: XYZ
        - TABLE B -> Key: XYZ
    It's kinda ment to display the technical datamodel of an application.
    Thanks. Greetings. Kay.

    it doesn't exist, but you have the graphical display of tables related by foreign keys and check tables (SE11, shiftctrlF11), and there are the logical databases to help you.

Maybe you are looking for

  • Need a new hard drive for T43...

    I need help finding a new hard drive for my T43.  It appears that my hard drive is starting to fail.  It just seems to not power up all the time during boot up or it just dies after it's in used for a little while.  The T43 seems to only be compatibl

  • Memory ? & Program transfers? OS Mt. Lion Backup disk

    Have several IMac's (5) 22" all intel duo core, (3) mini Macs duo core, (2) 24" Duo's. (1) 27", (1) MacBook Pro 17" duo.  Do each of these units have their own set of rules to memory upgrades? Currently I'm trying to find out 24" which are DDR2 to 27

  • HT201363 My Apple ID password is not working

    My password not working when I want download my apps

  • .xhtml file in ADF stack

    Hi Experts, can we have "*.xhtml*" file in ViewControler project instead of .jspx file ? thnks

  • Games dont appear in iTunes

    i bought 4 games for my 3rd generation 4gig Nano on a Vista pc under my username. Vista then got nuked, and now im on a different computer running Windows XP, with SP 2. the thing is, when i open ituns there is no games menu in the sidebar. worse, i