JEditorPane clicked line (urgent !!!)
I want to find which line is clicked when i click onto a text in a JEditorPane.How can I do it?
Assuming you have a text document and not an HTML document, try:
** Return the current line number at the Caret position.
public static int getLineAtCaret(JTextComponent component)
int caretPosition = component.getCaretPosition();
Element root = component.getDocument().getDefaultRootElement();
return root.getElementIndex( caretPosition ) + 1;
}
Similar Messages
-
How to read complete line displayed thru ALV report on double click? urgent
Hi guys,
An ALV report is displayed using 'REUSE_ALV_LIST_DISPLAY' and i have a requirement such that i have to read the line item on which double click is done.
I have to fetch the line item, field by field and not by characters. I have attached the function code and all using PF status.
Please tell me an approach as how to fetch the line item on which double click is done.
Points will be rewarded.
Regards
RahulHi ..
i did report with belnr , bukrs , Gjahr . which will call the transcation code FB03 displaing thedocument ...
please cut and paste the report it will work ..
REPORT zdemo_alvgrid .
TABLES: bkpf . " ekko.
type-pools: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
BUKRS like bkpf-BUKRS,
BELNR like bkpf-BELNR,
GJAHR like bkpf-GJAHR,
BLART like bkpf-BLART,
BLDAT like bkpf-BLDAT,
BUDAT like bkpf-BUDAT,
MONAT like bkpf-MONAT,
XBLNR like bkpf-XBLNR ,
* ebeln TYPE ekpo-ebeln,
* ebelp TYPE ekpo-ebelp,
* statu TYPE ekpo-statu,
* aedat TYPE ekpo-aedat,
* matnr TYPE ekpo-matnr,
* menge TYPE ekpo-menge,
* meins TYPE ekpo-meins,
* netpr TYPE ekpo-netpr,
* peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
* Build Fieldcatalog for ALV Report
form build_fieldcatalog.
* There are a number of ways to create a fieldcat.
* For the purpose of this example i will build the fieldcatalog manualy
* by populating the internal table fields individually and then
* appending the rows. This method can be the most time consuming but can
* also allow you more control of the final product.
* Beware though, you need to ensure that all fields required are
* populated. When using some of functionality available via ALV, such as
* total. You may need to provide more information than if you were
* simply displaying the result
* I.e. Field type may be required in-order for
* the 'TOTAL' function to work.
fieldcatalog-fieldname = 'BUKRS'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
* fieldcatalog-do_sum = 'X'.
* fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BELNR'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'GJAHR'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BLART'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BLDAT'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BUDAT'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MONAT'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'XBLNR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
* fieldcatalog-do_sum = 'X'.
* fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
** fieldcatalog-fieldname = 'PEINH'.
** fieldcatalog-seltext_m = 'Price Unit'.
** fieldcatalog-col_pos = 8.
** append fieldcatalog to fieldcatalog.
* clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
* Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
* gd_layout-totals_only = 'X'.
* gd_layout-f2code = 'DISP'. "Sets fcode for when double
* "click(press f2)
* gd_layout-zebra = 'X'.
* gd_layout-group_change_edit = 'X'.
* gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
* Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
* i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
* it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
* is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 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.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
* Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select BUKRS
BELNR
GJAHR
BLART
BLDAT
BUDAT
MONAT
XBLNR up to 10 rows
from bkpf
into table it_ekko.
*select ebeln ebelp statu aedat matnr menge meins netpr peinh
* up to 10 rows
* from ekpo
* into table it_ekko.
endform. " DATA_RETRIEVAL
* Form TOP-OF-PAGE *
* ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
* Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
* Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
* Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
* i_logo = 'Z_LOGO'.
endform.
* FORM USER_COMMAND *
* --> R_UCOMM *
* --> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Check function code
CASE r_ucomm.
WHEN '&IC1'.
* Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'BELNR'.
* Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
* Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-bELNR .
SET PARAMETER ID 'MES' FIELD wa_ekko-bUKRS .
SET PARAMETER ID 'DES' FIELD wa_ekko-GJAHR .
* Sxecute transaction ME23N, and skip initial data entry screen
* CALL TRANSACTION 'FB03' AND SKIP first screen.
SUBMIT RFBUEB00
* WITH ALCUR ...
* WITH ARCHOBJ ...
* WITH ARCH_SEL ...
* WITH ARUSETYP ...
* WITH AUTBEXNO ...
* WITH AUTH_BUK ...
* WITH AUTH_LDR ...
* WITH BR_AWKEY ...
* WITH BR_AWSYS ...
* WITH BR_AWTYP ...
WITH BR_BELNR = wa_ekko-bELNR
* WITH BR_BLART ...
* WITH BR_BLDAT ...
* WITH BR_BUDAT ...
WITH BR_BUKRS = wa_ekko-bUKRS
* WITH BR_CPUDT ...
WITH BR_GJAHR = wa_ekko-GJAHR
* WITH BR_RLDNR ...
* WITH BR_SEQ ...
* WITH BR_USNAM ...
* WITH BR_XBLNR ...
* WITH EXCDT ...
* WITH P_STATS ...
* WITH STATISTK ...
* WITH STATUSD ...
* WITH STATUSL ...
* WITH STATUSM ...
* WITH STATUSS ...
* WITH STATUSV ...
* WITH TCODE ...
* WITH UNAME ...
* WITH XEMUCNV ...
* WITH XUSEAR ...
* WITH XUSEAS ...
* WITH XUSEDB
AND RETURN .
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
* Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
* Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
reward points if it is usefull ...
Girish -
Please HELP on Button Click. URGENT Folks.!!!
Folks,
I need some very URGENT help.
When I click a Button,how do I associate this Button clicked with a particular Key?
I am reading data from a Hashtable in the foll.format
Monday Data [ More Info]
Tuesday Data [ More Info]
where :
Data to display is a Label
[More Info] is a JButton.
But I am unable to associate the button clicked with that particular Data.
ie I am unable to link the button clicked with the Key its associated to.
So when I click the 2nd More Info Button,I must be associated with Tuesday Data.
I am not being able to link Button Clicked to its Key Value.
Any one can help me to get the Key Value please?
Or is displayng thru Hashtable not right? Do I need to use some
other collection.
My code is:
public class JPanelDemo extends JFrame{
private JPanel JButtonPanel;
private Hashtable ht = new Hashtable();
Enumeration enum;
String str;
public JPanelDemo() {
JButtonPanel = new JPanel();
Container c = getContentPane();
// Put Data into Table.
ht.put("Monday ", new JButton("More Info"));
ht.put("Tuesday ", new JButton("More Info"));
ht.put("Wednesday ", new JButton("More Info"));
ht.put("Thursday ", new JButton("More Info"));
JButtonPanel.setLayout(new GridLayout(ht.size(),ht.size()) ) ;
// Instantiate ButtonHandler.
ButtonHandler handler = new ButtonHandler();
// Enumerate thru Keys.
enum = ht.keys();
while(enum.hasMoreElements()){
str = (String) enum.nextElement();
JButtonPanel.add(new JLabel(str)); // Key
JButton jB = (JButton)ht.get(str); // Value
JButtonPanel.add(jB);
jB.addActionListener(handler);
c.add(JButtonPanel,BorderLayout.NORTH);
show();
public static void main(String[] args) {
JPanelDemo JPanelDemo1 = new JPanelDemo();
// Inner Class for BUTTON handling.
private class ButtonHandler implements ActionListener {
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null,
"You Pressed " + e.getActionCommand(),
"I NEED THE KEY VALUE HERE", /* key VALUE required ie Monday,Tuesday..*?
0);
} // End ButtonHandler.
} // End of classHi,
i have modified your program to produce the intended results..
Hope this helps!
josh
public class JPanelDemo extends JFrame{
private JPanel JButtonPanel;
private Hashtable ht = new Hashtable();
Enumeration enum;
String str;
public JPanelDemo() {
JButtonPanel = new JPanel();
Container c = getContentPane();
// Put Data into Table.
ht.put("Monday ", new JButton("More Info"));
ht.put("Tuesday ", new JButton("More Info"));
ht.put("Wednesday ", new JButton("More Info"));
ht.put("Thursday ", new JButton("More Info"));
JButtonPanel.setLayout(new GridLayout(ht.size(),ht.size()) ) ;
// Instantiate ButtonHandler.
ButtonHandler handler = new ButtonHandler();
// Enumerate thru Keys.
enum = ht.keys();
while(enum.hasMoreElements()){
str = (String) enum.nextElement();
JButtonPanel.add(new JLabel(str)); // Key
JButton jB = (JButton)ht.get(str); // Value
JButtonPanel.add(jB);
jB.addActionListener(handler);
c.add(JButtonPanel,BorderLayout.NORTH);
show();
public static void main(String[] args) {
JPanelDemo JPanelDemo1 = new JPanelDemo();
public String compare(JButton b){
int i = ht.size();
Enumeration enum1 = ht.keys();
while(enum1.hasMoreElements()){
String str = (String) enum1.nextElement();
JButton jB = (JButton)ht.get(str); // Value
if( jB.equals(b) ){
return str;
return null;
// Inner Class for BUTTON handling.
private class ButtonHandler implements ActionListener {
public void actionPerformed(ActionEvent e) {
JButton b = (JButton)e.getSource();
String s = compare(b);
JOptionPane.showMessageDialog(null,
"You Pressed " + s,
"I NEED THE KEY VALUE HERE",0);
} // End of class -
Hi guys
A local business is closing down next week and im iterested in taking over the shop they have, however I would like to keep their existing number. I have contacted the exisiting tenants of the shop and they said they would not sign the number over to me and were simply going to cancel their contract with BT. I was wondering if there would be anyway of BT securing me the same number for the same building the min they cancel the contract with BT? Hope you can help asap xThis is a bt residential forum you really need to contact bt business with your needs however i think you will be unlikely to be able to take over the number
If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’ -
Digital waveform acquisition using DAQ digital lines-urgent
Hi, I would like to use DAQ Digital input acquisition to acquire the attached waveform. The wavform is actually analog but olways varies between 0 and 3.3 V ( I use 6363 OEM) . I also have another waveform that varies between 4.4 to 5.8
the problrm I have is for the first waveform I always read 0 and for the second waveform I always read 1., Is there any way to change the decision level when I select digital input acquisition. Lets say when the voltage is below 4.6 consider it as 0 and when it is above 4.6 take
Or I need to use analog acquisition
Thanks
Attachments:
tek00001.jpg 192 KBAccording to the X series multifunction DAQ documentation for the 6363 the maximum level for a Low=0.8V and the minimum level for a high=2.2V.
So your first signal (0 to 3.3V) should work ok assuming the digital ground reference is connected properly.
The second digital waveform (4.4 to 5.8V) will either need some extenal conditioning or be read as analog and converted to digital.
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle -
&nbsp;Â added when return lines [urgent]
Hi,
I am converting 6i RDF reports to 9i JSP reports and some column titles (boilerplates) are hyperlinks for help text. The JSP file looks like this for one boilerplate
<text name="B_EXCLUDED_FLAG">
<webSettings
hyperlink="/abrohelp/hh_start.asp?filename=collateral.asp&anchor=Excluded"
hyperlinkAttrs="target=_top"/>
<geometryInfo x="0.37500" y="1.50000" width="0.18750"
height="0.43750"/>
<textSegment>
<font face="Times New Roman" size="8" bold="yes"
textColor="r0g0b75"/>
<string>
<![CDATA[
]]>
</string>
</textSegment>
<textSegment>
<font face="Times New Roman" size="8" bold="yes"
textColor="r0g0b75"/>
<string>
<![CDATA[
]]>
</string>
</textSegment>
<textSegment>
<font face="Times New Roman" size="8" bold="yes"
textColor="r0g0b75"/>
<string>
<![CDATA[EX]]>
</string>
</textSegment>
</text>
When generating my report in HTML I am getting the following:
<td width=17 colspan=3 rowspan=4><font color=#0000bf> <font size=2 face="Times New Roman"><b>&nbsp;</b></font><br><font size=2 face="Times New Roman"><b>&nbsp;</b></font><br><font size=2 face="Times New Roman"><b>EX</b></font><br></font>
Then, due to &nbsp; added, two '_' are displayed in the rows above 'EX' looking like this:
EX
Into the reports builder the text for the boilerplate was entered:
<ENTER>
<ENTER>
EX
This was working for 6i using cgi
Does exist any work around to avoid '_'?
ThanksHello,
This parameter is documented in :
http://download-uk.oracle.com/docs/html/B10221_01/ptch1_re.htm#1004903
1.5 Spaces in HTML Output
On Windows, you can set it in the registry or as an environment variable.
Regards -
Moving home - delay in activating phone line
I booked a home move for Wednesday 17th September 2014 and received confirmation phone line would be activated that day on new home. new home has BT line and Infinity for previous customer. However phone line has still not been activated despite contacting order updates three times and them telling me each time I will get an update from line activation team within 12 hours. Told that infinity will take until 1st October but I really need phone line urgently.
Can get dial tone on line so needs activation in local exchange?
Any ideas on how to get this delat with quicker?
Thanks
DaveHi DaveFP
Did you manage to get this sorted yet? If you need any help please use the 'contact the mods' link in my forum profile to send in your details. You can find the link by clicking on my username.
Thanks
Neil
BTCare Community Mod
If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’. -
How to use Java Robot to click the same button multiple times
Hi All,
I am trying to use Java Robot to turn a Windows utility located on the Desktop by clicking the same button on and then off with the following code:
1. Robot robot1 = new Robot();
2. robot1.mouseMove(400,180);
// Turn on the utility
3. robot1.delay(100);
4. robot1.mousePress(InputEvent.BUTTON1_MASK);
5. robot1.delay(100);
6. robot1.mouseRelease(InputEvent.BUTTON1_MASK);
//Wait for 2 minutes
7. robot1.delay(200);
// Move the mouse to disconnect button
8. robot1.mouseMove(400,180);
// Turn off the utility
9. robot1.mousePress(InputEvent.BUTTON1_MASK);
10. robot.delay(100);
11. robot.mouseRelease(InputEvent.BUTTON1_MASK);However, only the first click (line 1 - 7) worked. Everything from step 8 onwards doesn't appear to be doing anything. Even instantiating another robot2 to carry out step 8 - 11 did not work either. Also have tried running steps 9 - 11 only. ie skip 8.
My aim is to turn this tool on and off at regular interval.
Any assistance would be greatly appreciated.
Thanks in advance,
JackHi darth_code_r and Vincent,
Both you and Vincent are right about insufficient time between the release ( 6 ) of mouse button and step ( 9 ) press the same button again to turn it off. You are also correct in saying that it was not necessary to move the mouse again ( 8 ) since it was sitting on the right button already.
Below is the code I have ended up with which worked for me:
1. Robot robot1 = new Robot();
2. robot1.mouseMove(390,150);
4. robot1.mousePress(InputEvent.BUTTON1_MASK);
6. robot1.mouseRelease(InputEvent.BUTTON1_MASK);
//Wait for 3 minutes
7. robot1.delay(30000);
9. robot1.mousePress(InputEvent.BUTTON1_MASK);
11. robot1.mouseRelease(InputEvent.BUTTON1_MASK);This utility also takes a few seconds to turn itself on and vice versa. As a result, it is necessary to give it sufficient time to turn on prior to turning it off again with the second mouse press.
Thanks to both of you very much,
Jack -
How to process Line Selection on ALV Table in ABAP WebDynpro
Hi there,
I have a view with an ALV table whose context node retrieves its data from a Service Call for a method.
The method provides certain data of a database table which the ALV displays.
Now I would like to be able to select one row of that ALV table and after pressing a button or doubleclicking on the row or whatever a different view (as for me it is also ok on the same view) should appear to display the details of that selection.
I only need to know how to retrieve the selected data.
Or its index within the internal table.
I am already looking for hours for a useful thread and actually there is one which obviously is about a similar issue apart from the multiple selection part:
How to process multiple row selection in ALV table in Wendynpro ABAP? Help!
but i am afraid that i don't understand it. Or at least I misunderstand it since it does not work with me.
The system example mentioned in the thread does not help me either because it somehow does not correspond to my needs, does it?
It would be GREAT if somebody could help me with that. Please keep it simple for I am not an expert in webdynpro yet (obviously ^^) and also please explain in detail what I have to do with the context nodes since I am not sure whether the selection is stored in my already existing node or whether I need a special one for that.
Thanks!!
christinaHi Christina,
If you just want to get one column data of the line that user clicked, use the Web Dynpro Code Wizard to Read Context of attibute you needed, then you will get code as follow:
* Define data for read attribute
node_alv TYPE REF TO if_wd_context_node,
elem_alv TYPE REF TO if_wd_context_element,
stru_alv TYPE if_view_display=>element_alv ,
item_column_name LIKE stru_alv-column_name.
* navigate from <CONTEXT> to <ALV> via lead selection
node_alv = wd_context->get_child_node( name = if_view_display=>wdctx_alv ).
* get element via lead selection
elem_alv = node_alv->get_element( ).
* get single attribute
elem_alv->get_attribute(
EXPORTING
name = `COLUMN_NAME'
IMPORTING
value = item_column_name ).
The value of column_name is stored in item_column_name.
If you need the index that the user clicked, try this:
* Definition of field symbol for index
FIELD-SYMBOLS : <fs_index> TYPE data.
* Get the selected index
ASSIGN r_param->index->* TO <fs_index>.
The index of clicked line is stored in field symbol <fs_index>.
Hope it will help.
Best Regards,
Stephanie -
How do I create a line graph in numbers if my y values are in minute/second format?
When I try clicking line graph, it shows me an empty graph.....no data on it.....just an x and y axis
Convert your Duration values to numerical equivalent using DUR2MINUTES. Chart the values in the converted column, as shown:
Chart 1: Result when cells containig duration values (column C) are selected and charted.
Chart 2: Result for same type of chanrt with same rows of column D are selected.
D2, and filled down: =DUR2MINUTES(C)
Regards,
Barry -
Line In Recording Level Adjustment
I am recording from a tape recorder to the hard drive. I have done this a lot over the years. Suddenly I am no longer able to adjust the line in recording level. I have always before gone to Control Panel/Hardware and Sound/Sound (recording tab), Click Line In, then click on Levels. When I adjust the level, either lower or higher, it does nothing to change the sound level. Can aynone please tell me why this feature isn't working any longer on my computer. Could some other setting have gotten changed? Where should I look? Thanks!!!!
Have you tried to discuss it with mixer manufacturer?
I mean they know own product very well and have best experiences with it.
I presume they have tested it on different hardware platforms and different operating systems so I believe they are the right address where you can ask for help.
In control panel you have standard options for sound but maybe you need something specific for connected mixer. -
Unwanted caret for br / in JEditorPane
I have an HTML document that I'm displaying in a JEditorPane object, using
myEditorPane.setPage(URL url);Wherever I've forced a line break in the html, using
, in the JEditorPane display I see a ">" at the beginning of the next line.
For example, the HTML code:
Line 1 <br />
Line 2 <br />is displayed in the JEditorPane as
Line 1
Line 2
Browsers don't do this. My browser displays it as
Line 1
LIne 2
Is there a way to make this HTML code display in the JEditorPane as it does in a browser?
-MarkThat's really the character of these forums. It's kind of the luck of the draw, when someone with an answer happens to read your post. If that doesn't happen within a day or so, then it's much less likely to happen at all, as the topic gets pushed down to where no one will come across it.
I've gotten many answers on this forum and others, and I've sometimes had to figure it out with no help. A second post, describing the problem from a different angle, might help. Or try to choose an intriguing title, to make everyone want to know about your problem.
-Mark -
hi experts. when i was creating a general account in FS00, i didn't click line item display button. and fbl3n working wrong for this account . in fs00 change menu couldnt fix my problem . is there any program to run for fix this problem?
While changing line item display at FS00 take care below
When line item display is activated, use program RFSEPA01 to retroactively generate line items from the documents that have already been posted. Before you start the program, the account must be locked for posting. When line item display is deactivated, any existing indexes may be deleted with program RFSEPA04.
Or alternatively create new GL account with line item and use
Srinivas -
Add buttons in ALV Report output
Dear Friends,
I am developing one ALV report in PP moule for calculating Shelf Life. The output is coming properly in ALV.
But my additional requirement is ADD coustomise buttons in ALV Reports.
Please give me an idea how can I insert buttons in my alv report?
Thanks & Regards
VasuHi vasu,
consider the code given below.
FORM F4200_PF_STATUS_SET *
FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
REFRESH i_extab.
PERFORM f4210_exclude_fcodes CHANGING i_extab.
The PF status is an exact copy of the PF status 'STANDARD' of program
SAPLSALV but with command 'CHNG' added to it.
SET PF-STATUS 'ZSOM_STANDARD' EXCLUDING i_extab.
ENDFORM.
*& Form f4210_exclude_fcodes
FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
DATA: ws_fcode TYPE slis_extab.
CLEAR ws_fcode.
ws_fcode = '&EB9'. " Call up Report.
APPEND ws_fcode TO i_extab.
ws_fcode = '&ABC'. " ABC Analysis.
APPEND ws_fcode TO i_extab.
ws_fcode = '&NFO'. " Info Select.
APPEND ws_fcode TO i_extab.
ws_fcode = '&LFO'. " Information.
APPEND ws_fcode TO i_extab.
ENDFORM. " f4210_exclude_fcodes
*& Form f4300_user_command
FORM f4300_user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'. "Double Click line Item
READ TABLE i_data INDEX selfield-tabindex.
IF i_data-qmnum NE space.
SET PARAMETER ID 'IQM' FIELD i_data-qmnum.
CALL TRANSACTION 'IW52' AND SKIP FIRST SCREEN.
CLEAR ucomm.
ENDIF.
WHEN 'CHNG'. " Change Notification Icon
READ TABLE i_data INDEX selfield-tabindex.
IF i_data-qmnum NE space.
SET PARAMETER ID 'IQM' FIELD i_data-qmnum.
CALL TRANSACTION 'IW52' AND SKIP FIRST SCREEN.
CLEAR ucomm.
ENDIF.
ENDCASE.
CLEAR ucomm.
ENDFORM. " f4300_user_command
EXPLANATION
In this program, first we created a PF status (ZSOM_STANDARD), which was an exact copy of STANDARD of program SAPLSALV through transaction SE41 (Menu Painter). Then we added another button to it,with a new fcode called CHNG. After this this we set this PF status instead of STANADRD.
We initialize a third event USER_COMMAND and associate a form with it. In this form we can capture the function codes and write any functionality under it. If we write functionality for an existing fcode, then this gets precedence over the default functionality that might be associated with it.
In this example, we capture a standard fcode &IC1 that is nothing but double clicking a line of the report. We are capturing the notification number of that line and calling transaction IW52 with it. We are also doing the same when a user clicks on the new Change Notification button.
When the user clicks the Back button in IW52, it comes back to the report.
Please reward for the same.
Message was edited by: Prakhar Saxena -
Hi,
I created three radiobuttons in alv report including with line items.
whenver double click line items , its going next screen.,
Here my requirement is when i click one click radiobutton should selecHandling will be same in both the cases. There is no Difference in Handling the events. The same can be handled using the Double click.
FORM user_command using ucomm type sy-ucomm selfield type slis_selfield.
CASE ucomm.
when '&IC1'.
case selefield-fieldname. "<---using this you can handle different fields.
when 'FIELD1'.
endcase.
endcase.
endform.
Maybe you are looking for
-
Purchase Req is not appearing in EKPO
Hi, I create a PO with the BAPI BAPI_PO_CREATE1 with reference to PR from the ALV interactive.but when i check the PO the req no is not appearing eventhoug i passed the correponding POITEM-PREQ_NO properly to the BAPI. below are the field i am pas
-
I am using F-67 for customer credit memo parking my requirment is if I post below 500/- SAR the document should not lock and the accountant can release the document through FBV0 t-code and if the accountant post above 500/-SAR than the document shoul
-
Signature properties -- Bad parameter
Hi, I have a strange problem. I wrote a plugin with Acrobat SDK 6.0 for Adobe Acrobat and Adobe Reader which signs and verifies PDF documents. I have a problem with a certain signature. I can't view the signature properties. Acrobat says "Acrobat err
-
How import raw files from canon550D into PSE9 ?
hi' i've just purchased PSE9. I have downloaded Camperqa Raw 6.2 update and installed both...but still I cannot see/open my raw files from canon 550D - any suggestions...??
-
Hello Gurus I need to create adobe forms that should support North-America letter format as well as Europeen A4 format. Letter format is 8.5 inches X 11 Inches (215.9 mm X 279.4 mm) A4 format is 8.26 inhes X 11.69 Inches (210 mm X 297 m) 1. Is it pos