How to open a second grid, by clicking on first grid
Hi
On my htm page, i have a grid, by clicking on any of row of the first grid, i want to open a second grid, below the first gird, which will contain only the values of that row.
For the first gird, I am using the code <PARAM NAME="DoubleClickEvent" VALUE="Doubleclick">
and i have written a function as Doubleclick in the java script.
Now want code i should write under the function (Doubleclick) in the java script.
Can you help me out with the code for the same.
thanks,
Ashish
Hi
Padma,
I am new to this technology, can u tell me how to hide the second grid, what code i should add in the applet.
And my grid is containting the following data:
Airline AirportTo AirportFrom Price
Jet BOM DEL 4500
Kingfisher PUN IND 4000
Say, now when i will select 2nd row, my second grid should get following data
Airline AirportTo AirportFrom Price
Kingfisher PUN IND 4000
Can you explain the code more in detail.
thanks,
Similar Messages
-
Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)?
Exemple:
Table1
Cliente name:
John
Client number:
12345
Survay number of negative answers:
3
Table2
Questions and answers that were negative:
Question: How much time where you waiting
Avaluation: 3 (from 1 to 10)
Answer: They only called me 1 mouth later
Can you please help me?Hi,
Based on the description, I understand that you want to add subreport in the main report. When previewing the main report, the subreport can be shown in detail. Please see the screenshots on my test:
In Reporting Services, we can create parameters and pass them from main report to subreport in order to control the data dynamically.
References:
Subreports (Report Builder and SSRS)
Add a Subreport and Parameters (Report Builder and SSRS)
If I have any misunderstanding, please feel free to contact me.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
I have installed Elements 13 on my Mac but can't see how to open it. When I click on the disk icon on the desktop it takes me to an information page that gives no information about opening Elements 13. How do I open the software so that it can be used?
Unfortunately, when I open applications, adobe photoshop elements 13 folder does not appear in the adobe folder. It appears as a disk on the desktop, only.
-
I have photoshop CC. I cannot open two files such as Tiffs and view them side by side. When I open the second file it overrides the first. Do I need to do something with preferences?
What happens when you try to use the clone stamp tool?
It should work with the images side by side.
You can setup photoshop cc to be like photoshop cs2 was on your other mac, by going to Photoshop>Preferences>Interface and unchecking
Open Documents as Tabs and Enable Floating Document Window Docking
And also going to Window and unchecking Application Frame -
How to open a second browser window
I want to click on a button and have it open a second browser window. How?
Sorry. I reached help documents from within Flash.
The part about get(URL) starts by saying, "this example loads an image into a movie clip".
But I don't have any interest in doing that.
It goes on:
When the image is clicked, a new URL is loaded in a new browser window.
var listenerObject:Object = new Object();
listenerObject.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRelease = function() {
getURL("http://www.adobe.com/software/flash/flashpro/", "_blank");
var logo:MovieClipLoader = new MovieClipLoader();
logo.addListener(listenerObject);
logo.loadClip("http://www.helpexamples.com/flash/images/image1.jpg",
this.createEmptyMovieClip("adobe_mc", this.getNextHighestDepth()));
How do i edit this script to just open a new window and display its html or swf? -
How to Open new screen for single click on ALV icon.
Hi All,
Can any body help me regarding the below ALV requirement.
I need to create a executable program ZPROGRAM with a table having field to store long text.The ALV report should display records according to the selection screen parameters with a icon in each record when clicked should open a new screen with present data in the field and must be able to save the entered long text.
Can any body give me the idea after displaying the simple ALV in the output,
How to open new screen(not the Pop-ups) after single click on the icon,
in that I should be able to modify & save the long text in my ZTABLE and
able to retrieve the same text for single clicked icon record.
which function modules/Classes/Methods can we use for this requirement.
And how retrieve the same text for this record.
Thanks in advance.
Regards,
Kalam A.*& Report ZTEST_ALV
REPORT ZTEST_ALV.
TYPE-POOLS slis.
DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv .
DATA: gs_layout TYPE slis_layout_alv.
DATA: gt_list_top_of_page TYPE slis_t_listheader.
DATA: gt_sortinfo_alv TYPE slis_t_sortinfo_alv.
DATA: gs_print_alv TYPE slis_print_alv.
DATA: gs_grid TYPE lvc_s_glay.
DATA: gt_event TYPE slis_t_event.
DATA: gs_event TYPE slis_alv_event.
DATA: BEGIN OF GT_DISPLAY OCCURS 100.
INCLUDE STRUCTURE MARA.
DATA: BOX.
DATA: END OF GT_DISPLAY.
START-OF-SELECTION.
SELECT * FROM MARA UP TO 50 ROWS
INTO CORRESPONDING FIELDS OF TABLE GT_DISPLAY.
End-of-Selection.
PERFORM build_alv.
PERFORM display_screen .
FORM build_alv .
DATA: ls_fieldcat LIKE LINE OF gt_fieldcat.
DATA: ls_top TYPE LINE OF slis_t_listheader.
DATA: ls_sort TYPE slis_sortinfo_alv.
CLEAR: ls_fieldcat, gt_fieldcat[], ls_top,gt_list_top_of_page[],
ls_sort,gs_grid,gs_print_alv,gt_sortinfo_alv[].
*&-----gs_layout definition.
gs_layout-zebra = 'X'.
gs_layout-detail_popup = 'X'. "ÊÇ·ñµ¯³öÏêϸÐÅÏ¢´°¿Ú
gs_layout-f2code = '&ETA'. "ÉèÖô¥·¢µ¯³öÏêϸÐÅÏ¢´°¿ÚµÄ¹¦ÄÜÂë,ÕâÀïÊÇË«»÷
gs_layout-no_vline = ' '. "ÉèÖÃÁмä¸ôÏß
gs_layout-colwidth_optimize = 'X'. "ÓÅ»¯Áпí
gs_layout-detail_initial_lines = 'X'.
gs_layout-coltab_fieldname = 'LINE_COLOR'. "Line_colorΪgt_displayµÄÒ»¸ö×Ö¶Î,¾ßÌåÑÕÉ«ÉèÖüûÏÂÃæ˵Ã÷.
gs_layout-hotspot_fieldname = 'MATNR'.
gs_layout-detail_titlebar = 'ÏêϸÄÚÈÝ'. "ÉèÖõ¯³ö´°¿ÚµÄ±êÌâÀ¸
gs_layout-group_change_edit = 'X'.
*&-----gs_grid definition.
gs_grid-top_p_only = 'X'.
*&-----gs_print_alv definition.
gs_print_alv-prnt_title = 'X'.
gs_print_alv-prnt_info = 'X'.
*&-----gt_sortinfo_alv definition. С¼Æ
ls_sort-fieldname = 'MTART'.
ls_sort-tabname = 'GT_DISPLAY'.
ls_sort-subtot = 'X'.
ls_sort-spos = 1.
ls_sort-up = 'X'.
ls_sort-group = 'UL'.
APPEND ls_sort TO gt_sortinfo_alv.
ls_sort-fieldname = 'AENAM'.
ls_sort-tabname = 'GT_DISPLAY'.
ls_sort-subtot = 'X'.
ls_sort-spos = 1.
ls_sort-up = 'X'.
ls_sort-group = 'UL'.
APPEND ls_sort TO gt_sortinfo_alv.
*&-----slis_t_listheader definition. title.
CLEAR ls_top.
ls_top-key = 'µ±Ç°ÈÕÆÚ:'.
ls_top-typ = 'S'. " H = Header, S = Selection, A = Action
CONCATENATE sy-datum0(4) '-' sy-datum4(2) '-' sy-datum+6(2) INTO ls_top-info .
APPEND ls_top TO gt_list_top_of_page.
CLEAR ls_top.
ls_top-key = 'title'.
ls_top-typ = 'S'. " H = Header, S = Selection, A = Action
ls_top-info = space.
APPEND ls_top TO gt_list_top_of_page.
*&-----gs_print_alv definition.
gs_print_alv-prnt_title = 'X'.
gs_print_alv-prnt_info = 'X'.
*&-----gt_fieldcat definition.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'GT_DISPLAY'
i_structure_name = 'MARA'
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = sy-repid
CHANGING
ct_fieldcat = gt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
ls_fieldcat-hotspot = 'X'.
MODIFY gt_fieldcat FROM ls_fieldcat INDEX 2.
**-1. definition with macro.
DEFINE macro.
col_pos = col_pos + 1.
ls_fieldcat-tabname = 'it_typ_data'.
ls_fieldcat-fieldname = '&1'.
ls_fieldcat-seltext_l = &2.
ls_fieldcat-col_pos = col_pos.
ls_fieldcat-outputlen = '&3'.
ls_fieldcat-datatype = '&4'.
ls_fieldcat-do_sum = &5.
ls_fieldcat-edit = &6.
ls_fieldcat-checkbox = &7.
ls_fieldcat-key = &9.
ls_fieldcat-fix_column = &10.
ls_fieldcat-no_out = &11.
ls_fieldcat-ref_fieldname = &4. " System F4 Effect.
ls_fieldcat-ref_tabname = &5. " System F4 Effect.
ls_fieldcat-hotspot = &6.
append ls_fieldcat to gt_fieldcat.
clear ls_fieldcat.
END-OF-DEFINITION.
macro matnr 'matnr' 18 'MATNR' 'MARA' 'X'.
macro MTART 'MTART' 18 'MTART' 'MARA' ''.
macro AENAM 'AENAM' 18 'MAENAM' 'MARA' ''.
**-2. definition one-by-one.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-seltext_s = 'ÎïÁÏ'.
ls_fieldcat-ref_fieldname = 'ROLLNAME'.
ls_fieldcat-ref_tabname = 'DD03L'.
APPEND ls_fieldcat TO gt_fieldcat.
ENDFORM. "build_alv
FORM display_screen .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_event
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_event INTO gs_event WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
gs_event-form = 'TOP_OF_PAGE'.
MODIFY gt_event FROM gs_event INDEX sy-tabix.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS_SET '
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND' "When top-of-page is initial.
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sortinfo_alv[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = gt_event
IT_EVENT_EXIT =
IS_PRINT = gs_print_alv
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_display
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "display_screen
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' "Check Box need fieldcat-checkbox, input and edit.
IMPORTING
E_GRID = ref1.
CASE ucomm.
WHEN '&IC1'. " SAP standard code for double-clicking
READ TABLE gt_display INTO gs_display INDEX slis_selfield-tabindex.
CHECK sy-subrc = 0.
CASE selfield-fieldname .
WHEN 'PLNUM'.
SET PARAMETER ID 'PAF' FIELD gs_display-plnum.
CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
WHEN 'POSNR'.
SUBMIT rvscd100 USING SELECTION-SCREEN '1000' WITH vbeln = gs_display-vbeln
WITH posnr = gs_display-posnr
WITH zinfo = 'X'
AND RETURN.
ENDCASE.
IF selfield-sel_tab_field = 'OUT_ITAB-PI_SL'. " Line detail.
READ TABLE i_output INTO pisl_itab INDEX selfield-tabindex.
IF sy-subrc EQ 0.
ENDIF.
WHEN 'CHANGE'.
CALL METHOD ref1->check_changed_data.
CALL METHOD ref1->refresh_table_display.
*5´Ë´¦´úÂë×èÖ¹'REUSE_ALV_GRID_DISPLAY´´½¨ÐµÄÆÁÄ»£¬Ôì³ÉÆÁÄ»¶à²ã
selfield-refresh = 'X'.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN OTHERS.
ENDCASE.
ENDFORM. "user_command
Add your code in user_command form.
WHEN you click matnr ucomm eq '&IC1'.
Message was edited by:
Chunhai Hu -
How to open the second VM in Oracle 11gR2 2-nodes RAC system ?
Folks,
Hello. I have been installing Oracle Database 11gR2 RAC system using 2 nodes that are 2 Virtual Machines (rac1 and rac2) on the top of VMPLayer 3.
I follow the tutorial http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html to do.
The original Virtual Machine rac1 has run correctly. I configure rac1 network (eth0 and eth1) by opening VM rac1 and using command "[root@rac1\] #neat" as root user to invoke the network configuration.
For the second Virtual Machine rac2, I simply copy all files in "C:\VM\rac1" into "C:\VM\rac2". Then I have done the following:
1) In the directory "C:\VM\rac2", rename "rac1.vmx" to "rac2.vmx".
2) Change display name from "rac1" to "rac2" in the file "rac2.vmx".
The next thing to do for rac2 is to open the Virtual Machine rac2 and configure its network (eth0 and eth1) by using the command "[root@rac2\]#neat" as root user.
But by this step, I don't understand how to open the Virtual Machine rac2 so that can configure its network (eth0 and eth1).
Can any folk tell me how to open the VM rac2 to configure its network by this step ?Hi,
But by this step, I don't understand how to open the Virtual Machine rac2 so that can configure its network (eth0 and eth1)."rac2" is a new virtual machine after you copied and changed the display name and you need to add this in the vmware enventory (I am talking about vmware server and vmware player should have the same way as it is supposed to run multiple vritual machines on your PC). Then it will be visible it to you. Now start this new machine and edit the network configuration.
Salman -
How to open a new window on click of a button, for printing stuffs in adf
Hi ADF Experts,
Jdeveloper 11.1.1.7.0 version.
I am having a Print Button. On click of this I want to open a new window? how is it possible. Note it should not be a popup or panelwindow.
Please suggest.
Thanks,
RoyCheck out Frank's article http://www.oracle.com/technetwork/developer-tools/adf/learnmore/95-printable-pages-1501392.pdf which come with a sample at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/95-printable-pages-1501393.zip
Timo -
How to open new browser window on click of command button
Hi,
We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
Thanks in Advance,
PradeepHi,
I have to load an applet viewer in the new browser window. I have URL to the PDF.
I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
How do i update the session scope variable using javascript?
Thanks and Regards,
Pradeep -
How to open two program in one click??
hi there Java lovers , can anyone help me on this ?
I want to open two program ( 2 windows ) after I click on a button... how can I do this ??
please help me & Thanks for the help ....hi there Java lovers , can anyone help me on this ?
I want to open two program ( 2 windows ) after I click
on a button... how can I do this ??
please help me & Thanks for the help ....I suppose that you can open 2 windows,two Dialog windows.You cann't open 2 Frame windows at the same time.
To do this ,you can use Dialog.show() to make the windows be visible. -
How to open a file by double clicking in an RUNNING exe built by LabVIEW
I am developing an applicationg using LabVIEW. But found some difficulties.
This is an editor, and I link this app to a certain file format.
So I hope when I double click this file, My exe will load it. This could be done by read application command line.
But if my exe is runing already, I double click the file, I could not get the latest command line information.
When the exe is running, How doule click the file to send some sort of info the this exe so the exe could open a new one.
How to do this in LabIVEW?
Solved!
Go to Solution.Hi,
You have to make the Vi reentrant so that it does not share the same memory location:
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway -
How to open subscribe dialog box when clicking ics link
I would like to create a web page containing all our shared calendar links so my users need only to click a link which will open iCal, have the "subscribe" dialog box pop up and have the calendar URL auto filled.
I've gotten as far as opening the ics file with iCal but am stuck on how to force the "subscribe" box to automatically open.
For example, I would want the link: http://sharedcalendars/home/scott/calendar.ics
to open iCal, pop up the "subscribe" box and auto fill the URL field with http://sharedcalendar/home/scott/calendar.ics .
My users are lazy and complain to great lengths about having to manually type the URL of each shared calendar.
Any Ideas?mouse listener on the tree, see if the click count is 2 and what node it clicked, open the dialog. MouseEvent can give you the click count and x/y coordinate, JTree can tell you what node is at that coordinate.
-
How to open an pdf report On click of some command button in adf
Hi,
I have to generate some pdf report or some pdf document on click of some command button .Could any one please tell me how to achieve this.
suggestion would be appreciated,
Regards
Vinay kumarSo what you're saying is the PDF already exists on your web server, and all you want to do is navigate in the browser from your ADF application to the PDF, yes? If that's correct, let's assume you're PDF exists at:
http://www.acme.com/someCustomPath/myFantasticReport.pdf
Consider the <af:goButton> or <af:goLink> controls, which include the destination attribute. As such you'd do something like this:
<af:goButton destination="http://www.acme.com/someCustomPath/myFantasticReport.pdf"/>As you can see the "go" controls are for navigating to resources not inside your ADF application, while the "command" controls are reserved for navigation among resources in your application.
In order to generate the destination URL, just replace the destination attribute with an EL expression that retrieves it's value from a backing bean:
<af:goButton destination="#{myBean.giveMeTheUrl}"/>Regards,
CM. -
How to open settings when tap to click is disabled
How can i go to settings menu when tap to click is disabled
Hello J3FF1,
I assume you are talking about the touchpad on a laptop.
It helps to give as much info as possible when asking for help.
What is the model number of your system and the OS version?
You can navigate to the mouse/touchpad settings via the control panel. Find the Tapping tab or look for the Synaptics tab and locate Tapping from there to check or uncheck the box (depending on if your laptop is Synaptics or Alms based).
If for some reason its not showing up in the Settings window, you may need to install the touchpad driver for your system.
I would need to know what system you have in order to find the right driver in that case. -
How to open a new window by clicking the string in the text field ?
Hi
is it possible to do this ?
Some string value is retrieved from database and it is placed in the text field. [ done with this part ]
i have to provide link to that string to open a new window. [ yet to do ]
Please help me in this.
Note : if this is not possible , give me some other idea to do this.
-Arunwhether this is useful ?
I am using string field here.
public StringField(java.lang.String name,
java.lang.Object listener,
java.lang.String callback,
java.lang.String value)Constructs a StringField
Parameters:
name - Name of field
listener - Listener to update
callback - Callback of listener
value - Value of field
-Arun
Maybe you are looking for
-
Visibility description text form fields in Acrobat Pro
Hi there, I'm making a lot of forms for a client of mine. The major part I'm doing from indesign CC, but a couple of specific alterations I have to do in Acrobat Pro. There is one thing I can't figure out, lets see if I can describe it correctly; One
-
Hi all. i know that this report calculates the balance carried forward for customers and/or vendors. i also know that there is a particular functionality with it: SAP recommends that the program is run at the beginning of the new fiscal year. If the
-
Print Sharpening for contact sheets?
When I am printing multiple images if I use the single image printing options I can set sharpening parameters in the print dialog. However if I switch to contact sheet printing, to get more than one image on a printed page, I lose the sharpening sett
-
Blackberry Curve 9310 won't reconfigure my Google email
I accidently pressed something on my Blackberry Curve 9310 and it caused all my phone calls and Google emails to run together for awhile. Well,I finally fixed that,but now I can't send any pictures from my phone to my Google email without me getting
-
HP Pavilion p6670t desktop Intel Core i3 550 Windows 7 64-bit Intel HD graphics I get random freezing on my computer with distortion to the screen (some of the colors look off, and I see thick purple vertical lines). I'm not running any labor intensi