Dynamic alignment of report column and page item value

Hi friends,
I have an interactive report which contains the columns like
<li>empno
<li>Name
In the above i have "empno" with a column alignment of left and a "Name" with a column alignment of left.
Whether it is possible to override the data alignment that we set in the report according to the value of the application item like
If my application item value is US, then i need the column alignment of both the column"empno" and "Name" to be left and if my application item value is AR, then i need the column alignment of both the column "empno" and "Name" to be right. Whether is it possible to achieve the dynamic alignment to the report data of both the columns "empno" and "Name" according to the application page item value.
And also in the case of page item i have a page item with a name P1_NAME in which it has a Element Horizontal/Vertical alignment to left.
I need that element alignment of the page item to behave dynamically according to the application page item, like if the application page item is US then the element alignment of the page item has to be left and if the application page item is AR then the element alignment of the page item has to be right.
Whether is it possible to achieve my above two scenario's friends. Kindly help me with this.
Thanks in advance.
Brgds,
Mini

Kees,
Your approach is excellent and brilliant:-)
I tried with your steps and i can achieve those alignment in both ways like you said(either on page load/through DA).
But im going with the DA way. I have certain query regarding this kees.
<li>Suppose if the report, is classic whether i can go with the same approach that i have achieved alignment with the IR report.
<li>Currently through the DA way, i used the page item in the condition. Is it possible to use the application item instead of page item in DA. Because im going to use the application item FSP_LANGUAGE_PREFERENCE for getting the code either 'AR' or 'US'.
<li>Finally i need this kind of restriction for the page item also, consider like i have a page item P1_X with an Element Vertical/Horizontal alignment as left. Now i need to change that alignment to right according to the application page item value, hence i can give application item condition for the page item like below
PL-SQL EXPRESSION: :FSP_LANGUAGE_PREFERENCE = 'AR'
i need the element alignment of the page item to behave dynamically suppose if the application item value is AR then the element alignment of that page item has to be right if the application item value is US then the element alignment of that page item has to be left, irrespective of the page item Element Vertical/Horizontal alignment that was set to it.
Thanks for your kind help
Brgds,
Mini

