Referencing Report Fields from other regions

It is possible to reference the value in a report column in another part of the page?
I have a report region returning a single row of data, and I'd like to use the value in one of these columns to set an item in another region.
Is there any way to reference the report column directly from another region, or do I have to do something more complicated?

Hi,
OK - it would depend on the template that is being used. See: [http://apex.oracle.com/pls/otn/f?p=267:80]
In this case, I have added the following into the report region's Region Footer setting:
<script type="text/javascript">
var region = document.getElementById('#REGION_ID#');
var t = region.getElementsByTagName('TABLE')[1];
</script>Underneath this region, I have another region containing a P80_VALUE page item. To populate this with the first EMPNO shown in the report, I have added the following into this region's Region Footer:
<script type="text/javascript">
function showValue()
var r = t.rows;
var row1 = r[1];
var c = row1.cells;
var v = c[0];
document.getElementById('P80_VALUE').value = v.innerHTML;
showValue();
</script>In this example's case, the report region actually generates two tables with the same ID (this is defined on the template, which I have not changed) - so, the first script gets a reference to the second table (items in javascript being zero-based, this is item 1). The script in the second region, then gets the second row (the first one containing data, the headers being on the first row) and then gets a reference to the first cell in that row. Finally, it sets the value of the P80_VALUE item to the contents of the cell. If required, you could loop through the rows and cells using something like:
for (var row = 0; row < r.length; row++)
c = r[row].cells;
for (var cell = 0; c < c.length; cell++)
  do something with c[cell];
}Andy

