How to make new column in table changing depending on other columns

hi
i have table and i want to add new column that calculate the deference between two other columns.
i create the column and i could loop in the content of the table but i could not update the entries in the new columns.
regards
Said

Hi!
did u try creating a node for the same? create a value node for the table with 3 value attrbutes, one for each column. then in the init method of that view, just create 3 arrays, setting the value in the first two array. then make use of this code for setting the difference in the thrid column
IPrivateUIView.I<valuenode> tab_node = wdContext.node<valuenode>();
for(int i= 0; i<6;i++)
     IPrivate<view>.I<valueelement> num_ele = tab_node.create<valueelement>();
     num_ele.set<valueattribute1>(num1<i>);
     num_ele.set<valueattribute2>(num2<i>);
     num_ele.set<diffvalueattribute>(num1<i>-num2<i>);
     wdContext.node<valuenode>().addElement(num_ele);
this will surely work .
Do let me know the results.

Similar Messages

  • How to make New Document and Upload Document to have same Content Type in Document Library in Sharepoint 2010

    Hi,
    How to make 'New Document' and 'Upload Document' to have same content type(Custom) in Document Library in Sharepoint2010.
    Note : I have created custom Content Type since I have custom columns along with upload column..
    Regards, Shreyas R S

    go to library settings 
    Change new button order and default content type
    set your custom content type to be #1
    when you upload new document it will automatically have your custom content type
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • How to make new line in JButton.setText()?

    how to make new line in JButton.setText()?
    I want to set the text of jbutton in tow line ,as follows
    | jbutton-line1 |
    | xxxxxxx-line2 |
    i konw i can jbtton.settext("<html>line1<br>line2</html>");
    but i find it's ugly using html,
    is there anyother way to create new line in JButton's Text

    As for the above comment....
    I thought the question was well purposed. Using HTML was not acceptable in this instance, which was made clear, so why critisize his comments? "Using HTML" is a poor solution, it does NOT work in many instances due to browser, OS variations. Usually the "common answer" is never a COMPLETE answer.
    Possible Solution:
    Use JLabels to render the text on the button.
    import javax.swing.*;
    import java.awt.*;
    public class ButtonMaker {
    public static void makeButton(JButton jb, String[] titleList) {
    jb.setLayout(new FlowLayout());
    for (int i = 0; i < titleList.length; i++) {
    JLabel tmpLabel = new JLabel(titleList);
    tmpLabel.setForeground(Color.black);
    jb.add(tmpLabel);
    public static void clearButton(JButton jb) {
    Component[] cList = jb.getComponents();
    for (int i = 0; i < cList.length; i++) {
    if (cList[i] instanceof JLabel)
    jb.remove(cList[i]);
    Known Limitations:
    1. Flowlayout does not work well with single line text buttons... perhaps another layout manager may work better for various buttonsizes-linenumber combos.
    2. Mac OSX : The default UI for Mac OS X (and above it seems), is to have rounded edged buttons. These rounded edges are destoryed when using JLabels, leaving a square, blocky button in its place.
    POSSIBLE SOLUTION:
    (this is ugly and time consuming)
    - create images of the button with text on them.

  • Wanted to know how to make new mailboxes in e mail.

    Wanted to know how to make new mailbox in e mail.

    If you are on iOS 5+ and it's an IMAP type account then you should get an Edit button at the top of the list of folders that you currently have on your email account. If it's a POP type account then you won't get the Edit button, and you are limited to the folders that you currently have.

  • How to make records  to the table TRFCQIN

    hi all,
    anyone can tell me
    how to make records  to the table TRFCQIN
    regards

    Hi Wanna,
                    Write a module pool program to enter record into table TRFCQIN.
    Take fields to which u want to make entries in module pool.
    Use insert command to append data in table TRFCQIN.
    Refer this code :
    CASE OK_CODE_101.
    WHEN 'SAV1'.
    TRFCQIN-QNAME = 'XYZ'.
    TRFCQIN-QCOUNT = "Screen field name at which user will enter value
    INSERT TRFCQIN.
    if sy-subrc <> 0.
    message e007.
    else.
    clear TRFCQIN.
    clear ok_code_101.
    endif.
    endcase.
    Reward points if helpful.
    Regards,
    Heamnt

  • How to make new RPD online

    Hi All,
    Please tell me how to make an rpd online.
    In my development environment, there is already one RPD online.
    Now I am creating another RPD and want to make it online and create a answers report based on my RPD.
    Please tell me hw to replce existing online rpd with my newly created rpd.
    I would like to know the steps..
    Environment details in my development are as below;
    I have BI server on separate server machine. The current BI server is pointing to an RPD pointing to oracle EBS datasource
    On my own laptop I have BI Admin tool installed. I am creating another rpd based on planning database (Essbase DB). I want to replace current online rpd (pointing to EBS) with my new Rpd (pointing to Essbase DB). and then create a report on Essbase datasource.
    Thanks and Regards
    Santosh

    Hi Santhosh,
    1. Intially, stop your services -> Oracle bi server, Oracle bi presentation server.
    2. Open BI Administration tool -> File -> Create new rpd -> give some name say 'test' with no physical, bmm, pres. layers.
    3. Niow - Open C:\oraclebi\server\repository ----- Here you can view your rpd (to confirm)
    4. Now - Open C:\Oraclebi\server\config ---- Here you can view 3 files
    5. Right click on Nqs Config file and open it.
    6. You will find a section called [Repository] under which by default it has Star     = samplesales.rpd, DEFAULT;
    7. Now, Comment the above one by adding '#' symbol in front of it.
    8. Within the same section write the following Star=test.rpd,DEFAULT; Save the Nqs File.
    9. Now - open C:\oraclebidata\web\catalog and create a new folder 'test' - this is catalog folder where your reports gets stored.
    10. Open C:\oraclebidata\web\config --- Open Instanceconfig file.
    By Default you can view that catalog path --- pointing to Samplesales
    <CatalogPath>C:/OracleBIData/web/catalog/samplesales</CatalogPath>
    Change it to: <CatalogPath>C:/OracleBIData/web/catalog/test</CatalogPath>
    11. Save instance config file.
    12. Restart your services - oracle bi, oracle bi presntation server and now you can also open rpd in online or offline mode (i.e. your rpd 'test')
    Thank you....

  • HOW TO MAKE THE FIELDS ON TABLE CONTROL SCREEN FIXED!!

    Dear all,
    Can you please tell me as to how to make the fields on the table control screen fixed (not respond to the scroll bar) i.e. simillar to MC88 screen , the first two fields are fixed and don't respond to the scroll.
    Please Help!!!!
    Vj

    Hi
    In TC, goto attributes and set 'Fixed columns' as 2. This will fix the first 2 columns.
    Regards
    Navneet

  • How to make two matrix and table into same group in SSRS

    Hi
    i need to dispaly to dispaly data  matrix and table .  but matrix data on first page and table data on second page.
    how to achive this . if i give pagebreak for every new instance for matrix, only matrix data is getting dispalyed in one page and on the second page seocond record date is getting displayed. after all matrix data is displayed ( in separate pages) , table
     data is being dispalyed.
    but i want to display matrix data on first page and table data on the second page for the first record. for second record  also it should display matrix data on 3rd page and table data on 4th page etc..
    i mean how to make matrix and table data as same group. so that i can set "page break for new instamce" etc..
    how to achive this in SSRS2008

    Hi Ramkanuganti,
    From your description, you want to group both the matrix and table on the same field and add a page break between the two controls for each instance at run time.
    To achieve your goal, we can display the matrix in a list and display the table in a nesting list. Please refer to the steps below:
    Drag a “List” to the design surface. Drag the matrix into the top of the list (list1).
    Drag a “”List” to the list1, under the matrix. Drag the table into the nesting list (list2).
    Select “list1” and open the “Group Properties” from the “Row Groups” pane. Add the field on which you want to group the data. In the “Page Breaks” tab, select the “Between each instance of a group”.
    Repeat step 3 to configure the “list2” using the same field. Additionally, please also select the “Also at the start of a group” option.
    For more information about how to work with list, please refer to:
    Adding a List
    If you have any further questions, please feel free to ask.
    Regards,
    Mike Yin

  • How to make new database connection using Oracle BI Interactive Dashboards

    Hi,
    I install Oracle BI Intelligence on my system.
    I am using Oracle BI Interactive Dashboard. Here we have default database connection.
    but now i want to use it for my own database. Can any body give me guideline how to
    make a new data base connection using this s/w or how to connect to my database so
    that i can make my own reports.
    I am using
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    this link.
    i make odbc connection which is fine.
    but
    Restoring the Business Intelligence Presentation Catalog and Updating Metadata
    The third point blow above heading is not clear.
    Thanks

    Umesh - in order to build Answers and Dashboard content you must first setup a Physical model, then a Business model, followed by a Presentation Catalog/Subject Area.
    All these tasks are carried out using the Repository Administration Utility.
    1) Import your physical tables using OCI/ODBC into the physical layer.
    2) Build your model
    3) Deploy
    Then you're ready to start building answers/dashboards.
    Good Luck.

  • How to make a JTree respond to changes in the Hashtable

    Hi,
    Can anyone give the classes and methods from which I can make the JTree reflect to changes in the Hashtable. Im using the hashtable to construct a JTree but changes in hashtable are not reflected to the JTree.
    I used tree.updateUI(). It works if I insert to a collapsed node. In case a node is expanded and if I add a node to it through the Hashtable it does not reflect.
    Thanking u,
    Karan.

    A JTree will reflect changes made to its model if this model does fire the appropriate events. So, make sure to update the tree's model whenever necessary. See also [How to Use Trees|http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html].

  • How to make new item show in ASCP Plan workbench.

    Item ATT.BVL3AHY is a new item without any demand. At item master, it is set as Planned so it is collected by ASCP. The item can be found in msc.msc_system_items with Plan_id -1. Plan id -1 corresponds to Collection. Planner needs to manuallty add planned order for this item at ASCP workbench of plan WIRELINE (PLAN_ID 3002) as attached but as the item cannot be found in WIRELINE plan, planner cannot add it. Please let me know how to make this item show in WIRELINE Plan workbench.

    Run this query:
    select mrp_planning_code from msc_system_items where item_name like '<Item_Name>' and organization_id = <Org id> and plan_id = -1
    If this returns 7 you dont need to run any collections.
    If this returns other than 7 then,
    create a simulation set under Item Attributes Mass Maintenance and then update the attribute MRP Planning method for this item to MRP/MPP Planning. Assign Simulation set to plan name and then rerun the plan. It should work.
    If you are still facing an issue, then raise an SR with Oracle.

  • How to make data in a table availabel for copying?

    I'm trying to display a result set in a table, so that they could be copy-pasted to another file (be that a text file, an Excel spreadsheet or anything). The table comes out okay. But, as I try to copy the data, nothing is copied. So, I want to know how to make the data in the table available for copying. Thanks!

    This is exactly what I'm trying to do. The problem is that the data just doesn't get to the clipboard. No matter how hard I try clicking Ctrl-C, it's just not there. When I press Ctrl-V it's not pasted. Why? And how can I correct this problem? Maybe there is some property in JTable class that I have to set as 'true'?

  • How to make entry in a table e.g. vbak table

    how make entries in a table.
    what is the procedure.
    can i do it in  production directly?

    >
    Vijay Babu Dudla wrote:
    > it is not possible to do it directly in production. if you do that you will loose your job, don't practice those on production.
    More than loosing you job you are violating the contractual terms with SAP. You will simply loose all Support from SAP.
    I wonder how an ABAPer got a uid in Proction Server. Its a strict no-no in our organization.
    pk

  • Scripting Bridge and Powerpoint, how to make new slide?

    I know how to make a new slide in an active presentation in Powerpoint. It works like this:
    tell application "Microsoft PowerPoint"
    set newSlideC to make new slide at before slide 2 of active presentation ¬
    with properties {layout:slide layout media clip and text}
    end tell
    (I stole this snippet from http://www.mactech.com/vba-transition-guide/index-094.html)
    Now I would like to do the same via Scripting Bridge in my Cocoa app.
    But I seem to be unable to find the appropriate classes, objects, methods, or properties in Powerpoint.h
    (which I created with this command:
    sdef /Applications/Microsoft\ Office\ 2008/Microsoft\ PowerPoint.app | sdp -fh --basename Powerpoint
    According to Script Editor's dictionary of Powerpoint, the "make" command is in the 'Standard Suite'.
    But I have no idea how to find it's defintion, let alone how to use it from my Cocoa application.
    Could somebody please give a hint to me?
    Since I'm not (yet) subscribed to the applescript-users mailing list, I am taking the liberty to post my question here.
    Thanks a lot in advance.
    Best regards,
    Gabriel.

    Hello
    You need to alloc and init to make an object instance in Scripting Bridge.
    See the following documents.
    Scripting Bridge Programming Guide for Cocoa
    http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ScriptingB ridgeConcepts/
    Scripting Bridge Framework Reference
    http://developer.apple.com/mac/library/documentation/ScriptingAutomation/Referen ce/ScriptingBridgeFramework/
    Some sample codes
    http://developer.apple.com/mac/library/samplecode/SBSendEmail/
    http://developer.apple.com/mac/library/samplecode/SBSetFinderComment/
    http://developer.apple.com/mac/library/samplecode/ScriptingBridgeFinder/
    http://developer.apple.com/mac/library/samplecode/ScriptingBridgeiCal
    As for your example, code would be something like this.
    NOT TESTED AT ALL. AND PROBABLY IT'S WRONG IN PARTS.
    Just for showing the outline, hopefully.
    PowerPointApplication *powerpoint = [SBApplication applicationWithBundleIdentifier:@"com.microsoft.powerpoint"];
    [powerpoint activate];
    PowerPointSlide *s = [[[powerpoint classForScriptingClass:@"slide"] alloc]
    initWithProperties:
    [NSDictionary dictionaryWithObjectsAndKeys:
    @"slideLayoutMediaClipAndText", @"layout",
    nil]];
    [[powerpoint.activePresentation slides] insertObject:s atArrangedObjectIndex:0];
    Good luck,
    H
    Message was edited by: Hiroto (fixed typo)

  • How to fire "table change" once click other regions outside the table erea?

    I have a JTable created with DefaultTableModel. Usually the edit behavior of table cell is like this:
    1) Select one cell, it is highlighted in blue.
    2) Double click the cell, it's made editable with white background.
    3) Two scenarios
    (a) Once finish edit, press "Enter", the cell background turns from white to blue. At the same time, the table change is "fired" .
    (b) Once finish edit, click another cell, the originall cell turns white, and the new-clicked cell is highlighted in blue. At the same time, the table change is "fired".
    4) While editing one cell, and click somewhere OUTSIDE the table area. In this case, the table change is NOT fired.
    [This cause a confusion, user sees the changed text in table cell, but actually it is not stored and will not be stored in the table.]
    So what I want to implement is: once click the region outside the table, the text in that editabe cell (where you are just editing) is stored and fired.
    Can you help me? Thanks in advance!

    sabre150 & other experts,
    [see background in my first message]
    User is still not completely satisfied with the current behavior, though "table changed" can be fired when clicking other controls(eg. buttons or checkboxes).
    If I click a panel region(instead of a particular control), the "table changed" can not be fired. However, it is expected.
    I guess the reason is:
    a panel doesn't has a focus. so when clicking panel, the focus is not "lost" to the table cell.
    Any hints?

Maybe you are looking for