Similar Messages

  • Very intermittent missing page regions / report rows / page item values

    My goals in making this posting are twofold:
    1. I'm looking to see if anyone else has experienced this type of issue before.
    2. I'm looking for ideas about what can be done to debug such an infrequent bug with serious implications.
    Synopsis
    I'm having a weird problem where very infrequently I will load a page and I'll notice that one or more page regions, report rows, or page item values are missing. If I reload the page the missing parts appear as they normally should.
    By "very infrequently" I would say it happens to me somewhere between 1 in 100 and 1 in 1000 page loads, of course at my last project demonstration in happened twice in 10 minutes to my demo participants. I've attempted to debug this, but most of the techniques I know of involve reloading the page or reposting the form data and (of course) everything looks fine then.
    Environment
    * This has happened on multiple different pages, under ApEx 3.1 (Linux) and 3.2 (Solaris).
    * I believe that so far I've only ever seen this under Firefox 3/3.5 under OSX, but since I do the vast majority of my development with this browser it's not reasonable to conclude that it only happens under Firefox.
    Logs
    * No application errors during this timeframe.
    * Nothing of significance in the database alerts log (just thread notes and log sequences).
    * Nothing of significance in the webserver log (just the usual mod_ossl connection errors).
    Thanks for your attention,
    Jason
    Edited by: Jason G on Jul 24, 2009 12:43 PM

    Well, thanks for reading the post anyway.
    While working through some debugging steps I realized that I was populating some of the regions as the page rendered using AJAX -- this would pause the page rendering until the AJAX request returned. I believe that a hanging AJAX call was the likely culprit of the very intermittent symptoms I was seeing.
    I moved the AJAX calls to the last region of the page and added a javascript function that "watches the page load" by checking for regions by ID and looking at javascript boolean flags to let me know when the page is fully rendered. If this process takes longer than 5 seconds it notifies the user that something happened and offers to reload the page for them in an effort to fix the issue.
    So far, so good -- but it will take a lot of testing to convince me that this case is solved. I hope my documenting this is helpful for others in similar situations.
    Good luck,
    Jason

  • Dynamically Update a number field by summing of page item values.

    Hi,
    I'm trying to update a number field on an apex page by summing up the values of multiple page items. I've tried to follow this tutorial http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm , especially the "Create a Set Value Dynamic Action Using PL/SQL" part.
    In the tutorial example they return an page item value P3_SAL multiplied by a multiplier they've determined by another page item's case. What I want to do is much simpler in that I just want to add up multiple page item values and then display them in a number field at the bottom of the page.
    so the code I tried to use based on the tutorial is in the tab: Home >Application Builder>Application 103>Page 3>Edit Dynamic Action>Create / Edit Action
    Set Type: PL/SQL Function Body
    PL/SQL Function Body:
    BEGIN
    return :P3_ITEM1+P3_ITEM2+P3_ITEM3;
    END;
    Page Items to Submit: P3_ITEM1,P3_ITEM2,P3_ITEM3
    But it gives me an error that I need to declare the identifiers, yet it works if I only use one item and I can perform any arithmetic.
    ie.
    BEGIN
    return :P3_ITEM1+1000;
    END;
    Any help would be appreciated.

    PL/SQL Function Body:
    BEGIN
    return :P3_ITEM1+P3_ITEM2+P3_ITEM3;
    END;
    Page Items to Submit: P3_ITEM1,P3_ITEM2,P3_ITEM3
    But it gives me an error that I need to declare the identifiers, yet it works if I only use one item and I can perform any arithmetic.In your code is missing the ":" for the items P3_ITEM2 and P3_ITEM3.
    Try this:
    BEGIN
    return :P3_ITEM1+:P3_ITEM2+:P3_ITEM3;
    END;

  • How to put report title and page no to appear in multiple pages,when using cross tab reports

    Post Author: shaminranaweera
    CA Forum: General
    I am using crystal reports 9.0 with odbc foxpro database conectivity
    I have designed a cross tab report and it is on the report header part and all the report details  are fine,except that the report title and  and page no's only show on the first page of my report.Pls tell me how can i put my report title and page no on all the pages in my crosstab.

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • Page item values lost when moving application from 3.1.1 to 4.0.2

    I have an application that is working fine in version 3.1.1, but when I move it to 4.0.2, I'm having some issues with losing page item values. I have a page (6) with master key fields that are used to set page items on another page (7) when I branch to that page. In 3.1.1 the items in the page I'm going to are defined as 'Hidden and Protected' and in 4.0.2 they are defined as 'Hidden' (don't see a 'hidden and protected type'). When page 7 first displays, I see the values I passed in the session items. When I fill in the displayed items on the form and click to create a record, I get errors that the key values are null (these are the items I set when I branched to this page). When I look in the session items now, the values are missing. Why are the values lost and is there a work around?

    Hi there,
    In 4.0.2 there is no hidden & protected item but instead you have one select called "value protected" you can select yes or no there.
    Edit your item and See the "Source" region of your item, in the "Source used" it should be "current value in session state is null" and in "Source type" should be "static assignment..........".
    In the "Default" region the value type should be "static text ......."
    see if there is any changes in these properties.
    thanks
    Tauceef

  • Download as in IR Search Bar resets Page Item values?

    Hello,
    i have in an IR a separate region that has Page Items. When i set to these Page Items values and press Go then their values are submitted and used in IR's query. The fetch is correctly being done. Then when i use Download As IR Search Bar, their values are being resetted to that when NULL and query is executed again and fetching wrong results in Excel csv file. Is this the normal behaviour of the Download As option in Search Bar? How can i avoid this resetting ?
    To be more exact the resetting is being done just after pressing the Excel Icon in Download As in Search bar.
    TIA
    Edited by: Dionyssis on 22 Οκτ 2009 6:38 πμ

    Finally i managed to find what caused the problem: i had a process in Before Header that was called from a user button in this area. This process cleared all value of fields and actually doing reset. I have failed to set it conditional upon Reset Request. After doing that it looks like it keeps the result set even in Download as. But i have noticed the following behaviour and i have made a case in apex.oracle.com for examination:
    http://apex.oracle.com/pls/otn/f?p=20695:1
    user/psw: demo/demo
    When you log in do these things:
    0. Open Basic Search Show/Hide Region
    1. Clear Date From and Date To field and tab out (JS scripts put default values)
    2. Click in Search Bar and select Filter
    3. Use as field : User Name, operator: LIKE and value: ADMIN
    4. Press Apply.
    5. It says No data found!
    6. Press Go
    7. It fetches correctly one row!
    Why Apply does not work ? Shouldn't execute the query ?

  • Report cells as page items

    Hello all,
    I'm trying to make an updateable report w/o using HTML DB's wizards and was wondering if report cells could somehow be stored in page items. I know that report cells are referenced using #COL01#, #COL02#, #COL03#, etc. within the report region. Am I able to reference these columns outside of the report region and possibly store them in page items? I know that I can do so by using column links inside of the report and assigning the values to items through the url. I was wondering if I can reference the report column values in some other way. Thanks for any input.
    - Kenny R.

    hey kenny--
    if you're building your own tabular forms using htmldb, you should probably take a look at...
    http://otn.oracle.com/products/database/htmldb/howtos/tabular_form.html
    ...when you get a chance. re referencing those tabular form cell values outside of your tabluar form region, i'd consider these two approaches:
    1) if acceptable, you could store those tab form values to htmldb items when the page is submitted. the how-to above is very clear about how to do that.
    2) if you need those tab form values in session state before that form is submitted, consider selecting your form data into a Collection and running your tabular form query off that collection. the how-to above shows you how to use a collection for your tablular form (they're using it for validations, but the concept's still the same).
    hope this helps,
    raj

  • Dynamic Selection of Report Column Format

    Is it possible to dynamically set the number format on a report column? I thought it would be as easy as setting the 'Number/Date Format' to a session state variable such as &NUMBER_FORMAT. However, when I tried this the column returned the following value ##########.
    Any ideas?
    Thanks,
    David

    OK, this is a favorite hack of mine combined with Sergio's suggestion. Essentially, we select the column twice, display it with one column using Sergio's idea and sort it on another hidden and unformatted copy of the column (hope I didn't lose you yet):
    1) Add another column of the same source to the query and give it an alias:select ename,to_car(sal,'&NUMBER_FORMAT.') sal,sal sal_sort
      from emp2) Edit the report > report attributes > sal_sort column attributes. In the HTML Expression field, type #SAL#.
    3) On the report attributes page, unclick the "Show" column for sal.
    Now you are displaying the SAL column in the SAL_SORT column allowing the reporting engine to properly sort the column based on the unformatted SAL_SORT. I use this technique a lot for quarters. I'll show Q105, but it's sorting on an actual date behind the scenes.
    Happy hacking!
    Tyler

  • PAGE RADIO BUTTONS and APPLICATION ITEM VALUE

    I have several pages that use same radio button group that permits filtering the report query (of course on each page, it is a page level radio button item).
    I created an application item value to hold the last used value of a radio button item.
    On login, I would like the application item value set to a default value.
    For a given page using the recurring radio button group item,
    I would like the radio button item value set to the application item value on entry into a page.
    I would like the report to use the application item value on entry to a page.
    I would like the application item value be updated anytime the page level radio button item value is changed, so that when you move to another page,
    the next radio button group and report can use the last selected radio group button value.
    I am trying to use a variety of solutions in COMPUTATION and CONDITIONAL COMPUTATION... to include use of set_session_state procedure, and I am not getting desired result, partial success, but not complete.
    Can you have a computation item that is only for initialization of the report and radio button group on page entry?
    And a separate computation item that senses user selection of another radio button, updating the report, and updating the application level item?
    Help requested. Thank you.
    Would be nice to have application level objects, like radio button groups.

    Created Page 0
    Created an HTML region in COLUMN 2 and SEQUENCE 10.
    Selected under region CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished the HTML region to appear.
    Created the radio button group item P0_RADIO and assigned to Page0 HTML region.
    Selected under item CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished theradio button group to appear.
    In SHARED COMPONENTS I created an APPLICATION COMPUTATION
    In the computation I created a PL/SQL function to initialize the radio group
    BEGIN
    IF :P0_RADIO IS NULL THEN
    RETURN 'A_ALL';
    ELSE
    RETURN :P0_RADIO;
    END IF;
    END;
    'A_ALL' being the default value for :P0_RADIO
    Radio group appears on the desired pages, is initialized to the desired default value, and works properly on each page.

  • Problem with dynamic change a page item value

    Hi,
    I'm trying to dynamically calculated the value of an item based on a simple formula that involves the multiplication of two elements from the same page.
    To do this, create dynamic action as follows:
    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: SQL Statement
    SQL Statement: SELECT :P19_DURATION * :P19_RATE FROM DUAL
    Page items to submit: P19_DURATION
    Selection Type: Item(s)
    Item(s): P19_AMOUNT
    When altering the P19_DURATION get no change in P19_AMOUNT
    Since my knowledge of javascript is almost zero, I'm trying to do this with pl / sql or sql. Try the dynamic action with a function or a PL / SQL statement and nothing works.
    Have to use javascript for this?
    Searching the forum I think it's something simple, but I did not find an example similar to what I need.
    Regards

    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: javascript
    javascript Code:
    amount = $v('P19_DURATION') *  $v('P19_RATE');
    $s('P19_AMOUNT',amount);

  • IR Report based off of page item value

    Hey all,
    I want to create an IRR region and have the report update based off of a a page item.
    The page item will be a drop down of the tables I want to show, so something like:
    Select * from '||v('P1_TABLES')
    This will work with the normal report but not with the IRR. Is the syntax incorrect?
    Help is appreciated!
    Edited by: Ben C on Feb 23, 2012 6:42 AM

    Zooid,
    but always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always
    use bind variables !!!!
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Dynamic color in report column

    Hi, All
    I design a report and display the column as Text field,
    in the column "Element Attributes", I put in
    style= "width:400px;height:400px;background-color:green.;font-size:100px;font-weight:bold;text-align:center",+
    the column will be displayed in green color.
    I tried to make the colour more flexible but put in the color text into a text box, eg:P51_COLOR
    and I modified the "Element Attributes" to
    style= "width:400px;height:400px;background-color:&P51_COLOR.;font-size:100px;font-weight:bold;text-align:center"
    but the color wasn't display as what I expected.
    Anyone have solution for this?
    Thanks
    Edited by: pj**** on 26-Apr-2012 20:25

    Interactive Report or Classic?
    I presume it is "multi-row" and not single row as you mention column.
    Regards,

  • Dynamic gallery with 3 columns and 5 rows with paging

    guyz, i am new to spry and i need your help. i want to create
    a dynamic gallery with data source as xml. i want to create a
    gallery with 3 columns and 5 rows.Basically a wallpaper page where
    there would be 15 wallpapers in a page with a link of downloading
    wallpapers with resolution 800x600,1024x768 and 1280x1024.
    for example if there are 63 wallpapers for a section , then
    there would be 5 pages with 5th page having only 3 wallpapers.
    everytime a wallpaper is added to xml, it automatically adds
    it up in html...
    plz help....i really want to create this asap and i cant find
    any help...

    thanks a ton for your response.... Meanwhile i figured out
    the solution myself using photogallery tutorial where div fixes the
    width and the next repeated element get shifted to another
    line.....
    now i am struck with another problem.
    i need to give substring to a particular data on xml.
    for example i have the following xml
    <movies>
    <data>
    Important Note: These online forums are for user-to-user
    discussions of Adobe products, and are not an official customer
    support channel for Adobe. If you require direct assistance, or
    prefer to contact Adobe support staff directly, please contact
    Adobe support.
    </data>
    </movies>
    i want to display only first 50 characters of data tag.....
    whats the code/syntax to do so.....

  • Dynamically changing the name of a page item

    Hello,
    I'd like to dynammically change the name/label of a page item depending on the user who logged in to the system.
    On my home page, there's a navigation region with some list entries in it. Currently its title is "Configuration".
    If a specific user signs on, I'd like to change that title to "Reporting". How can I manage to implement such a behaviour.
    I tried to get some results by using dynamic actions, but I couldn't get it working.
    Thanks for your help in advance!

    >
    I'd like to dynammically change the name/label of a page item depending on the user who logged in to the system.Create a hidden item called PXX_LABEL (where XX is your page number).
    Set the value of the hidden item via a PL/SQL process (when page loads, or when user logs in, or whatever).
    In the "Label" field of the actual item, enter &PXX_LABEL. (notice the dot at the end).
    When running the page, the label will dynamically be set to the value of the hidden item.
    - Morten
    http://ora-00001.blogspot.com

Maybe you are looking for