ALV-Toolbar : Control the &LOCAL& Buttons
Hi, all
I have the following problem with ALV-Toolbar.
If I use editable ALV-Grid Control, I get in the toolbar new buttons such as DELETE_ROW or UNDO. This buttons dont trigger any events of the class CL_GUI_ALV_GRID.
If I look at Function Code of such buttons in the Table mt_toolbar they are quiet similar. All of them have &LOCAL&
.
How could I control this buttons with my program .
Many thanks for your help
Vladimir Golovtchiner
Hello Anand,
Thank you for your answers.
I thought that these buttons are belonged to Front-End.
I hope that ALV-Grid is an OCX. Or not? If it is an OCX-Object, is it possible to communicate with it?
I have no any idea now, how to solve that, but I could explain to you why I need to handle these buttons.
I use an editable Grid of CL_GUI_ALV_GRID. For the last two columns I use Drag and Drop to move data from the pre-last column to the last column. It work properly until the following situation:
For example I have two rows in a Grid. I place the cursor to the last row and press the button COPY_ROW two times ( I have 4 rows in a Grid now). Immediately after that I try to do Drag&Drop at the last row (4th) from the Grid. As I drop the cursor on the last cell of the last row I get always the result in the last cell of the 2nd row ( the last row before I insert two rows).
It doesnt matter how many rows I had or how many rows I inserted to the Grid. It happens also in the middle of the Grid not only at the end.
After the first Drag&Drop it begins to work properly.
I debugged the handler of Drag&Drop and I saw that the Drag&Drop object has in the structure E_ROW each time the number of the last row before insertion. I forced the update of backend in the handle of on Drag event with CHECK_CHANGED_DATA before I create the Drag&Drop object and passed the Drag&Drop handle to the internal table. It didnt work.
That is why I thought that I should do this update after each insertion or deletion with these buttons.
In other words I dont want to change the functionality of these buttons I want to add something before.
Best regards
Vladimir Golovtchiner
Similar Messages
-
Is there a way to control the "back button"?
i've got a simple animation intro, ending with the very last
key frame being static with links. then the links will bring up
another page in the same window. but i was wondering if there was a
way in flash to control the back button to bring the user to that
very last key-frame, at the end of all the animation. thereby
skipping over the intro-animation.
also:
i have an html intro page, where you can go to the flash
introduction, or the peoples' old website, or to a Flash-Player
download window. i was wondering if there was a way to create a
link to that end key-frame in order to by-pass the animated flash
intro.
thanks for your helpgotoAndPlay(32) if you have a continuos animation after that
frame and you want to continue it; the number within the brackets
is the number of the frame you want to go to. Or else if you want
to go to a particular frame and stop there, gotoAndStop(32); -
Control the *GO* button in interactive report
How to control the GO button in interactive report using dynamic action?
i have to press the GO button automatically using dynamic action when page item get focused.
Is it possible?
thanks and regard,
skud.Hi skud,
Your dynamic action can capture the "Get Focus" event of your page item and then you could try creating a true action to submit the page with a specific request. Create a branch to a URL with the condition of request being equal to the one you specified before, and as target select URL and make use of the filtering of an IR by URL when linking. This is just an idea, hope you can get the result you need.
Regards,
Sergio -
Controling the run button from user interface
I'm trying to eliminate the complete toll bar and give the user a button on the interface to control run mode
I'm not sure that's possible in the sense that you're talking about.
You can eliminate the toolbar by making the vi appear as "dialog"
(Right Click on VI icon [top right front panel]->VI
properties->window appearance->dialog), or you could customize it.
But to run the vi itself cannot be done by a button click, as
the vi has to be running in order to register that click. What
you could do, is run the vi on start, then have it hang on maybe an
event structure or default case of a state machine until the "start"
button is clicked. -
Several basic functions seem to be have vanished from Firefox. I can no longer open links in new tabs with a right click, and the refresh browser button (and back/forward navigation buttons, etc) do not appear in with consistency anymore. How do I get these basic navigational tools back? (most recent updates are installed)
== This happened ==
Not sure how often
== 7 July 2010* Make sure that you have the "Navigation Toolbar" and the "Bookmarks Toolbar" visible: "View > Toolbars"
* If items are missing then see if you can find them in the "View > Toolbars > Customize" window
* If you see the item in the Customize window then drag it back from the Customize window to one of the toolbars.
* If, in "View > Toolbars > Customize", you do not see that item then click the "Restore Default Set" button
See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
See http://kb.mozillazine.org/Toolbar_customization -
In OO Alv toolbar, sum and subsum buttons are disable as default, WHY ?
i want to enable sum and subsum buttons in alv toolbar. However, as default those buttons are disable. How can i solve ?
i defined ref_table and ref_field for quantity field in fieldcat such as
ls_fcat-ref_table = 'V03RB'.
ls_fcat-ref_field = 'KWMENG'.
so i solve it. thank you for your help. -
Control the yes button on the af:inputFile
I have an option where the user loads a excel file and shows the data in a table and finally exports data to a new excel file. When the user wants to load the af:inputFile opens a popup up with two buttons ok and cancel. How can i control the action of the OK button to clean the data of my table??.
Hi,
I interpret the question for how to respond to the OK button. For this you define a dialog listener on the af:dialog component, which creates a managed bean method like
public void handlerName(DialogEvent dialogEvent){ ... }
You can then call
//oracle.adf.view.eich.event.DialogEvent.Outcome
Outcome outcome = dialogEvent.getOutcome();
if(outcome = Outcome.ok){
clean up the table
Frank -
How do I control the compare button on ESX24
I am playing around with the ESX24. I load an acoustic piano setting and when I start playing around with settings, some of them seem to turn the "compare" button on and the sound goes bad, meaning it changes it so that it doesn't sound like the piano anymore. It will happen just from moving the lower half of the level ball all the way up. When I click the compare button it resets everything to the default. What is going on? I understand that the compare button on plugins can be used to compare settings but why is it acting like this? I am new to this so I assume that there is something obvious that I am missing.
the compare button on the logic plugins will toggle between the current settings and whatever settings were last saved.
-
Move filter and settings in WD ALV toolbar to the left ?
Hello WD abap experts,
The WD ALV has one big disadvantage: When you have many columns, the alv table is very wide and if you then want to set the filter or change settings, you have to scroll all the way to the right to click filter or settings, then scroll back all the way to the left to change the settings.
I wonder if I could change the layout of the toolbar in a way that the filter and settings links appear first on the left, (before the view dropdwon) instead on the right.
Has anybody done this ? I cannot find the view in SE80, probably it is generated dynamically ?
JohannesHi,
Check the cl_Salv_wd_config_table for the standard functions settings. I guess there is no option to move them left.
if_Salv_wd_standard_function or filter setting ones...check them out..
Regards,
Lekha. -
How do I restore it?
Under View in the Mail Menu bar go to customize toolbar and drag what you want back down to Mail toolbar.
-
I would be content just to have the add-ons back, the one that allowed me to view ABC, NBC, CBS and a handful of other channels, and the one that connected me to the National Geographic channel and I believe some of the Discovery, etc channels . I can get to the Nat Geo if I go through my history but most of the other channels I can't. I've had MozFire on my computer for a while but mainly used Google Chrome until last week when I decided to check out MozFire. As has happened in the past I found myself really liking this program and wondering why I haven't been using it all along.
I have asked a moderator to provide assistance, they will post an invite on this thread.
They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
They will respond either by phone or e-mail within 5-6 working days.
Please use the tracked e-mail, to reply, not via the forum. Thanks
This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
When you submit the form, you will receive an enquiry number, so please keep a note of it
There are some useful help pages here, for BT Broadband customers only, on my personal website.
BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones. -
Hi experts,
I have a requirement to add 2 radio buttons on ALV toolbar.
I try to implement the toolbar event of class cl_gui_alv_grid, and add 2 radio buttons using the following code:
move 'RAD' to ls_toolbar-function.
move 'RADIO1' to ls_toolbar-quickinfo.
move 'RADIO1' to ls_toolbar-text.
move '4' to ls_toolbar-butn_type.
move ' ' to ls_toolbar-disabled.
move 'X' to ls_toolbar-checked .
append ls_toolbar to e_object->mt_toolbar.
clear ls_toolbar.
move 'RAD' to ls_toolbar-function.
move 'RADIO2' to ls_toolbar-quickinfo.
move 'RADIO2' to ls_toolbar-text.
move '4' to ls_toolbar-butn_type.
move ' ' to ls_toolbar-disabled. "#EC NOTEXT
append ls_toolbar to e_object->mt_toolbar.
But when I run this program,I find these 2 radio buttons look like normal button, is this correct?
And I don't know how to catch which radio button is checked or not.
Anyone having code for it or any suggestion for it, kindly let me know...
Thank you
Edited by: jie Wu on Nov 26, 2010 3:33 AMhello,
I visit this address, but it does't meet my needs....
I want to add radio button(button type 4) in ALV toolbar not the normal button(button type 0).
The more important is I want to find a way to get properity of toolbar in ALV grid.
Thank you. -
TO enable the menu button in ALV Grid Display
Hi Mates,
I have a peculiar problem while doing ALV Grid display for screens.
In the main Screen i have Three coloumns.The 1st coloum will interacted
next screen 101 and 2nd coloum will interacted to screen 102.
Now the problem is in the menu of ALV Grid display,the Total button was enabled for screen
101 and same button is disabled in screen 102.
But the code semms to be fine .
Below i have pasted the code and please have a look and help to come out of this cris.
My Code :
FORM CREATE_ALV_GRID USING R_SCREEN.
DATA: LS_LAYOUT TYPE LVC_S_LAYO,
ITAB_FUNCTIONS TYPE UI_FUNCTIONS. "MHTK903257(+)(add)
CASE R_SCREEN.
*--> SCREEN 9000
WHEN C_SCREEN_9000.
*-- Build the field catalog for the ALV grid.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_9000
USING:
*ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_OVERVIEW' 'WADAT' 'Due date'(004) 'X' 'D' ' ' ' ' ' ' 'C100',
*'ITAB_OVERVIEW' 'HU_UNLOAD' 'Unloaded HU'(005) 'X' 'I' '15' ' ' ' ' 'C500', "MHTK903257(-)
'ITAB_OVERVIEW' 'TOT_TO' 'Total TO'(006) 'X' 'I' ' ' ' ' ' ' 'C30',
GMTK901103: REMOVE HOTSPOT ON ESTIMATED TO:
'ITAB_OVERVIEW' 'EST_TO' 'Estim TO'(030) ' ' 'I' ' ' ' ' ' ' 'C500'.
LOOP AT ITAB_INB_LOC WHERE OUTPUT = 'X'.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_9000
USING:
ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_OVERVIEW' ITAB_INB_LOC-FIELDNAME
ITAB_INB_LOC-Z_INBND_LOC 'X' '' ' ' ' ' 'R' 'C500'. "MHTK903418
ENDLOOP.
LOOP AT ITAB_STORAGE_TYPE WHERE OUTPUT = 'X'.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_9000
USING:
*ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_OVERVIEW' ITAB_STORAGE_TYPE-FIELDNAME
ITAB_STORAGE_TYPE-LGTYP 'X' 'I' ' ' ' ' 'R' 'C500'.
ENDLOOP.
*-- Create the ALV grid object.
CREATE OBJECT PT_ALV_1000
EXPORTING
I_PARENT = PT_DOCK_1000.
PERFORM EXCLUDE_FUNCTIONS TABLES ITAB_FUNCTIONS "MHTK903257(+)(add)
USING R_SCREEN.
*-- Get the title of the ALV grid.
PERFORM GET_ALV_GRID_TITLE USING C_SCREEN_1000
CHANGING LS_LAYOUT-GRID_TITLE.
*-- Display the ALV grid.
CALL METHOD PT_ALV_1000->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LS_LAYOUT
IT_TOOLBAR_EXCLUDING = ITAB_FUNCTIONS
CHANGING
IT_OUTTAB = ITAB_OVERVIEW
IT_FIELDCATALOG = ITAB_FIELDCAT_9000.
*--> SCREEN 9100
WHEN C_SCREEN_1100.
*-- Build the field catalog for the ALV grid.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_1100
USING:
*ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_DETIAL' 'WAUHR' 'Due time'(007) ' ' 'T' ' ' 'X' ' ' 'C100',
'ITAB_DETAIL' 'TOT_TO' 'Total TO'(006) 'X' 'I' ' ' ' ' ' ' 'C30',
'ITAB_DETAIL' 'EST_TO' 'Estim TO'(030) ' ' 'I' ' ' ' ' ' ' 'C500'.
CLEAR ITAB_INB_LOC.
LOOP AT ITAB_INB_LOC WHERE SELECTED = 'X'.
CHECK SY-SUBRC EQ 0.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_1100
USING:
ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_DETAIL' ITAB_INB_LOC-FIELDNAME
ITAB_INB_LOC-Z_INBND_LOC '' '' ' ' ' ' 'R' 'C500'.
ENDLOOP.
CLEAR: ITAB_STORAGE_TYPE.
LOOP AT ITAB_STORAGE_TYPE WHERE SELECTED = 'X'.
CHECK SY-SUBRC EQ 0.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_1100
USING:
*ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_DETAIL' ITAB_STORAGE_TYPE-FIELDNAME
ITAB_STORAGE_TYPE-LGTYP 'X' 'I' ' ' ' ' 'R' 'C500'.
ENDLOOP.
*-- Create the ALV grid object.
CREATE OBJECT PT_ALV_1100
EXPORTING
I_PARENT = PT_DOCK_1100.
PERFORM EXCLUDE_FUNCTIONS TABLES ITAB_FUNCTIONS "MHTK903257(+)(add)
USING R_SCREEN.
*-- Get the title of the ALV grid.
PERFORM GET_ALV_GRID_TITLE USING C_SCREEN_1100
CHANGING LS_LAYOUT-GRID_TITLE.
*-- Display the ALV grid.
CALL METHOD PT_ALV_1100->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LS_LAYOUT
IT_TOOLBAR_EXCLUDING = ITAB_FUNCTIONS
CHANGING
IT_OUTTAB = ITAB_DETAIL
IT_FIELDCATALOG = ITAB_FIELDCAT_1100.
screen 1300 TO detail.
*--> SCREEN 9300
WHEN C_SCREEN_1300.
*-- Build the field catalog for the ALV grid.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_1300
USING:
*ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_TO2' 'TANUM' 'TO'(020) ' ' 'C' ' ' ' ' ' ' 'C100',
'ITAB_TO2' 'NLPLA' 'Location'(021) ' ' 'C' ' ' ' ' ' ' 'C500',
'ITAB_TO2' 'LETY1' 'SUT'(013) ' ' 'C' ' ' ' ' ' ' 'C500',
'ITAB_TO2' 'MATNR' 'Material'(016) ' ' 'C' ' ' ' ' ' ' 'C500',
'ITAB_TO2' 'NSOLM' 'Quantity'(017) ' ' 'I' ' ' ' ' ' ' 'C500',
'ITAB_TO2' 'NLTYP' 'Storage type'(014) ' ' '' ' ' ' ' ' ' 'C500'. "MHTK903257(-)
*'ITAB_TO2' 'POSNR' 'Line'(015) ' ' 'C' ' ' ' ' ' ' 'C500'. "MHTK903257(-)
*-- Create the ALV grid object.
CREATE OBJECT PT_ALV_1300
EXPORTING
I_PARENT = PT_DOCK_1300.
*-- Exclude the non-applicable functions from the ALV grid.
PERFORM EXCLUDE_FUNCTIONS TABLES ITAB_FUNCTIONS
USING R_SCREEN.
*-- Get the title of the ALV grid.
PERFORM GET_ALV_GRID_TITLE USING C_SCREEN_1300
CHANGING LS_LAYOUT-GRID_TITLE.
SORT ITAB_TO2 BY TANUM VBELN POSNR.
*-- Display the ALV grid.
CALL METHOD PT_ALV_1300->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LS_LAYOUT
IT_TOOLBAR_EXCLUDING = ITAB_FUNCTIONS
CHANGING
IT_OUTTAB = ITAB_TO2
IT_FIELDCATALOG = ITAB_FIELDCAT_1300.
screen 9400 Pre Processing detail.
*--> SCREEN 9400
WHEN C_SCREEN_9400. "MHTK903418(BEgin Of change)
*-- Build the field catalog for the ALV grid.
PERFORM BUILD_FIELD_CATALOG TABLES ITAB_FIELDCAT_1400
USING:
*ref_table|fieldname|coltext|hotspot|inttype|outputlen|lzero|just|color
'ITAB_PRE_PROC2' 'Z_PRE_PROC' 'Pre Processing Number'(030) ' ' 'C' ' ' ' ' ' ' 'C100',
'ITAB_PRE_PROC2' 'Z_PRE_PROC_LN' 'Pre Processing Number'(035) ' ' 'C' ' ' ' ' ' ' 'C100',
'ITAB_PRE_PROC2' 'MATNR' 'Material'(035) ' ' 'C' ' ' ' ' ' ' 'C500',
'ITAB_PRE_PROC2' 'Z_PSH_QTY' 'Quantity'(035) ' ' 'C' ' ' ' ' ' ' 'C500'.
*'ITAB_TO2' 'MATNR' 'Material'(016) ' ' 'C' ' ' ' ' ' ' 'C500',
*'ITAB_TO2' 'NSOLM' 'Quantity'(017) ' ' 'I' ' ' ' ' ' ' 'C500',
*'ITAB_TO2' 'NLTYP' 'Storage type'(014) ' ' '' ' ' ' ' ' ' 'C500'. "MHTK903257(-)
**'ITAB_TO2' 'POSNR' 'Line'(015) ' ' 'C' ' ' ' ' ' ' 'C500'. "MHTK903257(-)
*-- Create the ALV grid object.
CREATE OBJECT PT_ALV_1400
EXPORTING
I_PARENT = PT_DOCK_1400.
*-- Exclude the non-applicable functions from the ALV grid.
PERFORM EXCLUDE_FUNCTIONS TABLES ITAB_FUNCTIONS
USING R_SCREEN.
*-- Get the title of the ALV grid.
PERFORM GET_ALV_GRID_TITLE USING C_SCREEN_1400
CHANGING LS_LAYOUT-GRID_TITLE.
SORT ITAB_PRE_PROC2 BY Z_PRE_PROC.
*-- Display the ALV grid.
CALL METHOD PT_ALV_1400->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LS_LAYOUT
IT_TOOLBAR_EXCLUDING = ITAB_FUNCTIONS
CHANGING
IT_OUTTAB = ITAB_PRE_PROC2
IT_FIELDCATALOG = ITAB_FIELDCAT_1400. "MHTK903418(End of change)
ENDCASE.Hi
U copy from standard program and paste ur report ...It will work..'
Regards:
Prabu -
Controlling the desableing of command buttons
I have been having a great deal of trouble trying to work out how to control the command button such that if the rowset is null then the button is disabled. The trick is that the rowset is not defined by the view where the command button is located. The rowset is defined by a view which has a "view" command button which displays the specific row selected, then this view has a command button that will display the detail rowset of the selected master row, but if there are no detail records I want the button to be disabled. How can I do this in ADF JSF? If I use a backing bean to make the determination prior to the page rendering then how does the backing mean method set the parameter necessary to disable the command button? Any advice or tutorial that I can use is most appreciated. My goal with using ADF JSF effort was to demonstrate that a complex app could be generated with minimum coding, I would like to keep to this concept if possible. Thanks,
MichaelWrong forum. You need the ADF or JDeveloper forums.
-
How can I control the enable/disable of command buttons in ADF JSF
I have been having a great deal of trouble trying to work out how to control the command button such that if the rowset is null then the button is disabled. The trick is that the rowset is not defined by the view where the command button is located. The rowset is defined by a view which has a "view" command button which displays the specific row selected, then this view has a command button that will display the detail rowset of the selected master row, but if there are no detail records I want the button to be disabled. How can I do this in ADF JSF? If I use a backing bean to make the determination prior to the page rendering then how does the backing mean method set the parameter necessary to disable the command button? Any advice or tutorial that I can use is most appreciated. My goal with using ADF JSF effort was to demonstrate that a complex app could be generated with minimum coding, I would like to keep to this concept if possible. Thanks,
MichaelHi Michael,
You can probably set the Enabled property of the command button using an EL that would evaluate and return true or false based on your requirement.
Check out these links for more information on using the EL.
http://radio.weblogs.com/0118231/2006/11/10.html
http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_dcp006.htm
-Arun
Maybe you are looking for
-
Firefox and Thunderbird have somehow become corrupted in the last two days and I have had to download and reinstall both. By this I mean when I tried to start, a box popped up saying it crashed and it would not correct. I had to redownload and reinst
-
Lenovo Care button not working please help!
hello everyone. i upgraded my Lenovo 3000 N200 0769-B9G from windows vista home basic to windows 7 ultimate recently. everything works fine but the lenovo care button is not working. While installing windows 7, it gave a warning saying "lenovo care m
-
Hi, We have BI 7.0. Current database size is nearly 600gb. We have started a new BI project to extract data from IS-U-CCS module. We expect nearly 1TB of data for this new project. Right now we are about to complete the designing phase and start the
-
Read Verify Scan Message on Screen
I started my ipod this morning and got some kind of diagnostic screen, which I tried to negotiate through and now it is completely locked up and says: Read Verify Scan Scan takes a while Battery Check Volts=476 Level=10 Canceled MENU to continue Alth
-
Invoice Split based on number of line items
Dear all, We are on CRM 7.0. We are doing billing in crm for service products . We have a requirement that if the number of line items in the invoice is more than 200, invoice split should happen. Has anyone worked on this scenario and if so pl. let