Add 'window' button to TitledPane?
Can anyone see a way to add a 'window' button or buttons (similar to the Windows maximise button) to the title bar of a TitledPane in an accordion? I assume it could be done visually with a StackPane but then only the topmost layer would be active. At the moment, I have an expand link in the TitledPane content. The purpose is to temporarily remove the TitledPane from its accordion and to display it in a larger size as a modal dialog. Thanks in advance ...
What version of ID are you using? Live Preflight (Introduced in Version CS4) has links to all errors in the preflight panel itself.
Similar Messages
-
How do I add a close window button/image
All I want to do: Add a close window button (round/square with an "x" through it) to either one or many html files. I don't see how to do this.
Using RoboHelp 8 HTML and WinXP. Thanks.Ahh I see now. You are asking where to obtain such an image!
The RoboHelp Gallery doesn't contain one. Sorry. You will need to obtain one from any number of other locations.
You might look at the following link for one possibility.
Icon Archive
Here are a couple from my own colloection. You might right-click and save as.
There are also a number of packages you may purchase or find. Perhaps the following link will help.
Click here to search Google
I cannot advise on the legal implications of using said images.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
Adobe Certified RoboHelp HTML Training
SorcererStone Blog
RoboHelp eBooks -
I'm trying a new Linux build on a net book that I use for playing with non windows OS. In the process of setting up the fresh OS install I wanted in get my Firefox account set up to that I didn't have to spend lots of time working on that one thing. I'm no stranger to the browser sync and have attached several of my computers and tablets with a number of different OS to the account with little trouble including the Firefox of the previous Linux build that was on the net book. The problem now is that on both of my to main computers, a windows 7 desktop and a windows 8.1 tablet, both running the latest Firefox, I am unable to find the "add device" button in any of the sync management screens. This includes the browsers built in options screen as well as the Firefox manage account page. The first gives me options for disconnecting the account, going to the manage screen, several check boxes for what can be synced, and the device name. The manage screen, after logging in, only give me options for signing out, changing password, and deleting the account. Any help figuring out why the add device button seem to be missing from both these devices would be greatly appreciated.
Please check your Firefox Installation's version. (can be found by clicking the main menu, either clicking or hovering over the help button, and then clicking about firefox in the sub menu). depending on how long ago you set up sync you may still be using the older sync version. firefox 29 introduced a new (and might i add far less tedious) sync version. see [[How to update to the new Firefox Sync|this Mozilla support article]] for information on upgrading your sync to the new version.
-
I have a VAIO pc and want to put some photos up to iCloud to then go onto my iPad.
I have iCloud control panel and have followed the instructions.
Everything is on that should be on .. on the iPad and pc.
but I cannot find how to ...
Select Photo Stream under Favorites. Open My Photo Stream. Click the "Add photos" button. Select photos to import to My Photo Stream, and then click Open. ...
as advised in FAQ on iCloud.
I cannot find favourites ... sorry !!!
I use Google Chrome, could that be the problem?
The Apple shop were very sweet, but sent me home with instructions .........
Please help
CarskiIt should look like this...
Open Windows explorer, select Photo Stream under Favorites on the left sidebar:
Click on Photo Stream, then to the right double-click on My Photo Stream. Click on Add Photos on the top the menu bar:
Select the photos you want to import, then click Open. -
How to add "x" button in window
hi,,
in my program I create the window
Like :
Windoe w =new Window ();
I want to add "x" button to close window
how I can do it??
please healp me ..
very Thanks,,You can just JFrame, JDialog, or create a component and draw it yourself
-
Weird Problem with Add Row Button in Master Detail Page
I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen? -
Trying to add Windows Networked HP PhotoSmart C3100 to MacBook
Hi, re-born Mac user here...first time posting to discussions group. Purchased a MacBook last Saturday, also got the HP PhotoSmart C3100 printer at our Apple store. Installed the HP software on the Mac...no issues. However, the printer will permanently reside on a Windows network at home connected to an XP box. I installed the HP software on that PC, with no issues. I run wireless-G from my MacBook to my Windows LAN to already print to a Brother HP Laserprinter. I followed instructions at http://www.ifelix.co.uk/tech/3015.html on how to do setup a network printer on a Windows network for a Mac : Applications : Utilities : Printer Setup Utility (the C3100 IS listed there...but I assume that appeared from my local USB connection..so I proceed on....) : Add : Windows Printing : Workgroup..Select : Printer Model HP : Scroll to find the C3100....but there isn't one....even after installing the HP software on the MacBook. There are some gimp drivers for older series', but nothing for the C3100, even after a successful local install.
I've looked at several posts here for printing (universal drivers and gimp...but none are for the C3100 (prob too new?).
My question: I went through the same procedures noted on ifelix.co.uk to try to install a "network version" of the HP C3100, but since I don't see a C3100, what should I do now ?
I'm thinking I should see a "Have Disk" button like in XP, but was wondering what my next step should be ? Can I pick "Other"...and roam around on the Mac Library and drill down to Library...Printers.....HP...Photosmart ? There is a non-greyed out file there , libHPUtils.10.dylib , but I don't even want to try this MS-style thing being so new to the Mac world.
Anyone have some ideas or suggestions ? Thanks so much for your help, in advance ! It's so much fun to be reunited with the MacOS after a 7 year separation !
MacBook Mac OS X (10.4.7)Eric,
As far as I know, resetting the print setup will clear any preferences or caches. I'm not 100% positive, but I believe the hp installed drivers will remain on the system and available. I have both a system supplied and HP vended driver for the printer I'm using with this machine so I can't check it now, but I'm almost certain you won't have to re-install the software.
I have multiple connections to a printer setup on a few machines. For instance, I have one profile for IP printing and another as Bonjour/rendezvous. The limitations for that type of print setup have more to do with the printer than the OS. Some HP printers do make you go through the arduous hp setup process each time you switch the interface (USB, ethernet, wireless). Some printers just work. The main reason you want to use HP software is for special features (scanning, copying, duplexing, photosharing, email, transferring data from printer attached cameras or memory cards, etc).
There's no real reason to not keep as many profiles as you use in your print center. You can rename the printers in the print center based on the interface so that you don't get confused. It's possible that you can bypass a setup routing for a PhotoSmart by just adding it twice. You may need to set something else as a default printer during this procedure.
Desktop printers are good. If you don't want the clutter you can also just drag the printer from Users/you/Library/Printers/ into the dock or into the sidebar of the finder for quick access.
BTW, if you are trying gimp, did you try the latest release of gutenprint (5.0.0 release) http://sourceforge.net/projects/gimp-print/
Good Luck,
-j -
Add a button to activate or not preview file in the folder
Is there a way to do this thing?
I'd like to add a button at the top of the finder windows to quickly able or disable preview files in the specific folder.
Thanks
MassimilianoOpen a Finder window, select View->Customize Toolbar, and add QuickLook button to the toolbar. The only other way is to invoke CMD+J and turn off or on icon preview.
-
How to add a button to every group's element in a presentation?
Hi all!
I am still a newbie with BPM. Just done the tutorial, a 2-day course and some experiments on my own. So, please, forgive my lack of knowledge.
I need to add a button to every element of a group in a presentation. You can think this group as a list of invoices and the button linked to another presentation where you will be able to edit attributes of the single invoice. Completed this procedure you could come back to the first presentation where the whole list will be visible. And so on, until the user clicks the end button to confirm changes and exit the screenflow.
I would like to use only simple presentation (not jsp). I have read about developers who create complex presentation, so I hope there are no limits about this issue.
Thank you all!
LucaThere's no easy way to achieve this. You'll have to provide a RootPaneUI delegate with a custom title pane implementation. There, you'll have to provide a custom layout to position your button. In addition, this approach will not work on look-and-feels that do not support decorated mode (such as Windows or GTK) since under such LAFs the title pane always comes from the OS.
-
How to add a Button in JFrame title Bar ?
Hi Folks,
I want to add a button near to JFrame's Minimize Button(On the title bar). How can i do it ? Should i extend RootPaneUI and add custom button ? Any other easy ways to do this ?
If anyone provides me Sample Code how to do it, It is much Appreciated.
Thanks,There's no easy way to achieve this. You'll have to provide a RootPaneUI delegate with a custom title pane implementation. There, you'll have to provide a custom layout to position your button. In addition, this approach will not work on look-and-feels that do not support decorated mode (such as Windows or GTK) since under such LAFs the title pane always comes from the OS.
-
Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE
PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. If anyone could just add a button to it that will do just about anything, time check, date check whatever it would be great!!!!! THIS WAS COMPILED WITH THE JGRASP COMPILER JAVA ACCEPTED
Thank you all,
********************** Bruce's Code*****************************
import java.awt.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2= new Panel();
public TimeEntryForm()
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3,1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0; c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1; c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0; c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
public static void main(String args[])
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
}Hi java-luv,
I am not sure if I understand the problem. But I was able to add a JButton to your code (using the JBuilder designer). The button just exists the application. Please check the listing below. Hope this helps.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2 = new Panel();
private JButton jButton1 = new JButton();
public TimeEntryForm() {
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3, 1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1;
c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;
c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;
c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;
c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0;
c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;
c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;
c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
jbInit();
public static void main(String args[]) {
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
private void jbInit() {
jButton1.setText("Exit");
jButton1.addActionListener(new TimeEntryForm_jButton1_actionAdapter(this));
this.add(jButton1, null);
void jButton1_actionPerformed(ActionEvent e) {
System.exit(0);
class TimeEntryForm_jButton1_actionAdapter implements java.awt.event.ActionListener {
TimeEntryForm adaptee;
TimeEntryForm_jButton1_actionAdapter(TimeEntryForm adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e); -
Hi,
we create the buttons when opening the popup windows , like as
lr_popup = lr_window_manager->create_window(
MODAL = ABAP_TRUE
window_name = 'CHGOFFER'
"Name of the window created in step 2
TITLE = 'Talep Deu011Fiu015Ftir'
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = if_wd_window=>CO_BUTTONS_YESNOCANCEL
* MESSAGE_TYPE = if_wd_window=>co_msg_type_error
* CLOSE_IN_ANY_CASE = ABAP_TRUE
* MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
** Adds an action to the popup screen buttons
lr_view_controller = wd_this->wd_get_api( ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
button_text = 'Onayla'
action_name = 'APPROVE'
action_view = lr_view_controller
is_default_button = abap_false ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_no
button_text = 'Sil'
action_name = 'DELETE'
action_view = lr_view_controller
is_default_button = abap_false ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_cancel
button_text = 'Reddet'
action_name = 'REFUSE'
action_view = lr_view_controller
is_default_button = abap_false ).
lr_popup->open( ).
we can create only 3 buttons as 'YES NO CANCEL' with this method becase of IF_WD_WINDOW interface has type of WDR_POPUP_BUTTON_KIND.
But i want to create 5 buttons for my popup window. is it possible?
Can somebody help me pls?
Thanks.As someone has already stated you can design as many buttons as you want into the view that you embed into the popup. However for the bottom bar of the popup, you can only work with the buttons that SAP provides. You can not add custom buttons into this bottom bar.
Personally when I have custom buttons, I go ahead and hide all of the standard buttons in the bottom bar. I recreate them on the same button line as my custom buttons so that the interface looks more consistent. -
Need to Add a button in ALV Tool Bar
Hi,
I have a requirement where in i need to add a button to a standard ALV report. Its using the class CL_GUI_ALV_GRID. There is a Badi for the report. The Report is co05n and the Badi is WORKORDER_INFOSYSTEM . I am getting the handle of
CL_GUI_ALV_GRID object reference before screen display. Any guidance on how to add new button now to that toolbar?
Any help will be rewarded.
Thank you.
regards,
Deepthi lakshmi.A.Dear Deepthi Lakshmi.A.,
Refer the standard program BCALV_GRID_05 Add a Self-Defined Button to the Toolbar.
PROGRAM BCALV_GRID_05.
Purpose:
~~~~~~~~
Demonstrate the creation of an own toolbar button.
To check program behavior
~~~~~~~~~~~~~~~~~~~~~~~~~
The report shows a list of flights of one airline.
Select one or more lines and press the 'Detail'-Button to popup
a dialog window with related bookings.
Essential steps (Search for '§')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.Apply steps for event handling for events TOOLBAR and
USER_COMMAND (see example for print events)
2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
INCLUDE .
Predefine a local class for event handling to allow the
declaration of a reference variable before the class is defined.
CLASS lcl_event_receiver DEFINITION DEFERRED.
DATA: ok_code LIKE sy-ucomm,
gt_sflight TYPE TABLE OF sflight,
gt_sbook TYPE TABLE OF sbook,
g_repid LIKE sy-repid,
g_max type i value 100,
gs_layout TYPE lvc_s_layo,
cont_on_main TYPE scrfname VALUE 'BCALVC_TOOLBAR_D100_C1',
cont_on_dialog TYPE scrfname VALUE 'BCALVC_TOOLBAR_D101_C1',
grid1 TYPE REF TO cl_gui_alv_grid,
grid2 TYPE REF TO cl_gui_alv_grid,
custom_container1 TYPE REF TO cl_gui_custom_container,
custom_container2 TYPE REF TO cl_gui_custom_container,
event_receiver TYPE REF TO lcl_event_receiver.
Set initial dynpro
SET SCREEN 100.
LOCAL CLASSES: Definition
*===============================================================
class lcl_event_receiver: local class to
define and handle own functions.
Definition:
~~~~~~~~~~~
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive,
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
PRIVATE SECTION.
ENDCLASS.
lcl_event_receiver (Definition)
*===============================================================
LOCAL CLASSES: Implementation
*===============================================================
class lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
§ 2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
DATA: ls_toolbar TYPE stb_button.
E_OBJECT of event TOOLBAR is of type REF TO CL_ALV_EVENT_TOOLBAR_SET.
This class has got one attribute, namly MT_TOOLBAR, which
is a table of type TTB_BUTTON. One line of this table is
defined by the Structure STB_BUTTON (see data deklaration above).
A remark to the flag E_INTERACTIVE:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'e_interactive' is set, if this event is raised due to
the call of 'set_toolbar_interactive' by the user.
You can distinguish this way if the event was raised
by yourself or by ALV
(e.g. in method 'refresh_table_display').
An application of this feature is still unknown...
append a separator to normal toolbar
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
append an icon to show booking table
CLEAR ls_toolbar.
MOVE 'BOOKINGS' TO ls_toolbar-function.
MOVE icon_employee TO ls_toolbar-icon.
MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
MOVE 'Detail'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD.
METHOD handle_user_command.
§ 3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
DATA: lt_rows TYPE lvc_t_row.
CASE e_ucomm.
WHEN 'BOOKINGS'.
CALL METHOD grid1->get_selected_rows
IMPORTING et_index_rows = lt_rows.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
else.
perform show_booking_table tables lt_rows.
ENDIF.
ENDCASE.
ENDMETHOD. "handle_user_command
ENDCLASS.
lcl_event_receiver (Implementation)
*===================================================================
FORM EXIT_PROGRAM *
FORM exit_program.
The instance grid2 is freed not until the program exits from the
main screen.
(It is created only once during the first selection of SBOOK,
no matter how many times the second window is called).
CALL METHOD custom_container1->free.
IF not custom_container2 is initial.
CALL METHOD custom_container2->free.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
LEAVE PROGRAM.
ENDFORM.
*& Module PBO_100 OUTPUT
text
MODULE pbo_100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
g_repid = sy-repid.
IF custom_container1 is initial.
select data from table SFLIGHT
PERFORM select_table_sflight CHANGING gt_sflight.
create a custom container control for our ALV Control
CREATE OBJECT custom_container1
EXPORTING
container_name = cont_on_main
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid1
EXPORTING i_parent = custom_container1.
Set a titlebar for the grid control
gs_layout-grid_title = 'Flights'(100).
allow to select multiple lines
gs_layout-sel_mode = 'A'.
CALL METHOD grid1->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING it_outtab = gt_sflight.
->Create Object to receive events and link them to handler methods.
When the ALV Control raises the event for the specified instance
the corresponding method is automatically called.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_user_command FOR grid1.
SET HANDLER event_receiver->handle_toolbar FOR grid1.
§ 4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
CALL METHOD grid1->set_toolbar_interactive.
ENDIF. "IF grid1 IS INITIAL
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid1.
ENDMODULE. " PBO_100 OUTPUT
*& Module PAI_100 INPUT
text
MODULE pai_100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
PERFORM exit_program.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_100 INPUT
*& Module PBO_0101 OUTPUT
text
MODULE pbo_0101 OUTPUT.
IF custom_container2 is initial.
(the data from sbook is already selected)
create a custom container control for our ALV Control
CREATE OBJECT custom_container2
EXPORTING
container_name = cont_on_dialog
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid2
EXPORTING i_parent = custom_container2.
change title
gs_layout-grid_title = 'Bookings'(101).
gs_layout-sel_mode = ' '.
CALL METHOD grid2->set_table_for_first_display
EXPORTING i_structure_name = 'SBOOK'
is_layout = gs_layout
CHANGING it_outtab = gt_sbook.
ELSE.
CALL METHOD grid2->refresh_table_display.
ENDIF. "IF custom_container2 IS INITIAL.
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid2.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
ENDMODULE. " PBO_0101 OUTPUT
*& Form SELECT_TABLE_SFLIGHT
text
<--P_GT_SFLIGHT text
FORM select_table_sflight CHANGING p_gt_sflight LIKE gt_sflight[].
SELECT * FROM sflight INTO TABLE p_gt_sflight up to g_max rows.
ENDFORM. " SELECT_TABLE_SFLIGHT
*& Form SELECT_TABLE_SBOOK
text
-->P_LS_SFLIGHT text
<--P_GT_SBOOK text
FORM select_table_sbook USING p_ls_sflight LIKE LINE OF gt_sflight
CHANGING p_gt_sbook LIKE gt_sbook[].
DATA: lt_sbook LIKE gt_sbook[].
Select data from sbook according to a line of sflight
and append that data to table p_gt_sbook
SELECT * FROM sbook INTO TABLE lt_sbook
WHERE carrid = p_ls_sflight-carrid
AND connid = p_ls_sflight-connid
AND fldate = p_ls_sflight-fldate.
APPEND LINES OF lt_sbook TO p_gt_sbook.
ENDFORM. " SELECT_TABLE_SBOOK
*& Module PAI_0101 INPUT
text
MODULE pai_0101 INPUT.
CASE ok_code.
WHEN 'RETURN'.
LEAVE TO SCREEN 0.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_0101 INPUT
*& Form show_booking_table
text
-->P_ET_INDEX_ROWS text
FORM show_booking_table TABLES p_et_index_rows
STRUCTURE lvc_s_row.
DATA: ls_selected_line LIKE lvc_s_row,
lf_row_index TYPE lvc_index,
ls_sflight LIKE LINE OF gt_sflight.
CLEAR gt_sbook[].
LOOP AT p_et_index_rows INTO ls_selected_line.
lf_row_index = ls_selected_line-index.
read selected row from internal table gt_sflight
READ TABLE gt_sflight INDEX lf_row_index INTO ls_sflight.
select corresponding lines of table sbook
and append new lines to global table
PERFORM select_table_sbook USING ls_sflight
CHANGING gt_sbook.
ENDLOOP.
call dialog screen and display new alv control
CALL SCREEN 101 STARTING AT 10 5.
ENDFORM. " show_booking_table
Regards,
Naveen. -
How to add close button in pannel ?
hai friends,
how to add close button in pannel ? give any example.
regards,
welcomecanHi Welcomecan,
You can use the TitleWindow as suggested by Subeesh for having a built in close button...The TitleWindow is infact an extension of the Panel container. TitleWindow is most generally
used for creating PopUp Windows.
Check the below link for examples...
http://blog.flexexamples.com/?s=TitleWindow
Thanks,
Bhasker -
How to Add Push Button On Selection Screen
Hi Experts,
How to add Push button on Selection Screen.
Points will b rewarded for useful help.
Bohra.Hi,
To create a pushbutton on the selection screen, you use:
SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
USER-COMMAND <ucom> [MODIF ID <key>].
The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
<push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
Ex.
REPORT DEMO.
TABLES SSCRFIELDS.
DATA FLAG.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
END OF LINE,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
END OF LINE,
END OF SCREEN 500.
AT SELECTION-SCREEN.
CASE SSCRFIELDS.
WHEN 'CLI1'.
FLAG = '1'.
WHEN 'CLI2'.
FLAG = '2'.
WHEN 'CLI3'.
FLAG = '3'.
WHEN 'CLI4'.
FLAG = '4'.
ENDCASE.
START-OF-SELECTION.
TIT = 'Four Buttons'.
BUT1 = 'Button 1'.
BUT3 = 'Button 3'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
CASE FLAG.
WHEN '1'.
WRITE / 'Button 1 was clicked'.
WHEN '2'.
WRITE / 'Button 2 was clicked'.
WHEN '3'.
WRITE / 'Button 3 was clicked'.
WHEN '4'.
WRITE / 'Button 4 was clicked'.
WHEN OTHERS.
WRITE / 'No Button was clicked'.
ENDCASE.
This example defines four pushbuttons on a selection screen that is displayed as a
dialog box. The selection screen is defined in a statement chain for keyword
SELECTION-SCREEN.
If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
Regards,
Bhaskar
Maybe you are looking for
-
How can I stop iPhoto from opening everytime...
OMG this is maddening. I am a photograher. I shoot tethered to a MBP in lightroom through a Canon 5D Mark III; I recently upgraded to YOSEMITE. Every lovingtime I plug the camera in to the MBP, IPHOTO starts, reads the contents of my 16GB card which
-
Can any one tell me How to load data in matrix from user table
Hi, we need to load data to matrix when page loads. After loading data we should add row to that matrix and update the values in database without effecting previous data. It should have functionality like UDO Default Form. Can any help me out in this
-
Purchased items not in library but itunes says it is already downloaded. It is in my i-phone library but when I try to download ot computer, it will not let me. It acknowledges that it is already purchased but says it is already donwloaded. It is n
-
Track info not showing up in Vista
When I rip music with Nokia Music 1.3 the track info shows up nicely in the program. But when I head over to the location where the music is stored on my hard drive(using Vista) there is no info at all on the tracks in theVista explorer program. Is i
-
Crystal Report chart with VB6 help...
Hello!....I m using crystal report with visual basic 6.......i develop a report in crystal report in which i add a chart control......when i see preview in crystal report and move mouse over chart then on Tool tip i get each data point shown on mouse