Table layout w.r.t other tables and text while inserting/deleting rows.

I have 3 tables in a single page. One is left aligned and other two are right aligned. Then there is some text below the tables. 
Now when I delete some rows from Table-1 the left aligned one, the Table 2 and text shift up filling the space below Table1.
Now I don't want the text/table to shift up/down when I add/delete rows from Table1 i.e Table1  should expand/contract in the empty space below it.
Now If I do the same thing for Table3 (Right aligned one) i.e add/delete rows there is no effect on text as shown :
All 3 tables are same and have exact positioning and other properties.
Please suggest any solution as I would be populating the table through word automation service (interop).

Another approach would be to use nested tables, with your 'outer' table having two columns and the inner tables going into different columns. You can hide the outer table's cell borders so its presence is less apparent. If the Outer table has auto row
height, it will adjust to accommodate whatever row addition/deletion you do to the inner tables. The only proviso is that the inner tables shouldn't have 'around' text wrapping. The two rhs tables can go into the same cell - all they need is a separating paragraph.
With this layout, the text will always remain below the outer table.
Cheers
Paul Edstein
[MS MVP - Word]

Similar Messages

  • How to display records from base table as well as some other table?

    Hello expert,
    I have a requirement to develope a form described below:
    One control block and database block.
    DB block  is based on table T1 (USER, Table_name, Column_name, ACCESS);
    In control block, there are three fields,
    User, Table user will enter , and DB block will query based on control block fields(user, table_name).
    In table it is not necessary that all the columns of any table will be given.
    suppose there is a Table X consist of 10 column.
    Initially user give access for all the 10 columns through this form.
    if we query for user , table, all the record will come from table T1.
    now consider the case, when access given to table X number of columns were 10. after that 2 new columns added later.
    now there is no info of added column in table T1. i want if user query DB block, these newly added column must display in DB Block.
    Please help me out.
    Thanks
    Dhirender

    >i want if user query DB block, these newly added column must display in DB Block.
    You need to modify your form and add the two columns as base table items. Forms does not add two base table items by itself.

  • Deleting rows from table based on value from other table

    Hello Members,
    I am struck to solve the issue said below using query. Would appreciate any suggestions...
    I have two tables having same structures. I want to delete the rows from TableA ( master table ) with the values from TableB ( subset of TableA). The idea is to remove the duplicate values from tableA. The data to be removed are present in TableB. Catch here is TableB holds one row less than TableA, for example
    Table A
    Name Value
    Test 1
    Test 1
    Test 1
    Hello 2
    Good 3
    TableB
    Name Value
    Test 1
    Test 1
    The goal here is to remove the two entries from TableB ('Test') from TableA, finally leaving TableA as
    Table A
    Name Value
    Test 1
    Hello 2
    Good 3
    I tried below queries
    1. delete from TestA a where rowid = any (select rowid from TESTA b where b.Name = a.Name and a.Name in ( select Name from TestB ));
    Any suggestions..
    We need TableB. The problem I mentioned above is part of process. TableB contains the duplicate values which should be deleted from TableA. So that we know what all values we have deleted from TableA. On deleted TableA if I later insert the value from TableB I should be getting the original TableA...
    Thanks in advance

    drop table table_a;
    drop table table_b;
    create table  table_b as
    select 'Test' name, 1 value from dual union all
    select 'Test' ,1 from dual;
    create table table_a as
    select 'Test' name, 1 value from dual union all
    select 'Test' ,1 from dual union all
    select 'Test' ,1 from dual union all
    select 'Hello' ,2 from dual union all
    select 'Good', 3 from dual;
    /* Formatted on 11/23/2011 1:53:12 PM (QP5 v5.149.1003.31008) */
    DELETE FROM table_a
          WHERE ROWID IN (SELECT rid
                            FROM (SELECT ROWID rid,
                                         ROW_NUMBER ()
                                         OVER (PARTITION BY name, VALUE
                                               ORDER BY NULL)
                                            rn
                                    FROM table_a a
                                   WHERE EXISTS
                                            (SELECT 1
                                               FROM table_b b
                                              WHERE a.name = b.name
                                                    AND a.VALUE = b.VALUE))
                           WHERE rn > 1);
    select * from table_a
    NAME     VALUE
    Test     1
    Hello     2
    Good     3Edited by: pollywog on Nov 23, 2011 1:55 PM

  • Update table based on values from other table

    Hi,
    I am trying to update one table based on the values of another table. Since you can't use From in update statements, how do you execute this?
    For example i have to tables, Table A and Table B. I want to update a column or columns in Table A based on another value in Table B:
    So if the column in Table B was 1 then column in Table A would be Yes, if Table B was 2, then Table A would be Yes, if Table B was 3 then Table A would be N/A and so on...
    Any help would be appreciated.
    thanks,
    scott

    SQL> select * from t1;
    ID ST
    1
    2
    3
    SQL> select * from t2;
    NO
    1
    2
    3
    4
    SQL> update t1 set status=(select decode(no,1,'Y',2,'N','NA') from t2 where t1.id=t2.no);
    3 rows updated.
    SQL> select * from t1;
    ID ST
    1 Y
    2 N
    3 NA
    Daljit Singh

  • HT204053 Our family uses one Apple ID for all of our iPhones.  We installed the update and now we are all getting each others photos and texts.  How do we stop this?

    Our family uses one Apple ID for all of our iPhone 5's.  We installed the update and now we are all receiving each other's pictures and texts.  How do we stop this? 

    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • Help, lost all photos and texts while syncing new iphone

    While syncing my husbands new iphone 3 on itunes I gained all the music but lost all photos and texts... also all the apps and contacts from my iphone were added to his phone. Need help mostly on how to recover the photos that were deleted, there were about 1,000 of them and I didn't realize it was happening until it was too late....

    Where did the photos come from in the first place?
    You computer?
    His computer?

  • Is there a way to create a table then apply it to other sheets and have it mirror changes across all the sheets? Like a sync'ed table that will be the same on multiple sheets

    I have a budget spreadsheet with a couple recurring tables. As months go by, I sometimes make changes to these tables and would like those changes to be synced across the different sheets in the spreadsheet. Is there a way to sync content across multiple pages, essentially having one true table that appears on multiple sheets?

    Abdur,
    In the sheet :: table :: cell that is going to receive the data, type an equals sign, then click on the cell that the data will come from and press Return.
    This will require that you navigate to the origin cell by choosing the proper sheet.
    Jerry

  • Insert Records in one table that's not in other table

    Really need your help, I have spent the last five hours on the following code, but can't get it working. What I want done is INSERT records in persons where the same records do not exist in table new_person.
    see the below error: rror at Command Line:1 Column:441
    Error report:
    SQL Error: ORA-00936: missing expression
    00936. 00000 - "missing expression"
    INSERT INTO person (last_name, first_name, mi, full_name, id_number, rank, rank_value, temporary, group_number, status, classification, hire_date, unit_code, phone_update, agency, username, agencycourtcode) select last, first_name, mi, full_name, id_number, rank, rank_value, temporary, group_number, status, classification, hire_date, unitcode, phone_update, 'MSP', 'MSP'||id_number, 'MSP' from new_person a where a.status= 'Active' AND where not exists (select last_name, first_name, mi, full_name, id_number, rank, rank_value, group_number, status, classification, hire_date, unit_code, phone_update, agency, username, agencycourtcode from person where a.id_number = person.id_number);

    Please post your code using tags as this is pretty much unreadable.  See instructions here: http://forums.oracle.com/forums/help.jspa
    But it looks to me like your INSERT has 16 columns and your SELECT has 17, so you probably have something misaligned.
    Also, you have AND WHERE NOT EXISTS, change it to AND NOT EXISTS.
    Also, the select list in your NOT EXISTS subquery doesn't need all those columns.  Just do a SELECT 1.  Oracle doesn't care about the columns only whether a row exists.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Column values in table equal column names in other table (unpivot? cross apply?)

    2 tables:
    CREATE TABLE Requirement
     reqID int IDENTITY(1,1) PRIMARY KEY,
     req_result_id numeric(10,0) NOT NULL,
     description varchar(200),
     heading varchar(100),
     GO
    INSERT INTO Requirement VALUES (5296,'Cold pack','HH19_5');
    INSERT INTO Requirement VALUES (5296,'Band-Aids','HH19_6');
    INSERT INTO Requirement VALUES (5296,'First aid cream','HH19_7');
    INSERT INTO Requirement VALUES (5296,'Tape','HH19_8');
    INSERT INTO Requirement VALUES (5296,'Gloves','HH19_9);
    INSERT INTO Requirement VALUES (5296,'Bandages','HH19_10');
    INSERT INTO Requirement VALUES (5296,'Hand sanitizer','HH19_11');
    INSERT INTO Requirement VALUES (5296,'Scissors','HH19_12');
    INSERT INTO Requirement VALUES (5296,'Poison control information','HH19_13');
    INSERT INTO Requirement VALUES (5296,'Name','HH02');
    GO
    CREATE TABLE Response
     respID int IDENTITY(1,1) PRIMARY KEY,
    req_result_id numeric(10,0) NOT NULL,
     HH02 varchar(200),
     HH19_5 varchar(20),
     HH19_6 varchar(20),
     HH19_7 varchar(20),
     HH19_8 varchar(20),
     HH19_9 varchar(20),
     HH19_10 varchar(20),
     HH19_11 varchar(20),
     HH19_12 varchar(20),
     HH19_13 varchar(20),
     GO
    INSERT INTO Response VALUES (33,'Mary',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (35,'Barbara',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (144,'Melissa',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (146,'Missy',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (5296,'Pamela',7,8,9,10,11,12,13,14,15);
    GO
    Result:
    description
    heading
    response
    Name
    HH02
    Pamela
    Bandages
    HH19_10
    12
    Hand sanitizer
    HH19_11
    13
    Scissors
    HH19_12
    14
    Poison control information
    HH19_13
    15
    Cold pack
    HH19_5
    7
    Band-Aids
    HH19_6
    8
    First aid cream
    HH19_7
    9
    Tape
    HH19_8
    10
    Gloves
    HH19_9
    11
    For now, I'm using where req_result_id = 5296. Only one row from the Response table is selected.
    I'm playing with unpivot and cross apply. I might use two CTE's but am not yet sure how to join them. I would just like to see what others here suggest.
    I only need help with T-SQL - not table design.
    Let me know if you need more info or if I need to reformat the expected output to make it legible.
    Thanks for any suggestions.

    CREATE TABLE Requirement
    reqID int IDENTITY(1,1) PRIMARY KEY,
    req_result_id numeric(10,0) NOT NULL,
    description varchar(200),
    heading varchar(100),
    GO
    INSERT INTO Requirement VALUES (5296,'Cold pack','HH19_5');
    INSERT INTO Requirement VALUES (5296,'Band-Aids','HH19_6');
    INSERT INTO Requirement VALUES (5296,'First aid cream','HH19_7');
    INSERT INTO Requirement VALUES (5296,'Tape','HH19_8');
    INSERT INTO Requirement VALUES (5296,'Gloves','HH19_9');
    INSERT INTO Requirement VALUES (5296,'Bandages','HH19_10');
    INSERT INTO Requirement VALUES (5296,'Hand sanitizer','HH19_11');
    INSERT INTO Requirement VALUES (5296,'Scissors','HH19_12');
    INSERT INTO Requirement VALUES (5296,'Poison control information','HH19_13');
    INSERT INTO Requirement VALUES (5296,'Name','HH02');
    GO
    CREATE TABLE Response
    respID int IDENTITY(1,1) PRIMARY KEY,
    req_result_id numeric(10,0) NOT NULL,
    HH02 varchar(200),
    HH19_5 varchar(20),
    HH19_6 varchar(20),
    HH19_7 varchar(20),
    HH19_8 varchar(20),
    HH19_9 varchar(20),
    HH19_10 varchar(20),
    HH19_11 varchar(20),
    HH19_12 varchar(20),
    HH19_13 varchar(20),
    GO
    INSERT INTO Response VALUES (33,'Mary',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (35,'Barbara',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (144,'Melissa',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (146,'Missy',7,8,9,10,11,12,13,14,15);
    INSERT INTO Response VALUES (5296,'Pamela',7,8,9,10,11,12,13,14,15);
    GO
    ;with mycte as (
    select respID,req_result_id,response,heading from Response
    cross apply (values
    ([HH19_5],'HH19_5')
    ,([HH19_6],'HH19_6')
    ,([HH19_7],'HH19_7')
    ,([HH19_8],'HH19_8')
    ,([HH19_9],'HH19_9')
    ,([HH19_10],'HH19_10')
    ,([HH19_11],'HH19_11')
    ,([HH19_12],'HH19_12')
    ,([HH19_13],'HH19_13')
    ,([HH02],'HH02') ) d(response,heading)
    WHERE req_result_id=5296 )
    select description,r.heading,response from Requirement r
    inner join mycte m on r.req_result_id=m.req_result_id and r.heading=m.heading
    Order by Case When len(r.heading)=4 then 1 Else 2 END, Len(Replace(r.heading,'HH19_','')) desc
    drop table Requirement,Response

  • Order price unit(MEBPR) in table WAKP fetched fom which other table or tcod

    Hi Experts,
         In one of my article in wak12, we observed that sales unit(mebme) and order unit(mebpr)  are coming different.
         They both should be same.
         I debugged and found that oredr unit and sales unit are fetched from standard table WAKP.
         Coudl you please guide me from where purchase order unit(MEBPR)  is been read/fetched and inserted into
         WAKP table.

    Hi,
    do the following code.
    data : kbetr like konv-kbetr.
    select single * from vbap where vbeln = orderno.
    if sy-subrc eq 0.
    select * from vbap where vbeln  =  vbak-vbeln.
    select single * from konv where KNUMV = vbak-knumv and
                                                  kposn = vbap-posnr and
                                                  kschl = dis_type.
    kbetr  =  konv-kbetr / 100.
    endif.
    endif.
    Regards,
    Morris Bond.
    Reward Points if Helpful.

  • Updating table with query of 2 other tables?

    Greetings
    I apologize in advance if this seems too easy to do- but I am missing something.
    I have 8000 records in an Access DB (I know- it's going into SQL soon) in which all  the departmental office IDs need to be updated.
    The column in the main table  is named "q_office_ID".
    The user table includes  user_ID &  office_ID.
    The office table also includes office_ID.
    This UPDATE sets all the values to the number 10?:
    <cfquery name="update" datasource="#Request.BaseDSN#">
    SELECT     queue_ID, q_user_ID, user_ID, office_ID
    FROM     main_helpdesk, lookup_user
    WHERE  q_user_ID = user_ID
    </cfquery>
    <cfloop query="update"><cfquery name="updatedata" datasource="#Request.BaseDSN#">
    UPDATE main_helpdesk
    SET q_office_ID = #office_ID#
    </cfquery></cfloop>
    I know there is something obviously wrong with the update- any help would be greatly appreciated.
    Thank You

    Actually, it was:
    <cfquery name="update" datasource="#Request.BaseDSN#">
    SELECT queue_ID, q_user_ID, user_ID, office_ID
    FROM main_helpdesk, lookup_user
    </cfquery>
    <cfloop query="update">
    <cfquery name="updatedata" datasource="#Request.BaseDSN#">
    UPDATE main_helpdesk
    SET q_office_ID = #office_ID#
    WHERE q_user_ID = #user_ID#
    </cfquery></cfloop>
    My mistake.

  • Getting error while inserting a row in a table

    Hi,
    The following error occurs when one of my enduser is trying to enter record into a table
    <b>Error: Insertion of Infotype 1032 (return code 3) </b>
    There are no records in the table at all.. what could be the reason and why the error occurs?
    Thanks in advance
    Regards,
    Suresh

    Hello Suresh,
    in which table... did you get a dump?
    What is the ORA-error? Is a trace or an alert.log entry generated?
    Your information is insufficient to solve the problem
    Regards
    Stefan

  • Moving Columns in Table Layout

    Hi,
    I'm newbie to Disco.Is there any short cut to move columns the way we want in Table Layout or we've to manually move column by column?
    Thanks,
    Kiran

    Hi,
    I'm newbie to Disco.Is there any short cut to move columns the way we want in Table Layout or we've to manually move column by column?Not really, though it is often helpful to drag the columns you want to move into page items first before dragging them down to place required in the table layout.
    Rod West

  • How to del table ref in other table .

    Dear all,
                i was deleteing a table which was refrenced in other table , so it was asking me to del the fk then delete the table.
    is there any way exists, to del the table and its relation used in other tables.
    yours sincerley

    You can try one of the solutions provided in this thread:
    http://stackoverflow.com/questions/15107238/how-can-i-drop-a-table-if-there-is-a-foreign-key-constraint-in-sql-server

  • .click on row works with php table - does not work with javascript table.

    Howdy,
    I've run into a very interesting problem today, and I hope you'll be able to help me.
    I have a page in which the top is php to read a table from the server, and post the table as the html page is being built.
    The data come up as a table, and each row is clickable, that click moving the user to a different page, based on the row clicked.
    Here are the relevant parts of the php code:
    <?php
    echo "<table id='patienttable' cellpadding=5px border=0 font-size=16px>";
    echo "<tr><th width='30'>"."ID#"."</th><th width='100'>"."Last Name"."</th><th width='100'>"."First Name"."</th><th width='100'>".
    "Middle Name"."</th><th width='80'>"."DOB"."</th><th width='50'>"."Zip"."</th><th width='50'>"."Gender"."</th><th width='100'>".
    "Phone"."</th></tr>";
    while ($row = mysqli_fetch_array($result))
    blah blah blah
    echo "<tr><td id='localid'>".$localid. "</td><td>".$lastname. "</td><td>".$firstname. "</td><td>".$middlename."</td><td>".$dob."</td><td>".$physzip. "</td><td>".$gender."</td><td>".$phone1.       "</td></tr>";
      echo "</table>";
    ?>
    And here is the code to click on a row:
    $("#patienttable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = "root.php"}
    EVERYTHING works great - no problems - working now for about 2 months.
    Today I started to build something similar, BUT! I cannot read from the database at the top of the page, I must do an ajax query, call the db, and post the data in a table;
    Here is the boring, fairly straight-forward javascript code:
    $.ajax({
        type: "POST",
        url: "findpatientbackend.php",
        data: {letterslastname: lastname},
        dataType : 'json',
        success: function(result) {
      $("#div1").html("");
            if(result.length >= 1)
       {var output = "";
             $("div1").html("<table id='findtable'>");
              $.each(result, function(index, value) {
                                                     output += "<tr><td width='100px'></td><td id='localid' width='100px'>"
                 + value.localid + "</td><td width='100px'>"
                 + value.lastname + "</td><td width='100px'>"
                 + value.firstname + "</td><td width='100px'>"
                 + value.middlename + "</td><td width='100px'>"
                 + value.dob + "</td></tr>";
                $("#div1").html(output);
             $("div1").html("</table>");  
        error : function() { alert("error on return"); }
    And here is the click row code, almost EXACTLY like the one above:
    $("#findtable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = '../root.php'}
    All the "stuff" loaded onto the page just fine, BUT, absolutely nothing happens when I click a row.
    Playing around this afternoon, I did a "View Source" on both pages, and saw something VERY interesting;
    1 - The table written by PHP is present, can be seen, and therefore is "clickable" to the jquery .click function.
    2 - The table written by javascript is INVISIBLE! I cannot see it in the source view (but I can see it on the screen) and therefore the .click function can't see it either.
    Questions:
    1. How can I make the table written in javascript "clickable" - how can I make the javascript table "visible"?
    2. Could it be the use of ".html" to post the table to the div? Is there another way?
    And again, I thank you in advance for any help.

    I found the solution to my problem, and perhaps my comments here will help others.
    Thinking a bit more, I wrote a separate javascript routine that created a table, allowed it to be styled, and allowed it to be clickable.
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
    <style>
    #findtable {
    width:200px;
    background-color:#CFD3FE;
    margin:10px auto;
    text-align:center;}
    </style>
    <body>
    <div id="puttablehere"></div>
    <script>
    $(document).ready(function () {
    var output = "<table id='findtable'>";
    for (var i = 0; i<15; i++) {output += "<tr><td width='100px'>X</td><td id='localid' width='100px'>X</td></tr>";}
    output += "</table>";
    $("#puttablehere").html(output);
    $("#findtable tr").click(function(e) { alert("it works!"); });
    </script>
    </body>
    </html>
    The initial code I posted was creating the table the wrong way.
    You have to create the WHOLE table at the same time, and post it all at once.
    The code above does that.
    My learning points are:
    1. To create a table in javascript, and post it with a $("#puttablehere").html(output); call, you must put the ENTIRE table into that single string variable called "output" (or whatever you want to call it).
    2. Everytime you call a jqeury .html function like this: ---("#puttablehere").html(output); -- It COMPLETELY over-writes the whole div/tr/td block that it is pointed at.
    3. If you create a table in javascript (client side) you cannot see it with "View Source" - because what is posted in the table is AFTER the DOM is loaded.
    Creating a table with php server side - you CAN see, because it is posted with the DOM.
    So I thank you for your ideas, and I hope this may help another noob, such as myself, in the future.
    Adios!

Maybe you are looking for

  • HT1338 Help Please! WON'T UPDATE!!!!!

    on my mac, i can't do this! I don't even have the app store on my mac! I do the software update and it says no updates available but it is in Version: 10.6.8 i think... i need to update it and it wonk work PLEASE HELP! It is the earlyier version of t

  • Using orcl:query-database to return a number of Columns

    I have a BPEL process that is pulling data from some Database tables everything is working fine. I now need to perform a lookup on the database to pull in some additional information (3 additional attributes) within the stylesheet, where each attribu

  • Problem wirh cascaded popups in spaces custom taskflow...

    Environmen*t Webcenter PS4 Page 1 raises Popup 1-> Which in turn raises Popup 2. Page 1 -> Popup 1 -> Popup 2 Problem I am having issues with multi-level popups in my ADF taskflow that I have deployed to my Webcenter Spaces environment. When I run th

  • Opening FLV files using Adobe Flash Player 10.3.181.23

    Hello I have with me a few FLV files from YouTube - so i had searched that Flash Players could open such files. I'd like to enquire if this version of Flash Player 10.3.181.23 does work? Are there other steps i have to undertake before opening these

  • Variables in reporting

    i have created the report with variable.at run time the display of enter dialog box is not available.how to over this problem