Draw lines in AdvancedDataGrid header
Hi all,
I want to draw a vertical line in AdvancedDataGrid column header.
Can any one bring me in to that way.
Thanks in advance
Or just use a second plot with a special style.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
trial 1MOD.vi 10 KB
Similar Messages
-
SmartForms - draw line in template
Hi!
I am new to SF, so have a question on drawing line in a template. I use template as the data is only printed out once and is static. I have many columns in my template and I would like to draw lines on the columns so that it is tidy & looks nicer.
I double click the template & in the "output options" tab, I checked the check box "line with..", but error prompt out to stop me, saying "Boxes/Shadings are not allowed within a table".
Does anyone know how can I draw lines in a template?
Kindly advise.
best regards,
GinnieHi,
Click on the template under the template tab, and then click on the select pattern just under the template heading , there you use lines.
regards,
Santosh Thorat
Edited by: santosh thorat on Dec 26, 2007 10:09 AM -
Hello All,
I'm trying to add an image alongside the header text whenever
the mouse cursor moves over a field header in the AdvancedDataGrid
component. I tried to do this using this example for a DataGrid -
http://www.thebetterside.com/scrawl/srcview/index.html
, but the mouseover event is triggered only when the mouse is moved
on the first line of the grid and not the header in an
AdvancedDataGrid. Is there another way of modifying the
advanceddatagrid header display on this mouse event.
thanks
Prashthe link above should be
http://www.thebetterside.com/scrawl/ScrawlExample4.html -
Hello,
I'm using jdeveloper 11.1.1.6.0 and I'm trying to make an web application that allows me to draw lines. First i did the project in HTML:
<!DOCTYPE HTML>
<html>
<head>
<script>
window.onload = function() {
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");
context.beginPath();
context.moveTo(100, 150);
context.lineTo(50, 50);
context.stroke();
</script>
</head>
<body>
<canvas id="myCanvas" width="578" height="200"></canvas>
</body>
</html>This works fine, but when I insert the label <canvas id="myCanvas" width="578" height="200"> </ canvas> jspx file, I get the error Element 'canvas' not expectedWhat am I doing wrong?I just try "<h:canvas> </ canvas>" and I get the same error, so I think that the problem is that the element "canvas" is from html5 and the html that creates jsp is html 4.01.
I've tried with jspx but I get the same result -
With header line & with out header line ?
what is difference between with header line & without header line ?
When you create an internal table object you can also declare a header line with the same name. You can use the header line as a work area when you process the internal table. The ABAP statements that you use with internal tables have short forms that you can use if your internal table has a header line. These statements automatically assume the header line as an implicit work area. The following table shows the statements that you must use for internal tables without a header line, and the equivalent statements that you can use for internal tables with a header line:
Operations without header line
Operations with header line
Operations for all Table Types
INSERT <wa> INTO TABLE <itab>.
INSERT TABLE ITAB.
COLLECT <wa> INTO <itab>.
COLLECT <itab>.
READ TABLE <itab> ... INTO <wa>.
READ TABLE <itab> ...
MODIFY TABLE <itab> FROM <wa> ...
MODIFY TABLE <itab> ...
MODIFY <itab> FROM <wa> ...WHERE ...
MODIFY <itab> ... WHERE ...
DELETE TABLE <itab> FROM <wa>.
DELETE TABLE <itab>.
LOOP AT ITAB INTO <wa> ...
LOOP AT ITAB ...
Operations for Index Tables
APPEND <wa> TO <itab>.
APPEND <itab>.
INSERT <wa> INTO <itab> ...
INSERT <itab> ...
MODIFY <itab> FROM <wa> ...
MODIFY <itab> ...
Using the header line as a work area means that you can use shorter statements; however, they are not necessarily easier to understand, since you cannot immediately recognize the origin and target of the assignment. Furthermore, the fact that the table and its header line have the same name can cause confusion in operations with entire internal tables. To avoid confusion, you should use internal tables with differently-named work areas.
The following example shows two programs with the same function. One uses a header line, the other does not.
With header line:
TYPES: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE I,
END OF LINE.
DATA ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1
WITH HEADER LINE.
DO 4 TIMES.
ITAB-COL1 = SY-INDEX.
ITAB-COL2 = SY-INDEX ** 2.
INSERT TABLE ITAB.
ENDDO.
ITAB-COL1 = 2.
READ TABLE ITAB FROM ITAB.
ITAB-COL2 = 100.
MODIFY TABLE ITAB.
ITAB-COL1 = 4.
DELETE TABLE ITAB.
LOOP AT ITAB.
WRITE: / ITAB-COL1, ITAB-COL2.
ENDLOOP.
Without header line:
TYPES: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE I,
END OF LINE.
DATA: ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1,
WA LIKE LINE OF ITAB.
DO 4 TIMES.
WA-COL1 = SY-INDEX.
WA-COL2 = SY-INDEX ** 2.
INSERT WA INTO TABLE ITAB.
ENDDO.
WA-COL1 = 2.
READ TABLE ITAB FROM WA INTO WA.
WA-COL2 = 100.
MODIFY TABLE ITAB FROM WA.
WA-COL1 = 4.
DELETE TABLE ITAB FROM WA.
LOOP AT ITAB INTO WA.
WRITE: / WA-COL1, WA-COL2.
ENDLOOP.
The list, in both cases, appears as follows:
1 1
2 100
3 9
The statements in the program that does not use a header line are easier to understand. As a further measure, you could have a further work area just to specify the key of the internal table, but to which no other values from the table are assigned.
Internal table with header line
you can use anywhere except obkect oriented concept.
Internal table without header line :
You should use in Object oriented concept..
Always try to use without header line,performance point of view it is best..
Example :
Without header line.
Structure
types : begin of ty_itab ,
matnr type mara-matnr,
end of ty_itab.
Internal table
data i_itab type standard table of ty_itab .
Work area
data wa_itab like line of i_itab
With header line
data : begin of i_itab occurs 0,
matnr like mara-matnr,
end of i_itab
itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.
i will explain use of itab w/o header line.
Data: itab1 type standard table of mara with header line occurs 0,
itab2 type standard table of mara,
wa_itab2 type mara.
loop at itab1.
"This will work fine.
endloop.
loop at itab2.
"This will give erro that itabd does not hav workarea
endloop.
"so write
loop at itab2 into wa_itab2.
"This will work
endloop.
<b>The difference between
whih header line and with out heater line of internal table.
ex:-
a) Data : itab like mara occurs 0 with header line.
b) Data: itab like mara occurs 0.
-While adding or retrieving records to / from internal table we have to keep the record temporarily.
-The area where this record is kept is called as work area for the internal table.
-The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
-Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
a) Data : itab like mara occurs 0 with header line.
table is with header line
b) Data: itab like mara occurs 0.
table is without header line</b>
regards,
srinivas
<b>*reward for useful answers*</b> -
Base line date field ( header data 2nd tab) to be made noneditable in MIRO
Hi friends,
My requirment is to make Base line date field ( header data 2nd tab) to be noneditable in Tcode MIRO .
This base line date should be noneditable only for one specific company code.
Help me with some clues.
regards
Sathishwhy cant you use a screen variant....In SHd0..
also check this..
[http://forums.sdn.sap.com/click.jspa?searchID=37685778&messageID=8389969] -
Hi everyone,
Who have a good way to draw lines on SAP form?
I created a Wizard form, and use Rectangle (Height=0) as the two lines between title and bottom button, but I met a problem, when show another form which cover the line, after close this form, some part of lines disappear, I have tried using SAP form refresh, it still can not restore showing line completely, who have good way to workaround the problem or give me another way to draw line.
Thanks in advance!
KathyThe only way I found to get a form looking really close to a standard B1 Wizard form is to use bitmaps. I use 3 - one each for the top, bottom and left hand side. The bitmaps include the line drawing and appropriate pictures/background colours. I normally define these in the XML used to create the form as in the following example:-
<item uid="PTOP" type="117" left="0" width="566" top="0" height="80" visible="1" enabled="1" from_pane="0" to_pane="0">
<AutoManagedAttribute/>
<specific picture="AZU_SPC_WIZ_TOP2.bmp">
<databind databound="0" table="" alias=""/>
</specific>
</item>
<item uid="PBOT" type="117" left="0" width="566" top="336" height="40" visible="1" enabled="1" from_pane="0" to_pane="0">
<AutoManagedAttribute/>
<specific picture="AZU_SPC_WIZ_BOT.bmp">
<databind databound="0" table="" alias=""/>
</specific>
</item>
<item uid="PLEFT" type="117" left="0" width="100" top="0" height="336" visible="1" enabled="1" from_pane="1" to_pane="1">
<AutoManagedAttribute/>
<specific picture="AZU_SPC_WIZ9.bmp">
<databind databound="0" table="" alias=""/>
</specific>
</item>
John. -
Creating fancy pdf-files for costumers and other purposes is great. However, if the experimental data include many datapoints (>200000) a line-2d-graph ends up in a very big pdf-file. Especially when many pages need to be used.
Explanation:
When I use lines to show experimental data in 2d-plots the size of my PDF-file is directly influenced by the number of datapoints used. The more datapoints are used to draw lines within the graph, the bigger the exported PDF-files of the report are.
It would be great to limit the number of points used to draw a line as it can be done with markers without using the curve transformation option. - Hence, e.g. plotting a line with the help of 200 datapoints is usually as good as showing the same line based on 200000 datapoints but the pdf-size is significantly reduced. You can imagine that when this would be done via the transformation option a long lasting script would be needed for each line to reduce the number of datapoints shown. Hence, the plotting within the report and the actualisation of data would need very long.
Since a while DIAdem optimizes the size of exported PDF-files in a related way as it is suggested here. In principle the PDF-file is exported in a very high resolution, so you can display it in a reader with a very high zoom value (e. g. 6000 %) to look into details of your data. If you have a huge dataset, this could lead in fact to a bigger file size, if data points could be displayed because the high PDF-resolution. But in general, DIAdem only saves information in a PDF-file which is really necessary - but with a high resolution.
-
Displaying blank line in ALV header
How do I display a blank line in ALV header
For eg i want if i want the ALV header to display as follows
Document Datewise Report as of 31/10/2009
<-- BLANK LINE
Run On : 01/12/2009Hi,
Are you using 'REUSE_ALV_COMMENTARY_WRITE' for displaying the header?
If yes, then I think it is not possible. Instead, use the events table to achieve it.
Use the 'REUSE_ALV_EVENTS_GET' FM to get all possible events and then modify
the events internal table to specify the form name to handle top-of-page event.
eg.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
* EXCEPTIONS
* LIST_TYPE_WRONG = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
FORM TOP_OF_PAGE.
* Use write statements to display the header data.
ENDFORM.
In write statement use '/' to go to new line. So to insert an empty line you can use something like
write : 'some text' / / 'some text' .
Hope this helps.
Regards,
Bhavesh. -
hi,
i am new to adobe illustrator cs2.
is there any other method to draw line other than s
setEntirePath().
thanks in advance,Hello David,
It sounds to me like you're witnessing the double edged sword of an incredibly sharp display. The contrast and clarity of LCD displays makes it very easy to see razor-thin lines with ultra fine definition, but this comes at a cost.
Font smoothing (a.k.a. font aliasing) is one example of where most LCDs are so sharp that most people prefer to have their text "fuzzed" up a little bit.
A one pixel wide diagonal line is another example that you've discovered - the display is so sharp that there is no blurring around the "steps" of the line. You can see every change in gradient, because as sharp as your CRT might've been, it was blurring the line just slightly - enough to enhance the illusion that your diagonal line was a line rather than a series of adjacent "steps". No software package that I know of has bothered to implement "line smoothing" yet, probably because you need the detail for accuracy when putting lines together.
Sort of related to this, big screen HDTV plasma and LCD monitors look amazing in the store when tuned to an HD station, but most people would be floored if they say how grainy and pixelated a standard cable signal looks on the same display. It's literally like watching an old VHS tape, because the display is so sharp it resolves detail that is invisible on a "lesser" display.
Neat human trick: get used to working with your LCD, and then go back to the CRT if you have a chance. How does the CRT look? I thought I needed glasses the first time I switched back!
-Shawn -
I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file. How can I accomplish that task? Is there software I can purchase?
Hi jgallu7382,
The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
I hope that answers your questions.
Best,
Sara -
Need to draw line after the 2nd line item(Smart Forms)
Dear Friends,
I need to draw horizontal line after the 2nd line item and 3rd line item in smart forms.How can i achive this.
Plz help.
Edited by: farook shaik on May 19, 2009 8:19 AMThis is what you need to do:
1> In the tables->details section define two line types LT1 and LT2.
2> Come back to tables section pressing the table painter button.
3> Select a line type for which you want to have an underline(say LT2).
a] If the anchor cursor does not come click the draw lines and columns button( the pencil icon nutton)
b] select the line type ( it will become black after selection. Press and hold down ctrl to select
multiple cells.
c] after selection click the lower 'frame button' ( which is right at the top of box and shading).
4> Now goto data section where you have given your internal table name and work area.
a] in the sort criteria put your field POSNR and check the Event on Sort end chk box.
b] you will see an extra node under the main area of the table.
c] Create a table line with the line type LT2 in the node.
d]Also in the Main area add another table line with LT1 as the line type.
5> If POSNR remains unchnged LT1 will be triggered.
6> if Posnr changes then LT2 will be triggered with the underline.
This will suffice your requirement. -
What are the odd lines on the header bar of Firefox for Mac 10.6.8?
Occasionally, FF gets these odd, jagged lines in the header bar. Hard to explain: https://skitch.com/dancapistan/gtu4g/firefox-lines
The lines seem to be different in shape and color each time.
When I restart FF, the lines go away for a time.I have Firefox 9.0.1 and Mac OS X Snow Leopard 10.6.8. I have also had the problem of errors in the Firefox graphic user interface (GUI) that appear as jagged lines and pixels over the title bar, back and forward buttons, over words in the address bar and in the Google search box, and over tabs. If I continue to use Firefox when this happens, Firefox and the Mac OS will freeze within a minute or two. I then have to shut down the computer and restart, as I can not Force Quit Firefox from the Firefox dock icon or from the Apple menu icon at the left of the Mac OS menu bar, which is at the top of the screen. I have not tried the Command + Option + Escape keyboard combination yet to see if this will bring up the Force Quit window.
I have used Firefox for years and never had problems like this before. Firefox 3.6 on Mac OS X Tiger 10.4.11 was stable. I recently upgraded to Snow Leopard 10.6.8 and Firefox 8, which had the same problems as Firefox 9. To make sure that the problem was not an OS upgrade issue, I erased and formatted my hard drive and did a clean install of Snow Leopard, but Firefox 9 is still apparently unstable. I have not noticed similar problems with iTunes, iPhoto, iMovie, Pages or Safari, but I do not use these applications as heavily. For a short while, I tried Firefox 3.6 on Snow Leopard, and it seemed to be stable, without the problems of Firefox 8 & 9. If I continue to have problems with Firefox 9, I plan to go back to Firefox 3.6 for a longer period to see if it remains stable. -
I want to underline (the whole length of the page) my header, so it appears in every header. Any ideas? If I insert a line in the header, trying to stretch it makes it wander from the header box; thus, keeping it from repeating. Thanks!
Do you mean the length (vertical) of the page or width (horizontal)?
A paragraph, with or without text, can have a line above, below or surrounding it which is controlled by:
+Inspector > Text (T) > More > Border & Rules+
This sticks with the text and can be the full width of the line or partly inset from the left or the right. -
How can get a Graphics to draw line on screen?
How can get a Graphics to draw line on screen?
Now, I can get a Graphics to draw line based on component. For example JPanel, but I want to get a Graphics to draw line on screen.By drawing on the screen, I assume you mean drawing outside the bounds of a top-level window like
JFrame or JDialog. You can't do that. At least, without going native and even then that's a dodgey thing
for any platform to let you do. One thing you can do is simulate it with a robot's screen capture:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
public class X {
public static void main(String[] args) throws Exception {
Rectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
BufferedImage image = new Robot().createScreenCapture(bounds);
Graphics2D g2 = image.createGraphics();
g2.setStroke(new BasicStroke(20));
g2.setPaint(Color.RED);
g2.drawLine(0, 0, bounds.width, bounds.height);
g2.drawLine(bounds.width, 0, 0, bounds.height);
g2.dispose();
JLabel label = new JLabel(new ImageIcon(image));
label.addMouseListener(new MouseAdapter(){
public void mousePressed(MouseEvent evt) {
System.exit(0);
JFrame f = new JFrame();
f.setUndecorated(true);
f.getContentPane().add(label);
f.setBounds(bounds);
f.setVisible(true);
}
Maybe you are looking for
-
I've cleared my macbook. A ghost I believe it's called, but when I get to the 4 options, Get online help, Download 10.7 and Disk Utility and the other option. I dont kno what do. When I agree to download 10.7 it says i needa login with my apple id so
-
System.out and System.err to files
Hi ! Could somebody tell me, how I can forward all System.out.println and System.err.println Messages from my Java modules (EJB, Servlets) to different files respectively. Thanks Steve
-
About the Lock of JDBC Adapter
Hello Experts, Im confused for the Lock. If it will be locked when I stop the JDBC receiver channel but the insert statement doesnt complete ?? I mean whether the sql statement will be hang and not execute forward? I presume will it possibly autocom
-
My p1i appears competly dead after running update service.I ve tried removing battery,flly charging, plz help
-
Restart numbers after previous level CS5
I have several books with numbered lists in embedded text box sidebars. In each of the sidebars, I have the numbered lists set up as a level 2 numbered list set to restart the numbers after any previous level and the heading, which comes right before