How to get '%' Sign in a column

Hi,
I'm trying to calculate Percentage and would like to see it's sign (%) in front of the result...
Can anybody help me with sort of Column settings?
Thank you.
Jitendra

Hi Madan,
It's a correct reply if i hv column added into my repositoy.
But what if am calculating the column as "New Calculated Item" and adding it in Pivot as another column? will this work?
Coz there is no format function for it.
Jitendra

Similar Messages

  • How to get sum of quantity column in table control

    Hi, expert ,
    Someone can guide me how to get som of qty column in table control ?
    I created a screen with a table control  and has a  qty quantity field .
    I want to show total of qty  in a  field .
    my code like this ...
    PROCESS AFTER INPUT.
      LOOP AT I_tab.
        CHAIN.
           FIELD I_tab-COUNTQTY MODULE  caculate_total_qty .
        endchain.
        MODULE UPDATE_TOTAL_QTY  .
      ENDLOOP.
    but, when I Back to the previous screen
    It's caculate again so I always get wrong Total quantity .
    anyone can help me ...

    Hi , Dhina
    I have another question .
    I use internal table data in table control to update  database table .
    The data in the db will be change ,
    but each record I want to delete in table control , it's still exist in database .
    my code is
    WHEN 'SAVE'
         MODIFY YDSGBT53 FROM TABLE I_YDSGBT53 .
         COMMIT WORK .
      END CASE
    How  to fix my code and let it can change and delete data in database  ?
    or
    when I delete record  in table control I must to delete data in the database too .
    Edited by: TitusFang on Jun 16, 2011 3:21 AM

  • How to get tabs into a column on left edge of Firefox window?

    How to get tabs into a column on left edge of Firefox window?
    I've looked extensively for the answer but haven't found it yet.

    I found the Tree Style Tab ad-on does this.
    Mike

  • How to get a single row column from a viewobject in java?

    I have a class file that goes out and gets a viewobject and sets its where clause
    this is it:
    vcRow = vc.createViewCriteriaRow();
    vcRow.setAttribute("LogonId", "='" + strPcis_Login.toUpperCase() + "'");
    vc.addElement(vcRow);
    vo.applyViewCriteria(vc);
    vo.executeQuery();
    I know this working cause I can watch it in debug..
    but now the problem.
    I've looked in the docs and don't see how one can pull the value of the row it found and place it in a uix page in a textinput area
    how can I get a single row column, in this case the UserName that is in the view object to a string and then place it into my
    uix page? I've looked and looked and don't see a method for this.
    is there a way to take the oracle.cabo.servlet.Page and set a textinput with a viewobject get method?
    what way do you do this and where is it documented?

    is there a way to take the oracle.cabo.servlet.Page and set a textinput with a viewobject get method?
    what way do you do this and where is it documented? What you can do is get the value from your VO and set it somewhere that UIX can data bind to -- as a Page proprety, on HttpSession, etc. This is documented in Chapters 4 (Data Binding) and 5 (Controller) of the UIX Developer's Guide.
    To set a property, you use Page.setProperty(String key, String value). Then, in your UIX file, to make a textInput that has the value pulled from a given page property, use:
    <textInput data:text="key@ctrl:page" />
    -brian
    Team UIX

  • How to get name of a column in a RecordGroup

    Function GetColumnName(pSQL Varchar2, pColumnNo ) return Varchar2 is
    rg_name VARCHAR2(40) := 'rg_tmp';
    rg_id RecordGroup;
    cl_name;
    BEGIN
    rg_id := Create_Group_From_Query( rg_name, pSQL);
    -- How to get columnname i.e. 2 nd column or ( pColumnNo)
    return cl_name
    End;

    ever heard of google?
    http://www.java2s.com/Tutorial/Oracle/0601__System-Packages/Usedbmssqldescribecolumns.htm

  • How to get the selected rows & columns in the table?

    hi everybody,
                         In my application the table is kept inside the event structure.I select the cells  in the table (using mouse) on running time.How to get the selected number of rows & columns in that table?

    Hello,
    You can fill selected values of the table by writing to it or the corresponding property using a property node - the table is just a 2D array of strings.  I think for your "disable" question you are referring to the shortcut menu (when you right click).  If you are using LabVIEW 8.x, you can edit or disable that shortcut menu - just right click on your table at edit time and choose Advanced >> Run-Time Shortcut Menu.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How to get the number of columns in a result set???

    hi everyone..
    i am trying to establish a servlet applet communication....
    my applet send the sql query to the servlet as serialised string and then the servlet executes the query...
    Since i need to pass the result back to the applet, i thaught of passing the whole reult set to the applet..but that seems to be not possible..
    so i thaught of storing my result set data in a vector and then pass the vector,but the first problem that i came across is that how to get the number of colums in a result set....
    so is there a way to get the number of columns in a result set...???
    and also i would like to know if it possible to send my whole result set to the applet bye serialization or by any method...???
    thanx in advance

    You shouldn't do. It expenses resources (you should always close the ResultSet and the Statement as fast as possible). Simply gently process it into a Collection or Map of DTO's. Those are serializable.

  • How to get the constraintlist and column name in a table?

    Hi,
    can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.
    Thanks,
    Deekay

    Deekay wrote:
    can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.To get constraint type:
    select constraint_type from user_constraints where constraint_name = 'YOUR CONSTRAINT NAME';To get constraint columns:
    SELECT column_name from user_cons_columns where constraint_name = 'YOUR CONSTRAINT NAME';SY.

  • How to prefix (-) sign in values column of ALV

    Hi!! every one!!!
         can u please let me know how to prefix sign to the values in values column of ALV Report... when negative values r there  its giving sign after the value so how to prefix that sign to the value. please do the needful...
    thanks in advance..
    neelam.

    us this
    FM
    call function 'CLOI_PUT_SIGN_IN_FRONT'
      changing
        value = itab-value.

  • How to get the current selected column and row

    Hi,
    A difficult one, how do i know which column (and row would also be nice) of a JTable is selected?
    e.g.
    I have a JButton which is called "Edit" when i select a cell in the JTable and click the button "Edit" a new window must be visible as a form where the user can edit the a part of a row.
    Then the column which was selected in the JTable must be given (so i need to know current column) and then i want the TextField (the one needed to be edited) be active with requestFocus(). So it would be
    pricetextfield.requestFocus();
    Problem now is that i have to click every time in the window the JTextField which was selected in the JTable. I have chosen for this way of editing because my application is multi-user and it would be too difficult for me when everybody did editing directly (catch signals, reload data, etc.).
    My question is how do I know the current column and the current row in a JTable?

    I'm not sure what your mean by the "current" row or column, but the following utility methods return
    which row and column have focus within the JTable.
    public static int getFocusRow(JTable table) {
        return table.getSelectionModel().getLeadSelectionIndex();
    public static int getFocusColumn(JTable table) {
        return table.getColumnModel().getSelectionModel().getLeadSelectionIndex();
    }

  • How to get list in single column in a query

    Hello.
    I wonder if there is a way of getting with one query (no pl/sql code) a whole list of columns with a separator between them.
    I know I can get that without the separators with a cursor expression:
    SQL> with test_table as (
      2  select 1 col1, 'a' col2 from dual
      3  union
      4  select 1 col1, 'b' col2 from dual
      5  union
      6  select 1 col1, 'c' col2 from dual
      7  union
      8  select 2 col1, 'a' col2 from dual
      9  union
    10  select 2 col1, 'c' col2 from dual
    11  union
    12  select 2 col1, 'd' col2 from dual
    13  union
    14  select 2 col1, 'z' col2 from dual
    15  )
    16  select col1, cursor (select b.col2 from test_table b where b.col1 = a.col1 order by b.col2) col2_list from test_table a
    17  group by col1
    18  /
          COL1 COL2_LIST
             1 CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    C
    a
    b
    c
             2 CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    C
    a
    c
    d
    zBut the output that I want is (using the separator ';'):
          COL1 COL2_LIST
             1 a;b;c
             2 a;c;d;zI do not know how to handle a cursor expression without using a pl/sql block of function. Can it be done using analytic functions?
    Thanks in advance.

    Like this...
    SQL> ed
    Wrote file afiedt.buf
      1  with test_table as (
      2    select 1 col1, 'a' col2 from dual union
      3    select 1 col1, 'b' col2 from dual union
      4    select 1 col1, 'c' col2 from dual union
      5    select 2 col1, 'a' col2 from dual union
      6    select 2 col1, 'c' col2 from dual union
      7    select 2 col1, 'd' col2 from dual union
      8    select 2 col1, 'z' col2 from dual)
      9  --
    10  select col1, ltrim(sys_connect_by_path(col2,','),',') as col2
    11  from
    12    (select col1, col2, row_number() over (partition by col1 order by col2) rn
    13    from test_table)
    14  where connect_by_isleaf = 1
    15  connect by col1 = prior col1
    16  and rn = prior rn+1
    17* start with rn = 1
    SQL> /
          COL1 COL2
             1 a,b,c
             2 a,c,d,z
    SQL>

  • How to get Average of a column in UNION query

    Hi All,
    I will try to explain the issue as much as I can and If you need clarification on any piece please let me know.
    So, I have a Union Query with two sets of Criteria.
    The first Criteria Brings the list of Buildings and a set of Measures for it. The second criteria does the same but with a different set of filters.
    No I use a UNION between these both criteria and present them in a Pivot view so that we only have one row per each building. The values in each of the criteria in the UNION query are Summed
    Ex:
    Building
    Metric 1
    Metric 2
    1
    20
    30
    1
    25
    35
    2
    40
    50
    2
    45
    55
    So as I show in the pivot the result is
    Building
    Metric 1
    Metric 2
    1
    45
    65
    2
    85
    105
    Now the issue is with the Grand Total.
    I want the Grand Total to be an Average of the Buildings. So for Metric 1 The Grand Total should be (45+85)/2 because we have two buildings so the answer should be 65.
    How can I get that.
    Bottom Line: Need an Average as the Grand Total when the Aggregation rule on the column is set to Sum.
    we use 11.1.6.10 version

    Hi VJ
    What you are asking is impossible in the pivot table itself as you are asking one part of the pivot table to aggregate via one method, and another to aggregate via another method, on the same column ..
    It can be done using a calculated item. For your example above you'd use the formula ( $1 + $2) / 2.
    .. But thats HIGHLY explicit, and would only work if you KNOW how many buildings will come back in the query.. EVERYTIME.
    Why not restructure the query to combine it into a single query using an combinations of filters with OR in between?

  • How to get Custom-Content-type Column Value of a Document Library-Folder

    Hello
    I have to add a custom-column(folder-imageURL) for Folders in a Document Library.
    So I have created a Custom-CotentType "FolderCtype" with new column "folder-imageURL" and attached in the Document Library.
    Whenever I create a new folder in that document library I will select my "FolderCtype" & and then add an image url in "folder-imageURL" column.
    How do I access this image url in Code?
    part of my code is as follows.
    SPContentType cntType = List.ContentTypes["FolderCtype"];
    SPField field = cntType.Fields.GetField("folder-imageURL");  //I have Field name here//
     foreach (SPFolder folder in RtFolder.SubFolders)
                        if (folder.Name.ToUpper() != "FORMS")
                           string FolderName = folder.Name;
                          string FolderImageUrl = ?              //How can I get this????//
    Thanks in advance

    Hi, Patrickm, Thank You
    If your “folder-imageURL” column is a “Hyperlink or Picture” column, then you can get the hyperlink like this:
    SPListItem item = folder.Item;
    if (item[field.Title] != null)
    string FolderImageUrl = item[field.Title].ToString().Split(',')[0];
    Console.WriteLine(FolderImageUrl);
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support
    S H A J A N

  • MDX: how to get dimension values as columns

       
    Hi people
    firstly i apologize because i'm most certainly using the wrong terms here. My problem is that i have the query below that contains a dimension that has always two values (MONTH VALIDATION) as shown on the query and image below:
    SELECT NON EMPTY
    {[Measures].[00 - Costs €]}
     ON COLUMNS, NON EMPTY {(
    [Project Platoon].[Platoon].[Platoon].ALLMEMBERS ,
    [Financial Data Month Validation].[Month Validation Status].[Month Validation Status].ALLMEMBERS)}
    DIMENSION PROPERTIES MEMBER_CAPTION,MEMBER_UNIQUE_NAME ON ROWS
    FROM [DataCube] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    and i get a result like the one below:
    Platoon|
    Month Validation|
    Costs|
    Borg
    Open
    11
    Borg
    Closed
    99
    My question is: how can i "flatify" this so that i show
    Platoon|
    Open|
    Closed|
    Costs         |
    Borg
    99
    11
    99+11=110
    that is, transform the values of [MonthValidation] into columns ?

    your answer inspired me to arrive at this:
    SELECT NON EMPTY {
    [Measures].[00 - Costs €]
    [Financial Data Month Validation].[Month Validation Status].[Month Validation Status].ALLMEMBERS
    ON COLUMNS,
    NON EMPTY {
    [Project Platoon].[Platoon].[Platoon].ALLMEMBERS
    DIMENSION PROPERTIES
    MEMBER_CAPTION,MEMBER_UNIQUE_NAME ON ROWS
    FROM
    [DataCube]
    CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    but can you help me construct fields for a ssas 2008r2 - visual studio 2010 based report?
    i try to add one with
    FIELD SOURCE=
    <?xml version="1.0" encoding="utf-8"?><Field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Level" UniqueName="[Financial Data Month Validation].[Month Validation Status].[Month Validation Status].Closed" />
    didn't work :(

  • How to get the value of column from previous row to current row?

    Hi All,
    I am facing a critical problem in SQL query (for reporting purpose (COGNOS)). please reply to my query.
    REQUIREMENT: i want to retrive value of a column (this is not a table column, this will be calculated based expression) from previous row to current row.
    EXAMPLE:
    TABLE NAME: i have to join multiple tables. so, i am not mentioning table names here.
    DISPLAY COLUMNS in the report: item, loc, sku, beginval (not table column), endval (not table column, this will calculated based on some expressions), etc. Here, first time the value of BEGINVAL will be taken from some x column name of x table. ENDVAL will calculated based on the expression. For the next row onwards, BEGINVAL will become the value of ENDVAL and the value of ENDVAL will be calculated based on the expression and this expression uses the value of BEGINVAL.
    my report will look like below.
    ITEM LOC SKU BEGINVAL ENDVAL
    1 HYD 1-HYD 10 10+1+2 (13)
    2 HYD 2-HYD 13 13+1+2 (16)
    3 SEC 3-SEC 16 16+1+2 (19)
    4 SEC 4-SEC 19 19+1+2 (22)
    etc....
    in the above output, BEGINVAL and ENDVAL columns are not part of any table. they are alias column names.if you observe intially BEGINVAL will be assigned to some value, but from subsequent rows, BEGINVAL will become the ENDVAL of previous row.
    Please help me on how to write this query?

    Hi, please find the detail description of the problom.
    DDL (table scripts)
    ITEM
    CREATE TABLE ITEM
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    DESCR VARCHAR2(50 CHAR) DEFAULT ' ' NOT NULL,
    UOM           VARCHAR2(50 CHAR)
    SKU
    CREATE TABLE SKU
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    LOC VARCHAR2(50 CHAR) NOT NULL,
    OH float
    SKUPROJSTATIC
    CREATE TABLE SKUPROJSTATIC
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    LOC VARCHAR2(50 CHAR) NOT NULL,
    STARTDATE DATE
    VehicleLoad
    CREATE TABLE VEHICLELOAD
    LOADID VARCHAR2(50 CHAR) NOT NULL,
    DESCR VARCHAR2(50 CHAR) DEFAULT ' ' NOT NULL,
    SHIPDATE DATE DEFAULT TO_DATE('01/01/1970','MM/DD/YYYY') NOT NULL,
    ARRIVDATE      DATE
    VEHICLELOADLINE
    CREATE TABLE VEHICLELOADLINE
    LOADID VARCHAR2(50 CHAR) NOT NULL,
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    QTY float(126)
    DML scripts
    I can't provide the the DML scripts, because its very huge data.
    Main QUERY is below.
    below is the query which i have to write and execute.
    select
    i.item,
    i.descr,
    i.unitsperpallet,
    sp.loc,
    sp.startdate,
    'Crucial_IND',
    LAG (EndBal,1,0) OVER (ORDER BY STARTDATE) BeginBal,
    SP.FCSTCUSTORDERS CustOrders,
    SP.COMMITINTRANSOUT,
    SP.RECARRIV,
    SP.TOTINTRANSIN,
    (BeginBal - sp.FCSTCUSTORDERS - sp.COMMITINTRANSOUT + sp.TOTINTRANSIN ) EndBal,
    'CuttingQty',
    VLL.QTY,
    vl.source,
    vl.arrivdate,
    vl.shipdate,
    vl.loadid,
    s.oh
    from item i, skuprojstatic sp, sku s, VehicleLoad vl, VehicleLoadLine vll
    where sp.item = i.item
    and s.item=i.item
    and sp.item =s.item (+)
    and sp.loc = s.loc (+)
    and vll.item = s.item
    and vll.loadid = vl.loadid
    and to_char(sp.startdate ,'mm/dd/yyyy') = to_char(vl.arrivdate,'mm/dd/yyyy')
    and sp.loc = vl.dest (+)
    order by sp.startdate
    problem description: in the above query, BeginBal and EndBal is what i am looking for. when i execute this query, oracle throwing an error saying that alias names can't be used as expressions. For the first row, the BeginBal should be the value sku.OH and for the subsequent rows, this value will be the previous row value of EndBal.

Maybe you are looking for

  • The update installed 3 HOURS ago crashed my computer-I AM ON 3.6 AND CANNOT GO TO 8.01

    While I was on the internet, a box opened saying firefox needed to install some updates - I said OK - even though I rarely have luck with ANY updates, and this has proved to be no exception. After the update completed, everything froze or stopped res

  • Nokia Cancelled updates for X6, 5800 and 5530

    Hi, Nokia  X6, 5800 and 5530  users please Stop dreaming about Updates, Nokia was not updating these devices Please Check the below Site (Original Blog with nokia anouncement and is edited on 25-Aug-11) http://www.conversations.nokia.com/2011/06/29/u

  • Java Runtime stuck on version 6

    I just installed Oracle Java 7 runtime, but in my Terminal shell, it still seems Java 6 is the default: rMac:~ rick$ ls -l /usr/bin/java lrwxr-xr-x  1 root  wheel  74 25 Oct 22:46 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/

  • Java.lang.UnsatisfiedLinkError when loading libaries

    Hi, I coded an ejb, in which I want to call funtionality coming from a dll via JNI. In order to achieve it I copied the libary 'XXX.dll' to the windows directory system32 and call in my ejb : System.loadLibary("XXX"). The following exception occured:

  • Help with menus and variables in different classes.

    1) how do I change variables in different classes? My situation.. I have a few tabbed panels/planes, that ask for different user inputs. I want the last tabbed panel/plane to have the inputs on 1 plane. Is that confusing? Code:         JTabbedPane tp