Define column width using a variable

Hi All,
Is there a way to define the width of a specific column using a variable in an rtf template?
I have a requirement that one column should fit it's (largest) content. Now my idea is to replace the static width in points with a variable, but seems to be impossible in MS Word.
I've already tried to use split-column-width but then I also have to use split-column-header etc. which seems a bit excessive.
Is there a way to do this nice and tidy?
Kind regards,
Machiel

The script linked in this thread
http://forums.adobe.com/thread/1115330
can copy column widths; storing and retrieving them from a table style. The style won't apply the widths directly, but I have found it very useful.

Similar Messages

  • Cell column width using spry horizontal menu

    Hi
    Trying to set the cell column width using DWCS5.5 Spry Horizontal menu.
    view-source:http://www.roatan.ws/spry-menu-bob
    I used help to get directions and I think I did it correctly but I do not know for sure.
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
              background-color: #356A68;
              float: none;
              background-color:transparent;
              height: auto;
              width: auto;
    Trying to clean up my site and get things working an looking right.
    Any suggestions appreciated
    bob

    Spry menus do not contain any table columns or cells.    They are just lists <ul> <li>  tags  styled with CSS.
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 12px;
        position: relative;
        text-align: center;
        cursor: pointer;
        width: 8em; /**adjust top-menu width**/
        float: left;
        text-decoration: underline;
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 10px;
        z-index: 1020;
        cursor: default;
        width: 8em; /**adjust sub-menu width**/
        position: absolute;
        left: -1000em;
        background-color: #356A68;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Unresolved column when using presentation variable in Answers filter

    Hi all,
    I'm using a dashboard prompt that sets a presentation variable - pres_year. I'm using the presentation variable in a request's filter.
    In the 'Criteria' tab, in the filter for the request, I set a year column (YEAR) to the presentation variable via Variable Expr and enter the presentation variable name only. End up with:
    YEAR is equal to / is in @{pres_year}
    When using the dashboard, the prompt and request all work fine. The problem is when I'm in the request in Answers and I click on 'Display Results' button. I get the following error:
    'NQSError: 27005 unresolved column pres_year'
    Any suggestions?
    Thanks.

    I got same error, if i'm using SQL Expression, instead of variable expression in filter section.
    make sure that you followed this:
    filter on year > Add > Variable > Presentation. Then, give the presentation variable name (which you defined in dashboard prompt) in Variable Expr field , click OK
    getting same error when using:
    Filter on year column > Add > SQL Expression > presentation variable. This is not right place to give presentation variable.
    and, error i got:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005]* Unresolved column: "var_Year". (HY000)
    so, make sure that you are suing the right one..

  • Show the period value in column header using Text Variable

    We are using Posting Period & Financial Year to calculate YTD & MTD, for current year and previous years. These posting period and financial year characteristics are custom created characteristics we are using due to customer specific requirement.
    Input values are posting period, financial year and numeric value. To calculate previous year, I need to subtract numeric value from the input financial year. Every thing is working fine up to this.
    In the report I need to show the posting period and financial year values dynamically in each column header of the report for MTD, YTD for current year & previous year. I tried to achieve this using Text Variables, but I didn’t succeed. If some one can give me some idea to resolve this, it would be very helpful.
    I am excellent in ABAP coding. If you can specify me to code in User Exit, I can do it.
    Column headers should be 08.1999 Sales Qty, 08.2008 Sales Qty, 1999 Sales Qty, 2008 Sales Qty.

    Hi Abhinav,
    Try using the content text variables 0T_FYEAR and 0T_FPER3, when used in the head these variable should display the year and period specified in the RKF.
    e.g
    &0T_FPER3&. &0T_FYEAR& Sales Qty = 08.1999 Sales Qty
    If that doesnt work, try creating text replacement path variables referencing the variables you created for the year and period input. To do this click on the RKF and click on the dropdown by the yellow box next to the description on the general tab and select New Variable, enter the description, tech name and set processng by to Replacment Path, then select period as the ref. characteristic, then on the replacement path tab change replace variable with to variable and then select the variable you are using for the period input, save then hit ok, this is now a text representation of the variable your are inputing for period and can be used in the column headers, you will need to repeat the process for the fiscal year.
    Hope this helps
    Josh

  • Setting column widths using CSS...

    Hi guys,
    I am using a simple 2 column table to layout pictures and
    text. The problem I'm having is that I'm not sure how to set the
    column widths and as such when you flick from page to page the
    column widths and don't stay exactly equal to each other as I'd
    like them too.
    This can clearly be seen through clicking and comparing the
    following two pages.
    http://www.fyrne.com/mb_food_and_drink.html
    http://www.fyrne.com/mb_television.html
    Any advice on how I can resolve this would be much
    appreciated.
    Cheers, J

    Hi James,
    I see the scrollbars now but now I also see what you mean :(
    I think the easy fix is to create a class and apply it to
    every single
    td that has the text/image/heading to give them a fixed
    width! (Maybe
    only applying it to the top td's would do the trick... I'm
    really no
    good with tables)
    Hope it made some sense
    JamesFryer skrev:
    > Hi Kim,
    >
    > Thanks for posting this link. I think it was Nadia who
    previously suggested I
    > implement the suggest edcode line to auto add the
    vertical scroll bar and avoid
    > an overall site shift problem I was having.
    >
    > However I have now implemented this and am still getting
    the shift problem -
    > you will notice it is not the overall site (ie the
    bordered area) which is
    > shifting but the internal table columns. I believe I
    have set these column
    > widths in DW design view but this often proves
    problematic (pushing out the
    > width of the main table for no reason although this does
    not actually show when
    > previewed).
    >
    > As such I hoped I would be able to control this through
    CSS - I don't believe
    > it's the same as the shifting problem...
    >
    > Thanks again, J
    >
    Kim
    http://www.geekministry.com

  • How to adjust Column width using SHD0 for FB60

    Hi,
    How can adjust ( i have to reduce the length) Assignment filed in the FB60 transaction using SHD0.
    Please help in this regard.
    Regards,
    Kishore

    HI,
    I think you can adjust the column width and save it as Screen Variant in the SHD0.
    When you create a screen variant for the MIRO, adjust your column width and position than save it the variant. Once you save and activate the variant, it will appear in the Layout dropdown box on MIRO.
    OR
    Please check in spro with ur functional consultant to explore if the field can be made not mandatory..
    menu path:
    AR and AP -> Customer Accounts -> Line Items -> Display line items -> display line items without ALV

  • Sorting columns dynamically using Presentation Variables

    Hi,
    I have 4 measures say A,B,C,D , a period dimension and branch name dimension. I would like to select the measure in the prompt and the result should display rank for the selected measure using presentation variables. For eg: If measure-A is selected, the result should be arranged in order by based on "A".
    Is it possible to sort the columns dynamically?
    Kindly help me.
    Regards,
    RB

    Hi RB,
    You can do that, though it's a bit more complicated than a simple SQL statement. For example:
    WITH BASEDATA AS (
    SELECT
      EMPNO,
      ENAME,
      MGR,
      SAL,
      COMM,
      CASE WHEN :P4_SORT_ORDER = 1 THEN
        ROW_NUMBER() OVER (ORDER BY UPPER(ENAME))
      WHEN :P4_SORT_ORDER = 2 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR))
      WHEN :P4_SORT_ORDER = 3 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR), UPPER(ENAME))
      WHEN :P4_SORT_ORDER = 4 THEN
        ROW_NUMBER() OVER (ORDER BY UPPER(ENAME) DESC)
      WHEN :P4_SORT_ORDER = 5 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR) DESC)
      WHEN :P4_SORT_ORDER = 6 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR) DESC, UPPER(ENAME) DESC)
      END SORTITEM,
      'O' STATUS
    FROM
      EMP
    SELECT
      EMPNO, 
      ENAME,
      MGR,
      SAL,
      COMM
    FROM
      BASEDATA
    ORDER BY
      SORTITEMUsing a CASE statement this assigns a ROW_NUMBER to every record based on its ordering within the selected ORDER BY clause. The output is then sorted by this value.
    Andy

  • Define column width in standard transactions

    Hi all
    I'd like to have wolmn width optimized to the content of cell in standard transactions like ME23N, ME53N ...
    i'd like ti customize this optimisation for all system users at once.
    Heve you any idea???
    Thanks in advance.
    Regards

    Hi
    We have jist to go to Change layout in ALV menu bar ==> Display ==> Optimize columns
    Hope it helps.
    Regards

  • Reducing the Column width using SHD0 for FB60

    Hi,
    How can reduce or delete the Assignment filed in the FB60 transaction using SHD0.
    i am able to delete the Assignment filed by making as invisible but as it is a mandatory field it is not allowing me to enter into next screen.
    Please help in this regard.
    Regards,
    Kishore

    Please check in spro with ur functional consultant to explore if the field can be made not mandatory..
    menu path:
    AR and AP -> Customer Accounts -> Line Items -> Display line items -> display line items without ALV

  • COLUMN WIDTH USING EXPLAIN PLAN

    I set autotrace on and when it displays the Execution Plan it wrap and is quite annoying. Is there a command so it will not wrap, but still display all the output?

    You misunderstood, this it what it look like
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=62)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'NEW_TRAINING_REQUIREMENT' (Cost=
              1 Card=1 Bytes=62)
       3    1     NESTED LOOPS (Cost=12 Card=6 Bytes=210)
       4    3       MERGE JOIN (CARTESIAN) (Cost=6 Card=6 Bytes=168)
       5    4         NESTED LOOPS (Cost=2 Card=1 Bytes=18)
       6    5           TABLE ACCESS (BY INDEX ROWID) OF 'CORP_TESTERS' (C
              ost=1 Card=1 Bytes=10)
       7    6             INDEX (UNIQUE SCAN) OF 'IDX_PK_CORP_TESTERS_1' (
              UNIQUE)
       8    5           TABLE ACCESS (FULL) OF 'FULLTIME_WORKER' (Cost=1 C
              ard=1 Bytes=8)
       9    4         SORT (JOIN) (Cost=5 Card=6 Bytes=60)
      10    9           TABLE ACCESS (FULL) OF 'NEW_PERSONAL' (Cost=4 Card
              =6 Bytes=60)
      11    3       TABLE ACCESS (BY INDEX ROWID) OF 'NEW_ORGANIZATION' (C
              ost=1 Card=348 Bytes=2436)
      12   11         INDEX (UNIQUE SCAN) OF 'IDX_PK_NEWORGANIZATION_1' (U
              NIQUE)But I would like for it to look like
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=62)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'NEW_TRAINING_REQUIREMENT' (Cost=1 Card=1 Bytes=62)
       3    1     NESTED LOOPS (Cost=12 Card=6 Bytes=210)
       4    3       MERGE JOIN (CARTESIAN) (Cost=6 Card=6 Bytes=168)
       5    4         NESTED LOOPS (Cost=2 Card=1 Bytes=18)
       6    5           TABLE ACCESS (BY INDEX ROWID) OF 'CORP_TESTERS' (Cost=1 Card=1 Bytes=10)
       7    6             INDEX (UNIQUE SCAN) OF 'IDX_PK_CORP_TESTERS_1' (UNIQUE)
       8    5           TABLE ACCESS (FULL) OF 'FULLTIME_WORKER' (Cost=1 Card=1 Bytes=8)
       9    4         SORT (JOIN) (Cost=5 Card=6 Bytes=60)
      10    9           TABLE ACCESS (FULL) OF 'NEW_PERSONAL' (Cost=4 Card=6 Bytes=60)
      11    3       TABLE ACCESS (BY INDEX ROWID) OF 'NEW_ORGANIZATION' (Cost=1 Card=348 Bytes=2436)
      12   11         INDEX (UNIQUE SCAN) OF 'IDX_PK_NEWORGANIZATION_1' (UNIQUE)If I set wrap off it cuts off what normally would appear in the second line

  • OBIEE 11g:  Use presentation variable in Column Heading

    Hi everyone,
    I was playing around with sample app dashboards and I saw a dashboard prompt that they converted into a column selector. I liked it and reproduced it in my own sandbox.
    I like the results, however, I would also like to change the column heading to clearly reflect which measure was selected. It's pretty clear when you are looking in the dashboard, but once you export the data, it can be confusing which measure was selected.
    That is why I would like to use a presentation variable in the column heading section. I tried to do this but it interpreted it as a literal instead of evaluating the statement.
    Is there anyway to get a variable in the column heading?
    Thanks!
    -Joe

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    hope it helps.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Set Column width in query (not using SQL*Plus)

    How can I Set Column width in query
    I understand you can set column width using
    column col1 FORMAT A5
    select col1 from table1;But this only works in SQL*Plus
    I want to be able to do this in a regular SQL query window (not in SQL*Plus), how can I do it.....
    I am using a 'SQL window' in PL/SQL Developer IDE
    and when I use this syntax it says:
    ORA-00900: Invalid SQL statement
    Any suggestions are appreciated...
    thanks,
    M.

    Did you try using RPAD or LPAD functions? They fill the unfilled part of a string with character you provide... either on right or left side depending on what function you use.
    e.g.
    SELECT RPAD('Smith', 10, ' ') Name FROM dual;http://www.adp-gmbh.ch/ora/sql/rpad.html
    Edited by: Zaafran Ahmed on Nov 10, 2010 11:50 AM

  • How do I set column widths in read/write rules?

    Hello structure experts,
    I am reading a set of DITA files into a specific FM template format, and there is one detail I cannot get to work properly. It should be possible to define column widths in a table, even if the DITA file does not include that information. But the Structure Application Developer Reference does not give the information on which string to pass to the column widths fm property. Does anyone out there have experience in doing this ?
    Thanks
    Jang

    Got it !!!
    Turned out to be simple, but the info was more or less hidden in the Dev Ref Guide: I had already put the "fm property column widths is value " line in but did not know the syntax for the values. Turns out you need to delimit the values by spaces, not commas. The parser does not give ANY useful information about this, just mentions 'syntax error near somewhere' or completely ignores the values you specify.
    This is how the rule for my DITA properties element now works out:
    element "properties" {
      is fm table element;
      fm property columns value is "3";
      fm property column widths value is "5cm 5cm 6cm";
    It works. I earn 10 points for answering my own question. :-)
    Ciao
    Jang

  • How to optimize the column width in Table Control

    Hi all,
          When I am displaying fields in Table Control, the columns are displayed in full length, and I am unable to see all the fields at once.
    So as in grid , where we optimize the column width using layout, do we had any property for TC to do so.
    thanks for your help.
    Points would be awarded .
    Regards,
    Anil .

    Hi,
    In Se51, you can do this one, ust open your table control and resize the TC, there is no direct option to do this for entire TC, you need to do this field by field, and arrage the TC to adjust in a Single screen. In the field parameters, you have the field lenghts, there you can minimize the length of a field
    Regards
    Sudheer

  • Hide Query filter values and column width default

    Hello Everyone,
    In our query definition we have default filter(restriction) values.  When query is output it shows these filtered(restricted) values.
    Is there anyway to hide these?  We dont' want users seeing this.
    Also, the column width defaults to the largest output in the column (Excel standard).  Is there anyway to override this?  I tried in a workbook to set the column width to a certain width, but the query did not read this?
    Thanks so much,
    Colleen

    Hi Colleen,
    To set column widths, use the BW Properties dialog.  In Excel, select any cell that is part of query definition, right-click ... you should now see a context-specific dialog.  The last option in the dialog is always Properties.  Go to the Column width tab and pick from there.
    For the filter values ... you should be able to delete these cells and they should not re-appear (unless someone goes to the BW toolbar and selects Layout >> Display text elements).
    Hope this helps.
    - Pete

Maybe you are looking for

  • Quantity not shown on the CRM UI

    We are using IPC to configure the products. I see that the data is correctly returned from IPC but on the UI the quantity and high level item details are missing for only 1 item. This is a service and rest all are sales items. What could be the issue

  • Hard drive visible in Disk Utility but not on desktop

    I have an external hard drive, one of a RAID 1 mirrored pair which I have been connecting to my computer with FW800. I was having problems as was using one of them for a while, which solved them. When I hooked them both up to my computer, they showed

  • MSS Status overview displays empty screen

    Hi We are configring the MSS PCR under the Team workset. Under PCR when the option for Status Overview for Personnel Change Requests  are clicked, I get an empty screen. Is there any additional configurations required? We are using EP7.0, ECC6.0 (nw2

  • How to restore data from time capsul

    How can you restore your data from Apple Time Capsule? Would it be an idea to share your back up with others? And can it be done?

  • Employment for Hyperion Admin/Devloper (Boston)

    Hyperion Admin and Hyperion Developer positions available in the Boston Area.Pay in the $70's. Interested candidates please send resume to [email protected]