Move Column A
I am trying to move Column A 3 columns to the right - where Col D is. User Guide sez: +To move a column or row to a different location in the same table or a different table, click the column or row reference tab, press, and then drag the reference tab.+
When I click the column ref tab and press then drag it hilites Col B & C, etc - it doesn't simply move. Now I remember doing this before and being frustrated - then poof once it worked. Somehow I am not clicking pressing dragging etc correctly. Any clues? Help is great appreciated.
smidi wrote:
Here's what I've just learned. The User Guide instructions work exactly as described, except for Col A.
Also, you can insert a column to the left or right of any column except Col A. So I inserted an empty col to the left of Col B, then copied pasted Column A into it - and could THEN move to where I really wanted it. Now that's not nice, but it worked. So why not insert before Col A? Why not drag to relocate that column or to move one in front of it? Gosh - such a deal. Hope I'm wrong and don't know what I'm doing.
On the default "blank" document in Templates, Column A is a Header Column and Row 1 is a Header Row. As you've found, Header rows and columns have their own set of rules and restrictions.
Here's a workaround. I'd start by doing a Save as it involves a step where the data from column A exists only on the Clipboard (and in the Saved file).
Select Column A (the Header column) and Copy (or Cut).
Go Table > Delete Column. (deletes the Header column)
Go Table > Add Column to Before. (adds a body column)
Paste.
Column A should now be moveable following the instructions in the Guide.
Regards,
Barry
Similar Messages
-
How can I move columns in Numbers without distorting the formula in other cells? In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly. When I do it in Numbers, the formula messes up. How can I do this?
For example: I have formulas in columns D and F that relate to columns C to CU
If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted... How can I do this without distorting the formula?Thanks for the feedback.
If I often urge askers to look at the available resources, it's because a large range of questions asked in the forums are already answered in these documents.
As they are PDFs, they are easy to search in.
CAUTION
Download them while they are available.
Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
Searching infos in the iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
It seems that the tool used to generate the web pages was wrongly configured.
Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
My iDisk is : http://public.me.com/koenigyvan -
How to move columns in SBO forms
Hello,
I would like to know if it is possible to move columns in SBO form tables.
If yes, what is the way to do that?
Thank you.
ThibaultHi Thibault,
In the 2005 SDK there is a new object in the DI-API called <i>ColumnsPreferences</i>. Maybe you should look into that. The <i>TabsOrder</i> property is the one you need I guess...
Do a search on this forum on <i>ColumnPreferences</i> and you should find a few examples how to get the right column (it's tricky).
Hope it helps,
Rowdy -
How to deactivate move columns/rows on tables obiee11
Hi!
I have two questions:
1. Is possible to hide the option of next image?
http://imageshack.us/photo/my-images/690/tabledp.jpg/
I want to user only see table like obiee 10 and I don't want to move columns or rows...
2. Also I want to hide information when user has the mouse in gauge chart...like next image:
http://imageshack.us/photo/my-images/809/gaugej.jpg/
Only for this gauge...maybe some other gauges I want to see this info...
Thanks!Alex1 wrote:
1. Is possible to hide the option of next image?
http://imageshack.us/photo/my-images/690/tabledp.jpg/
I want to user only see table like obiee 10 and I don't want to move columns or rows...
No, this is not possible in OBIEE 11g. There is a bug logged for this ( Bug 10222173 - ABILITY TO DISABLE DRAG AND SORT FUNCTIONALITY OF COLUMNS )
Regards,
-Amith. -
BEx analyzer don't work move columns in report (like drill down)
Hi
I have an issue on BEx Analyzer... When I built one report... add some characteristics and soo on... but then I need to move the order of columns... then I try to drill down.. or move to order of column... It doesn´t work,
I did this function before.. when the poin of the mouse it's convert with other draw... like -->
<--
But this time it's not possible...
Then If I press the icon that say design mode... I saw that the option of navigation is active... and when I close the design mode... the functionality of move columns work...:(
It's difficult that each time that the user need to move columns in Bex will go to design mode... just for activate..
I know thta we have some function on context menu.. for move columns one by other... but not for certain position..
Could you help me please?
I will appreciate your help and I will assign points for your answers.
AliceHi Alice,,
This happens some time, when i am unable to drill down by just dragging and dropping the columns. though i could not find out why. Best thing, what i do, i refresh the query and next time it works Ok.. and other th ing what you can do, right click, on the characteristics list on the left pane, go to "change drilldown", then " drill down by" there the user can select the option he is looking in for.
Hope this helps.
Shakeel. -
Hide Move Columns on tables 11.1.1.5.0
Hi! I'm using obiee 11.1.1.5.0 and I got it hide order columns with css style. (add code in a dashboard page)
Now I would like to approach hide move columns....
You can see in my image that arrows are gone in my table...but still move columns...I need to remove it!
Anybody knows about it??
Thanks!
http://imageshack.us/photo/my-images/850/moveau.jpg/In version 11.1.1.5.0 I don't have this option...but I have a good solution:
we have to add a text in a dashboard page like this:
<style type="text/css">
.PT_SI{
display:none;
.PT_HGHT{
display:none;
</style>
mark HTML
We coudn't sort any column coudn't move any column :) -
Move column from one place to another..
Hi
I need to arrange the order in which the columns are displayed in my ALV Grid displayed so that i can move the columns from one position to another but its not been allowed in the program so could u pls suggest which field needs to be set for this?
Regards
GunjanHi
You can use the following statement
ls_fcat-col_pos = 01.
By using this you can fix your column position
or else to sort the column try like this
sort-spos = '10'.
SORT-FIELDNAME = 'Years'.
SORT-TABNAME = 'DATA_TAB2'.
sort-UP = 'X'.
sort-subtot = 'X'.
SORT-GROUP = '* '.
APPEND SORT. CLEAR SORT.
In the It_SOET internal table write:
IT_SORT-Group = 'X'.
REPORT ZSDN .
TABLES : ekkn,ekko,EKPO,EKET,VBEP,LFA1.
TYPE-POOLS : slis, ICON.
DATA : DATE1 TYPE SY-DATUM.
data : begin of itab occurs 0,
VBELN like ekkn-VBELN, "SALE ORDER
VBELP LIKE EKKN-VBELP, "LINE ITEM
BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE
KUNNR LIKE VBAK-KUNNR, "SOLD TO PARTY
VBELN1 like VBEP-VBELN, "SALE ORDER1
POSNR1 LIKE VBEP-POSNR, "LINE ITEM
EDATU LIKE VBEP-EDATU, "END DATE
EMATN LIKE EKPO-EMATN, "STATUS
BMENG LIKE VBEP-BMENG, "DAYS
TDDAT LIKE VBEP-TDDAT, "START DATE
LMENG LIKE VBEP-LMENG, "DAYS -START DATE
LABNR LIKE EKPO-LABNR, "STATUS
PLNUM LIKE VBEP-PLNUM, "OVERALL STATUS
EKGRP like ekko-EKGRP, "PURCHASING GROUP
EBELN LIKE EKKN-EBELN, "PO NO
EBELP like ekkn-EBELP, "LINE ITEM
EINDT LIKE EKET-EINDT, "DELIVERY DATE
MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
TXZ01 LIKE EKPO-TXZ01, "MATERIAL TEXT
LIFNR LIKE EKKO-LIFNR, "VENDOR
MENGE LIKE EKPO-MENGE, "QUANTITY
WEMNG LIKE EKET-WEMNG, "GR QTY
WAMNG LIKE EKET-WAMNG, "BAL QTY
MEINS LIKE EKPO-MEINS, "OUn
NETPR LIKE EKPO-NETPR, "PRICE
LOEKZ LIKE EKPO-LOEKZ, "DELETED
LIFNR1 LIKE LFA1-LIFNR, "VENDOR
NAME1 LIKE LFA1-NAME1, "VENDOR NAME
WERKS LIKE EKPO-WERKS, "PLANT
end of itab.
DATA : BEGIN OF it_final OCCURS 0,
KUNNR LIKE VBAK-KUNNR, "SOLD TO PARTY
LABNR LIKE EKPO-LABNR, "STATUS
EMATN LIKE EKPO-EMATN, "STATUS
VBELN like ekkn-VBELN, "SALE ORDER
VBELP LIKE EKKN-VBELP, "LINE ITEM
BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE
EDATU LIKE VBEP-EDATU, "END DATE
TDDAT LIKE VBEP-TDDAT, "START DATE
PLNUM LIKE VBEP-PLNUM, "OVERALL STATUS
EKGRP like ekko-EKGRP, "PURCHASING GROUP
EBELN LIKE EKKN-EBELN, "PO NO
EBELP like ekkn-EBELP, "LINE ITEM
EINDT LIKE EKET-EINDT, "DELIVERY DATE
MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
TXZ01 LIKE EKPO-TXZ01, "MATERIAL TEXT
NAME1 LIKE LFA1-NAME1, "VENDOR NAME
MENGE LIKE EKPO-MENGE, "QUANTITY
WEMNG LIKE EKET-WEMNG, "GR QTY
WAMNG LIKE EKET-WAMNG, "BAL QTY
MEINS LIKE EKPO-MEINS, "OUn
NETPR LIKE EKPO-NETPR, "PRICE
WERKS LIKE EKPO-WERKS, "PLANT
END OF it_final.
DATA: color TYPE TABLE OF lvc_s_scol WITH HEADER LINE,
st_layout TYPE slis_layout_alv.
DATA : fcat TYPE slis_t_fieldcat_alv,
ls_fcat LIKE LINE OF fcat,
fheader TYPE TABLE OF slis_listheader WITH NON-UNIQUE DEFAULT KEY
WITH HEADER LINE INITIAL SIZE 0.
DATA :i_repid LIKE sy-repid,
gs_layout TYPE slis_layout_alv,
week type n.
SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: zso FOR ekkn-vbeln.
SELECT-OPTIONS: zpgr FOR ekko-EKGRP.
SELECT-OPTIONS: ZPL FOR EKPO-WERKS.
SELECTION-SCREEN END OF BLOCK bk1.
gs_layout-colwidth_optimize = 'X'.
select A~VBELN
A~VBELP
A~EBELN
A~EBELP
B~MATNR
B~TXZ01
B~MENGE
B~MEINS
B~NETPR
B~WERKS
B~LOEKZ
C~EINDT
C~WEMNG
D~EKGRP
D~LIFNR
D~BEDAT
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM EKKN AS A
INNER JOIN EKPO AS B ON A~EBELN = B~EBELN
AND A~EBELP = B~EBELP
INNER JOIN EKET AS C ON A~EBELN = C~EBELN
AND A~EBELP = C~EBELP
INNER JOIN EKKO AS D ON A~EBELN = D~EBELN
WHERE A~VBELN IN ZSO
AND D~EKGRP IN ZPGR
AND B~WERKS IN ZPL.
LOOP AT ITAB.
ITAB-WAMNG = ITAB-MENGE - ITAB-WEMNG.
SELECT SINGLE VBELN KUNNR
FROM VBAK INTO (ITAB-VBELN , ITAB-KUNNR )
WHERE VBELN = ITAB-VBELN.
SELECT SINGLE VBELN EDATU
FROM VBEP INTO (ITAB-VBELN , ITAB-EDATU)
WHERE VBELN = ITAB-VBELN.
DATE1 = SY-DATUM.
ITAB-BMENG = ITAB-EDATU - DATE1.
if itab-BMENG < 0.
ITAB-EMATN = 'OVER DUE'.
elseif itab-BMENG ge 0 AND itab-BMENG le 10.
ITAB-EMATN = 'CRITICAL'.
elseif itab-BMENG > 10.
ITAB-EMATN = 'UNDER FOLLOW-UP'.
endif.
SELECT SINGLE VBELN POSNR TDDAT
FROM VBEP INTO (ITAB-VBELN1 , ITAB-POSNR1 , ITAB-TDDAT)
WHERE VBELN = ITAB-VBELN AND
POSNR = ITAB-VBELP.
ITAB-LMENG = ITAB-TDDAT - DATE1.
if itab-LMENG < 0.
ITAB-LABNR = 'OVER DUE'.
elseif itab-LMENG ge 0 AND itab-LMENG le 10.
ITAB-LABNR = 'CRITICAL'.
elseif itab-LMENG > 10.
ITAB-LABNR = 'UNDER FOLLOW-UP'.
endif.
IF ITAB-WAMNG LE 0 OR
ITAB-LOEKZ = 'L' OR
ITAB-LOEKZ = 'S'.
ITAB-PLNUM = 'CLOSED'.
ELSE.
ITAB-PLNUM = 'OPEN'.
ENDIF.
SELECT SINGLE LIFNR NAME1
FROM LFA1 INTO (ITAB-LIFNR1 , ITAB-NAME1)
WHERE LIFNR = ITAB-LIFNR.
MODIFY ITAB.
ENDLOOP.
loop at itab.
move-corresponding itab to it_final.
append it_final.
endloop.
perform edit_mask.
i_repid = sy-repid.
PERFORM fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = i_repid
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = fcat
i_save = 'A'
TABLES
t_outtab = it_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
*& Form fieldcat
* text
* --> p1 text
* <-- p2 text
FORM fieldcat .
MOVE sy-repid TO i_repid.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-decimals_out = 2.
ls_fcat-col_pos = 1.
ls_fcat-fieldname = 'KUNNR'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Sold to Party'.
ls_fcat-emphasize = 'C310'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 6.
ls_fcat-fieldname = 'LABNR'.
ls_fcat-outputlen = 20.
ls_fcat-seltext_m = 'Window Start Status'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C510'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 5.
ls_fcat-fieldname = 'EMATN'.
ls_fcat-outputlen = 15.
ls_fcat-seltext_m = 'Window End Status'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C410'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 2.
ls_fcat-fieldname = 'VBELN'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Sale Order'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C710'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 3.
ls_fcat-fieldname = 'VBELP'.
ls_fcat-outputlen = 5.
ls_fcat-seltext_m = 'Item'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C710'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 4.
ls_fcat-fieldname = 'EBELN'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'PO Number'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C710'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 7.
ls_fcat-fieldname = 'EBELP'.
ls_fcat-outputlen = 5.
ls_fcat-seltext_m = 'PO Item'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 8.
ls_fcat-fieldname = 'EKGRP'.
ls_fcat-outputlen = 3.
ls_fcat-seltext_m = 'Pur.Group'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 9.
ls_fcat-fieldname = 'BEDAT'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'PO Doc.Date'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 10.
ls_fcat-fieldname = 'EINDT'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'PO Delivery Date'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 11.
ls_fcat-fieldname = 'MATNR'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Material Number'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 12.
ls_fcat-fieldname = 'TXZ01'.
ls_fcat-outputlen = 15.
ls_fcat-seltext_m = 'Description'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 13.
ls_fcat-fieldname = 'NAME1'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Vendor'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C110'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 14.
ls_fcat-fieldname = 'MENGE'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'PO Quantity'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 15.
ls_fcat-fieldname = 'WEMNG'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Quantity Recvd'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 16.
ls_fcat-fieldname = 'WAMNG'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Bal Qty'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 17.
ls_fcat-fieldname = 'MEINS'.
ls_fcat-outputlen = 2.
ls_fcat-seltext_m = 'OUn'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 18.
ls_fcat-fieldname = 'NETPR'.
ls_fcat-outputlen = 8.
ls_fcat-seltext_m = 'NetPrice'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 19.
ls_fcat-fieldname = 'TDDAT'.
ls_fcat-outputlen = 15.
ls_fcat-seltext_m = 'Window Start date'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 20.
ls_fcat-fieldname = 'EDATU'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'Window End date'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 21.
ls_fcat-fieldname = 'PLNUM'.
ls_fcat-outputlen = 10.
ls_fcat-seltext_m = 'PO Status'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C610'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ls_fcat-col_pos = 22.
ls_fcat-fieldname = 'WERKS'.
ls_fcat-outputlen = 5.
ls_fcat-seltext_m = 'Plant'.
ls_fcat-tabname = 'IT_FINAL'.
ls_fcat-emphasize = 'C210'.
APPEND ls_fcat TO fcat.
clear ls_fcat.
ENDFORM. " fieldcat
*& Form edit_mask
* text
* --> p1 text
* <-- p2 text
FORM edit_mask .
loop at it_final.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = it_final-vbeln
IMPORTING
OUTPUT = it_final-vbeln.
Read table it_final.
* modify it_final.
endloop.
ENDFORM. " edit_mask
Reward all helpfull answers
Regards
Pavan -
CCM 2.0 Move column on list results
Hi
When in shop launch the catalogue (same window).
Search and get a list of results
The end column is ACTION with the shopping cart .gif for add to cart.
Does anyone know how to move the column from the right hand side of the screen to the left. for example.
This is not a characteristic which available for moving via ccm config.
ThanksHi Kay,
I am not sure whether this is wht u r exactly looking for but still u can have a look on the link mentioned below -
https://websmp204.sap-ag.de/ibc-srm
Here u can see the catalog content management.
Thanks. -
Field symbol to move column of one ITAB to row of another ITAB
Hello , I need some help on this . I have two ITAB's
Like ITAB1 with 1 field and
ITAB2 with say around 100 fields and all the field name are different in ITAB2 .
Now ITAB1 has 1 column and 100 rows data in it . I want to move all the values from the rows of ITAB1 into next to next fields of ITAB2 on a single row . Like this.
ITAB1
1
2
3
5
I Want to move these five rows to ITAB2 like below
ITAB 2
1 2 3 4 5
Not able to use do varrying as field names of ITAB2 are diff . Also dont want to write a lengthy code for manual field to field movement . Any help . is it possible to get this done using field symbol.
Thanks
JSolved . Below thing helped me .
field-SYMBOLS <fs> TYPE any.
FIELD-SYMBOLS <comp> TYPE ANY.
ASSIGN wa_it2 to <fs>. " target ITAB work area
loop at it1.
ASSIGN COMPONENT sy-tabix of STRUCTURE <FS> to <comp>.
<comp> = it1-f1.
endloop .
append wa_it2 to it2.
UNASSIGN : <fs> , <comp> .
Cheers
J -
hi
in MB5M, how we can change the position of columns header, for example, I want to move division's column before that of the material.
i want also sort material by expiry date.
it's possible to do that.
thanks in advancePersonally you can check it in SU53.
You do your MB5B until you are on this pop-up where the fields are in grey. Then close the pop-up, dont click anywhere else, do not click save or enter. Then enter /NSU53 in command field.
This gets you directly to the authoization check and you see the last checked object for which you do not have authoization, or just the message that all checks were okay. -
Move columns in table at runtime
Hi,
Can anyone tell me how to do the application which is having the following functionalities..
1)moving the columns in the table at run time...
2)drag and drop option at runtime..(i.e if one table having items and 2nd table is empty if we drag and drop the item from one table to 2nd table then the item should display in the 2nd table...
can anybody send me the procedure how to acheive this....
thanks,
viswaHi,
1)moving the columns in the table at run time...
Sorry i didnt get ur query ... is it like shifhting columns within the table ? please explain ur query in detail.
2)drag and drop option at runtime..(i.e if one table having items and 2nd table is empty if we drag and drop the item from one table to 2nd table then the item should display in the 2nd table...
Drag and drop functionality can be done in table if your NWDS version CE7.1EHP1.
for more information see like link:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b06c8c9a-19a4-2b10-d985-9ae7a4383478]
Thanks and Regards -
Logic- report to move columns to row in a list
Hi,
I have an internal table ITAB with following data
ITAB
DATE MATNR PLANT QUANT
200704 100A 050 111.00
200705 100A 050 333.00
200706 100A 050 444.00
200707 100A 050 555.00
200704 100B 051 999.00
200705 100B 051 666.00
I need an report output like this
Matnr plnt Apr-2007 May-2007 june-2007 July-2007
100A 050 111.00 333.00 444.00 555.00
100B 051 999.00 666.00 0.00 0.00
Any ideas?
Rgds
PraveenHi,
Try this sample..This may not entirely solve your purpose..Might be you can expand the code..Also my code will work if the date is in the third place of the interanl table declaration...before matnr and plant..As mentioned in my example..
DATA: BEGIN OF itab OCCURS 0,
matnr TYPE matnr,
plant TYPE werks_d,
date(6) TYPE n,
menge TYPE menge_d,
END OF itab.
DATA: v_text1(10) VALUE 'Apr-2007'.
DATA: v_text2(10) VALUE 'May-2007'.
DATA: v_text3(10) VALUE 'June-2007'.
DATA: v_text4(10) VALUE 'July-2007'.
DATA: v_int TYPE i.
POPULATE DATA.
itab-matnr = '100A'.itab-plant = '050'.
itab-menge = '111.000'. itab-date = '200704'.
APPEND itab.CLEAR itab.
itab-matnr = '100A'.itab-plant = '050'.
itab-menge = '333.000'. itab-date = '200705'.
APPEND itab.CLEAR itab.
itab-matnr = '100A'.itab-plant = '051'.
itab-menge = '111.000'. itab-date = '200704'.
APPEND itab.CLEAR itab.
Display the data.
SORT itab BY matnr plant date.
WRITE: /1(20) 'Material',
22(5) 'Plant',
28(10) v_text1,
39(10) v_text2,
50(10) v_text3,
61(10) v_text4.
LOOP AT itab.
New plant.
AT NEW plant.
WRITE: /1(20) itab-matnr,
22(5) itab-plant.
v_int = 28.
ENDAT.
WRITE: AT v_int(10) itab-menge.
v_int = v_int + 11.
ENDLOOP.
Thanks,
Naren -
Column headers and data are mismatched in Data tab of views after move col.
Hi,
Currently, I am using Windows XP, SQL Developer Version 1.2.1 Build Main 32.13.
Java platform 1.5.0_06
Oracle IDE 1.2.1.3213
I'm having trouble with display of data from views in the "Data" tab of SQL Developer. If I move a column left or right of its original place, the data no longer line up with the proper column heading. The data are in the correct order, but the column headers are out of whack. Also, in the Single Record View, the data and column headers are mismatched.
Refreshing the view, closing the view, closing and reopening SQL Developer do not "reset" the view so that the data and proper column headers are lined up. Even dropping and recreating the view does not force SQL Developer to use the proper data-column header match.
Just to be clear, the data within the view is fine. It is the display of the data-column headers in the "Data" tab of SQL Developer (and the single record view) that is wrong. The mismatch seems to occur after a column is moved in the view.
Is this a bug? I like the ability to move columns around within the display of the view. However, much more important that the column headers and data line up correctly.
Thanks,
MorganThanks much. I found the correct file, deleted it, and the column headers and data match up again.
I found the correct file by searching the directory for one of the column names that occurs in the view (though I had to find both instances of "COLUMN_NAME" and "COLUMN NAME" (without the underscore)). Not sure why there were files with both versions.
Do you know if there is any way to prevent those XXXXXXXXXTableSettings.xml files from writing all together (oracle.javatools.controls.nicetable.NiceTablePersistentSettings)? I looked through the SQL Developer preferences but nothing jumped out as being the setting to switch off.
Should I be doing anything in particular to bring more attention to this potential bug so it might get fixed in a future release?
Thanks again,
Morgan -
JTable - how to disable the drag / move for column
hi there, please give me a hand with this problem,
i am trying to disable drag / move column in JTable.
ie.
===============================================================
JTable mainTable = new JTable();
tableModel recordTable; //this extand AbstractTableModel
this.mainTable.setModel(this.recordTable);
ie.
Product size quantity price
Shoe 8 200 $120
Shirt 9 100 $100
Dress 12 50 $60
the position of column Product,size,quantity,price, however, if i click on price and drag, i will be able to move the whole lot and place to different position ie. Product,price,size,quantity.
=======================================================================
please let me know how can i stop this happening....Try something like this:
mainTable.getTableHeader().setReorderingAllowed(false); -
Move multiple columns in jtable
I have multiple tab and each tab have a table with multiple columns. I move like this for example-
col1 col2 col3 col4 col5 col6 col7 col8 col9
after columns move
col2 col1 col3 col5 col4 col6 col8 col7 col9
I save table and get it, it works fine. But when i move columns like this-
col4 col3 col5 col1 col6 col2 col7 col8 col9
it never work as i save and get table. please tell what's wrong in below code.
here are the codes-
Table save code-
try {
Map<String, Map<String, Vector<Object>>> tableMap = new HashMap<String, Map<String, Vector<Object>>>();
private static Map<String, Object> tables = new HashMap<String, Object>();
Set<String> tabNames = tables.keySet();
for (String tabName : tabNames) {
JTable tab = (JTable) tables.get(tabName);
Map<String, Vector<Object>> colNameValues = new HashMap<String, Vector<Object>>();
Enumeration<TableColumn> tabCols = tab.getColumnModel()
.getColumns();
while (tabCols.hasMoreElements()) {
Vector<Object> colums = new Vector<Object>();
TableColumn col = tabCols.nextElement();
int modelIndex = col.getModelIndex();
int viewIndex = tab.convertColumnIndexToView(modelIndex);
String field = Utils.toString(col.getIdentifier());
Integer width = col.getWidth();
if (isTableSelected) {
boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
colums.add(visible); // pos 0 visible
colums.add(field); // pos 1 field
colums.add(width); // pos 2 width
colums.add(modelIndex); // pos 3 model index
colums.add(tab.convertColumnIndexToView(modelIndex)); // pos
// 4
// view
// index
colNameValues.put(field, colums);
tableMap.put(tabName, colNameValues);
if (dataStore.isColumnsSelected()) {
if (personalizedDataStore != null) {
Map<String, Map<String, Vector<Object>>> mapOld = personalizedDataStore
.getInstructionTable();
if (mapOld != null) {
if (mapOld.size() > 0) {
Set<String> oldTabNames = mapOld.keySet();
for (String oldTabName : oldTabNames) {
if (!tableMap.containsKey(oldTabName)) {
tableMap.put(oldTabName,
mapOld.get(oldTabName));
dataStore.setInstructionTable(tableMap);
code for get Table-
private void applyPesonalizeSettings(String tabName, JTable tab) {
if (!" ".equals(tabName)) {
if (personalizedDataStore != null) {
Map<String, Map<String, Vector<Object>>> oldTables = personalizedDataStore
.getInstructionTable();
for (int viewIndex = 0, count = tab.getRowCount(); viewIndex < count; viewIndex++) {
if (oldTables != null) {
Map<String, Vector<Object>> oldTabCols = oldTables
.get(tabName);
Enumeration<TableColumn> tableColumns = tab
.getColumnModel().getColumns();
while (tableColumns.hasMoreElements()) {
TableColumn col = tableColumns.nextElement();
String field = Utils.toString(col.getIdentifier());
if (oldTabCols != null) {
if (oldTabCols.containsKey(field)) {
boolean vis = (Boolean) oldTabCols.get(field)
.get(0);
int prefWidth = (Integer) oldTabCols.get(field)
.get(2);
int modelInd = (Integer) oldTabCols.get(field)
.get(3);
int viewInd = (Integer) oldTabCols.get(field)
.get(4);
// setting visible
if (!vis) {
tab.getColumn(field).setMinWidth(0);
tab.getColumn(field).setMaxWidth(0);
tab.getColumn(field).setPreferredWidth(0);
} else {
// setting column width
tab.getColumn(field).setPreferredWidth(
prefWidth);
// setting index
if (modelInd != viewInd) {
tab.moveColumn(
tab.convertColumnIndexToView(modelInd),
viewInd);
here is the code for set table change property with popup-
@Override
protected void doOK() {
Map<String, Vector<Object>> labelAndRow = new HashMap<String, Vector<Object>>(); //req 22
for (int viewIndex = 0, count = super.getRowCount(); viewIndex < count; viewIndex++) {
Vector<Object> row = super.getRow(viewIndex);
boolean visible = (Boolean) row.get(0);
String label = (String) row.get(1);
String field = (String) row.get(2);
labelAndRow.put(field,row); //req 22
Integer modelIndex = (Integer) row.get(3);
Integer width = (Integer) row.get(4);
TableColumn col = jxtable.getColumn(field);
if (visible) {
if (width <= 0) {
width = 75;
if (width != col.getWidth()) {
col.setMinWidth(15);
col.setMaxWidth(1000);
col.setPreferredWidth(width);
} else {
col.setMinWidth(0);
col.setMaxWidth(0);
col.setWidth(0);
col.setPreferredWidth(0);
col.setHeaderValue(label);
jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
super.dispose();
for (TableColumn col : (List<TableColumn>) jxtable.getColumns()) {
int modelIndex = col.getModelIndex();
int viewIndex = jxtable.convertColumnIndexToView(modelIndex);
String label = Utils.toString(col.getHeaderValue());
String field = Utils.toString(col.getIdentifier());
Integer width = col.getWidth();
boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
dialog.getTableModel().addRow(new Object[]{visible, label, field, modelIndex, width});
dialog.setVisible(true);I have multiple tab and each tab have a table with multiple columns. I move like this for example-
col1 col2 col3 col4 col5 col6 col7 col8 col9
after columns move
col2 col1 col3 col5 col4 col6 col8 col7 col9
I save table and get it, it works fine. But when i move columns like this-
col4 col3 col5 col1 col6 col2 col7 col8 col9
it never work as i save and get table. please tell what's wrong in below code.
here are the codes-
Table save code-
try {
Map<String, Map<String, Vector<Object>>> tableMap = new HashMap<String, Map<String, Vector<Object>>>();
private static Map<String, Object> tables = new HashMap<String, Object>();
Set<String> tabNames = tables.keySet();
for (String tabName : tabNames) {
JTable tab = (JTable) tables.get(tabName);
Map<String, Vector<Object>> colNameValues = new HashMap<String, Vector<Object>>();
Enumeration<TableColumn> tabCols = tab.getColumnModel()
.getColumns();
while (tabCols.hasMoreElements()) {
Vector<Object> colums = new Vector<Object>();
TableColumn col = tabCols.nextElement();
int modelIndex = col.getModelIndex();
int viewIndex = tab.convertColumnIndexToView(modelIndex);
String field = Utils.toString(col.getIdentifier());
Integer width = col.getWidth();
if (isTableSelected) {
boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
colums.add(visible); // pos 0 visible
colums.add(field); // pos 1 field
colums.add(width); // pos 2 width
colums.add(modelIndex); // pos 3 model index
colums.add(tab.convertColumnIndexToView(modelIndex)); // pos
// 4
// view
// index
colNameValues.put(field, colums);
tableMap.put(tabName, colNameValues);
if (dataStore.isColumnsSelected()) {
if (personalizedDataStore != null) {
Map<String, Map<String, Vector<Object>>> mapOld = personalizedDataStore
.getInstructionTable();
if (mapOld != null) {
if (mapOld.size() > 0) {
Set<String> oldTabNames = mapOld.keySet();
for (String oldTabName : oldTabNames) {
if (!tableMap.containsKey(oldTabName)) {
tableMap.put(oldTabName,
mapOld.get(oldTabName));
dataStore.setInstructionTable(tableMap);
code for get Table-
private void applyPesonalizeSettings(String tabName, JTable tab) {
if (!" ".equals(tabName)) {
if (personalizedDataStore != null) {
Map<String, Map<String, Vector<Object>>> oldTables = personalizedDataStore
.getInstructionTable();
for (int viewIndex = 0, count = tab.getRowCount(); viewIndex < count; viewIndex++) {
if (oldTables != null) {
Map<String, Vector<Object>> oldTabCols = oldTables
.get(tabName);
Enumeration<TableColumn> tableColumns = tab
.getColumnModel().getColumns();
while (tableColumns.hasMoreElements()) {
TableColumn col = tableColumns.nextElement();
String field = Utils.toString(col.getIdentifier());
if (oldTabCols != null) {
if (oldTabCols.containsKey(field)) {
boolean vis = (Boolean) oldTabCols.get(field)
.get(0);
int prefWidth = (Integer) oldTabCols.get(field)
.get(2);
int modelInd = (Integer) oldTabCols.get(field)
.get(3);
int viewInd = (Integer) oldTabCols.get(field)
.get(4);
// setting visible
if (!vis) {
tab.getColumn(field).setMinWidth(0);
tab.getColumn(field).setMaxWidth(0);
tab.getColumn(field).setPreferredWidth(0);
} else {
// setting column width
tab.getColumn(field).setPreferredWidth(
prefWidth);
// setting index
if (modelInd != viewInd) {
tab.moveColumn(
tab.convertColumnIndexToView(modelInd),
viewInd);
here is the code for set table change property with popup-
@Override
protected void doOK() {
Map<String, Vector<Object>> labelAndRow = new HashMap<String, Vector<Object>>(); //req 22
for (int viewIndex = 0, count = super.getRowCount(); viewIndex < count; viewIndex++) {
Vector<Object> row = super.getRow(viewIndex);
boolean visible = (Boolean) row.get(0);
String label = (String) row.get(1);
String field = (String) row.get(2);
labelAndRow.put(field,row); //req 22
Integer modelIndex = (Integer) row.get(3);
Integer width = (Integer) row.get(4);
TableColumn col = jxtable.getColumn(field);
if (visible) {
if (width <= 0) {
width = 75;
if (width != col.getWidth()) {
col.setMinWidth(15);
col.setMaxWidth(1000);
col.setPreferredWidth(width);
} else {
col.setMinWidth(0);
col.setMaxWidth(0);
col.setWidth(0);
col.setPreferredWidth(0);
col.setHeaderValue(label);
jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
super.dispose();
for (TableColumn col : (List<TableColumn>) jxtable.getColumns()) {
int modelIndex = col.getModelIndex();
int viewIndex = jxtable.convertColumnIndexToView(modelIndex);
String label = Utils.toString(col.getHeaderValue());
String field = Utils.toString(col.getIdentifier());
Integer width = col.getWidth();
boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
dialog.getTableModel().addRow(new Object[]{visible, label, field, modelIndex, width});
dialog.setVisible(true);
Maybe you are looking for
-
My BB Pearl's 9105 trackpad won't work!!!!
Somebody help me out on this! My BB Pearl's trackpad is not working! It won't scroll and select neither! Gosh! What should i do about this? Help me please! Pretty please!
-
IPAD NO LONGER COMMUNICATES WITH ITUNES, IPAD NO LONGER COMMUNICATES WITH ITUNES
My ipad no longer communicates with iTunes because IOS7 makes my version of iTunes obselete. My computer will not let me upgrade to iTunes to iTunes 11
-
How do I keep the "Popularity" Column Always Active in ITMS?
I like to check out all the new music every week and for efficiency start with the "popular" songs for that album. Each time I go to a new album in the music store I have to reselect that column. Is there any way to have it always selected? Thanks fo
-
Linking from RH HTML topic to an .ASPX file
Does anyone know if I can link from a RoboHelp HTML topic to an .aspx file? Quite a few of the pages that I need to link to on our company's external site use .aspx, especially those that serve as "wrappers" for flash files, but I haven't been able t
-
Hi, when i executed the following query: SELECT COMP_NAME, STATUS FROM DBA_SERVER_REGISTRY; i got all the objects status as VALID except that "ORACLE XML Database" was INVALID Can someone help me to make this "ORACLE XML Database" as VALID. Thanks, P