Can anyone troubleshoot this code??
hi all !
lemme tell u that i'm tryin to pop up a screen when someone clicks on connid which is a hotspot.but it isnt wrkin. here is the code:
*& Report ZSS_OOP_ALV *
REPORT zss_oop_alv .
*********************DATA DECLARATION-GLOBAL DATA FIELDS*************
DATA: alv_grid TYPE REF TO cl_gui_alv_grid, "for screen 1
custom_container TYPE REF TO cl_gui_custom_container,
alv_grid1 TYPE REF TO cl_gui_alv_grid, "for screen 2
custom_container1 TYPE REF TO cl_gui_custom_container,
pt_fieldcat TYPE lvc_t_fcat,
pt_fieldcat1 TYPE lvc_t_fcat,
ok_code LIKE sy-ucomm,
save_ok LIKE sy-ucomm,
layout1 TYPE lvc_s_layo.
*********************DATA DECLARATION-INTERNAL TABLE*****************
DATA: BEGIN OF i_list OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: END OF i_list.
DATA: BEGIN OF i_list1 OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: END OF i_list1.
********************DATA DECLARATION-INTERNAL TABLE*****************
DATA: BEGIN OF g_list OCCURS 0.
INCLUDE STRUCTURE sticket.
DATA: END OF g_list.
**********************EVENT HANDLER CLASS****************
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
handle_hotspot_click
FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING e_row_id e_column_id es_row_no.
ENDCLASS. "lcl_event_handler DEFINITION
**********************EVENT HANDLER CLASS*************
CLASS lcl_event_handler IMPLEMENTATION.
METHOD handle_hotspot_click .
PERFORM handle_hotspot_click USING e_row_id e_column_id es_row_no .
ENDMETHOD . "handle_hotspot_click
ENDCLASS. "lcl_event_handler IMPLEMENTATION
***************CREATE AN INSTANCE OF THE CLASS***********************
DATA: gr_event_handler TYPE REF TO lcl_event_handler .
*--Creating an instance for the event handler
**********************START-OF-SELECTION*****************************
START-OF-SELECTION.
SELECT * FROM sflight INTO TABLE i_list.
SELECT * FROM sticket INTO TABLE g_list.
CALL SCREEN 0100.
END-OF-SELECTION.
MODULE display PBO
MODULE display_alv OUTPUT.
SET PF-STATUS 'MAIN101'.
SET TITLEBAR 'MAIN100'.
PERFORM prepare_field_catalog .
PERFORM DISPLAY_ALV.
ENDMODULE. "display_alv OUTPUT
*& Form display_alv
text
FORM display_alv.
IF alv_grid IS INITIAL. "CHK IF GRID ALREADY EXISTS
CREATE OBJECT custom_container "IF NOT CREATE ONE CUSTOM CONTAINER FOR IT !
EXPORTING
PARENT =
container_name = 'CC_ALV'
STYLE =
LIFETIME = lifetime_default
REPID =
DYNNR =
NO_AUTODEF_PROGID_DYNNR =
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
others = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT alv_grid "NOW CREATE A GRID
EXPORTING
I_SHELLSTYLE = 0
I_LIFETIME =
i_parent = custom_container
I_APPL_EVENTS = space
I_PARENTDBG =
I_APPLOGPARENT =
I_GRAPHICSPARENT =
I_NAME =
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
others = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD alv_grid->set_ready_for_input "INITIALLY SET IT AS NON-EDITABLE
EXPORTING
i_ready_for_input = 1.
CALL METHOD alv_grid->set_table_for_first_display "SET THE DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME = 'SFLIGHT'
IS_VARIANT =
i_save = 'A'
I_DEFAULT = 'X'
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
CHANGING
it_outtab = i_list[]
it_fieldcatalog = pt_fieldcat
IT_SORT =
IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
ENDIF.
ENDFORM. " alv_display
*& Module STATUS_0100 OUTPUT
text
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT. "FOR THE EXIT BACK AND UP FUNCTIONS
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'EXIT'.
PERFORM exit_program.
WHEN 'BACK' .
PERFORM exit_program.
WHEN 'UP' .
PERFORM exit_program.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN OTHERS.
do nothing
ENDCASE.
SET HANDLER gr_event_handler->handle_hotspot_click FOR alv_grid1 .
CREATE OBJECT gr_event_handler .
ENDMODULE. " USER_COMMAND_0100 INPUT
FORM EXIT_PROGRAM *
FORM exit_program.
LEAVE PROGRAM.
ENDFORM. "exit_program
*& Form switch_edit_mode
text
FORM switch_edit_mode.
*§3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
IF alv_grid->is_ready_for_input( ) EQ 0.
*§4.Use SET_READY_FOR_INPUT to switch between the substates.
CALL METHOD alv_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ELSE.
CALL METHOD alv_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 0.
ENDIF.
ENDFORM. " SWITCH_EDIT_MODE
*& Form prepare_field_catalog
text
FORM prepare_field_catalog .
DATA ls_fcat TYPE lvc_s_fcat .
ls_fcat-fieldname = 'CARRID' .
ls_fcat-inttype = 'C' .
ls_fcat-outputlen = '9' .
ls_fcat-coltext = 'Carrier ID' .
ls_fcat-seltext = 'Carrier ID' .
ls_fcat-col_pos = '2' .
APPEND ls_fcat TO pt_fieldcat .
CLEAR ls_fcat .
ls_fcat-fieldname = 'CONNID' .
ls_fcat-ref_table = 'SFLIGHT' .
ls_fcat-ref_field = 'CONNID' .
ls_fcat-hotspot = 'X'.
ls_fcat-outputlen = '9' .
ls_fcat-col_pos = '1' .
ls_fcat-coltext = 'Connection ID' .
ls_fcat-seltext = 'Connection ID' .
APPEND ls_fcat TO pt_fieldcat .
ENDFORM . "prepare_field_catalog
*& Form handle_hotspot_click
text
-->P_E_ROW_ID text
-->P_E_COLUMN_ID text
-->P_ES_ROW_NO text
FORM handle_hotspot_click USING i_row_id TYPE lvc_s_row
i_column_id TYPE lvc_s_col
is_row_no TYPE lvc_s_roid.
READ TABLE i_list INDEX is_row_no-row_id .
READ TABLE g_list with key CONNID = i_list-connid .
CALL SCREEN 200 STARTING AT 10 5. "Details about passenger-seat matching
IF sy-subrc = 0 AND i_column_id-fieldname = 'CONNID' .
ENDIF .
ENDFORM .
*& Module STATUS_0200 OUTPUT
text
module STATUS_0200 output. "PBO for 200
PERFORM build_cat .
PERFORM display_alv1.
endmodule. " STATUS_0200 OUTPUT
FORM display_alv1.
IF alv_grid1 IS INITIAL. "CHK IF GRID ALREADY EXISTS
CREATE OBJECT custom_container "IF NOT CREATE ONE CUSTOM CONTAINER FOR IT !
EXPORTING
PARENT =
container_name = 'CC_ALV1'
STYLE =
LIFETIME = lifetime_default
REPID =
DYNNR =
NO_AUTODEF_PROGID_DYNNR =
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
others = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT alv_grid1 "NOW CREATE A GRID
EXPORTING
I_SHELLSTYLE = 0
I_LIFETIME =
i_parent = custom_container1
I_APPL_EVENTS = space
I_PARENTDBG =
I_APPLOGPARENT =
I_GRAPHICSPARENT =
I_NAME =
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
others = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD alv_grid1->set_ready_for_input "INITIALLY SET IT AS NON-EDITABLE
EXPORTING
i_ready_for_input = 1.
CALL METHOD alv_grid1->set_table_for_first_display "SET THE DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME = 'STICKET'
IS_VARIANT =
i_save = 'A'
I_DEFAULT = 'X'
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
CHANGING
it_outtab = g_list[]
it_fieldcatalog = pt_fieldcat1
IT_SORT =
IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
ENDIF.
ENDFORM. " alv_display1
*& Form build_cat
text
--> p1 text
<-- p2 text
form build_cat .
DATA ls_fcat TYPE lvc_s_fcat .
ls_fcat-fieldname = 'CONNID' .
ls_fcat-inttype = 'C' .
ls_fcat-outputlen = '9' .
ls_fcat-coltext = 'CONNECTION ID' .
ls_fcat-seltext = 'CONNECTION ID' .
ls_fcat-col_pos = '2' .
ls_fcat-hotspot = 'X' .
APPEND ls_fcat TO pt_fieldcat1 .
CLEAR ls_fcat .
ls_fcat-fieldname = 'BOOKID' .
ls_fcat-ref_table = 'STICKET' .
ls_fcat-ref_field = 'BOOKID' .
ls_fcat-outputlen = '9' .
ls_fcat-col_pos = '1' .
ls_fcat-coltext = 'Connection ID' .
ls_fcat-seltext = 'Connection ID' .
APPEND ls_fcat TO pt_fieldcat1 .
endform. " build_cat
waitin for some help
sachin
Hi Sachin,
The Event for hotspot was not registered properly. You should add the code SET HANDLER before displaying the ALV grid.
I have changed the code. It should work now.
Please reward helpful posts.
Regards
Wenceslaus.
**********************DATA DECLARATION-GLOBAL DATA FIELDS**************
DATA: alv_grid TYPE REF TO cl_gui_alv_grid, "for screen 1
custom_container TYPE REF TO cl_gui_custom_container,
alv_grid1 TYPE REF TO cl_gui_alv_grid, "for screen 2
custom_container1 TYPE REF TO cl_gui_custom_container,
pt_fieldcat TYPE lvc_t_fcat,
pt_fieldcat1 TYPE lvc_t_fcat,
ok_code LIKE sy-ucomm,
save_ok LIKE sy-ucomm,
layout1 TYPE lvc_s_layo.
**********************DATA DECLARATION-INTERNAL TABLE******************
DATA: BEGIN OF i_list OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: END OF i_list.
DATA: BEGIN OF i_list1 OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: END OF i_list1.
*********************DATA DECLARATION-INTERNAL TABLE******************
DATA: BEGIN OF g_list OCCURS 0.
INCLUDE STRUCTURE sticket.
DATA: END OF g_list.
***********************EVENT HANDLER CLASS*[DEFINITION]****************
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
handle_hotspot_click
FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING e_row_id e_column_id es_row_no.
ENDCLASS. "lcl_event_handler DEFINITION
***********************EVENT HANDLER CLASS*[IMPLEMENTATION]*************
CLASS lcl_event_handler IMPLEMENTATION.
METHOD handle_hotspot_click .
PERFORM handle_hotspot_click USING e_row_id e_column_id es_row_no .
ENDMETHOD . "handle_hotspot_click
ENDCLASS. "lcl_event_handler IMPLEMENTATION
****************CREATE AN INSTANCE OF THE CLASS************************
DATA: gr_event_handler TYPE REF TO lcl_event_handler .
*--Creating an instance for the event handler
***********************START-OF-SELECTION******************************
START-OF-SELECTION.
CREATE OBJECT gr_event_handler .
SELECT * FROM sflight INTO TABLE i_list.
SELECT * FROM sticket INTO TABLE g_list.
CALL SCREEN 0100.
END-OF-SELECTION.
* MODULE display PBO
MODULE display_alv OUTPUT.
SET PF-STATUS 'MAIN101'.
SET TITLEBAR 'MAIN100'.
PERFORM prepare_field_catalog .
PERFORM display_alv.
ENDMODULE. "display_alv OUTPUT
*& Form display_alv
* text
FORM display_alv.
IF alv_grid IS INITIAL. "CHK IF GRID ALREADY EXISTS
CREATE OBJECT custom_container
EXPORTING
* PARENT =
container_name = 'CC_ALV'
CREATE OBJECT alv_grid
EXPORTING
i_parent = custom_container
CALL METHOD alv_grid->set_ready_for_input "INITIALLY SET IT AS NON-EDITABLE
EXPORTING
i_ready_for_input = 1.
SET HANDLER gr_event_handler->handle_hotspot_click FOR alv_grid .
CALL METHOD alv_grid->set_table_for_first_display "SET THE DISPLAY
EXPORTING
* I_BUFFER_ACTIVE =
* I_BYPASSING_BUFFER =
* I_CONSISTENCY_CHECK =
* I_STRUCTURE_NAME = 'SFLIGHT'
* IS_VARIANT =
i_save = 'A'
* I_DEFAULT = 'X'
* IS_LAYOUT =
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
* IT_ALV_GRAPHICS =
* IT_EXCEPT_QINFO =
CHANGING
it_outtab = i_list[]
it_fieldcatalog = pt_fieldcat
* IT_SORT =
* IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
ENDIF.
ENDFORM. " alv_display
*& Module STATUS_0100 OUTPUT
* text
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT. "FOR THE EXIT BACK AND UP FUNCTIONS
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'EXIT'.
PERFORM exit_program.
WHEN 'BACK' .
PERFORM exit_program.
WHEN 'UP' .
PERFORM exit_program.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN OTHERS.
* do nothing
ENDCASE.
*SET HANDLER gr_event_handler->handle_hotspot_click FOR alv_grid1 .
ENDMODULE. " USER_COMMAND_0100 INPUT
* FORM EXIT_PROGRAM *
FORM exit_program.
LEAVE PROGRAM.
ENDFORM. "exit_program
*& Form switch_edit_mode
* text
FORM switch_edit_mode.
*§3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
IF alv_grid->is_ready_for_input( ) EQ 0.
*§4.Use SET_READY_FOR_INPUT to switch between the substates.
CALL METHOD alv_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ELSE.
CALL METHOD alv_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 0.
ENDIF.
ENDFORM. " SWITCH_EDIT_MODE
*& Form prepare_field_catalog
* text
FORM prepare_field_catalog .
DATA ls_fcat TYPE lvc_s_fcat .
ls_fcat-fieldname = 'CARRID' .
ls_fcat-inttype = 'C' .
ls_fcat-outputlen = '9' .
ls_fcat-coltext = 'Carrier ID' .
ls_fcat-seltext = 'Carrier ID' .
ls_fcat-col_pos = '2' .
APPEND ls_fcat TO pt_fieldcat .
CLEAR ls_fcat .
ls_fcat-fieldname = 'CONNID' .
ls_fcat-ref_table = 'SFLIGHT' .
ls_fcat-ref_field = 'CONNID' .
ls_fcat-hotspot = 'X'.
* ls_fcat-outputlen = '9' .
ls_fcat-col_pos = '1' .
* ls_fcat-coltext = 'Connection ID' .
* ls_fcat-seltext = 'Connection ID' .
APPEND ls_fcat TO pt_fieldcat .
ENDFORM . "prepare_field_catalog
*& Form handle_hotspot_click
* text
* -->P_E_ROW_ID text
* -->P_E_COLUMN_ID text
* -->P_ES_ROW_NO text
FORM handle_hotspot_click USING i_row_id TYPE lvc_s_row
i_column_id TYPE lvc_s_col
is_row_no TYPE lvc_s_roid.
READ TABLE i_list INDEX is_row_no-row_id .
READ TABLE g_list WITH KEY connid = i_list-connid .
CALL SCREEN 200 STARTING AT 10 5. "Details about passenger-seat matching
IF sy-subrc = 0 AND i_column_id-fieldname = 'CONNID' .
ENDIF .
ENDFORM . "handle_hotspot_click
*& Module STATUS_0200 OUTPUT
* text
MODULE status_0200 OUTPUT. "PBO for 200
PERFORM build_cat .
PERFORM display_alv1.
ENDMODULE. " STATUS_0200 OUTPUT
FORM display_alv1.
IF alv_grid1 IS INITIAL. "CHK IF GRID ALREADY EXISTS
CREATE OBJECT custom_container "IF NOT CREATE ONE CUSTOM CONTAINER FOR IT !
EXPORTING
* PARENT =
container_name = 'CC_ALV1'
* STYLE =
* LIFETIME = lifetime_default
* REPID =
* DYNNR =
* NO_AUTODEF_PROGID_DYNNR =
* EXCEPTIONS
* CNTL_ERROR = 1
* CNTL_SYSTEM_ERROR = 2
* CREATE_ERROR = 3
* LIFETIME_ERROR = 4
* LIFETIME_DYNPRO_DYNPRO_LINK = 5
* others = 6
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT alv_grid1 "NOW CREATE A GRID
EXPORTING
* I_SHELLSTYLE = 0
* I_LIFETIME =
i_parent = custom_container1
* I_APPL_EVENTS = space
* I_PARENTDBG =
* I_APPLOGPARENT =
* I_GRAPHICSPARENT =
* I_NAME =
* EXCEPTIONS
* ERROR_CNTL_CREATE = 1
* ERROR_CNTL_INIT = 2
* ERROR_CNTL_LINK = 3
* ERROR_DP_CREATE = 4
* others = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD alv_grid1->set_ready_for_input "INITIALLY SET IT AS NON-EDITABLE
EXPORTING
i_ready_for_input = 1.
CALL METHOD alv_grid1->set_table_for_first_display "SET THE DISPLAY
EXPORTING
* I_BUFFER_ACTIVE =
* I_BYPASSING_BUFFER =
* I_CONSISTENCY_CHECK =
* I_STRUCTURE_NAME = 'STICKET'
* IS_VARIANT =
i_save = 'A'
* I_DEFAULT = 'X'
* IS_LAYOUT =
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
* IT_ALV_GRAPHICS =
* IT_EXCEPT_QINFO =
CHANGING
it_outtab = g_list[]
it_fieldcatalog = pt_fieldcat1
* IT_SORT =
* IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
ENDIF.
ENDFORM. " alv_display1
*& Form build_cat
* text
* --> p1 text
* <-- p2 text
FORM build_cat .
DATA ls_fcat TYPE lvc_s_fcat .
ls_fcat-fieldname = 'CONNID' .
ls_fcat-inttype = 'C' .
ls_fcat-outputlen = '9' .
ls_fcat-coltext = 'CONNECTION ID' .
ls_fcat-seltext = 'CONNECTION ID' .
ls_fcat-col_pos = '2' .
ls_fcat-hotspot = 'X' .
APPEND ls_fcat TO pt_fieldcat1 .
CLEAR ls_fcat .
ls_fcat-fieldname = 'BOOKID' .
ls_fcat-ref_table = 'STICKET' .
ls_fcat-ref_field = 'BOOKID' .
* ls_fcat-outputlen = '9' .
ls_fcat-col_pos = '1' .
* ls_fcat-coltext = 'Connection ID' .
* ls_fcat-seltext = 'Connection ID' .
APPEND ls_fcat TO pt_fieldcat1 .
ENDFORM. " build_cat
Similar Messages
-
hi everybody.....
can anybody provide me a java code for the following problem......
i want that if user enters input like this:
sam,john,undertaker,rock
the output should be:
'sam','john','undertaker','rock'
i.e , is converted to ',' and the string starts with ' and ends with '
i have a javascript code for this and it is reproduced below to have full view of the problem.........
<HTML>
<BODY>
<script type="text/javascript">
function CONVERT(){
var re=/[,]/g
for (i=0; i<arguments.length; i++)
arguments.value="'" + arguments[i].value.replace(re, function(m){return replacechar(m)}) + "'"
function replacechar(match){
if (match==",")
return "','"
</script>
<form>
<textarea name="data1" style="width: 400px; height: 100px" ></textarea>
<input type="button" value="submit" name="button" onclick="CONVERT(this.form.data1)">
</form>
</BODY>
</HTML>
can anyone do it for me.
thx in anticipationSunish,
On your problem, check in the String class documentation the method replaceAll(), you can solve your problem in just one line of code.
As for why the serious poster(the ones that are here to help, for many year, instead of just disrupting the forum) do not give you code is that they are here to help people learning and not to give free code.
You help a person to learn, when you provide this person with the tools to research and help the person to think out of his problem, so that in the future the learning person can repeat the process by herself instead of going after finnished solution everytime he needs it.
May the code be with you. -
Can anyone explain this code snippet
I'm revising for my exams and this is one of the question that came up in the previous exams. Can someone help answe the questions at the end. Also what object is 'time_t' and how why do they use 'input_time -= 24*60*60;'?
Read the following code carefully before answering the questions.
time_t normalise(time_t input_time)
bool finished;
// This produces a formatted time string like:
// Thu_Nov_24_18:22:48_1986
string str_time = format_time( input_time );
while( str_time.substr(1,3) != "Sun")
input_time -= 24*60*60;
str_time = format_time( input_time );
while( str_time.substr(11,2) != "00" )
input_time -= 60*60;
str_time = format_time( input_time );
while( str_time.substr(14,2) != "00")
str_time = format_time( input_time );
input_time -= 60;
while( str_time.substr(17,2) != "00")
input_time -= 1;
str_time = format_time( input_time );
return input_time;
1) Briefly explain what you think the overall purpose of this function is (do not describe each line of code).
2) There are two bugs in this code that prevent it from functioning correctly; circle them.
3) What would actually happen when this code is run?
(a) as originally written
(b) with the first bug fixed?
4) Discuss the efficiency of the code assuming the bugs have been fixed.Looks like it is trying to increment the time parameter back to represent midnight of the previous Sunday.
-
Can anyone explain this code!
DECLARE
TYPE t_NumberTableType IS TABLE OF NUMBER
INDEX BY BINARY_INTEGER;
v_NumberTable t_NumberTableType;
v_TempVar NUMBER;
BEGIN
v_TempVar := v_NumberTable(1);
END;
/That code assigns to the variable named v_TempVar the first value of the v_NumberTable collection.
However, with no input at sight it seems pretty useless and buggy since you will get an error because no value was assigned. -
Can anyone explain this behavior and tell me how to fix it?
Using NetBeans 6.5 on Windows, Glassfish v2.1
I have a JSF application with a page that has a tab set.
On one of the tabs I have a panel with company information.
One of the components on the page is an InputText field with the value bound to a session bean variable.
The tab also has an Add button.
Here is what the JSP looks like for the input text and button components
<h:inputText binding="#{MainPage.companyNameTF}" id="companyNameTF" readonly="#{SessionBean1.readOnlyFlag}"
<h:commandButton action="#{MainPage.mainAddBtn_action}" disabled="#{SessionBean1.disableEdit}" id="mainAddBtn"
style="font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; left: 425px; top: 380px; position: absolute; width: 75px" value="Add"/>
This is all plain vanilla stuff and I would expect that when the Add button is pushed, the session bean property would be filled with
the value entered in the input text field.
In the java code for the page, I have a method to process the Add button push.
Originally, it just called a method in the session bean to check that a value was entered in the input text field by checking the bound
session bean property.
For some reason, that was not getting filled and I was getting either a null or empty string rather than the value in the text field.
I added some checking in the method that processes the Add button push so I could check the values in the debugger.
Here is a sample of that code:
public String mainAddBtn_action() {
String s = sb1.getCompanyName();
s = (String)this.companyNameTF.getValue();
s = (String)this.companyNameTF.getSubmittedValue();I check this in the debugger and NONE of the variants that I have listed have the value that was entered into the text field.
The submittedValue is null and the others are empty strings (that is what they were initalized to).
This is all pertty straight forward stuff and I am at a loss to explain what is happening.
Can anyone expain this behavior, and, most important, how can I force the values to be present when the Add button is pushed.
I have never experienced this problem before, and have no clue what is causing it.
Thanks.Basically, the component bindings are just being used in plain vanilla get/set modes.
I set them to "" when I do a clear for the fields and they are set to a value via the text field.
No other action other than to read the values via get to insert them into the database.
And, I always use the get/set methods rather than just setting the value directly.
This is what is so strange about this behavior - I have created dozens of database add/update/delete pages using this same model and have not had a problem with them - even in a tab context.
Not a clue why this one is different.
I did notice that I had an error on the page (in IE7, you get a small triangle warning sign when something is not right).
I figured that might be the problem - maybe buggering up the rendering process.
I tracked that down and do not get that anymore (it had to do with the PDF display I was trying to get working a while back), but that did not resolve the problem.
I don't think there are any tab conflicts - none of the components are shared between tabs, but I will see what happens when I move a couple of the components out of the tab context.
I noticed that it seems to skip a cycle. Here is what I can do.
1) Fill in text fields and add a record - works fine the first time.
2) Clear the text fields
3) Enter new data in the text fields and push Add
4) I get an error saying fields are blank from my data check process.
5) Enter new data and push Add - the record is added with the new data.
My work around is to not enter data in step 3 and just accept the error message in step 4, then go ahead and enter the real data in step 5.
Very ugly, but it works every time. -
Can anyone explain this to me, please. It's a static section question.
Can anyone explain this to me, please. It's a static section question.
I came across the following style of programming recently and I would like to know what the Static section is actually doing in the class. Thx.
Here is the code.
public class ClassA {
private static Hashtable ClassAList = new Hashtable();
private ClassB cB;
private Vector goodLink;
private Hashtable classCList;
static
ClassA cA = new ClassA();
ClassAList.put("whatever", cA);
public static ClassA getClassA()
return (ClassA) ClassAList.get("whatever");hi,
The static section shall be loaded before it's constructor is called. (i.e at the time of loading the class). Therefore making it available for any other objects to call.
hope this clarifies ur question
prasanna -
Can anyone decipher this?
Can anyone decipher this from a MacBook Air?
Version:1.0 StartHTML:0000000177 EndHTML:0000023165 StartFragment:0000002541 EndFragment:0000023129 SourceURL:file://localhost/Users/Station03/Desktop/error%20report.docx
Interval Since Last Panic Report: 4945928 sec
Panics Since Last Report: 1
Anonymous UUID: AAAB478E-7DF3-46BC-B5A6-415AF728522F
Tue Jun 26 17:24:04 2012
panic(cpu 1 caller 0x2abf6a): Kernel trap at 0x00000000, type 14=page fault, registers:
CR0: 0x8001003b, CR2: 0x00000000, CR3: 0x00100000, CR4: 0x00000660
EAX: 0x00000000, EBX: 0x08826000, ECX: 0x107cfdc0, EDX: 0x0ced4f40
CR2: 0x00000000, EBP: 0x58c4bf78, ESI: 0x00000000, EDI: 0x08826000
EFL: 0x00010206, EIP: 0x00000000, CS: 0x00000008, DS: 0x07fc0010
Error code: 0x00000010
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0x58c4bd68 : 0x21b837 (0x5dd7fc 0x58c4bd9c 0x223ce1 0x0)
0x58c4bdb8 : 0x2abf6a (0x59e3d0 0x0 0xe 0x59e59a)
0x58c4be98 : 0x2a1a78 (0x58c4beb0 0xf9de0a4 0x58c4bf78 0x0)
0x58c4bea8 : 0x0 (0xe 0x6c340048 0x58c40010 0x550010)
0x58c4bf78 : 0x230235 (0x8826000 0x0 0x58c4bfc8 0x227cea)
0x58c4bfc8 : 0x2a179c (0x863ea0 0x0 0x10 0x7f414e4)
BSD process name corresponding to current thread: kernel_task
Mac OS version:
10K549
Kernel version:
Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
System model name: MacBookAir3,2 (Mac-942C5DF58193131B)
System uptime in nanoseconds: 349846083630500
unloaded kexts:
com.apple.iokit.SCSITaskUserClient 2.6.8 (addr 0x592a5000, size 0x28672) - last unloaded 177286763869073
loaded kexts:
com.FTDI.driver.FTDIUSBSerialDriver 2.2.14
com.apple.driver.AppleUSBTCKeyEventDriver 201.6 - last loaded 301283701360087
com.apple.iokit.SCSITaskUserClient 2.6.8
com.apple.filesystems.autofs 2.1.0
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.driver.AppleUpstreamUserClient 3.5.7
com.apple.driver.AppleMCCSControl 1.0.20
com.apple.driver.ApplePlatformEnabler 2.0.2d1
com.apple.driver.AGPM 100.12.31
com.apple.driver.AppleMikeyHIDDriver 1.2.0
com.apple.driver.AppleHDA 2.0.5f14
com.apple.driver.AudioAUUC 1.57
com.apple.driver.AppleMikeyDriver 2.0.5f14
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleIntelPenrynProfile 17
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0a1
com.apple.GeForce 6.3.6
com.apple.driver.AppleLPC 1.5.1
com.apple.driver.AppleBacklight 170.0.46
com.apple.driver.AppleUSBTCButtons 201.6
com.apple.driver.AppleUSBTCKeyboard 201.6
com.apple.driver.AppleUSBCardReader 2.6.1
com.apple.iokit.IOAHCIBlockStorage 1.6.4
com.apple.driver.AirPortBrcm43224 428.42.4
com.apple.driver.AppleAHCIPort 2.1.7
com.apple.driver.AppleUSBHub 4.2.4
com.apple.driver.AppleUSBEHCI 4.2.4
com.apple.BootCache 31.1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleUSBOHCI 4.2.0
com.apple.driver.AppleSmartBatteryManager 160.0.0
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleACPIButtons 1.3.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.3.6
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 142.6.0
com.apple.security.sandbox 1
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.14
com.apple.driver.AppleIntelCPUPowerManagement 142.6.0
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.nvidia.nv50hal 6.3.6
com.apple.driver.DspFuncLib 2.0.5f14
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOSurface 74.2
com.apple.iokit.IOBluetoothSerialManager 2.4.5f3
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.iokit.IOAudioFamily 1.8.3fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleHDAController 2.0.5f14
com.apple.iokit.IOHDAFamily 2.0.5f14
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.AppleSMC 3.1.0d5
com.apple.driver.IOPlatformPluginFamily 4.7.0a1
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.NVDAResman 6.3.6
com.apple.driver.AppleBacklightExpert 1.0.1
com.apple.iokit.IONDRVSupport 2.2.1
com.apple.iokit.IOGraphicsFamily 2.2.1
com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.5f3
com.apple.driver.AppleUSBBluetoothHCIController 2.4.5f3
com.apple.iokit.IOBluetoothFamily 2.4.5f3
com.apple.driver.AppleUSBMultitouch 207.7
com.apple.iokit.IOUSBHIDDriver 4.2.0
com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.8
com.apple.iokit.IOUSBMassStorageClass 2.6.7
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.8
com.apple.driver.AppleUSBMergeNub 4.2.4
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IO80211Family 320.1
com.apple.driver.AppleMCP89RootPortPM 1.11
com.apple.iokit.IOAHCIFamily 2.0.6
com.apple.iokit.IOUSBUserClient 4.2.4
com.apple.iokit.IONetworkingFamily 1.10
com.apple.iokit.IOUSBFamily 4.2.4
com.apple.driver.NVSMU 2.2.7
com.apple.driver.AppleEFIRuntime 1.4.0
com.apple.iokit.IOHIDFamily 1.6.6
com.apple.iokit.IOSMBusFamily 1.1
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 6
com.apple.driver.DiskImages 289.1
com.apple.iokit.IOStorageFamily 1.6.3
com.apple.driver.AppleACPIPlatform 1.3.6
com.apple.iokit.IOPCIFamily 2.6.5
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacBookAir3,2, BootROM MBA31.0061.B01, 2 processors, Intel Core 2 Duo, 2.13 GHz, 4 GB, SMC 1.66f55
Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD1), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en0
Serial ATA Device: APPLE SSD TS256C, 233.76 GB
USB Device: FaceTime Camera (Built-in), 0x05ac (Apple Inc.), 0x850a, 0x24600000 / 2
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0x26100000 / 2
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x04500000 / 3
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x821b, 0x04530000 / 5
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x023f, 0x04300000 / 2A third-party USB device. I don't know which one. It wasn't connected at the time of the panic.
-
HT3275 Please can anyone explain this to me
Please can anyone explain this to me - thank you -
Time Machine couldn't complete the backup to time capsule - The backup disk image “/Volumes/Data-1/Alyson’s iMac.sparsebundle” is already in use.The explanation is a long standing bug in Lion and Mountain Lion, but what you might really be asking is how to fix the problem.
Pull the power cord from the back of the Time Capsule
Wait a few minutes
Plug the power cord back in
If that does not fix the problem you will need to dig deeper. See #C12 in Pondini's excellent Time Machine - Troubleshooting.
http://pondini.org/TM/Troubleshooting.html -
Can anyone expalin this FMS query?
Dear Expert,
Can anyone expalin this FMS query, which follows
Query1:
IF $[ORDR.U_QuoOppNum] is NULL or $[ORDR.U_QuoOppNum] = ''
BEGIN
SELECT T0.Name as 'Segments'
FROM [dbo].[@SEGMENT] T0
Where SUBSTRING( T0.Code, 1, 3 ) = SUBSTRING( $[ORDR.U_QuoTypSeg], 1, 3)
END
ELSE
SELECT T0.U_OppSeg FROM OOPR T0 where T0.OpprId = $[ORDR.U_QuoOppNum]
Query2:
SELECT code
FROM [@SEGMENT] T0
Where SUBSTRING( T0.Code, 1, 3 ) = SUBSTRING( $[ORDR.U_QuoTypSeg], 1, 3)
AND Name = $[ORDR.U_QuoSeg]
Thanks in advance,
DwarakDear Dwarak,
The 1st query assign UDF U_OppSeg value from Sales Opportunity to Sales order if U_QuoOppNum in sales order matches opportunity ID. Otherwise, assign Name value in UDT @SEGMENT where the first 3 letters match with sales order UDF U_QuoTypSeg.
The 2nd query is the first part of the previous query after IF. I explained in the 2nd half.
Thanks,
Gordon -
Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?
Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
After that is done reboot the machine and see if you can log in.
If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
Reboot and try again.
If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
Lots of work, but there is no Lion disks.
https://discussions.apple.com/message/16276201#16276201 -
Can anyone read this Apple crash report?
Hi everyone!
My iMac's been absolutely fine since I bought it. The Lion upgrade was smooth. I upgraded on the first day Lion became available.
In the past week, I keep getting every other day a progressive gray screen and a warning that the computer needs to restart. I've no idea what's causing the crash... it happens when I have the standard suite of apps running (Mail, iTunes, Safari, etc) so no exotic application.
Here's a crash report. Can anyone read this and pin point the problem?
Thanks!
Interval Since Last Panic Report: 26855 sec
Panics Since Last Report: 1
Anonymous UUID: 2A90D08F-7981-4C26-90A0-88431085705A
Thu Jan 19 21:02:56 2012
panic(cpu 1 caller 0xffffff8000570f80): "MCHECK: m_type=12350 m=0xffffff807b9b6500"@/SourceCache/xnu/xnu-1699.24.8/bsd/kern/uipc_mbuf.c:3129
Backtrace (CPU 1), Frame : Return Address
0xffffff808045bad0 : 0xffffff8000220702
0xffffff808045bb50 : 0xffffff8000570f80
0xffffff808045bb80 : 0xffffff8000572c77
0xffffff808045bc10 : 0xffffff80005731d6
0xffffff808045bc30 : 0xffffff8000358c25
0xffffff808045bd10 : 0xffffff8000353729
0xffffff808045bd50 : 0xffffff8000580644
0xffffff808045be40 : 0xffffff8000563973
0xffffff808045be70 : 0xffffff80005614bf
0xffffff808045bf00 : 0xffffff8000561612
0xffffff808045bf50 : 0xffffff80005caa9b
0xffffff808045bfb0 : 0xffffff80002d8363
BSD process name corresponding to current thread: IMServicePlugInA
Mac OS version:
11C74
Kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
System model name: iMac12,1 (Mac-942B5BF58194151B)
System uptime in nanoseconds: 7371663855074
last loaded kext at 7163667149728: com.trusteer.driver.gakl_driver_2 1 (addr 0xffffff7f8079d000, size 28672)
last unloaded kext at 7058117348300: com.apple.driver.AppleUSBCDC 4.1.15 (addr 0xffffff7f80799000, size 12288)
loaded kexts:
com.trusteer.driver.gakl_driver_2 1
com.kaspersky.kext.kimul.38 38
com.parallels.kext.prl_vnic 6.0 12106.692267
com.parallels.kext.prl_netbridge 6.0 12106.692267
com.parallels.kext.prl_hid_hook 6.0 12106.692267
com.parallels.kext.prl_hypervisor 6.0 12106.692267
com.parallels.kext.prl_usb_connect 6.0 12106.692267
com.kaspersky.kext.klif 2.2.0d14
com.apple.driver.AppleHWSensor 1.9.4d0
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleBluetoothMultitouch 66.3
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AppleHDA 2.1.3f7
com.apple.driver.AGPM 100.12.42
com.apple.driver.AppleMikeyDriver 2.1.3f7
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.kext.ATIFramebuffer 7.1.4
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.1
com.apple.driver.AirPort.Atheros40 501.58.1
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.5d4
com.apple.driver.AppleLPC 1.5.3
com.apple.driver.AppleBacklight 170.1.9
com.apple.ATIRadeonX3000 7.1.4
com.apple.driver.AppleIntelHD3000Graphics 7.1.4
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.driver.AppleIRController 312
com.apple.driver.AppleUSBCardReader 3.0.1
com.apple.iokit.SCSITaskUserClient 3.0.1
com.apple.driver.Oxford_Semi 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.IOAHCIBlockStorage 2.0.1
com.apple.driver.AppleUSBHub 4.5.0
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.iokit.AppleBCM5701Ethernet 3.0.8b2
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleUSBEHCI 4.5.5
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 167.1.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1
com.apple.driver.AppleIntelCPUPowerManagement 167.1.0
com.apple.driver.AppleBluetoothHIDKeyboard 152.3
com.apple.driver.AppleHIDKeyboard 152.3
com.apple.kext.triggers 1.0
com.apple.driver.AppleMultitouchDriver 220.62.1
com.apple.driver.IOBluetoothHIDDriver 4.0.1f4
com.apple.driver.AppleAVBAudio 1.0.0d11
com.apple.driver.DspFuncLib 2.1.3f7
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.iokit.IOBluetoothSerialManager 4.0.1f4
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAVBFamily 1.0.0d22
com.apple.iokit.IOAudioFamily 1.8.3fc11
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleHDAController 2.1.3f7
com.apple.iokit.IOHDAFamily 2.1.3f7
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.iokit.IO80211Family 411.1
com.apple.driver.IOPlatformPluginFamily 4.7.5d4
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.driver.AppleThunderboltEDMSink 1.1.3
com.apple.driver.AppleThunderboltEDMSource 1.1.3
com.apple.kext.ATI6000Controller 7.1.4
com.apple.kext.ATISupport 7.1.4
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.driver.AppleIntelSNBGraphicsFB 7.1.4
com.apple.driver.AppleSMC 3.1.1d8
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.1f4
com.apple.driver.AppleUSBBluetoothHCIController 4.0.1f4
com.apple.iokit.IOBluetoothFamily 4.0.1f4
com.apple.driver.AppleThunderboltDPOutAdapter 1.5.8
com.apple.driver.AppleThunderboltDPInAdapter 1.5.8
com.apple.driver.AppleThunderboltDPAdapterFamily 1.5.8
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.1
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.1
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.iokit.IOAHCISerialATAPI 2.0.1
com.apple.iokit.IOUSBMassStorageClass 3.0.0
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.1
com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.1.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.1
com.apple.iokit.IOFireWireSBP2 4.2.0
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.driver.XsanFilter 403
com.apple.driver.AppleThunderboltNHI 1.3.2
com.apple.iokit.IOThunderboltFamily 1.7.4
com.apple.iokit.IOUSBUserClient 4.5.3
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IOEthernetAVBController 1.0.0d5
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.iokit.IOUSBFamily 4.5.5
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 165.3
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.7
com.apple.iokit.IOACPIFamily 1.4
Unable to gather system configuration information.Model: iMac12,1, BootROM IM121.0047.B1D, 4 processors, Intel Core i5, 2.5 GHz, 4 GB, SMC 1.71f21
Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 512 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.58.4-P2P
Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: WDC WD5000AAKS-402AA0, 500.11 GB
Serial ATA Device: HL-DT-STDVDRW GA32N
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfa100000 / 3
USB Device: iPhone, apple_vendor_id, 0x12a0, 0xfa130000 / 5
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 6
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x850b, 0xfa200000 / 2
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfd100000 / 2
USB Device: 7600 Series, 0x043d (Lexmark International Inc.), 0x0150, 0xfd140000 / 5
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 4
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfd110000 / 3
FireWire Device: eGo HDD, Iomega, 800mbit_speedThis crash reports says...
OS: 10.7.2
Processor: Intel 64-bit
Computer: iMac 10 generation, lowest-end model
Interval Since Last Panic Report: 26855 sec
Panics Since Last Report: 1
Anonymous UUID: 2A90D08F-7981-4C26-90A0-88431085705A
Thu Jan 19 21:02:56 2012
panic(cpu 1 caller 0xffffff8000570f80): "MCHECK: m_type=12350 m=0xffffff807b9b6500"@/SourceCache/xnu/xnu-1699.24.8/bsd/kern/uipc_mbuf.c:3129
Backtrace (CPU 1), Frame : Return Address
0xffffff808045bad0 : 0xffffff8000220702
0xffffff808045bb50 : 0xffffff8000570f80
0xffffff808045bb80 : 0xffffff8000572c77
0xffffff808045bc10 : 0xffffff80005731d6
0xffffff808045bc30 : 0xffffff8000358c25
0xffffff808045bd10 : 0xffffff8000353729
0xffffff808045bd50 : 0xffffff8000580644
0xffffff808045be40 : 0xffffff8000563973
0xffffff808045be70 : 0xffffff80005614bf
0xffffff808045bf00 : 0xffffff8000561612
0xffffff808045bf50 : 0xffffff80005caa9b
0xffffff808045bfb0 : 0xffffff80002d8363
This is a kernel error. Did your screen give you this error? This is well know as the "Black Screen Of Death". Just restart your computer and see what happens.
Source of picture: http://en.wikipedia.org/wiki/File:Panic10.6.png -
It seems that the new version of iPhoto will no longer share photos between computers on the same network. Can anyone confirm this?
lovinmymac wrote:
I have "automatically create previews" in the preferences UNCHECKED. Why is Aperture creating previews? For the screen image?
You might also need to turn Preview generation off for any existing Projects. Select the Project in the Projects pane and use the cog button at the top of the pane to uncheck 'Maintain Previews For Project'.
Ian -
Can anybody help me to build an interface that can work with this code
please help me to build an interface that can work with this code
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileReader;
public class Translate
public static void main(String [] args) throws IOException
if (args.length != 2)
System.err.println("usage: Translate wordmapfile textfile");
System.exit(1);
try
HashMap words = ReadHashMapFromFile(args[0]);
System.out.println(ProcessFile(words, args[1]));
catch (Exception e)
e.printStackTrace();
// static helper methods
* Reads a file into a HashMap. The file should contain lines of the format
* "key\tvalue\n"
* @returns a hashmap of the given file
@SuppressWarnings("unchecked")
private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
BufferedReader in = null;
HashMap map = null;
try
in = new BufferedReader(new FileReader(filename));
String line;
map = new HashMap();
while ((line = in.readLine()) != null)
String[] fields = line.split("
t", 2);
if (fields.length != 2) continue; //just ignore "invalid" lines
map.put(fields[0], fields[1]);
finally
if(in!=null) in.close(); //may throw IOException
return(map); //returning a reference to local variable is safe in java (unlike C/C++)
* Process the given file
* @returns String contains the whole file.
private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException
BufferedReader in = null;
StringBuffer out = null;
try
in = new BufferedReader(new FileReader(filename));
out = new StringBuffer();
String line = null;
while( (line=in.readLine()) != null )
out.append(SearchAndReplaceWordsInText(words, line)+"\n");
finally
if(in!=null) in.close(); //may throw IOException
return out.toString();
* Replaces all occurrences in text of each key in words with it's value.
* @returns String
private static String SearchAndReplaceWordsInText(Map words, String text)
Iterator it = words.keySet().iterator();
while( it.hasNext() )
String key = (String)it.next();
text = text.replaceAll("\\b"key"
b", (String)words.get(key));
return text;
* @returns: s with the first letter capitalized
String capitalize(String s)
return s.substring(0,0).toUpperCase() + s.substring(1);
}... here's the head of my pirate_words_map.txt
hello ahoy
hi yo-ho-ho
pardon me avast
excuse me arrr
yes aye
my me
friend me bucko
sir matey
madam proud beauty
miss comely wench
where whar
is be
are be
am be
the th'
you ye
your yer
tell be tellin'please help me i don t know how to go about this.my teacher ask me to build an interface that work with the code .
Here is the interface i just build
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileReader;
import java.awt.*;
import javax.swing.*;
public class boy extends JFrame
JTextArea englishtxt;
JLabel head,privatetxtwords;
JButton translateengtoprivatewords;
Container c1;
public boy()
super("HAKIMADE");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBackground(Color.white);
setLocationRelativeTo(null);
c1 = getContentPane();
head = new JLabel(" English to private talk Translator");
englishtxt = new JTextArea("Type your text here", 10,50);
translateengtoprivatewords = new JButton("Translate");
privatetxtwords = new JLabel();
JPanel headlabel = new JPanel();
headlabel.setLayout(new FlowLayout(FlowLayout.CENTER));
headlabel.add(head);
JPanel englishtxtpanel = new JPanel();
englishtxtpanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,40));
englishtxtpanel.add(englishtxt);
JPanel panel1 = new JPanel();
panel1.setLayout(new BorderLayout());
panel1.add(headlabel,BorderLayout.NORTH);
panel1.add(englishtxtpanel,BorderLayout.CENTER);
JPanel translateengtoprivatewordspanel = new JPanel();
translateengtoprivatewordspanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,40));
translateengtoprivatewordspanel.add(translateengtoprivatewords);
JPanel panel2 = new JPanel();
panel2.setLayout(new BorderLayout());
panel2.add(translateengtoprivatewordspanel,BorderLayout.NORTH);
panel2.add(privatetxtwords,BorderLayout.CENTER);
JPanel mainpanel = new JPanel();
mainpanel.setLayout(new BorderLayout());
mainpanel.add(panel1,BorderLayout.NORTH);
mainpanel.add(panel2,BorderLayout.CENTER);
c1.add(panel1, BorderLayout.NORTH);
c1.add(panel2);
public static void main(final String args[])
boy mp = new boy();
mp.setVisible(true);
}..............here is the code,please make this interface work with the code
public class Translate
public static void main(String [] args) throws IOException
if (args.length != 2)
System.err.println("usage: Translate wordmapfile textfile");
System.exit(1);
try
HashMap words = ReadHashMapFromFile(args[0]);
System.out.println(ProcessFile(words, args[1]));
catch (Exception e)
e.printStackTrace();
// static helper methods
* Reads a file into a HashMap. The file should contain lines of the format
* "key\tvalue\n"
* @returns a hashmap of the given file
@SuppressWarnings("unchecked")
private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
BufferedReader in = null;
HashMap map = null;
try
in = new BufferedReader(new FileReader(filename));
String line;
map = new HashMap();
while ((line = in.readLine()) != null)
String[] fields = line.split("
t", 2);
if (fields.length != 2) continue; //just ignore "invalid" lines
map.put(fields[0], fields[1]);
finally
if(in!=null) in.close(); //may throw IOException
return(map); //returning a reference to local variable is safe in java (unlike C/C++)
* Process the given file
* @returns String contains the whole file.
private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException
BufferedReader in = null;
StringBuffer out = null;
try
in = new BufferedReader(new FileReader(filename));
out = new StringBuffer();
String line = null;
while( (line=in.readLine()) != null )
out.append(SearchAndReplaceWordsInText(words, line)+"\n");
finally
if(in!=null) in.close(); //may throw IOException
return out.toString();
* Replaces all occurrences in text of each key in words with it's value.
* @returns String
private static String SearchAndReplaceWordsInText(Map words, String text)
Iterator it = words.keySet().iterator();
while( it.hasNext() )
String key = (String)it.next();
text = text.replaceAll("\\b"key"
b", (String)words.get(key));
return text;
* @returns: s with the first letter capitalized
String capitalize(String s)
return s.substring(0,0).toUpperCase() + s.substring(1);
}... here's the head of my pirate_words_map.txt
hello ahoy
hi yo-ho-ho
pardon me avast
excuse me arrr
yes aye
my me
friend me bucko
sir matey
madam proud beauty
miss comely wench
where whar
is be
are be
am be
the th'
you ye
your yer
tell be tellin' -
Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?
<Edited by Host>Look at your receipt. Does it say unlocked? It is possible to purchase both locked "sim free" and unlocked iPhones from Apple.
ONLY the carrier an iPhone is locked to can legitimately unlock it.
IF your receipt says that it was supposed to be unlocked, and it is not, call AppleCare. They should be able to straighten it out. -
The trashcan is not showing up in the right hand corner of my photos on my iPad. So I can't delete pictures. Can anyone solve this problem?
Where did the photos come from ? Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad - photos that were synced from your computer are deleted by moving/removing/de-selecting them from where they were synced from on your computer and then re-syncing.
Maybe you are looking for
-
Succesful instalation of 8.1.6
This is my love story .;) I trying to install this version last 5 days. And here is results: RH7.0 - dbassist start to create database, and stops on 0% RH6.0 - On the same place freeze machine RH6.1 - Going to 54%, creating JServer and stops with mes
-
Open LDAP Authenticator Configuration on WLSSP5
I have problems in the open LDAP authenticator configuration on Weblogic Server with Service Pack 5. I have users on OpenLDAP Server that do not belong to any group. My LDIF file contents are as given below. dn: dc=my-domain,dc=com dc: my-domain obje
-
How do I pick the correct example to follow?
I am monitoring 6 channels current output, using this information to ramp at 2 amps per/10 min's for 85% then to 100% for the remaining time. Sit for 20 min's then freefall to 0 amps.30 amps max. I found an "update channel VI for the first ramp, but
-
Direct Rest Call To Google Api
Hi, I am trying to get Calendar list from my Google account using WebClient class. It is throwing 401 unauthorized error. My login credentials are correct but can't figure out what is wrong in my code. Here the code I am using to access Google Calen
-
Require Code which export SQL Query resuluts to excel using checkbox option
Hi All, I need a sample code which can export the SQL Query results directly to an excel file using checkbox option. for example if I select checkbox1 and press a save button, then on backend SQL Query will execute and save the results in a excel fil