Table break
Hi all
I have a requirement to break a table between the pages . i used here contionus break even then it not breaking the table .on my proforma invoice
.in which i am using fix the no .of rows per page logic on my rtf
thanks in advance goutham
Gah!!! It seems it was an issue in Pages '09 (v4.3) as well. I just exported my working file and the same thing happened:
So I guess I need to put in manual page breaks in the table... Is there an easy way to split a table into two pieces?
Similar Messages
-
I am writing a long document in inDesign CS5, on my iMac 10.6.4. I am being frustrated by my tables breaking up over several pages of leaving a lot of space before the next text begins. My text flows correctly, I have tweaked the Keep options to the max. Text keeps well but the tables break up badly. I can't find an answer to this anywhere. HELP...please.
I think it's because of the setting of the paragraph style.
Tables act as a single paragraph and the rows are like lines in the paragraph.
If you insert your text tool in the paragraph after the table and press the left arrow key, the cursor will move to where the table resides in the paragraph.
You probably have inserted the table where you're using your paragraph style for the Body text, which you probably have Keep Options of "Keep with next 2 lines" or something.
This forces the table row to break from the table so that it Keeps with the next paragraph.
Give your tables a different paragraph style with no Keep Options. -
Hey All,
I have been a user of Pages for many years and I love it. I have slowly transitioned from the "old" to the new Pages 5 and things seem to be getting better with each update. I have an issue that I cannot seem to fix and I am hoping that someone here A) has a solution or B) I can submit a tick to apple to get this table issue solved. So, here is my problem. I have a table that is many pages long and the table is not breaking between the merged rows, but just breaking inside the actual merged row and then continuing it on the next page. I know it is breaking on one of the non merged rows, but I want the break to be dictated by the merged rows on the left side. The result is that letters and sentences in the left merged row cells are literally being sliced in half. Here are two pics so you can see what I am talking about (one is the table not selected and the other is the table selected). I know I could put in manual page breaks, but that is not a solution because as the data in the table changes, the whole document would not flow properly. Anyway, any help would be greatly appreciated
I am on a Apple MacBook Pro 2.6 GHz Intel i7, 16 Gigs of RAM, running 10.9.3 and am using Pages 5.2(1860).
ThanksGah!!! It seems it was an issue in Pages '09 (v4.3) as well. I just exported my working file and the same thing happened:
So I guess I need to put in manual page breaks in the table... Is there an easy way to split a table into two pieces? -
Query on a transaction table breaks after running for sometime - Oracle 11g
Hi,
I'm running the below query to pull the sum of amount on trans table (which has 12 years of data partitioned yearly) whose last transaction date is 19-MAY-2013. The calendardatekey column is the one which is used in place of transaction date (each day has a unique calendardatekey). The query runs for couple of hours and breaks. When I contacted DBA they told that its trying to do a full table scan and pulling huge amount of data and doing a kind of sort and then breaks. Could someone please help if there is a better approach? If it works out for one day I will have to perform this for few more days.
Oracle version - 11g
trans table :
columns customerkey, programid and amount - are indexed.
card table :
column customerkey, status are indexed.
select t.customerkey, t.programid, sum(t.amount), max(calendardatekey) from trans t
where
exists (select null from card c where t.customerkey = c.customerkey and c.status = 'A')
--and t.programid = 10
group by t.customerkey, t.instprogkey
having sum(t.amount) < -100
and max(calendardatekey) =4888
Thanks for your help!doubtsinora wrote:
Hi,
I'm running the below query to pull the sum of amount on trans table (which has 12 years of data partitioned yearly) whose last transaction date is 19-MAY-2013. The calendardatekey column is the one which is used in place of transaction date (each day has a unique calendardatekey). The query runs for couple of hours and breaks. When I contacted DBA they told that its trying to do a full table scan and pulling huge amount of data and doing a kind of sort and then breaks. Could someone please help if there is a better approach? If it works out for one day I will have to perform this for few more days.
Oracle version - 11g
trans table :
columns customerkey, programid and amount - are indexed.
card table :
column customerkey, status are indexed.
select t.customerkey, t.programid, sum(t.amount), max(calendardatekey) from trans t
where
exists (select null from card c where t.customerkey = c.customerkey and c.status = 'A')
--and t.programid = 10
group by t.customerkey, t.instprogkey
having sum(t.amount) < -100
and max(calendardatekey) =4888
Thanks for your help!
"and breaks" is totally devoid of actionable information. Surely you got an actual error message (ora-nnnnn) that you could share with us?
Sounds like your DBA is trying to avoid providing any assistance ..... -
I have a table that flows to 4 pages through threaded frames. Is the only way to make the table different lengths on each page is to adjust the frame height? Or can you insert multiple break characters throughout the table to have it break where you want it?
Thanks,
PhilWhy not use a hard row break? It's the Table equivalent of page breaks. You can also set Keep with Next Row, and let these handle unwanted breaks.
-
Noob - TABLE BREAKING MADNESS!
Hi,
I'm still learning DW so be nice ;)
I am using CS3 to make a website for a client. It looks fine
in DW:
Dreamweaver
But then when I preview in Fireworks I get this:
Fireworks
IE, looks fine however. Is this a known issue or is there
something I am missing?
Thanks heaps guys! I appreciate it. :)
Regards
AndrewYes, it's the source code the tells the stories...
I'm no expert by any means but here's the answer to your
problem - a great
article
http://apptools.com/rants/spans.php
You've created the HTML in Fireworks which I understand is
not a good thing
to do as it produces code such as yours - it breaks. You can
export the
slices as images, but you should create the table/s in
Dreamweaver (nested
or otherwise), then populate it with your images.
Please post back if this doesn't help you enough, somebody
better than I can
help.
Jo
"aussie_penguin" <[email protected]> wrote
in message
news:fp6mim$k0n$[email protected]..
> Woops. Sorry, forgot about that.
>
>
http://www.ironbarkstudios.com.au/TEST/
>
> I imagine you just want to observe the source code,
correct??
> Thanks by the way, I really appreciate this. It's been
bugging me a while
> now.
>
> -
Table breaking - More Newbie Q's
http://www.oerica.com/test.htm
The text in table cell breaks when it extends past the width
of cell. I've tried tabe-layout__fixed, min/max widths, div tag
within the table cell. Not sure what I am missing.On Mon, 11 Aug 2008 01:27:46 +0000 (UTC), "TylerMadeIt"
<[email protected]> wrote:
>
http://www.oerica.com/test.htm
>
> The text in table cell breaks when it extends past the
width of cell. I've
>tried tabe-layout__fixed, min/max widths, div tag within
the table cell. Not
>sure what I am missing.
Insert a space in between those letters somewhere, and things
will
fall back into place.
A table cell will expand to the width of its contents,
regardless of
the width specified.
Win
Win Day
Wild Rose Websites www.wildrosewebsites.com
[email protected] -
A strange thing that has happened a few times, and I have found no remedy:
When I paste text including a table in the middle of the page into another document, the table moves to the start of a new page.
This happens even though there is about three inches MORE space below than in the original document.
There are no page or section breaks in the document, ample margins, and there is more than enough space on the previous page, but there is no way to not break the page.
Any ideas?If you are copying and pasting from the Internet you are often copying and pasting more formatting and characters than is visible.
Menu > View > Show Invisibles/Layout
Particularly with tables it is advisable to copy and paste without the formatting and format inside Pages.
Peter -
Load from Setup tables breaking for high volume
Hello Friends,
There are around 50,000 records in the setup table for 03 related appl area. The load is breaking for 50,000 records in BW. But it works if I further select only one day data in the BW scheduler.
Why is this?
Immediate help is appreciated.
Regards,
SimmiHello gurus,
So, I tried reducing the packet size to 20,000 and no of Idocs to 10 per Infopckage. But this is working for only 40K records which a just a weeks data for the 2LIS_03_BF extractor.
If I run 30 days worth of load form setup tables for the same etxractor, the load is breaking.
The same is happening for a customer built Zextractor. For this I actually tried with 10,000 records and 5 IDOCS per package.
Does, this mean for sure that there is a memory issue?
Also, I see that all the BGD WPs have been occupied by other jobs. Is this an issue?
But we have deltas running every night from R3, but t hese are less volumes(<10,000)and we have not seen this issue.
However within BW there are heavy loads between data targets and they don't break.
Is this a issue only for full loads from R3?
Appreciate your immediate response.
Thanks
Simmi
Edited by: simmi on Jun 20, 2008 1:39 AM -
Preview in Browser IE 7 - Table breaking
Working on an XHTML document in DwCS3, one which contains a
table. I am not permitted to alter the internal structure (we have
to use the table for our purposes). Everything looks good in the
code, take a look in IE7 preview in browser, seems fine. We take a
look in Firefox, fine. We take a look back in IE7 again ...
suddenly broken. Nothing changed in the code. Nothing added or
altered anywhere on the server.
Now the tables have space all around each row, breaking apart
the image. No space is added to left or right, just top or bottom.
Code verifies just fine. It still works in Firefox. Is there a fix
for this? Is this a DwCS3 problem, or an IE7 problem? I think IE7
because after restart opening the HTML file directly in IE7 still
shows breakage, Firefox still shows fine.
I've restarted. Trashed the cache. Tried to open the page on
another computer in IE7. I can't surf to the page from a Mac to
check because I can't put it live until it gets approval.
Thoughts? Does this sound at all familiar, or have I found a
bug of my own? (They should name them after the first folks to
report them, like diseases.)Can you put the site on a temp server/url until it gets the
final OK?
Without seeing the code, you won't get too many answers.
Brendon
"Pacio49" <[email protected]> wrote in
message
news:fhafgv$8ne$[email protected]..
> Working on an XHTML document in DwCS3, one which
contains a table. I am
> not
> permitted to alter the internal structure (we have to
use the table for
> our
> purposes). Everything looks good in the code, take a
look in IE7 preview
> in
> browser, seems fine. We take a look in Firefox, fine. We
take a look back
> in
> IE7 again ... suddenly broken. Nothing changed in the
code. Nothing added
> or
> altered anywhere on the server.
>
> Now the tables have space all around each row, breaking
apart the image.
> No
> space is added to left or right, just top or bottom.
Code verifies just
> fine.
> It still works in Firefox. Is there a fix for this? Is
this a DwCS3
> problem, or
> an IE7 problem? I think IE7 because after restart
opening the HTML file
> directly in IE7 still shows breakage, Firefox still
shows fine.
>
> I've restarted. Trashed the cache. Tried to open the
page on another
> computer
> in IE7. I can't surf to the page from a Mac to check
because I can't put
> it
> live until it gets approval.
>
> Thoughts? Does this sound at all familiar, or have I
found a bug of my
> own?
> (They should name them after the first folks to report
them, like
> diseases.)
> -
CS6 Inserting table breaks editable region
In DW CS6 I am building out a site based on one template with three editable regions. I generally work in split view building PHP-MySQL sites such as the current one, and I have been building template-driven sites in Dreamweaver since 1998; but this problem has me stumped. Everything works fine until I insert a table into one of the editable regions. That region immediately becomes non-editable in design view (but I can edit in code view). It doesn't matter how I insert the table -- whether I paste code from another page where the table is being delivered, whether I use the DW Insert Table function, or hand-code from scratch. The result is the same -- I can no longer place a cursor in that editable region, in any design window.
I seem to remember from CS5 a similar situation with a workaround that included triple clicking somewhere, but I have not been able to find that in this forum or in my notes. Any suggestions?The issue exists both at home and at the office. There may be minor differences. I am now at the office .
Mac OSX ver. 10.9.4
DW v. 12.0 Build 5861
xxxxxxxxxxxxxx
TEMPLATE CODE
xxxxxxxxxxxxxxx
<!doctype html>
<html>
<head>
<meta id="p7PM3" name="viewport" content="width=device-width">
<meta charset="utf-8">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Advanced Reporting</title>
<!-- TemplateEndEditable -->
<link href="../3D/p7affinity/p7affinity-5.css" rel="stylesheet" type="text/css" media="all">
<link href="../3D/p7affinity/p7mobius-animate.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="../3D/p7ehc/p7EHCscripts.js"></script>
<link href='http://fonts.googleapis.com/css?family=Federo' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Life+Savers' rel='stylesheet' type='text/css'>
<link href="../3D/p7dmm/p7pm3/p7PM3-01.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="../3D/p7dmm/p7pm3/p7PM3scripts.js"></script>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<div id="layout">
<div id="logo">
<?php include('../3D/includes/logo_content.php'); ?>
</div>
<div id="top-navigation">
<?php include('../3D/includes/primarynav.php'); ?>
</div>
<div id="content"><!-- TemplateBeginEditable name="Action Call" -->
<div class="column-content border-bottom colored-black"> Lorem ipsum dolor sit amet, ne sea vocent scripta abhorreant. </div>
<!-- TemplateEndEditable -->
<div class="affinity-row">
<div class="affinity-column percent70 reverse-float">
<div class="column-content border-left p7ehc-1"><!-- TemplateBeginEditable name="Main Section" -->
<h1>Main section heading</h1>
<p>Lorem ipsum dolor sit amet, </p>
<h3>Coming up soon...</h3>
<p>Lorem ipsum dolor sit amet, ne sea vocent </p>
<!-- TemplateEndEditable --></div>
</div>
<div class="affinity-column percent30 reverse-float">
<div class="column-content p7ehc-1"><!-- TemplateBeginEditable name="Sidebar" -->
<p><img class="p7-animate zoom-out" src="../3D/art/mobius-art-04.jpg" width="520" height="713" alt=""></p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla facilisi. Quisque sem mauris, ullamcorper ac, gravida id, mattis id, sapien. Nullam adipiscing enim dapibus felis.</p>
<!-- TemplateEndEditable --></div>
</div>
</div>
</div>
<?php include('../3D/includes/footertext.php'); ?>
</div>
</body>
</html>
Will send child separately -
Using FM8. I have a table of several rows starting on page x. after the first row, the next row jumps to the page x+1. It's there alone because the 3d row jumps to the page x+2. None of these rows contain enough text to cause a page break, and I'm left with huge blank portions on my pages. I can't discern how this table is different from the dozens of tables already in this document. is there a setting somewhere that allows table rows to stay together? Something is causing the individual rows to go the the next page. The paragraph designer does not show keep-with-next, or any other setting that would cause this. Thanks.
If you highlight a table row (i.e. select all the cells from left to right) then look in the menu Table > Row Format, you'll see the settings for that specific row as far as keep with next / keep with previous.
There's also a setting for the table itself that determines how many rows have to be kept together when the table breaks across pages -- look at teh Table Designer, in the "Basic" tab, bottom left corner, Orphan rows.
There can be strange row breaks in tables at times if FM gets conflicting instructions for the keep with next / previous and the Orphan rows settings. -
Embedded iFrame breaking table cell
At
http://www.marquiseknox.com/schedule.htm,
you'll see the right margin breaks near the top of the page, as the
schedule appears. So I'd like to fix this. All help is
welcome!this is domed to fail;
the table width is a % of the page width while the Iframe is
an exact
dimension:
<table width="90%" border="0" align="center"
cellpadding="2"
cellspacing="2">
<tr>
<td><div align="center"><iframe height="650"
width="700"
If a visitor resizes the browser window the table breaks.
give the table an
exact dimension big enough to enclose the Iframe...remember
to account for
any cell spacing or padding you specify in your css or table
parameters.
Jeff
"Bushido" <[email protected]> wrote in
message
news:fq7i34$8l2$[email protected]..
> At
http://www.marquiseknox.com/schedule.htm,
you'll see the right margin
> breaks near the top of the page, as the schedule
appears. So I'd like to
> fix this. All help is welcome! -
In BI Publisher RTF table layout issue for invoice printing
Hi,
I am working on check printing and invoice printing project on bi publisher and i am facing one issue. That is i have used section break on check priting so because of that if the the records are more than 20 then check will print on second page and on first page there would be void printed othervise it should print on first page only. In this case the preprinted stationary is not having invoice table form. we are using blank preprinted stationary to print this .
Now i have done with invoice and cheque layout but in output if the number of records are more than 20 then its going to second page but the problem is that invoice table break into two parts and and the end lineof table layout is not coming on first page .even on second page i am not getting start layout line to make complete table outline.
I want that full table layouton both the pages of the table. i have tried to to create table skeleton and used it as a watermark to print all the records on it but it is coming in to the middle of the page .so it not working.
Please anyone knows the solution on this problem please let me know or share your thoughts on this issue.
As i have tried many options but still stuck into this issue .Kindly help me.
Regards,
Prachi G.Hmmm ... sounds like a regression bug.
I would contact support, provide, the version you are using, layout template, sample XML data, 2000 RTF output and 2003 RTF output and ask them to investigate.
Tim -
Here's how to do ALV (OO) with dynamic fcat, int table and editable data
Hi everybody
Here's a more useful approach to ALV grid with OO using dynamic table, data NOT from DDIC, dynamic FCAT and how to get changed lines from the grid when ENTER key is pressed.
It's really not too dificult but I think this is more useful than the ever present SFLIGHT methods from the demos.
This also defines a subclass of cl_gui_alv_grid so you can access the protected attributes / methods of that class.
You don't need to add the class via SE24 -- done fron this ABAP.
When you run it click Edit for the first time.
After editing data press ENTER and the break point should bring you into the relevant method.
Code developed on NW2004S trial version but also works on rel 6.40 on a "Real" system.
The code should work without any changes on any system >=6.40.
All you need to do is to create a blank screen 100 via SE51 with a custom container on it called CCONTAINER1.
The rest of the code can just be uploaded into your system using the SE38 upload facility.
When running the program click on the EDIT button to enable the edit functionality of the grid.
Change your data and when you press ENTER you should get the break-point where you can see the original table and changed rows.
This program is actually quite general as it covers Dynamic tables, building a dynamic fcat where your table fields are NOT in the DDIC, intercepting the ENTER key via using an event, and accessing the protected attributes of the cl_gui_alv_grid by defining a subclass of this class in the abap.
I've seen various questions relating to all these functions but none in my view ever answers the questions in a simple manner. I hope this simple program will answer all these and show how using OO ALV is actually quite easy and people shouldn't be scared of using OO.
Have fun and award points if useful.
Cheers
Jimbo.
<b>PROGRAM zdynfieldcat.
Simple test of dynamic ITAB with user defined (not ddic) fields
Build dynamic fcat
use ALV grid to display and edit.
*When edit mode set to 1 toolbar gives possibility of adding and
*deleting rows.
*Define subclass of cl_gui_alv_grid so we can use protected attributes
*and methods.
Add event handler to intercept user entering data and pressing the
*ENTER key.
When enter key is pressed get actual value of NEW table (all rows)
rather than just the changed data.
*use new RTTI functionality to retrieve internal table structure
*details.
Create a blank screen 100 with a custom container called CCONTAINER1.
James Hawthorne
include <icon>.
define any old internal structure NOT in DDIC
types: begin of s_elements,
anyfield1(20) type c,
anyfield2(20) type c,
anyfield3(20) type c,
anyfield4(20) type c,
anyfield5(11) type n,
end of s_elements.
types: lt_rows type lvc_t_roid.
Note new RTTI functionality allows field detail retrieval
at runtime for dynamic tables.
data: wa_element type s_elements ,
wa_data type s_elements,
c_index type sy-index,
c_dec2 type s_elements-anyfield5,
wa_it_fldcat type lvc_s_fcat,
it_fldcat type lvc_t_fcat,
lr_rtti_struc TYPE REF TO cl_abap_structdescr, "RTTI
lt_comp TYPE cl_abap_structdescr=>component_table,"RTTI
ls_comp LIKE LINE OF lt_comp, "RTTI
zog like line of lr_rtti_struc->components, "RTTI
struct_grid_lset type lvc_s_layo,
l_valid type c,
new_table type ref to data.
field-symbols: <dyn_table> type standard table,
<actual_tab> type standard table,
<fs1> type ANY,
<FS2> TYPE TABLE.
data: grid_container1 type ref to cl_gui_custom_container.
class lcl_grid_event_receiver definition deferred.
data: g_event_receiver type ref to lcl_grid_event_receiver.
data: ls_modcell type LVC_S_MODI,
stab type ref to data,
sdog type s_elements. .
class lcl_grid_event_receiver definition.
public section.
methods:
handle_data_changed
for event data_changed of cl_gui_alv_grid
importing er_data_changed,
toolbar for event toolbar of cl_gui_alv_grid
importing e_object
e_interactive,
user_command for event user_command of cl_gui_alv_grid
importing e_ucomm.
endclass.
*implementation of Grid event-handler class
class lcl_grid_event_receiver implementation.
method handle_data_changed.
code whatever required after data entry.
various possibilites here as you can get back Cell(s) changed
columns or the entire updated table.
Data validation is also possible here.
perform check_data using er_data_changed.
endmethod.
Method for handling all creation/modification calls to the toolbar
method toolbar.
data : ls_toolbar type stb_button.
Define Custom Button in the toolbar
clear ls_toolbar.
move 0 to ls_toolbar-butn_type.
move 'EDIT' to ls_toolbar-function.
move space to ls_toolbar-disabled.
move 'Edit' to ls_toolbar-text.
move icon_change_text to ls_toolbar-icon.
move 'Click2Edit' to ls_toolbar-quickinfo.
append ls_toolbar to e_object->mt_toolbar.
clear ls_toolbar.
move 0 to ls_toolbar-butn_type.
move 'UPDA' to ls_toolbar-function.
move space to ls_toolbar-disabled.
move 'Update' to ls_toolbar-text.
move icon_system_save to ls_toolbar-icon.
move 'Click2Update' to ls_toolbar-quickinfo.
append ls_toolbar to e_object->mt_toolbar.
clear ls_toolbar.
move 0 to ls_toolbar-butn_type.
move 'EXIT' to ls_toolbar-function.
move space to ls_toolbar-disabled.
move 'Exit' to ls_toolbar-text.
move icon_system_end to ls_toolbar-icon.
move 'Click2Exit' to ls_toolbar-quickinfo.
append ls_toolbar to e_object->mt_toolbar.
endmethod.
method user_command.
case e_ucomm .
when 'EDIT'. "From Tool bar
perform set_input.
perform init_grid.
when 'UPDA'. "From Tool bar
perform refresh_disp.
perform update_table.
when 'EXIT'. "From Tool bar
leave program.
endcase.
endmethod.
endclass.
class zcltest definition inheriting from cl_gui_alv_grid.
define this as a subclass so we can access the protected attributes
of the superclass cl_gui_alv_grid
public section.
methods: constructor, disp_tab.
endclass.
need this now to instantiate object
as we are using subclass rather than the main cl_gui_alv_grid.
class zcltest implementation.
METHOD constructor.
CALL METHOD super->constructor
exporting i_appl_events = 'X'
i_parent = grid_container1.
endmethod.
method disp_tab.
FIELD-SYMBOLS: <outtab> TYPE STANDARD TABLE.
break-point 1.
mt_outtab is the data table held as a protected attribute
in class cl_gui_alv_grid.
ASSIGN me->mt_outtab->* TO <outtab>. "Original data
do whatever you want with <outtab>
contains data BEFORE changes each time.
Note that NEW (Changed) table has been obtained already by
call to form check_data USING P_ER_DATA_CHANGED
TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
Entered data is in table defined by <fs2>
In this method you can compare original and changed data.
Easier than messing around with individual cells.
do what you want with data in <fs2> validate / update / merge etc
endmethod.
endclass.
data :
ok_code like sy-ucomm,
save_ok like sy-ucomm,
i4 type int4,
Container Object [grid_container]
now created via method constructor
in the subclass zcltest.
Control Object [grid]
grid1 type ref to zcltest,
Event-Handler Object [grid_handler]
grid_handler type ref to lcl_grid_event_receiver.
start-of-selection.
call screen 100.
module status_0100 output.
now display it as grid
if grid_container1 is initial.
create object grid_container1
exporting
container_name = 'CCONTAINER1'.
create object grid1.
break-point 1.
create object grid_handler.
set handler:
grid_handler->user_command for grid1,
grid_handler->toolbar for grid1,
grid_handler->handle_data_changed for grid1.
perform create_dynamic_fcat.
perform create_dynamic_itab.
perform populate_dynamic_itab.
perform init_grid.
perform register_enter_event.
set off ready for input initially
i4 = 0.
call method grid1->set_ready_for_input
exporting
i_ready_for_input = i4.
endif.
endmodule.
module user_command_0100 input.
*PAI not needed in OO ALV anymore as User Commands are handled as events
*in method user_command.
*we can also get control if the Data entered and the ENTER is pressed by
*raising an event.
Control then returns to method handle_data_changed.
endmodule.
form create_dynamic_fcat.
get structure of our user table for building field catalog
Use the RTTI functionality
lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( wa_data ).
Build field catalog just use basic data here
colour specific columns as well
loop at lr_rtti_struc->components into zog.
c_index = c_index + 1.
clear wa_it_fldcat.
wa_it_fldcat-fieldname = zog-name .
wa_it_fldcat-datatype = zog-type_kind.
wa_it_fldcat-inttype = zog-type_kind.
wa_it_fldcat-intlen = zog-length.
wa_it_fldcat-decimals = zog-decimals.
wa_it_fldcat-lowercase = 'X'.
if c_index eq 2.
wa_it_fldcat-emphasize = 'C411'.
endif.
if c_index eq 3.
wa_it_fldcat-emphasize = 'C511'.
endif.
append wa_it_fldcat to it_fldcat .
endloop.
endform.
form create_dynamic_itab.
Create dynamic internal table and assign to field sysmbol.
Use dynamic field catalog just built.
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = it_fldcat
importing
ep_table = new_table.
assign new_table->* to <dyn_table>.
endform.
form populate_dynamic_itab.
load up a line of the dynamic table
c_dec2 = c_dec2 + 11.
wa_element-anyfield1 = 'Tabbies'.
wa_element-anyfield2 = 'ger.shepards'.
wa_element-anyfield3 = 'White mice'.
wa_element-anyfield4 = 'Any old text'.
wa_element-anyfield5 = c_dec2.
append wa_element to <dyn_table>.
endform.
form check_data USING P_ER_DATA_CHANGED
TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
Get altered data back
ASSIGN p_er_data_changed->mp_mod_rows TO <FS1>.
stab = p_er_data_changed->mp_mod_rows.
ASSIGN STAB->* TO <FS2>.
LOOP AT <FS2> INTO sdog.
ALV grid display with altered data is now in <fs2>.
do any extra processing you want here
endloop.
now display new table
call method grid1->disp_tab.
endform.
form exit_program.
call method grid_container1->free.
call method cl_gui_cfw=>flush.
leave program.
endform.
form refresh_disp.
call method grid1->refresh_table_display.
endform.
form update_table.
The dynamic table here is the changed table read from the grid
after user has changed it
Data can be saved to DB or whatever.
loop at <dyn_table> into wa_element.
do what you want with the data here
endloop.
switch off edit mode again for next function
i4 = 0.
call method grid1->set_ready_for_input
exporting
i_ready_for_input = i4.
endform.
form set_input.
i4 = 1.
call method grid1->set_ready_for_input
exporting
i_ready_for_input = i4.
endform.
form switch_input.
if i4 = 1.
i4 = 0.
else.
i4 = 1.
endif.
call method grid1->set_ready_for_input
exporting
i_ready_for_input = i4.
endform.
form init_grid.
Enabling the grid to edit mode,
struct_grid_lset-edit = 'X'. "To enable editing in ALV
struct_grid_lset-grid_title = 'Jimbos Test'.
call method grid1->set_table_for_first_display
exporting
is_layout = struct_grid_lset
changing
it_outtab = <dyn_table>
it_fieldcatalog = it_fldcat.
endform.
form register_enter_event.
call method grid1->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
Instantiate the event or it won't work.
create object g_event_receiver.
set handler g_event_receiver->handle_data_changed for grid1.
endform.</b>Hi there
IE7 doesn't give me the add new page option and I get 404 error when trying to access the "How to contribute" section.
I'll load up Firefox later (this browser usually works when IE7 doesn't always work properly).
I'll copy the stuff to the wiki when I've got the browser sorted out.
Cheers
jimbp
Maybe you are looking for
-
Unable to get cells for the columns which have no data in cross-tab report
Hi friends, I am developing a cross-tab report. Let's take an example to explain the problem. Here is the XML file i am using <?xml version="1.0" ?> - <!-- Generated by Oracle Reports version 6.0.8.11.3 --> - <MODULE1> - <LIST_G_SCHEMECODE> - <G
-
Proxy Service JCA AQ Adapter. Queue retries doesn´t work
Hello, i have to integrate two applications by calling a WS with data coming through an AQ Queue. My OSB version is 10.1.3. The steps followed are: 1) Created a QUEUE with 5 retries and a retry delay of 1 minute. 2) Created a AQ Adapter in Jdeveloper
-
The screen numbers used to sign in some how got gigantic. I can only see 2 numbers so I cant sign in. I've turned the phone off and back on but it didn't help.
-
HH5 and static IP address question
I've been trying to set up static addresses for my devices and for some weird reason, when trying to set an address for one PC, the HH tells me the following: The IP address entered conflicts with a device using the same IP address on your home netwo
-
Setting identical cookies on a response
WebLogic Server 6.1 SP2 running on NT 4.0 SP6 We need to use a non-persistent cookie as a persistence mechanism to store session information when a user browser on multiple pages. The cookie may be set multiple