How to show data in table on the basis of click on a row of another table

Hi All,
I want to show two tables. In first table the main objects show in turn there is another collection in that main object for which i want to show data in separate table.
e.g.,
ObjectA
  have the collection of ObjectBs
when i select ObjectA in main table then all the collection Objects of ObjectBs shows in separate table. Plz help me how to handle this case ??

hi,
You can create two value nodes for storing these collections. The first one would be singleton node as it is the main list. Under that create the second node with singleton = false.
e.g.
---NodeA
    --attrA1
    --attrA2
    --NodeB(singleton = false)
            --attrB1
            --attrB2
Now populate collection of object A in NodeA and after adding element in NodeA populate respective elements in NodeB.
IPrivate<View>View.INodeANode nodeA = wdContext.NodeAnode();
for (Iterator  it = collectionA.iterator(); it.hasNext(); )
     ObjectA objA= it.next();
     IPrivate<View>View.INodeAElement nodeAElem= nodeA.createNodeAElement();
     wdCopyservice.copy Corresponding(objA,nodeAElem);
     nodeA.addElement(nodeAElem);
     Collection collectioB =objA.getCollectionB();
     for (Iterator  it1 = collectionB.iterator(); it1.hasNext(); )
         ObjectB objB= it1.next();
        IPrivate<View>View.INodeBNode nodeB = nodeAElem.nodeBnode();
        IPrivate<View>View.INodeAElement nodeBElem= nodeB.createNodeBElement();
        wdCopyservice.copy Corresponding(objB,nodeBElem);
        nodeB.addElement(nodeBElem);
Bind NodeA to the first table and NodeB to second one.
After that when you select record in first table automatically its corresponding records will be populated in second table.
Hope this helps!
Monalisa

