Issue in seperating lines of ITAB and placing into SF secondary windows
Great abapers,
My itab is having 6 lines item (for ex ) it may 'n' no of line items.
In smartforms for 1 page max allowed secondary window is 2.so first 2 lines are paced in first page , next 2 lines are place in
second page ,last 2 will be in 3 page...if it is having hundred means it will be splited into 100 into 50 pages.
The problem is i dont know the line item which will come, how can i seperate and put into windows...i could not create 'n'no of
work areas..what is the solution i am in conftion ...any one pls guide me...urgent
points will be rewarded .........
Thanks,
regards,
lakshmi
Hi ,
i hv found PO No and Po line No , based on this we have to print.
for ex PO1 = 1 st window ,next in second etc...how to place in SF window ...
iam hving 'N' no of PO's in my itab .....
this is problem...
thanks & regards,
Lakshmi
Similar Messages
-
My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?
I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported. -
Photoshop CS6 transparent mask causing problems when saved as RGB Tiff and placed into CS5 Indesign
Is anyone aware of a gray/black halo around feathered transparency objects. The halo occurs where the solid area of pic feathers to the transparent.
NOTE: Image looks fine in Photoshop(CS6) but when placed as an RGB TIFF into Indesign (CS5) a black halo appears on page. See visual explanation below.
This only happens when image is an RGB Tiff and layer mask is used to create transparency. If image is saved as .psd then it is fine. Also when RGB tiff is converted to CMYK then this is also ok.
Is
I look forward to anyone's suggestions.
Ideally I could just start using psd format, but I have to handle alot of images that are already in RGB tiff and it is time consuming to have to open and re-save all of these.
Adobe Photoshop CS5 RGB tiffs are still working fine.
Thanks.
Colourjam.
(Pre-Press Production Digital Image Operator)Yes the halo is does appear on the final PDF used for printing, and therefore does unfortunately print.
Why would RGB Tiffs in Photoshop CS6 suddenly cause this to happen. If we revert back to placing Photoshop CS5 files into Indesign, all is good.
Also it is not just an isolated event as my colleague has the same thing happening on his workstation.
Could it be that that Indesign 5 cannot colour manage the new CS6 RGB Tiff files?
CMYK tiff works well, as does PSD (CMYK and RGB)
Also please note, that if you were trying to recreate this to see if you get the samed problem, the halo occurs as soon as you create transparency with a layer mask and feather the edge of mask, and then save as RGB tiff. It will not be visible if you have a hard line or a vector edge.
Just for the record here is our set up.
Indesign CS5 (PC)
Photoshop CS6 (PC) -
Converting binary data into pdf and placing into application server
Hi Friends,
I am able to get PO details in binary format and then using GUI_DOWNLOAD with file type with 'bin' and file name with 'sample.pdf' extension , got PO in pdf format.
But i need to get with pdf extension in application server without using GUI_DOWNLOAD.
Is there any functional modules for it?
With Warm Regards,
Madhu!!!Hi Madhu,
Check this code.
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards -
Getting the IP address and port number and placing it in a window
Hi Everyone,
I have written the code which gives the system time in a window. But I need also to have the Internet address and the port number of the client in the window. the TimeserverRF considers incoming DatagramPackets as a request for the current time, if the client wishes to receive the current time from TimeserverRF, it has only has to send a DatagramPacket to TimeserverRF.
I am not sure how to do this writing DatagramPackets .
I have the TimeClient class application. Timeclient should send the Internet address and the port on which it is running.
Do You have any ideas.
// the code for system time.
import javax.swing.*;
public class Window1 {
public static void main(String[] args) {
JFrame win = new JFrame("TimeServer running on port 9999");
JTextArea tA = new JTextArea(1, 30);
win.getContentPane().add(tA);
win.pack();
win.setVisible(true);
String s1; // initialise variables
TimeData t1; // TimeData object initalise to t1 variable
t1 = new TimeData(System.currentTimeMillis()); // start of loop body
s1 = t1.toTimeString(); // system time held sring s1
tA.append("Sent "); tA.append(s1); // Prints statement and time in Frame
}Study this networking tutorial and then, if you have a specific question, create a new post with it.
http://java.sun.com/docs/books/tutorial/networking/index.html -
How to Import Garageband projects and files into Cubase for Windows?
Hi
I've recently started using Garageband to record my ideas and compositions. I had 2 main questions:
1. How do I transfer the audio files created in Garageband in a format which will allow me to edit them in Music Software for a Windows based Operating system? Tranferring them to iTunes and then converting them to MP3 doesn't help because then my friends can't edit my guitar parts and other backing tracks.
Mainly I need to know how to save and import Garageband projects and individual tracks into Cubase/ Cakewalk for Windows so that my band guys can edit the tracks and send me their ideas.
I'm the only one out of my friends who has an Apple Macbook and most of my band guys still use Windows based Operating systems.
2. I record my guitars and other instruments using the Digitech GNX4 guitar effects processor as the sound source through USB. While I can record clean guitar without any problem, the moment I switch on the distortions on the GNX 4, there is a loud and constant hum from the speakers. I am therefore not being able to record distorted guitar sounds.
Please help on this.
Thanks and hope to hear from you all.
Cheers
PrashTranferring them to iTunes and then converting them to MP3
same as the protools procedure:
http://www.bulletsandbones.com/GB/GBFAQ.html#openinprotools
there is a loud and constant hum from the speakers.
Could be a ground loop problem. Test it using the MacBook on battery power only. -
When mousing over the page where I can see what is displayed it brings up my desktop,please help!
#1:Open Properties
#2: Click compatibility
#3: Click change settings for all users
#4: Under settings click all of the boxes except the first one.
That's how I got it to work -
Png files placed into PS CC don't honour effects
G'day,
I am totally lost on this one and can't for the life of me work it out.
I'm creating graphics in IDCC which are then exported out as png files to be placed into PS CC, the problem occurs when some placed images have opacity effects within them and when the png file is created in ID, exported and placed into PS all effects are no longer honoured. For example a graphic created in AI may have a translucent shadow, placed into ID it is honoured, but then exported out as a png file and placed into PS that effect is no longer honored.
Have I missed something on the process? Time and speed and greater flexibility means it's more efficent to create from ID and export to PS, so please don't suggest alternatives as that doesn't answer the question.
To demonstrate the problem I've attached 3 files:
• a screen shot from ID;
• the png file;
and
• how that png file looks placed into PS.
Why, when exporting the selected graphic elements as a .png file is it not honouring the effects, when they are honoured in ID?
Thanks in advance for your help.Hi Chris,
Thanks for the reply. That might be so, but that brings up the really confusing issue where a placed Illustrator CC file into ID CC has elements with transparency effects - when exporting it with other elements as a png, some transparency will be retained and others will be dropped.
An example:
The files (AI) placed into ID. The files naturally and correctly show with transparency etc. that have been applied to them in their native file, e.g the glass beaker which has multiple transparency effects.
The png...
Place the above png file into PS and it retains some of the transpancey from its native AI file and forgets about others.
which shows correctly, but place that into PS and the shadow e.g. beneath the beaker with its transparency effect is forgotten altogether and other parts retain their transparancey. But why?
So the claim that Adobe programmes have total integration across workflows etc. is not true or there is a bug? If it's neither and there's an answer I'd love to know.
Thanks in advance.
Message was edited by: BrandHOUSE. The file has no layers, but it does have shadows created and applied in ID, and these are carried over into the png when exporting it. So a png does carry effects etc. -
Illustrator vector images loses layers when placed into InDesign
I have a illustrator image that I want to paste into InDesign - I have tried pasting and placing however it appears both ways do not paste all the image elements. See below - any ideas?
Selected all and copied in Illustrator:
Then, pasted (and placed) into InDesign - missing neck, shirtPasting Illy artwork is for very simple drawings. Complex shapes and objects may not coming into ID exactly the way you want.
Why aren’t you placing the graphic? -
Hi,
I need to read and write into a Telnet window .But the Telnet window is a exe program that is been given by the Windows while installing the OS. Another thing is that I need to read and write into/from the Telnet window at a specific X and Y positions which will be defined in the database . I did searched for a dll of Telnet which can contain some APIs to achieve the task but I was unable to fine one.
Even if u wont be able to provide me the perfect solution , Please guide me how to read and write from a executable window .
Any help will be highly appreciated.
Thanking in Advance.
Mannu26.Hi Guys ,
Thanks for the comments , atleast I got few but none were of any use to me. If u can Please help me on this topic it will be very kind of you .
Take Care.
Manoj. -
Premiere Pro CS3: Can't drag and drop into project window
I had been using PP CS3 with Windows 7 64-bit RC successfully for about half a year. Recently I did a clean install of the final, released version of Win 7, and now I cannot drag and drop into the project window.
I am sure I used to be able to do this. Having to import every clip, instead of just dragging it from Bridge (CS4), is a major headache. Ok, a minor one. But is there anything I can do to regain this capability?
Thanks,
KenCan I mark my own post as a "correct answer"?
I just discovered the problem isn't PP CS3 at all.
The problem is Bridge CS4. Or, more accurately, how I am running it.
In order to do drag and drop from Bridge, it needs to be executed in "Run as administrator" mode.
So, fantastic! There is an quick, easy solution that works. -
I am having issues making the line 6 midi mobilizer for keyboard work with GarageBand for ipad2.
Check out the iRig Midi iRig MIDI
-
ZBook 17 powers on automatically when the battery is removed and placed back
Hi all,
I am an IT engineer with a 15 years hands on experience and troubleshooting skills.
2 of the laptops I own are ZBook 17.
One is a UK import (F0V53ET, manufactured in October 2013) and the other is a US import (D5D93AV, manufactured in April 2014). Both of them are running the latest BIOS revision (v01.21).
The strange problem I encountered is as follows:
At the D5D93AV when the AC and the battery are removed (i.e. for upgrading the RAM), when the battery is placed back in, the system automatically powers on. Same applies if there is NO battery attached and the AC plug is attached.
At the F0V53ET, this does not happen (and the normal is NOT to happen).
What I tried to do so far to see if the problem is resolved at the D5D93AV:
1) I upgraded the BIOS to the latest version (v01.21) at both the ZBooks.
2) Ensured that BOTH the laptops have exactly identical BIOS settings.
3) Ensured that turn on the machine while on AC is UNCHECKED.
4) Ensured that there are no power on options enabled (like the timed power on, e.t.c.)
5) Tried to disable settings like "USB charge, wake on USB" e.t.c.
6) Tried to remove the CMOS battery, press the power button with no battery or AC to fully discharge, attach the CMOS battery after a minute to ensure the CMOS was cleared and placed everything back.
7) Tried to replace the OS from Windows 8.1 Pro to Windows 7 Pro to see if it has an impact to the UEFI Bios settings (i.e. any conflict with Hybrid sleep e.t.c.).
8) Tried to enable "Power on while on AC" to see if the system behavior changes. When the battery is attached and the AC is also attached, it will power on if the "Power on while on AC" is enabled (so this works as expected).
9) The problem gets reproduced ONLY when there is either no battery and the AC is attached, or when the battery is attached without the AC (i.e. after reassembling the machine after a RAM upgrade). Then it powers on automatically.
10) I also swapped the batteries between the 2 ZBooks but the issue with the US model is not resolved either. The battery works fine.
It seems to be either a BIOS issue, or a Power Board issue (hardware fault). The UK model behaves as expected, while the US model seems to have these issues.
Any ideas will be really useful.
So far this is what I did not try yet (due to lack of time):
11) To attach the US model to a docking station and see how it behaves.
12) To disable or enable the Hybrid sleep from the Bios (instead of leaving this to AUTO).
13) To replace the CMOS battery (swap them between the 2 Zbooks), although I don't think it might be the battery as the US unit is NEW with 12 hours of use.
14) To completely remove (or swap) the Optical drives and see if the problem still persists. I know there are some really rare occassions that the Optical drive might be partially faulty and short circuiting. It may sound crazy, but I have seen and experienced this more than 3 times espexially at desktop machines.
Any info or tips will be useful, although I am afraid I may have to escalate it to the 3rd line of HP as it is a really odd issue.Hello, @panoulix
To get your issue more exposure I would suggest posting it in the commercial forums since the HP ZBook 17 Mobile Workstation is a commercial product. You can do this at Notebook - HP ProBook, ZBook, EliteBook, Compaq, Slate/Tablet PC, Armada, LTE.
The support page for your product may be helpful in the meantime:
HP ZBook 17 Mobile Workstation.
I hope this helps!
Thank you for posting on the HP Forums.
I worked on behalf of HP. -
Small issue with custom table cell editor and unwanted table row selection
I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
My TreeComboBox component:
public class TreeComboBox extends JPanel implements MouseListener {
private JTextField itemField;
private TreeModel treeModel;
private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
private Object selectedItem;
* Creates a new <code>TreeComboBox</code> instance.
* @param treeModel the tree model to be used in the drop-down selector.
public TreeComboBox(TreeModel treeModel) {
this(treeModel, null);
* Creates a new <code>TreeComboBox</code> instance.
* @param treeModel the tree model to be used in the drop-down selector.
* @param selectedItem tree will expand and highlight this item.
public TreeComboBox(TreeModel treeModel, Object selectedItem) {
this.treeModel = treeModel;
this.selectedItem = selectedItem;
initComponents();
* Returns the current drop-down tree model.
* @return the current <code>TreeModel</code> instance.
public TreeModel getTreeModel() {
return treeModel;
* Sets the tree model.
* @param treeModel a <code>TreeModel</code> instance.
public void setTreeModel(TreeModel treeModel) {
this.treeModel = treeModel;
* Returns the selected item from the drop-down selector.
* @return the selected tree object.
public Object getSelectedItem() {
return selectedItem;
* Sets the selected item in the drop-down selector.
* @param selectedItem tree will expand and highlight this item.
public void setSelectedItem(Object selectedItem) {
this.selectedItem = selectedItem;
String text = selectedItem != null ? selectedItem.toString() : "";
itemField.setText(text);
setToolTipText(text);
* Overridden to enable/disable all child components.
* @param enabled flat to enable or disable this component.
public void setEnabled(boolean enabled) {
itemField.setEnabled(enabled);
super.setEnabled(enabled);
public void addActionListener(ActionListener listener) {
actionListeners.add(listener);
public void removeActionListener(ActionListener listener) {
actionListeners.remove(listener);
// MouseListener implementation
public void mouseClicked(MouseEvent e) {
public void mouseEntered(MouseEvent e) {
public void mouseExited(MouseEvent e) {
public void mousePressed(MouseEvent e) {
public void mouseReleased(MouseEvent e) {
showPopup();
private void initComponents() {
setLayout(new GridBagLayout());
itemField = new JTextField();
itemField.setEditable(false);
itemField.setText(selectedItem != null ? selectedItem.toString() : "");
itemField.addMouseListener(this);
add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
private void showPopup() {
final TreePopup popup = new TreePopup();
final TreeComboBox tcb = this;
final int x = itemField.getX();
final int y = itemField.getY() + itemField.getHeight();
int width = itemField.getWidth() + popupButton.getWidth();
Dimension prefSize = popup.getPreferredSize();
prefSize.width = width;
popup.setPreferredSize(prefSize);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
popup.show(tcb, x, y);
popup.requestFocusInWindow();
private void fireActionPerformed() {
ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
for (ActionListener listener : actionListeners) {
listener.actionPerformed(e);
private class TreePopup extends JPopupMenu {
private JTree tree;
private JScrollPane scrollPane;
public TreePopup() {
initComponents();
initData();
private void initData() {
if (treeModel != null) {
tree.setModel(treeModel);
private void initComponents() {
setFocusable(true);
setFocusCycleRoot(true);
tree = new JTree();
tree.setRootVisible(false);
tree.setShowsRootHandles(true);
tree.setFocusable(true);
tree.setFocusCycleRoot(true);
tree.addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
tree_valueChanged(e);
scrollPane = new JScrollPane(tree);
add(scrollPane);
private void tree_valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
setSelectedItem(node.getUserObject());
fireActionPerformed();
this.setVisible(false);
}My TreeComboBoxTableCellEditor:
public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
protected TreeComboBox treeComboBox;
protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
this.treeComboBox = treeComboBox;
treeComboBox.addActionListener(this);
public Object getCellEditorValue() {
return treeComboBox.getSelectedItem();
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
treeComboBox.setSelectedItem(value);
return treeComboBox;
public void actionPerformed(ActionEvent e) {
stopCellEditing();
}Any thoughts?
Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
Edited by: MiseryMachine on Apr 3, 2008 1:27 PMAs I said, you have to have empty context elements before additional rows will be open for input.
For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
data itab type standard table of sflight.
do 5 times.
append initial line to itab.
enddo.
context_node->bind_table( itab ).
The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table. -
Dashed line showing up on placed psd in indesign
Please help! I created flyer in indesign and placed some PSD graphics into the indesign file. However when those files are placed on top of a "dotted" line—after printed a white "dashed" line appears. (the line does not appear in digital file at all—only in print file, so I had to post a crappy scan, but I think it gets the point across).
Any insight to this issue?
Much Thanks!
DesireeOkay, another (probably bad) suggestion: Make a new 'rich black' swatch and change all your problem objects to use the new swatch.
This screenshot is using a mix of C=20 M=10 Y=10 K=100 that I threw together for a sample. The left block is the 'rich black' and the right is 100% K only. InDesign displayed both as the same color, but when exported to PDF, the difference was visible (from which the screenshot was captured).
Other mixes I've found referenced elsewhere are:
C=80 M=80 Y=70 K=90
C=35 M=45 Y=35 K=100
C=45 M=35 Y=35 K=100
If you were using an outside vendor, I'd suggest getting in contact with them to find out what their preferred blend is. Otherwise, since you seem ot be doing things in-house, you can make a test page with a variety of mixes to determine which one produces the level of black that you want from your Konica.
If you are using a Mac, you may be able to locate an applescript code on the forums which will allow you to globally change all objects using the [Black] swatch with another swatch in your list.
YMMV
-mt
And Peter responded while I was messing around. Lots of combinations.
Aaannnd.. perhaps I should have read the remainder of the posts instead of jumping into this... ^_~
Hope it all helps get this resolved for you, anyway!
Message was edited by: MT.Freelance
Maybe you are looking for
-
Mac OS X 10.7.4 Broke OpenGL Profiler, how to fix it?
So as it says, 10.7.4 doesn't allow OpenGL Profiler to work with an applicaiton. Break points, viewing reasources, etc doesn't register. I found this thread: https://discussions.apple.com/thread/3958500?start=0&tstart=0 But could not find out how to
-
Udated to iPhoto 9.5.1, lost a decade of photos.
I have recently updated to iPhoto 9.5.1 and lost all my photos, albums and events. The library still exists and I have attempted to rebuild using both iPhoto and iPhoto library manager to no avail. Any rebuild simply puts all the photos into one even
-
Created a short tutorial using three buttons (click boxes) Next, (jump to next slide) Back (Jump to previous slide) and Show me (continue). Moveing forward in the tutorial they all work fine. Next and Back always work in either direction. The problem
-
Select an area of sound track and delete it without using the razor?
Is there a way to select an area of sound track and delete it without using the razor please? Like drag and then cmd-delete or clear or something would seem intuitive? Thanks Steve z denver
-
Need a function module to create a Vendor
Hi Experts, I am wondering if there is a RFC enabled function module to create vendor in background? My current situation is that I need to create a function module or Identify one standard SAP function module. I have gone through some of the threads