How make Invisible a particular Cell in the TAble Control.
Dear Freinds,
I have requirement where in on a particular conditon i have to close one of the fields in the TAble contorl . That is i have to make it as invisible ....iam able only to make only display (greyed out) only iam not able to make invisible.
Please could any one let me know how can we make invisible a particular field.
regards
divya.
Hi,
Try this it works,
LOOP AT tc_release_ord-cols INTO wa_cols. "tc_release_ord-----> table control
CASE wa_cols-screen-name.
WHEN 'ZRELEASE_ORDER-SPOTS1'.
IF spots1 = ' '. > use your condition here
wa_cols-invisible = 'X'. > set property to invisible
MODIFY tc_release_ord-cols FROM wa_cols. >modify table control
ENDIF.
WHEN 'ZRELEASE_ORDER-SPOTS2'.
IF spots2 = ' '.
wa_cols-invisible = 'X'.
MODIFY tc_release_ord-cols FROM wa_cols.
ENDIF.
WHEN 'ZRELEASE_ORDER-SPOTS3'.
IF spots3 = ' '.
wa_cols-invisible = 'X'.
MODIFY tc_release_ord-cols FROM wa_cols.
ENDIF.
endcase.
Endloop.
Hope it helps you,
Regards,
Abhijit G. Borkar
Similar Messages
-
How can I take check box in particular cell of the table in smartforms??
Hi experts,
pls tell me how can I take check box in particular cell of the table in smartforms??
It is not interactive form.
I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...Hi,
first create text for a particular cell.
In that we have a text editor in that text editor we have symbols in include menu.
whatever the symboll u want to put to ur cell . just assign it.
please check it. if it helpful reward points.
regards,
satish. -
How to edit a particular row in the table ctrl when a push button is clickd
Hi Experts,
How to edit a particular row (except the Primary keys) after selecting it in the TABLE CONTROL when a
push button is clicked in the table control.
For Eg. If you have a push button say "Modify", the particular row what we select in the table control should be in a
editable mode after clicking "Modify" Push button.
Please help me out.
Thanks in advance.Hey Ram,
Thanks a ton.
Its working fine...sorry for the late reply.
The reason behind the delay is because i had modified my code as per your logic it worked fine but the thing is that the whole column was in editable mode but not a single row.
For E.g If i want to edit a particular row, first i select the row and then click on "Modify" button. After i click on the button, the whole column gets in a editable mode including the one which i intentionally selected.
Here, the solution is that you have to set a flag in PBO so that once it is done with PBO then it need not come back again after we click on "Modify" button.
And one more query is that after you modify a particular row in the table control ( When it is in editable mode) and click on the "Save" button, it is not getting updated to database.
To update the database, we need to select the row once again after modifying it and click on the "Save" button.
Here, database is updating only when it is selected again. If it is not selected, it is not getting updated.
If you have any alternative solution, then please help me out.( I hope i am clear with the question.)
Thanks,
Ananth. -
How can we delete a line from the table control .
hi all
how can we delete a line from the table control .
situation is.
created table control in se51 which will display the data of a table.
how could i select a line from the table control ?
how could i delete the selected lines form the table.
thanks in advanceChange the Table Control attributes such that user can only select a single record(row).
<u>Tip to delete a selected record</u>
1) write a module 'Mark' in the PAI as below
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP WITH CONTROL table_view.
MODULE read_table_control.
FIELD flag MODULE mark ON INPUT.
ENDLOOP.
MODULE user_command_0100.
2) Module Mark is below.
MODULE mark INPUT.
CHECK flag = 'X'.
x = table_view-top_line + sy-stepl - 1.
Delete itab INDEX x.
ENDMODULE. " mark INPUT
Table_view is the TableControl Name.
'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
<u>award if uesful</u>
Regards,
Sudheer -
How to make a particular cell of the table font different?
hi friends,
i have a table. i wanted the (only)last row data to be displayed in the bold font.
is it possible?
help needed urgently
regards,
Deepa Raghuramanclass BoldTableCellRenderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column) {
Component c = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
if (row == table.getRowCount() -1) {
Font f = UIManager.getFont("Table.font");
c.setFont(new Font(f.getFontName(),Font.BOLD,f.getSize()));
} else {
c.setFont(UIManager.getFont("Table.font");
return c;
}and then set this Renderer as your table renderer by
table.setDefaultRenderer(Object.class,new BoldTableCellRenderer());Its untested and may have syntax errors (I haven't compiled it), but I hope it gives you an idea. -
Modify data in the table control
hello:
i would like to ask a favor , i am working with a table control (it already has the information i need) all the fields all my table control are present in output form only, but i need when the user press a pushbutton to modify a specific data one of the cell of the table control permit to be change.
my output is:
field1 field2 field3 (only output )
if the user press the button 'CHANGE DATA' it will be present as
field1 field2 fiel3(ready to recibe new data ).
but i don´t know how to do it, if somebody knows how to do it
thanks a lot.this will be your's main program
*& Report ZEMP
REPORT ZEMP.
TABLES: ZEMP." Z TABLE
CONTROLS: TAB_CONTROL TYPE TABLEVIEW USING SCREEN 1000.
DATA: IT LIKE ZEMP OCCURS 0 WITH HEADER LINE.
SELECT * FROM ZEMP INTO CORRESPONDING FIELDS OF TABLE IT.
CALL SCREEN 1000.
*& Module STATUS_1000 OUTPUT
text
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE USER_COMMAND_1000 INPUT.
IF SY-UCOMM = 'BACK'.
LEAVE PROGRAM.
endif.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module MODIFY INPUT
text
MODULE MODIFY INPUT.
MODIFY IT INDEX TAB_CONTROL-CURRENT_LINE.
MODIFY ZEMP FROM IT.
ENDMODULE. " MODIFY INPUT
and this should be your flow logic
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
LOOP AT IT WITH CONTROL TAB_CONTROL.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
LOOP AT IT.
MODULE MODIFY.
ENDLOOP.
Regards
Prakash Varun -
I want to make invisible mode ffield (Version) in the transaction code MD61
I want to make invisible mode ffield (Version) in the transaction code MD61.
Can anybody tell me how to do it with coding.
ThanksRefer the thread for details about coding-
BAPI_REQUIREMENTS_CREATE
Reards,
Amit -
How to print a particular cell data from .xls file
InputStream inputStream =new FileInputStream("D:\\test.xls");
POIFSFileSystem fileSystem=new POIFSFileSystem (inputStream);
HSSFWorkbook workBook = new HSSFWorkbook (fileSystem);
HSSFSheet sheet = workBook.getSheetAt (0);
Iterator<HSSFRow> rows = sheet.rowIterator ();
HSSFRow row = rows.next ();
Iterator<HSSFCell> cells = row.cellIterator ();
HSSFCell cell = cells.next ();
can any get me answer to print the particular cell from the excel sheet.
Regards
PraveenThank you for your response
when i written the in following way
HSSFWorkbook workbook = new HSSFWorkbook(new
FileInputStream("D:\\sam.xls"));
HSSFSheet sheet = workbook.getSheetAt(1);
HSSFRow row = sheet.getRow(0);
HSSFCell cell = row.getCell((short)3);
int as= sheet.getFirstRowNum();
int bs=sheet.getLastRowNum();
System.out.println("Begin of row"+as);
System.out.println("End of row"+bs);
Is Displayed as
Begin of row 0
End of row 0
can any one plz let me know the procedures to print first and last row number of a .xls sheet
ans also the column number please. -
How do you highlight several cells with the mouse in numbers
how do you highlight several cells with the mouse in numbers
Hi David,
Using only the mouse, you can select a contiguous range of cells using the method described by dwb.
For larger (but still contiguous) ranges you might prefer this method:
Click the first (top left) cell of the desired selection.
Scroll to the last (botom right) cell of the desired selection.
Shift-click the bottom right cell to select it, and all of the cells in the rectangular array defined by this and the top left cell selected in step 1.
To select two or more non-contiguous cells:
Click on the first to select it.
Command-click on another to add it to the selection.
Repeat as necessary.
Regards,
Barry -
How to set colors in cells depending the conditions in alvtree
Hi All,
Could you please provide me idea or sample program how to set colors in cells depending the conditions in alvtree.
Thanks,
SureshWhen running vim in a terminal, it will use whatever colour scheme is defined by the terminal. You should have a look at this thread:
http://bbs.archlinux.org/viewtopic.php?id=51818
Also, check the wiki article on Xdefaults. -
How to disable perticluar cell of the table on the screen,at run time?
HI All,
I am using table control on the screen.
I have 5 field in the table control.
out of which one is posnr.
Now, if user doesnt enters the value of posnr then it should be created automatically.
I have written the code for that ,but this perticlar cell (for which posnr is generated automatically ) should be disabled now.
Can anybody tell me how can i do it?
Thnx in advance.Hello Sanjay,
Write a module inside the loop...endloop in the PBO of your screen. Inside the module, check the field and disable it by modifying the SCREEN table.
loop at itab with control tctrl.
module modify screen.
endloop.
module modify_screen output.
loop at screen.
if screen-name cs 'POSNR'.
if itab-posnr is not initial.
screen-input = 0.
else.
screen-input = 1.
endif.
modify screen.
endif.
endloop.
endmodule.
Regards,
Manoj -
Urgent: How to exclude a particular value from the selection in the infopac
How to exclude a particular value from the selection in the infopackage.
Ex: not load for cost center 10000
Thank you,
samHi Sam,
You cannot do this directly as exclusion, but you can include all other values, even as ranges and thus exclude the particular value, else you can also try to do this by writing a routine.
Hope this helps... -
How do I click on a cell in a table control, and display the value in a string?
What I would like to do is to click on a cell in a table control, and have the value of the cell be displayed in a string indicator. What ever cell I click on, I would like the value to be displayed in the indicator.
Thank you!
Solved!
Go to Solution.... or
Event >>> ouse down for table.
Use Coords" to feed invoke node "point To Row Column" and returned "Cell Postion" can be unbundled to produce the row and column tht can be used to index out the value.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Calc: How can I get absolute cell references in tables to work?
Hi, I'm new to Star Office, and have run into a problem in my first spreadsheet.
I have a data table in my spreadsheet.
Some cells in the table need to make calculations based on other cells in the table.
When I sort the table, however, the cell references are made to be incorrect. I expected that I could just use absolute references (e.g. $A$2) and when the table was sorted those references would be updated to refer to the new absolute location of that cell, e.g. $A$10). However, the absolute references are being left literally the same ($A$2) after the sort, making them reference a different row of data than intended. Relative references of course don't work in this situation either (I tried for thoroughness). (I thought Excel behaved the way I expected, but I just tried it in Excel 2007 and it is exhibiting the same behavior as StarOffice Calc.)
I'm also concerned, although I haven't tried it yet, about what will happen when I reference cells in this table from another table using absolute references that the same problem will exist...
So basically, I can't find a way to use absolute references to cells in a table that will persist correctly when the table is sorted. Any suggestions?
Thanks. Asa
Edited by: earthasa on Sep 20, 2007 2:37 AM
I was able to work around the problem by creating an index column in the table with a unique number for each row of data and using vlookup() to reference the correct row. If there is a more elegant solution I'm still interested :)
Edited by: earthasa on Sep 20, 2007 3:00 AMOK. Think I've got it now thanks to looking at the short keys and searching for "Full Screen". The upper left key is "`" which looks like a grave - a slightly angled single quote. But when I look at the "Application" setting for Toggle full screen it is set to "'" - a "normal" single quote. Sure enough, if I hit the normal single quote key the toggle works.
I have not been anywhere near the hotkeys and can't imagine why anything would change it from a grave key to a single quote - especially as they look almost identical on the screen. I'm guessing that Adobe changed this (maybe only for international users?)
Anyway I now know how to toggle full screen, although it makes the "Premiere" keyboard with its big purple key for "Toggle full screen" redundant. Does make me wonder what the shortcut key of "'" or CTRL + "'" gives that I'm presumably missing since it appears to have been remapped. -
How to delete a particular row in ALV table
Hi,
How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row)
Thanks
Bala DuvvuriHello Bala,
Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
data : lr_table_settings TYPE REF TO if_salv_wd_table_settings,
lr_config TYPE REF TO cl_salv_wd_config_table.
lr_table_settings ?= lr_config.
** Setting the ALV selection to multiple selection with no lead selection
lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
Next delete the selected rows in the action triggered by the button:
METHOD onactiondelete_rows .
DATA: wd_node TYPE REF TO if_wd_context_node,
lt_node1 TYPE ig_componentcontroller=>elements_node,
wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set,
row_number TYPE i VALUE 0.
wd_node = wd_context->get_child_node( name = 'NODE' ).
CALL METHOD wd_node->get_selected_elements
RECEIVING
set = lt_temp.
LOOP AT lt_temp INTO wa_temp.
wd_node->remove_element( EXPORTING element = wa_temp ).
ENDLOOP.
CALL METHOD wd_node->get_static_attributes_table
EXPORTING
from = 1
to = 2147483647
IMPORTING
table = lt_node1.
wd_node->bind_table( new_items = lt_node1 ).
ENDMETHOD.
If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
Regards,
Uday
Maybe you are looking for
-
IPod Touch 1st Gen is showing up in Computer but not in iTunes
I recently updated to iTunes 10.3 I didn't try to sync my iPod immediatly though so I didn't notice this problem until just now. I went into iTunes to sync my ipod and the ipod would show up in Computer or in iTunes, I uninstalled it and downgraded t
-
Problem with iOS7 : I have a message on my screen "This phone is not registred as a developper phone..." or something like that, can you help me because I download the iOS7 Beta even if I was not a developper. Thank you very much if you help me.
-
How to get the ASM to OS device name mapping
Hi all, This seems to be an often answered question, but usually the answers specify what to do on the OS (e.g. run oracleasm etc) and/or in the ASM database running on the ASM Host (select * from V$...). In our situation have plug-ins collecting dat
-
Supplier and manufaturer Detail in result recording
Dear gurus, In inspection lot and at the time of vendor approval (Qinfo record) I wants combination of supplier and manufacturer separately. In the inspection lot details we are having 2 field Manufacturer --> Non editable Supplier --> Value flow fro
-
IDoc (Outbound & Inbound) PO to ECC (2 clients)
Hi As part of testing I need to send outbound idocs from 2 separate clients in ECC to PO Also I need to send inbound idocs to 2 separate clients of ECC from PO With one client everything is working fine. What extra steps need to be done for 2 clients