Left Justify View Selector

Guys,
I am running into some formatting issues especially with allignment.
1. Need to left justify View Selector. I was able to left justify the caption but not able to move the "View seletor" Tried several things like adding size in the left padding and made the allignment left but that still remains in the centre. Only the caption moves left but i want everything left jusstified.
2. I have two reports in my dashboard. The top report goes pretty widee and the user has to scroll across to see the bottom report which is pretty small. I am trying to left justify the bottom report so that it always stays completely left side so that user dont have to scroll. But looks like even though i changed the section properties in the "Edit Dashboard" it still stays in the centre.
Can you guys advice if there are some style sheets or XML that we can modify to achieve this.
thanks
Prash
Edited by: Prash11 on Dec 4, 2009 10:59 AM

Hi Prash,
Throw this into a text object at the bottom of your dashboard and check the enable HTML option.
It'll left justify ONLY the view selector drop down box.
Cheers!
-Joe
<script type="text/javascript">
var leftJustifyVSelector = function (debug,align){
     if (debug === 1) { document.write("Begining leftJustifyVSelector function"+"<BR>");}
     // Get all view selector objects
     var vselectors = document.getElementsByTagName('td');
     if (debug === 1) { document.write("Get the TD elements"+"<BR>");}
     if( vselectors == null){
          // Couldn't find a view selector
          if (debug === 1) { document.write("No view selectors available"+"<BR>");}
          return;
     // Otherwise loop through them and align them to the left
     if (debug === 1) { document.write("Looping over the view selects"+"<BR>");}
     for ( var view =0; view < vselectors.length; view++){
          // check if this is not a view select class TD element
          if ( vselectors\[view\].className == null ||
               vselectors\[view\].className == undefined ||
               (vselectors\[view\].className != "VSelSelector")){
               // Not a view select TD
               if (debug === 1) { document.write("Not a view selector TD.  Continue."+"<BR>");}
               continue;
          // We must have found a view selector change the alignment property
          vselectors\[view\].align=align;
          if (debug === 1) { document.write("Done setting the align property to left"+"<BR>");}
leftJustifyVSelector(0,"left");
</script>

Similar Messages

  • View selector top left position

    Hi Everyone,
    Can somebody help me, for one of my Dashboard reporting(on OBIEE 11g), I am using 'View Selector'(two VIEWS, both are Pivot views) to show an Analysis report. One of the VIEW is really wide, 'View Selector' option is showing up at top center of the report. Is there a way, to show this 'View Selector' option at the top left of the report, rather than top center. I would really appreciate it.
    This is my first posting, please let me know, if I did'nt explained it good enough.
    Jeeva

    Hi user,
    Add a narrative view below the view selector to your report with the below script(enable Contains HTML Markup checkbox) .
    <script type="text/javascript">
    var leftJustifyVSelector = function (debug,align){
    if (debug === 1) { document.write("Begining leftJustifyVSelector function"+"<BR>");}
    // Get all view selector objects
    var vselectors = document.getElementsByTagName('td');
    if (debug === 1) { document.write("Get the TD elements"+"<BR>");}
    if( vselectors == null){o
    // Couldn't find a view selector
    if (debug === 1) { document.write("No view selectors available"+"<BR>");}
    return;
    // Otherwise loop through them and align them to the left
    if (debug === 1) { document.write("Looping over the view selects"+"<BR>");}
    for ( var view =0; view < vselectors.length; view++){
    // check if this is not a view select class TD element
    if ( vselectors\[view\].className == null ||
    vselectors\[view\].className == undefined ||
    (vselectors\[view\].className != "VSelSelector")){
    // Not a view select TD
    if (debug === 1) { document.write("Not a view selector TD. Continue."+"<BR>");}
    continue;
    // We must have found a view selector change the alignment property
    vselectors\[view\].align=align;
    if (debug === 1) { document.write("Done setting the align property to left"+"<BR>");}
    leftJustifyVSelector(0,"left");
    </script>
    Rgds,
    Dpka

  • View Selector left position

    Hi Everyone,
    Can somebody help me, for one of my Dashboard reporting(on OBIEE 11g), I am using 'View Selector'(two VIEWS, both are Pivot views) to show an Analysis report. One of the VIEW is really wide, 'View Selector' option is showing up at top center of the report. Is there a way, to show this 'View Selector' option at the top left of the report, rather than top center. I would really appreciate it.
    This is my first posting, please let me know, if I did'nt explained it good enough.
    Jeeva

    Hi Jeeva,
    I have came across the same type of the requirement and i found a new trick to over come this type puzzles in Obiee 11g. Below is the steps for the solution;
    1) Go the the EDIT VIEW of the View Selector
    2) Select the Caption position as 'Right' in the dropdown list.
    3) Go to the Format Caption and in the Additional Formatting Options, put some Right Padding say eg: 1000 or 1500 according to the width of your view.
    4) Select Done and save the view.
    Now you can able to see the view selector in the left top corner of the view and also you can able to do the same for the right most of your view by the same trick. The only thing is that the Label of the view selector is in the right side of the dropdown rather than the left, but that should be fine i guess.
    Please Excuse if its not relevant or the one that you are expected...
    Cheers & Thanks,
    John Nelapatti

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • Making a textframe centre within margins but be left justified

    I'd like a textframe to size its width automatically and centre itself within page margins, but for the text to remain left justified. Is this possible? e.g. Three pages of poetry with very different line lengths. If possible this would be some sort of general layout that I could then drop different pages of text into

    I like the double-click-the-right-handle idea. And if you need to add a poem earlier, add a page using the page palette and all of the custom frames will stay with their poems.
    I happen to have an Applescript for shrinking a frame to its longest line and centering it. It's designed to work both for left or centered justified text (I had some poems where the text was centered but the author attribution was right justified, we wanted the right end of that to line up with the right end of whatever the longest line of text is, so shrinking those text frames was important too). You can select all of the frames on a spread and it will adjust each of them to its longest line, or if you've got text selected it will work on whatever frame the cursor is in. I've adapted it below to an 8.5 x 11 page document, but it's pretty straightforward to change. You'll want to define LeftColumnCenter to the horizontal offset, in picas, of the centerline of the left page; and likewise RightColumnCenter to the centerline of the right page.
    Assign this a keystroke shortcut, and your job should zip along.
    tell application "Adobe InDesign CS3"
    tell view preferences of active document
    set horizontal measurement units to picas
    end tell
    -- Change the following numbers to the horizontal offset, in picas, of
    -- the vertical line you want the frame to align to on the left and right pages.
    set LeftColumnCenter to 25.5
    set RightColumnCenter to 76.5
    repeat with SelectionCounter from 1 to count of items in selection
    set mySelection to item SelectionCounter of selection
    if class of mySelection is not text frame then
    set myFrames to parent text frames of item SelectionCounter of selection
    set myFrame to item SelectionCounter of myFrames
    else
    set myFrame to mySelection
    end if
    -- get the boundaries of the selected frame
    set OriginalBounds to geometric bounds of myFrame
    set OriginalTop to item 1 of OriginalBounds
    set OriginalLeft to item 2 of OriginalBounds
    set OriginalBottom to item 3 of OriginalBounds
    set OriginalRight to item 4 of OriginalBounds
    -- figure out if the selected frame is on the right or left page
    set ColumnCenter to LeftColumnCenter
    if OriginalLeft is greater than 56 then
    set ColumnCenter to RightColumnCenter
    end if
    -- find the length of each line in the frame and remember the longest one
    set NumberOfLines to number of lines in myFrame
    set LongestLine to 2
    tell view preferences
    set horizontal measurement units to points
    end tell
    repeat with myCounter from 1 to NumberOfLines
    if justification of line myCounter of myFrame is in {left align, left justified} then
    set StartOfLine to horizontal offset of line myCounter of myFrame
    set EndOfLine to end horizontal offset of line myCounter of myFrame
    set StartofCharacter to horizontal offset of last character of line myCounter of myFrame
    set EndofCharacter to end horizontal offset of last character of line myCounter of myFrame
    set ThicknessofCharacter to EndofCharacter - StartofCharacter
    set LineLength to (EndOfLine - StartOfLine) - ThicknessofCharacter
    if LongestLine is less than (LineLength) then
    set LongestLine to (LineLength)
    end if
    end if
    if justification of line myCounter of myFrame is in {center align, center justified, fully justified} then
    set StartOfLine to horizontal offset of line myCounter of myFrame
    set EndOfLine to end horizontal offset of line myCounter of myFrame
    set LineLength to EndOfLine - StartOfLine
    --+ (point size of last character of line myCounter of myFrame) * 0.05
    if LongestLine is less than (LineLength) then
    set LongestLine to (LineLength)
    end if
    end if
    end repeat
    --figure out the new width of the frame and assign the new bounds to the frame
    set HalfLine to LongestLine / 2
    set NewLeft to ColumnCenter - (HalfLine)
    set NewRight to ColumnCenter + (HalfLine)
    set geometric bounds of object reference of myFrame to {OriginalTop, NewLeft, OriginalBottom, NewRight}
    end repeat
    end tell

  • View selector and column selector one row

    Hi Kings,
    Thanks in first.
    im having view selector v1,column selector c1
    user requiremet is to show the view selector and column selector in single row like,
    V1 pivot1 c1 usd
    rownumber Company currency
    1 abc USD
    2 def INR
    is there ay posibilities to show view selector ad column selector in a single row?
    Please help on this..its going nearly a week..
    Regards,
    Junior........

    Hi Sai,
    Thank you.
    My need is to show (from your example) like,
    chart along with Region,market,currentdate in top of results..
    more clear ..
    viewselector V1 column selector C1
    rownum company
    1 abc
    2 def
    ie,column selector and view selector should be appear top of the results.
    please remeber im using 2 pivot tables in view selector.
    if i select pivot1 then all details are coming left side .
    column selector is coming right side of all results.
    any ideas...please...
    regards,
    Junior...

  • Field labels left-justified

    Hello,
    What is the easiest way to make all field labels left-justified instead of right-justified? I want to change this only for a certain business role, but for all views if possible.
    Thanks in advance
    Roland

    Found it myself: Described in SAP note 1151944 (see PDF)

  • Filtering View Selector

    Hello experts!
    I have an assignment to do.
    I have a report that has a view selector of pivot tables (5 exactly). My question is: it exists any kind of filter (maybe another view selector) that when I click in one member of this "filter" it shows me 2 options of my view selector or if I choose another member of "filter" show me 3 different options???
    Thank you!
    P.D. I could solve my problem if I could include a view selector in another view selector.

    Hi,
    Yes you can do it, as you said by using a view selector that:
    I could include a view selector in another view selector.try this:
    1. create one view selector viewSelector!1 and add your 2 reports
    2. go on compound layout and add your view selector viewSelector!1
    3. add again view selector (it will create viewSelector!2)
    4. add your 3 reports in this new view selector..
    5. go on compound layout and add your new view selector viewSelector!2
    6. add again view selector (it will create viewSelector!3)
    7 go to advance tab and modify your xml by modify:
          <saw:view xsi:type="saw:viewSelector" name="viewSelector!3" rptViewVers="200510010">
             <saw:viewSelectorCaption position="left"/>
             <saw:viewList/>with
          <saw:view xsi:type="saw:viewSelector" name="viewSelector!3" rptViewVers="200510010">
             <saw:viewSelectorCaption position="left"/>
             <saw:viewList>
                <saw:viewItem type="view" name="viewSelector!1"/>
                <saw:viewItem type="view" name="viewSelector!2"/>
          </saw:viewList>8. set xml
    9.go on results and you will see your view selector that contains two other view selectors...
    10. modify this view selector to set correct caption and remove from compound layout the other static 2 view selectors...
    http://nicolaeancutabi.blogspot.com/2010/05/view-selector-in-view-selector-in.html
    Regards
    Nicolae
    Edited by: Nicolae Ancuta on 13.05.2010 17:16

  • Microsoft Word Documents Left Justified on Web Pages

    I have a church web site created with iWeb 08. I've been taking sermon outlines from Microsoft Word, copying the text, and pasting it in iWeb. This has been working fine in the past. The Word formatting copies over fine and the indents show up correctly in iWeb and on the web pages being viewed with Safari, Firefox, or IE in Windows.
    Within the last month, something has happened. All the sermons are now left justified on the church website, when viewed with any of the browsers. It still looks okay in iWeb 08 though. Has anyone else had this problem? If so, were you able to correct it?

    A lot has changed with Apple's hosting servers and software in the last couple of weeks due to the MobileMe changeover and it's not surprising that some things don't work as they once did. It takes little effort to click on the text box in the iWeb page and select the justification you need.
    Another way to add the Word page is to take a screenshot of it and add it as an image file. That way all browsers and platforms will see it exactly the same, particularly if you're using a non web safe font.
    Web Safe Fonts
    Common fonts to all versions of Windows & Mac equivalents
    Safe web fonts
    OT

  • FR Studio Reports Account in Rows all left Justified with no Indentation

    I am using FR studio 11.1.2.2
    I have built an Report with Account in my Rows, but when I run the report all the account are left Justified  !!!!
    I want like to be able to see the report with the indented structure as the Essbase Outline.
    Please advise

    There is no indent in FR, only way you can get that is by using allow expansion. If you go that route, then your users will have to expand each member inorder to view the report.
    Regards
    Celvin

  • Preview app: Add text annotation with left justify?

    I'm using the Preview app to insert text into some PDF files. I can use the Annotate feature to create a text box in the area I need it and adjust the font, color, size, etc. The only thing I can't seem to do is set the justification to Left Justify. It will show text as center justify - anyone know how to change this?

    I can find out what the defaults are with:
    defaults read com.apple.preview
    There are many properties but a TextAligment property is not one of them.
    I tried below but they do not work.
    defaults write com.apple.preview NSTextAlignment 0
    defaults write com.apple.preview PVAnnotationTextAlignment 0
    NB: 0 means left alignment
    Any idea?
    Maybe Apple has to create an text alignment feature for the GUI or provide the property that we can set it from Terminal.

  • Can we have a view selector at dashboard prompt,plz suggest me

    Hi all,
    I am trying to create a view selector in the dashboard prompt, but I am not getting how to create a view selector .
    I need to create filters as below.
    region:- dropdown list(is prompted) LOB:-dropdown list(is prompted) Operatingunit:- dropdown list(is prompted) Division/Country:-dropdown list(is prompted)
    Practice:-dropdown list(is prompted) Office:- dropdown list(is prompted) Team:-dropdown list(is prompted)
    Viewselection*
    radiobutton Operating unit
    radiobutton Region
    Radiobutton Division/Country
    radiobutton Office
    radiobutton Team
    radiobutton LOB
    radiobutton Practice
    APPLY RESET(these are two buttons)
    Can any one please suggest me what to do, and how to achieve this.
    Thanks,
    Venkat
    Edited by: 991688 on Mar 14, 2013 12:19 PM

    I am not getting how to achieve this filter , can you please suggest me ,How to get it, And also I am trying to plot the pie graph for the data present in the report, but I am unable to display the data in pie graph. Can you please suggest me why this is happening, I played around it almost 3-4hrs, still I am unable to get it. Can you please tell me your suggestions.

  • Can we show compound view in View Selector

    Hi All,
    I am in 10.1.3.4.2, I am just wondering if we can show a compound view in the view selector?. I tried doing that but couldn't so just wanted to ask the Gurus if there's any workaround
    Thanks,
    Ronny

    Hi,
    Yes you can use compound layout, pivot tables in View selector.
    Hope this helped/ answered.
    Regards
    MuRam

  • Facebook is left justified on my machine only. erashing cache does not fix it. need help.

    this just started today.
    i've followed every single step on the support with no change.
    -i've updated to firefox 10
    -i've cleared both caches 10 times, also used third party programs and manually after that did not work. no change.
    -i've tested the font size (it's where it should be)
    -tested java script (it is on)
    -tested zoom. When zooming in or out the page fixes itself and goes centered, but when at the default zoom, the site is left justified instead of centered.
    i would really appreciate some help here. bad enough firefox crashes enough for other reasons, but now that the number one page i go to on a daily basis isn't working right it's basically enough reason to leave for good.

    I have an answer!!!
    Check it out, I uninstalled Firefox and IE from my machine, reloaded the default IE.
    When I reloaded it (IE) and went to facebook, my machine said there was a certificate error, i hadnt seen this before for some reason (my wife ignored it or something).
    I clicked ignore and it came up with the left justified angry mess we all hate so much, well IE then popped up in the bottom saying something about blocking the content associated with the bad security certificates, also giving me an option to display said content, i clicked the button and low and behold beautiful colorful facebook pops up.
    Well I press back and go back to the Certificate Error screen and I click on technical details, it says something along the lines of "Certificate for this website works starting November 11, 2011, and system time is march 02, 2002.....
    .......wait what?
    I look down, sure enough, system time, 2:44AM, 03/02/2002.
    ......So I reset the time (this tells me, by the way, i need to crack open my laptop and replace that little nifty system battery that keeps the clock accurate, they go out every so often, newegg/ebay sells them for cheap),
    so after i reset the time i simply (on the error page even) hit refresh and bam, like there was never anything ever wrong.
    Conclusion: if your system time is messed up (how often do you really look at it) and the year is wrong, it'll screw up EVERY browser you try to use, because every browser (in an attempt to protect you from risky websites) is blocking content that doesnt have a valid security certificate (because the date is xx years away from even being initiated).
    Hope this gets to you in time before you go all Office Space on your computer.
    (I created an account JUST to write this reply)

  • View Selector - Switch issue between Graph and Table Data

    Hi:
    We have created the report with both Table view and Chart View. Both of them has been added to the View Selector and added to the Dashboard. While performing the testing we found that sometimes the Switch between the views are not happening. Meaning when we try to switch from Chart View to Table View, the View changes in the drop down but the original Graph to table will not switch. In order to make that happen we need to try 3 or 4 times across the drop downs from Table to Chart and then chart to table.
    Did any one face the similar issue. Any suggestions or insights on this.
    Please help.
    Thanks & Regards
    Sunil Kumar T.S.

    hey there RAM,
    here are a few tips...
    1. what is the table field with the right value? and is this table field in the *itm extractor?
    2. can you include this field into the extractor?
    3. could it be a calculated value?
    hope this helps.

Maybe you are looking for

  • I live in Sweden and Portugal, can I have two apple accounts one for each country?

    Hi, I need your help, at the present moment I devide my time between two countries Sweden and Portugal, my Apple acoount is based in sweden, my question is can I open an account in Portugal and keep the Swedish account or i am only allowd an account?

  • How can I save a file to both my mac and iCloud

    Hi, was wondering if there is a way to save a file to both iCloud and my mac at the same time. Today I was made a document in text edit and was interested in putting it up on iCloud and at the same time, I wanted to save it in my mac so that I can ac

  • How do we move the 'Security Profiles' between the instances.

    Hi All Do we have any facility like FNDLOAD to move the 'Security Profile's between the instances . I am not able to find any LCT file inorder to use the FNDLOAD option. Many Thanks Ravinder Namsani

  • Missing document numbers

    Back in August, our Accounts Payable department using transaction FB60 posted a vendor invoice.  A document number was provided and it was handwritten on the invoice as proof. however, there is no record of that doc number in SAP.  It's not searchabl

  • Unable to download purchased movie in iTunes

    I am unable to download a purchased movie from itunes. The download icon spins as if it were downloading but it is not. I am connected to the internet so this is not the problem. I have purchased other movies but on this one I am "stuck in spin". Any