Similar Messages

  • How to show data value labels in the charts without moving my mouse on the data point?

    Sometimes I need to show a chart with data value labels which is not necessary to move my mouse on the data points. However, it seems Xcelsius does not support this simple feature. Any alternative ways?
    Many thanks!

    Currently, Xcelsius does not support display of labels at data points. It would be difficult to move and update labels on a chart with dynamically updated data. However, a work around for a static chart would be to add a Label component in the desired location. This can be done for multiple static charts by using dynamic visibility.

  • How to show date besides time in the topmost space?

    Hi, I can't find an option in settings to make my iPad2 show the date AND the time on the screen. Time is shown by default. Is there a way to add the date?
    Thanks.

    You can try leaving feedback : http://www.apple.com/feedback/ipad.html

  • How to show data vertical in ALV

    How to show data vertical in ALV?
    such as :
    [http://img402.imageshack.us/img402/9978/20101230215621.png|http://img402.imageshack.us/img402/9978/20101230215621.png]
    Moderator Message: Search for available information. Keywords - Dynamic Internal Table
    Edited by: kishan P on Dec 30, 2010 7:35 PM

    Transpose the contents of your internal table.
    Original:
    A 1 1 1
    B 2 2 2
    Transposed:
    A B
    1 2
    1 2
    1 2

  • How could I insert the deleted row into another table within a trigger?

    Hi,
    How could I insert the deleted row into another table within a trigger? The destination table has the same columns as the source table. Since the statements are in the trigger, it is not allowed to query the source table named 'test'. Thanks! The trigger is as follows, uncompleted:
    CREATE TRIGGER delete_trigger
    AFTER DELETE
    ON test
    FOR EACH ROW
    BEGIN
    -- How could I insert the deleted row into another table
    END delete_trigger;
    Message was edited by:
    user569548

    Hi,
    I'm not sure what's wrong there.
    I read the oracle docs about ANALYZE and ALL_TAB_COLUMNS, and did the following:
    ANALYZE TABLE my_tab VALIDATE STRUCTURE; //went ok.
    SELECT column_name
    FROM all_tab_columns
    WHERE table_name = 'my_tab'; //but no rows selected?
    This topic might not be what this thread should be about. Here I posted a new thread:
    How to get colum names of the newly created table?
    Thanks.
    Message was edited by:
    user569548

  • How many shows can I DVR at the same time?

    I just signed up for FiOS triple play with preferred HD, premium stations, 75/75 internet and phone. I was watching a show the other night and DVR'd 2 shows - got a message saying I couldn't do that. How many shows can I DVR at the same time? Can I still watch a live show while DVR's recording?
    This is SO frustrating!

    Every regular DVR has 2 tuners It can recordp to 2 shows at a time.
    If both tuners are in use,, then you can't watch anything else.
    Want to record more, get more DVRs or upgrade to Quantum.
    Lowere level has 6 tuners. THey support remote TVs and recording.
    THere agin, you can get combination of channels being watched and recorded up to 6.
    Need even more, upgrade to higher level and have 12 tuners to share.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • HT2491 how to show macintosh hard drive on the desktop

    how to show macintosh hard drive on the desktop in apple macbook pro,n how can i install my canon scaner with printer on mac,i am new user,regards,dr.m.imran

    Thank you for these directions. I just created a new user account and couldn't believe the hard drive was not viewable on the desktop. It seems by default the hard drive should always be viewable on the desktop. By having absolutely nothing on the desktop when making a new user I was freaking out thinking my Mac had a bug after the OS updates.
    Thank you for the directions on how to show the hard drive on a new user's desktop.

  • Total rowsize for table exceeds the maximum number of bytes per row (8060).

    I am trying to Creat a UserDefined Field in Marketig document OPOR Table through the script. then the warning  "Total rowsize for table exceeds the maximum number of bytes per row (8060). " is occuring ,and transcation rollback. how can i solve the problem.

    You have three ways to deal with this:
    1) make you user field smaller.
    2) check all other UDF in that table, and if you find one that your not using, delte it.
    3) Somebody told me that SQL Server 2005 will not have this problem. Maybe you can migrate.
    Best regards
    Harold Gómez V.

  • Regarding pop up menu on the right click of a row of a table in a frame

    hi to all,
    i am a naive in applet and swing.
    i have some proplem regarding table in a frame.
    actually i want to open a pop up menu on the right click of a row of a table in the frame.please send the code regarding this.

    Hi,
    You're probably better off directing this to the swing forum but a starter for ten is the use of the MouseListener interface and the boolean isRightMouseButton method.
    http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html
    Regards,
    Chris

  • Connecting Each row to another Table

    Hi
    This probably isnt the JDBC question but can some one tell me how to Connect each row of a column to another Table.
    I have a Table with two columns Name and UserID. I want to connect each UserID to another Table. like User01 will be connected to another table called burn table for user01. User 02 will be connected to another table called burn table for user 02. Each table for user01 and user02 has 3 columns: CDName, EULA, License Key.
    I read about primary and foreign keys but can some one give me a hint on this about how to start on it?
    And if i get this done, then how would i execute a SQL query command so that I can read the data for each user. I am using java Servlets.
    I am new sorry.
    -bhaarat

    i agree with you that making seperate table for each
    user is terrible and i would be ashamed to present
    this projec to anyone.
    how do you think i should design this database other
    than what i have suggested..
    i might have alredy explained what the database is
    doing but let me do that again..
    1. There are about 150 or more CD's from MS.
    2. Each user is able to burn a cd once only. for
    example if user has already burned xp pro he cant burn
    again.
    3. there are about 600 or more users(thats why making
    each table for each user is wrong, eventhough some one
    else will be doing it, instead of me).
    4. each cd has a license key associated with it.
    please suggest me how i should do this database so its
    not much of a hazzle and i dont have to pay some one
    100 an hour so fix the problems lol.okay first i am going to list out the table designs and then I am going to provide some explanations
    tblUser
    username VARCHAR PRIMARY KEY
    firstname VARCHAR
    lastname VARCHAR
    tblCD
    cdname VARCHAR PRIMARY KEY
    licensekey VARCHAR PRIMARY KEY
    eula VARCHAR or TEXT
    tblUserCD
    username VARCHAR PRIMARY KEY
    cdname VARCHAR PRIMARY KEY
    licensekey VARCHAR PRIMARY KEY
    so what's happening here...
    well we have a table for users.. since we need a unique key i am using username... this could be the
    name for someone uses to login to your system.
    there is a different table that is list of all the cds. the primary key for this one is both the name and license together.
    then there is a table that builds a relationship between the two.
    in this scheme each user may download or whatnot each cd zero or one times. you can't put a second
    download in because that will violate the primary key of tblUserCD
    now let's look at some sample data
    if the user table has this....
    username----firstname----lastname
    jsmith----------John----------Smith
    aadams-------Audrey--------Adams
    and the CD table has this
    cdname----license----eula
    Access-----12345----blah blah
    Word--------12356----blah blah
    Windows---99999---blah blah
    then we do the following queries when John wants to get Access and Windows and Audrey wants to get Word and Access.
    INSERT INTO tblUserCD(username,cdname,licensekey) VALUES('jsmith','Access','12345');
    INSERT INTO tblUserCD(username,cdname,licensekey) VALUES('jsmith',Windows,'99999');
    INSERT INTO tblUserCD(username,cdname,licensekey) VALUES('aadams','Word','12356');
    INSERT INTO tblUserCD(username,cdname,licensekey) VALUES('aadams','Access','12345');
    now if you want to get the list of program for any user (example John Smith) you just do this....
    SELECT cdname FROM tblUserCD WHERE username='jsmith'
    which gives you this
    cdname
    Access
    Windows
    there are several pluses to this design
    1) as I alluded to earlier this design prevents you putting in the same cd and license key more than once for each user
    2) You now can get a nice list of all the CD's easily.
    SELECT cdname,licensekety FROM tblCD;
    3) if you need to make any changes, like a persons username or more likely the cd stuff then it is easier to do so.. for example in your old design if you wanted to change Access to Access XP you would have to change EVERY table. in the new model you can do this in two queries.
    UPDATE tblCD SET cdname='Access XP' WHERE cdname='Access' AND licensekey='12345';
    UPDATE tblUserCD SET cdname='Access XP' WHERE cdname='Access' AND licensekey='12345';
    (actually if you set up the keys properly and to cascade changes then you would just need the one query)
    there is actually a theory for this sort of timesaving and error prevention work called normal form data.
    for your further "enjoyment" may I suggest reading this http://databasejournal.com/sqletc/article.php/1443021
    anyway hope this helps you out....
    does this make sense to you?

  • Insert missing rows from another table

    Hi
    I need to insert rows from another table if there is gaps in my transaction table. For each ärendenr there should be 5 Id status rows (1-5). Except for the fact that the inserted rows never should have higher IdStatus number then the highest value from
    the transaction for each Ärendenr. See my example below that illustrates my transaction table, Stages master and the desired result.
    Is there some t sql code that could handle this problem?
    Best regards
    Arne
    So far i have tried to solve this with the code below but it doesnt work.
    I have copied the transaction file information to the TempLogTransTimes
    and then insert into LogTransTimes
    IF OBJECT_ID('dbo.TempLogTransTimes', 'U') IS NOT NULL --Här raderas den tillfälliga tabellen
    DROP TABLE dbo.TempLogTransTimes;
    SELECT *
    INTO TempLogTransTimes
    FROM LogTransTimes
    DECLARE @TopÄrende INT
    WHILE EXISTS(SELECT * FROM TempLogTransTimes)
    BEGIN
    SET @TopÄrende = (SELECT TOP(1) Ärendenr FROM TempLogTransTimes ORDER BY Ärendenr)
    INSERT INTO LogTransTimes(Ärendenr, IdStatus, StatusNamn, SourceId)
    SELECT @TopÄrende, SM.IdStatus, SM.StatusNamn, 'Beräkning'
    FROM Statusmall SM
    FULL JOIN TempLogTransTimes LT ON SM.IdStatus = LT.IdStatus
    WHERE LT.IdStatus IS NULL
    DELETE TempLogTransTimes WHERE Ärendenr = @TopÄrende
    END
    Arne Olsson

    Hi Arne Olsson, try this..
    DECLARE @Transactions TABLE
    Id1 INT,
    IdStatus INT,
    StatusName VARCHAR(10)
    DECLARE @Stages TABLE
    IdStatus INT,
    StatusName VARCHAR(10)
    INSERT INTO @Transactions VALUES(1,1,'AA'), (1,3,'CC'), (1,5,'EE'), (2,1,'AA'), (2,3,'CC')
    INSERT INTO @Stages VALUES (1,'AA'), (2,'BB'), (3,'CC'), (4,'DD'), (5,'EE')
    ;WITH CTE AS(SELECT DISTINCT Id1 FROM @Transactions)
    SELECT Id1, IdStatus, StatusName FROM CTE, @Stages
    EXCEPT
    SELECT Id1, IdStatus, StatusName FROM @Transactions
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • How to show data from different tables in database in ADF Jdeveloper 11g R2

    Hi,
    My requirement is to display the data in the grid (html > table), the data is to be displayed from more than one table in a single grid and thereafter I am supposed to display the sum of some of the records in another table, I am confused about this, plz help.
    Rajat

    The view link is generally used to relate two view objects together in the AMs data model, for example in a master-detail relationship. If you use them properly, ADF takes care of coordinating master/detail records - for example, ensuring that the detail record has the correct FK to the master record.
    Have you read the Fusion Developers Guide for ADF? [url http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcquerying.htm#CEGJCAHC]This section, for example?
    John

  • Struts Problem :: How to show data into Grid

    hi to all..
    I am having problem in Struts/EJB. I have to show all the data of a table into a grid(Table in jsp)
    i.e. fire a query "select * from <table name >" and show the output into the respective table.
    Earlier it works fine because the table contains minimum data(500-1K) and did not take too much time to load into grid but now the data in that table goes upto 80K-90K rows and it takes too much time to populate the table.
    problem is How can I minimize the populating time of table ?
    I want solution like fetch more rows option in DB2, but my problem is how to maintain previous data into session because every time its a new request and I don't want to keep my bean into a session.

    thnx for the reply.. but the problem remains here.
    I use *"fetch first n rows only"* clause in query; In DB2 Database there is no mysql database type functionality "*Select column1,column2 from table1 +Limit n,m+*" clause which is use to fetch rows exists between n and m.
    mysql Limit clause didn't work in DB2. Here fetch first n rows only( where n starting from 0th row to the number specified) works but didn't get desirable results.

  • How to create a partition table on the basis of substring of column val

    Hi All,
    I have table
    Create table Mytable
    ( Col1 number,
    Col2 number,
    Col3 varchar2(20)
    insert into mytable values(11,2,'20110901');
    insert into mytable values(12,2,'20110902');
    insert into mytable values(13,2,'20110903');
    insert into mytable values(14,2,'20110904');
    insert into mytable values(15,2,'20110905');
    insert into mytable values(16,2,'20110906');
    Col3 data have the date value in the form of yyyymmdd format.
    I want to create a 30 partitions on the basis of day on col3.
    how can i achive this. i tried range partition but how can i get day of col3?
    any help appriciated.
    Edited by: P:) on Sep 28, 2011 5:56 PM

    Hi,
    the first point would be to use the correct data type for col3 and make it a date. Then I can see no reason why you couldn't range partition based on the date.
    Andre

  • How to show Date and Time with TimeZone

    Dear All,
    I have to show Date and Time with TimeZone abbreviation,
    for example:
    1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
    2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
    how can i show *Australia/New Zealand - Eastern time zone to AEST*,
    I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
    Appreciate your help
    Thanks
    Daya

    Dayananda wrote:
    ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
    "+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
    Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
    There is a standard source for this information although when I tried it it appears to not work.
    If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
    If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases.

Maybe you are looking for

  • How do I get sync to work again with Typekit and Creative Cloud?

    I have been using my CC apps with Typekit and it was syncing fine. Now for that last few days I am getting a sync error message. More info is useless-blames lack of an internet connection which is not accurate.  I've turned sync off and on, remove an

  • IPod Classic 120GB random crashes

    Hi, I have a iPod Classic 120GB that for the past year has been randomly crashing in the middle of playing songs. For a long time it was once in a while but then it became daily and now I can't even listen to a complete song. I've done several RESTOR

  • F-03 Profit Center

    Hi friends, I need help in transaction code F-03. When clearing 2 documents, a new document is been created and the PROFIT CENTER field is replaced by validation rules according to its GL account. Customer needs not want this substitution for F-03 an

  • Clock-in & clock-out in cources

    hello I want to check clock-in and  clock-out pepole for each business event type how to check it?

  • Get the last spool number created

    Hi, I need to get the last spool number that the system has assigned to an output ABAP list. I know that the SO_SPOOL_READ function give the information I want but I do not find the way to obtain the code. I thought that this function is an internal