Similar Messages

  • Multiple report fields from single physical column.

    Hi Experts,
    I have a physical table like below. Multiple records for a single customer id. The no of Address_type may increase in future.
    Customer_id     Address_Type         Address
    101                  Primary                   abcdefgh
    101                  Secondary               234oij3mb4
    101                  Billing                      mdmnweoij4
    102................etc.
    My Requirement on OBIEE is to display report as below.
    Customer_ID, Primary_Address, Secondary_Address, Billing_Address.
    101                 abcdefgh            234oij3mb4               mdmnweoij4
    Multiple report fields ( Primary_Address, Secondary_Address, Billing_Address ) are derived from same physical column ADDRESS.
    I tried to duplicate the Address column on the report thrice and added conditions like Address_Type = Primary/Secondary/Billing for those three fields respectively.
    But only of the field is getting correct data and rest of duplicate columns are null.
    Tried FILTER function on OBI Answers, but the function fails saying it should be used only on measures.
    Thought the alternative would be to define multiple logical columns at BMM layer. Created multiple alias for same table at physical layer and correspondingly created LTS for each on a single logical table. Defined Fragmentation/Where conditions.
    LTS1 - Address_Type = PRIMARY
    LTS2 - Address_Type - SECONDARY
    LTS3 - Address_Type - BILLING
    Created multiple logical columns from each LTS like Primary_Address, Secondary_Address, Billing_Address from LTS1, LTS2, LTS3 respectively.
    This time, am getting data for all the fields on the report but getting cartesian result.
    Can someone guide me whether my approach is correct or any other alternate best approach to achieve the desired result.
    Note: I have the data Address on multiple physical rows for a customer, rather Not in a single row. which is causing me problem.
    Thanks...
    Ramchand.

    Hi Srini VEERAVALLI,
    I have lot many other fields in the same report coming from other tables.
    Does the Pivot table option for above mentioned Address fields affect other columns?
    If Yes, Can there be any other alternative? Am thinking of Opaque View at Physical layer to bring all Addresses on a single row.
    Thanks...
    Ramchand.

  • How to move 1 field from 1 region to another region of same page persnaliz

    dear friends,
    i m geting some problem reagrding the Oracle Apps personalization. i dont have much more knowledge about personalization of OA Framework. i want to change one field from one region to another region of the same page. can u please guide me regarding this.
    as per my knowledge i have to create the new item from personalization and the bind that item with the view object. but i dont know how to that exactly. i m geting problem to find the name of that perticular view which belongs to that perticular field.
    so can u please tell me step by step how to do that, as i m beginer in this modual..
    thanx in addvance
    shailesh

    Shailesh,
    You can hide (Render = false) for first field in 1 region using personalization.
    You can create new item in IInd region and bind with View Object.
    Question : I m geting problem to find the name of that perticular view which belongs to that perticular field.
    Ans : Check the whether you are able to get ViewInstance and ViewAttribute Name from 1 field.
    Thanks, Avaneesh

  • Matching songs from other regions?

    Hello guys, I am just wondering whether Itunes Match matches songs which are not available in US Store but available in other regions, e.g. Rock in Rio by Iron Maiden, many Black Sabbath albums cannot be purchased in US, but can be in UK or Ireland. Do any of you have 'that kind of' albums succesfully matched?

    No, iTunes Match does not match across stores. It only matches to content in your "store of record."

  • (Swing) Reading fields from other forms - Best practice

    Hi All,
    I have been learning Java and Swing through NetBeans (quite a cool way to do it). I would like some 'best-practice' advice please. Google and search on this forum are normally my friends, can't find anything relevant for this though. I have created an application that seems to be functional, all my navigation is through tabs.
    To make my app portable I have created a ?Settings? part. To save having another tab, I have basically copied the way NetBeans deals with opening the ?About Box? in its example, and have set-up fields in here. This essentially opens a JDialog with fields through an option in the menu.
    I figure the best way to store the data is in a simple text file, and have the application read the values on start-up? Then when somebody changes the fields and saves it just overwrites the text file with the new values. I am not sure how to best read these in though, I can?t find a way of reading direct from the JDialog (i.e. var.getText()) which makes sense as the JDialog will be closed.
    Will my best practice simply be writing a class which reads the file, then whenever I need a value just calling the class?
    Thanks a lot

    You should not be using preference files unless you really know what you are doing. This is one area of the very few areas of Java programming that can have lasting nasty negative affects on a computer that runs the code if done wrong.
    If you want the user to save preferences it is better to just use xml. The advantage of preference files is they can be used by multiple programs and are permanent even after the program is done running/deleted/writen-over/forgotten. The disadvantages of preference files is they can be used by multiple programs, are permanent even after the program is done running/deleted/writen-over/forgotten, can cause damage to your OS, may be seen as harmfull by add blockers and/or anti-virus software, may lead to conflicts with other software that uses similar naming schemes, and are pretty much unportable.
    You are going to be much better off in the long run learning XML and just saving them there, an added benefit of XML is if you screw something up and it causes your program to no longer run you can easily edit the xml by hand.
    JSG

  • How to recover previously bought movies from other region?

    hi,
    I bought many movies in Italian language, that I want to restore on my mac now that I moved to USA and changed region of my account. How can I do?
    Andrea

    If you bought them from the Italian iTunes store then you won't be able to redownload them (assuming that they are still in the store) unless you return to Italy and have an Italian billing address on your account - you have to be in a country to use its store, including for redownloading.
    You haven't got a copy of them on your backup of your downloads/library, or on an iOS device device that you can copy them back from ?

  • Populate One table by a field from other

    Hi Guys,
    Just started working on OAF, need a some help.
    I want to populate a table (RegionStyle - tableLayout) with data based on the value of a field in another table(RegionStyle - tableLayout) after user clicks on the field both regions are on the same page. I was unable to find any examples in Developers Guide.
    Any help appreciated.
    Regards,
    Shoaib.

    Shoiab,
    Sorry, I lost track of your issue.
    For assigning the value to each link, use SPEL. Check Dev guide for its usage if you are not sure. And to redirect to same page, use method forwardImmediatelyToCurrentPage or setForwardURLToCurrentPage based on whether you want to continue the code processing for all the nested bean or not.
    --Sihv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Auto Populate Drop Down and Text Fields from Other Drop Down and Text Fields

    Hi everyone
    I'm trying to pre populate a "Proposed Employment Status" drop down field with the selection from the "Current Employment Status" drop down field and allowing users to select another option if the proposed employment has changed. If it hasn't it would just remain as populated by the Current Employment Status" entry.
    I'm also trying to do this with text fields eg "Proposed Position Title" is populated with "Current Position Title". If the title changes in the bew employment arrangements users can enter it over the Proposed Position Title that is presented when the Current Position Title is entered.
    I can get it to work if the drop down or text field names are the same, but this doesnt solve the problem.
    Any ideas
    Regards,
    Michael

    Java is a full featured-language and you shouldn't have any problem doing the mathematics, etc.
    As far as the rest, Studio Creator is a relatively easy way to create the user interface that you describe. If supports drop-down selectable lists and standard form capabilities. A Web Application architecture would appear to be ideally suited to what you describe, and this is supported by SC. Be aware that this would require a server to serve the application to the client computer.
    If the server is a problem you could consider an applet that would be downloaded from a website, and then run entirely on the client computer. But the first approach is better.

  • Javascript to fill text field from other PDF form

    I am trying to figure out if it is possible to add javascript to a text field that when initiated pulls text from another field in a closed pdf in the same directory.
    For example I have a NAME field in the pdf form I am working in....
    When I initiate the script the NAME field is filled in with the same data from another PDF that is closed.

    I have looked up the 'disclosed' property and it looks like that is what I want to do..
    I have "this.disclosed = true" in a PDF with the name field. On the other PDF that I want the information replicated I am going to add a javascript to an action somewhere on the document, my problem is which script do I use to get this data from the other pdf?  Is the pdf that is now accessible via javascript (disclosed) a data object?

  • Referencing a field from a resource table to a task table

    Hello,
    I have created a a resource field that is called "Internal Cost Rate" and I would like this field to be added to a Task table so that I can then reference it and make a simple calculation. For example in the Task Table I have the "Work Time"
    and want to do with a multiplication to a third field so that:
    "Sum of internal costs" = "Internal Cost Rate" * "Work Time"
    When I try to add or reference the field in my task table, it is not available. The idea is that I want the "Internal Cost Rate" to be with the resource integrated. Any ideas?
    Thank you very much in advance!
    Ioannis

    Hi Ioannis,
    I think we have to make a step backward since it is not possible to calculate an assignment cost based on 2 rates. But there might be different ways based on your need such as the fixed cost, cost custom fields, cost per use, cost resources...
    Please give us some information about your initial business need so we can figure out a way to help you.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to recover previously bought apps from other region?

    I just got myself $10 itunes giftcard and the only way to use it by changing region to usa. So, i change my region to usa. I found out that my previously bought apps are gone and when i'm trying to change my region again, it says i nid to spend all my remaining credits which is $0.04 . Is there any ways for to change my region to my original region. Please. I hope that apple staffs can help me. I have bought many apps before. I don't want to lose it for some $10 worth apps. Please...

    iTunes Store content is country specific. When you change countries, you no longer receive app update notifications on your iOS device or in iTunes for the apps you purchased in your original country, nor do those Apps appear on your new country's Purchased page.
    However, you will still be able to download those applications again for free if they are present on your new country's store (even if they are updated).You will not be charged and the download will not appear on your Purchased page. If a previously purchased app is not available in your new country, you will not be able to download it again.
    The following article describes how to review your account's purchase history so that you may view the titles of the Apps you previously purchased:
    http://support.apple.com/kb/HT2727
    With regards to changing the country associated with your account back to what it was before, you will need to deplete the remaining store credit on your account first.
    You can use your remaining store credit by purchasing an item, and paying the extra amount using a valid US credit card, debit card, or PayPal account.
    I you don't have an alternate payment method you can provide, then you will need to contact iTunes Store Customer Support via http://www.apple.com/support/itunes/contact/

  • Referencing component parameters from other components

    I have a training application that uses a variety of
    components, including a browser that, as a parameter, takes a movie
    clip instance and will move it around when the scroll bars and the
    browser are used. I also have transparent buttons that on
    mouse-over turn slightly opaque so the user can see very obviously
    that they're mousing over something. I also have popups that, as a
    parameter, take the button instance name, and comes up when the
    button is moused over. When the button is clicked, is passes a
    parameter to an isCorrect variable (true or false) that is used by
    the popup to determine what color to turn the text (green if
    isCorrect == true, red else). The popup then puts up some
    additional text, to steer the user right. The problem with this is
    that all the wrong answers usually say the same thing, and only to
    correct one says something different, and often there are well over
    50 popups per page, meaning each must be changed manually. And if,
    when reviewed, the text is determined to have to change, then it
    takes far too long to change it! So, as a solution, I put a
    parameter on my browser component called Popup Text with a variable
    name _browserPopupText. I need to be able to refrence it from the
    popup component. I am able to refrence the button currently because
    the instance name is entered as a parameter.
    By way of extra information, the popup instances are are
    placed inside of the movieClip that is moved around by the browser,
    so it isn't on the same layer. I've tried using
    this._parent._parent, which resolves properly (this being the
    button, this._parent refrencing the movieClip object,
    this._parent._parent being a relative way to say _root (since I
    have multiple _levels that need to move around on each other a
    lot), which resolves to the _level# that the clip and browser are
    on). however, I don't know how to refrence the browser without
    giving it an instance name, which I'd rather not force users to do
    (this training building app will be used by more-or-less computer
    illiterate people to build training Flash apps, and so I want to
    make it as uninvolved as possible).
    So, if there is a way to NOT have to give the browser an
    instance name and still refrence parameters in it from the popup, i
    would greatly appreciate hearing it.
    JA

    k. I found myself a work-around. In the browser component,
    during the init() function initiallizing the browser, i simply
    added the following line of code:
    _global.browserPopupText = _browserPopupText;
    This works just fine. Then, i just refrence the _global
    variable. Also, I moved the isCertify from the buttons to the
    browser, so that I don't have to change every button from
    "isCertify = false" to "isCertify = true". Now All these things
    that used to be in literally hundreds of components has been moved
    to a handful of them--just the browser. Anyway, there's my
    work-around. I'm still open for a better way to do it.

  • HT6119 I am in Thailand if I buy some TV show from other region store will I be able to watching it or not?

    I am looking to buy the Simpson but it said that I have to change the store to U.S. store
    if I bought it and do I able to watch it in Thailand??

    You can only use a store for the country that you are in. 

  • Install region specific app from another region

    Hey guys
    The issue goes like this
    I have got a FITBIT shipped from US which needs fitbit app from US store
    Unfortunately some feature works only if i have a fitbit app on my iphone 4s
    I can't install a app from other region
    and i tried creating a US apple id which i was not successful either
    So my question goes like
    How to install region specific apps from other regions
    Is having a multiple apple id so important
    Thanks in advance for your valuable answers....

    Hello, I think I'd contact FitBit directly...
    http://www.fitbit.com/

  • Currency in report taken from regional setting and not infocube

    Dear All,
    I am facing very strange issue. I am using BEx analyzer 7.0
    I executed a report in Windows 2000, Excel 2003. The values are displayed correctly with currency which is in cube irrespective of the currency set in regional option in control panel.
    We are doing testing on windows vista and excel 2007 as we will upgrade to SAP GUI 7.10 and windows vista. I executed the report and the result values are matching but the currency is differant. The currency is taken from the regional settings in control panel. If I go to regional setting and change the currency, the report which is open in BEx analyzer changes the currency.
    We are facing this strange issue for only queries on 1 infocube. Other queries on another infocubes/multicubes are working fine.
    Has anyone faced the same issue. Please provide some pointers/solutions for above issue.
    Regards,
    Niraj

    Hi Shalu
    The Library 0FL has 4 currencies... i.e.
    HSL  - Local Currency  
    TSL   - Transaction Curre
    KSL  - Second Currency 
    OSL  - Third Currency  
    Go to GRR2 (Report form of your report), and double click on any column... You choose Key Figures in the Columns in a areport painter report... there you would have chosen any one of these currencies...
    Right click on the column and Copy it and paste it... Now change the Key Figure of the copied column to the one you desire...
    This should give you values in both currency...
    To identify which form you have used in GRR2 - Execute your report and go to Extras Menu > Technical Information.. In the pop up window that opens, double click on field "Report".
    Regards
    Ajay M

Maybe you are looking for

  • Null values in Weblogic 7 HTTP Request Parameters

    It appears weblogic 7 handles nulls passed from the request object           differently than the previous versions. In my jsp's, if a parameter           was not passed, I used to get a java null value:           String s = request.getParameter("som

  • Error message when trying to open Gmail account on iPhone

    When attempting to open my gmail account on my iPhone, I get a message that pops up each time that says, "Cannot get Mail"  The connection to the server failed.  When I hit the OK button about four times, the message goes away and my email is accessi

  • Volume Bar wont show

    Bottom Line: volume bar wont show ive tried cleaning the dock connecter with a tooth brush, with a paper towel, blowing it, nothings working Ive also tried erasing, restoring, reseting, turning the phone on/off, going to settings > music > sound chec

  • Retry count JMS message on Proxy Service

    I have a proxy service listening to a JMS Queue. It is a task service. I need to try some functionality. If an error occurs (probably because of an offline external service/ business service) I need to rollback and retry). I want to do this for examp

  • Database in recovery

    Our server ran out of disk space during a stored procedure process. We were able to free up some space, stopped all SQL services, restarted all SQL services and now SQL Management Studio shows the database to be in recovery.  Is there a way to monito