Checkboxes display as "?" ???
I've seen a number of postings with people having issues with checkboxes - some displaying the checkboxes as diamonds, and a couple with the checkboxes displaying as question marks. Unfortunately, I didn't see a solution for the checkboxes displaying as question marks. Did anyone have this issue and was able to fix it? I've tried embedding the Windging font in my RTF, and it didn't work. Please share!
Thanks!
KH
I've created the xdo file according to every example I can find, and the log shows that it IS finding the file. However, I keep ending up with the following error message in the log: [EXCEPTION] oracle.xml.parser.v2.XMLParseException: Start of root element expected.
I'll paste the code in my xdo.cfg file below, but I'm wondering if that error is keeping it from actually reading anything in the file. There's certainly no evidence anywhere else in the log that it's using the fonts within the file... I've searched Metalink already for this error, but didn't come up with anything helpful. Can someone tell me what I've overlooked here? I've tried the file with, and without the first <?xml?> tag - no change...
~KH
*text from xdo.cfg*
<?xml version = '1.0'?>
<config version="1.0.0"
xmlns="http://xmlns.oracle.com/oxp/config/">
<!-- Properties -->
<properties>
<!-- System level properties -->
<property name="system-temp-dir">/Temp</property>
</properties>
<!-- Font settings -->
<fonts>
<font family="Wingding" style="normal" weight="normal">
<truetype path="/fonts/wingding.ttf" />
</font>
<font family="Arial" style="normal" weight="normal">
<truetype path="/fonts/arial.ttf"/>
</font>
</fonts>
</config>
Similar Messages
-
Need help with a form where checkbox displays another field
I created a from in january that works perfectly. I have different departments as checkboxes and if the box is checked, it displays another subform with a comments, approval, and signature field. However, we just added two new departments. I copied one of the checkboxes and subsequent fields twice. I then changed the script for the approriate field and checked to make sure there were no other functions I was missing. However, now when I open the form, the two new fields show by default. If I check the box and uncheck, the associated subform disappears. I think there may be some simple thing i am overlooking.
I'm not getting any errors at all. The form isn't online as of yet so I dont have a link. I will attach a screen shot and maybe you can tell me where I went wrong.
-
Hi good souls,
I have 8 check boxes and when i want to insert the record in my table and check any of checkboxes the required field gets updated. but the problem is coming when i want to display the values.
the check boxes are not marked when i display the result. please help me by code and by your ideas on how to display the check mark when i press display.
data: mac1 type c,
mac2 type c,
mac3 type c,
mac4 type c,
mac5 type c,
mac6 type c,
mac7 type c.
WHEN 'INSERT'.
if mac1 = 'X'.
zaa_st-mc1 = 'CORRUGATOR'.
endif.
if mac2 = 'X'.
zaa_st-mc2 = 'INLINE'.
endif.
if mac3 = 'X'.
zaa_st-mc3 = 'LANGSTON'.
endif.
if mac4 = 'X'.
zaa_st-mc4 = 'DRO'.
endif.
if mac5 = 'X'.
zaa_st-mc5 = 'BOBST'.
endif.
if mac6 = 'X'.
zaa_st-mc6 = 'EMBA PRINTER'.
endif.
if mac7 = 'X'.
zaa_st-mc7 = 'EMBA GLUER'.
endif.
INSERT ZAA_ST.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORD INSERTED'.
ELSE.
MESSAGE E001(0) WITH 'RECORD NOT INSERTED'.
ENDIF.Hi friend,
How is your zaa_st table? Is it contains any field for check box (i.e: check_box). If yes, transfer 'X' to check_box field.
ex:
data: mac1 type c,
mac2 type c,
mac3 type c,
mac4 type c,
mac5 type c,
mac6 type c,
mac7 type c.
WHEN 'INSERT'.
if mac1 = 'X'.
zaa_st-mc1 = 'CORRUGATOR'.
endif.
if mac2 = 'X'.
zaa_st-mc2 = 'INLINE'.
endif.
if mac3 = 'X'.
zaa_st-mc3 = 'LANGSTON'.
endif.
if mac4 = 'X'.
zaa_st-mc4 = 'DRO'.
endif.
if mac5 = 'X'.
zaa_st-mc5 = 'BOBST'.
endif.
if mac6 = 'X'.
zaa_st-mc6 = 'EMBA PRINTER'.
endif.
if mac7 = 'X'.
zaa_st-mc7 = 'EMBA GLUER'.
endif.
* check box
zaa_st-check_box = 'X'.
INSERT ZAA_ST.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORD INSERTED'.
ELSE.
MESSAGE E001(0) WITH 'RECORD NOT INSERTED'.
ENDIF.
please check and reply
regards, -
hi all, i have a few problems here.
Firstly, i need to display records in an ALV from an internal table.
Secondly, i need to include checkboxes beside each and every records for the user to choose which records he wants to see.
Thirdly, after the user has checked the fieldss that he wants, i need to display the details of all the records based on the ticked checkboxes in another screen.
please help me if anyone knows.
thx!Hi Meei,
Thats very simple ....
1 . In the internal table where you are displaying declare some thing like below.
Data : begin of i_department occurs 0,
vbeln like ztmsh-vbeln, "Sales and Distribution Docu No
deprt like ztmsh-deprt, "Department
meala like ztmsd-meala, "Meal Allowance
sitea like ztmsd-sitea, "Site Allowance($)
CHECKBOX(1) TYPE C,declare some thing here for creating check box
end of i_department.
2. Build a field catlog for the check box something like below..
i_temp-fieldname = 'CHECKBOX'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-col_pos = 1.
i_temp-CHECKBOX = 'X'.
i_temp-outputlen = 4.
i_temp-seltext_l = 'Flag'.
i_temp-input = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
3. Now u can see the checkbox in the output once you select it will automatically flag in your internal table.and using the USer-command u can play around.
I have pasted a entire coding here pls check the flow.
REPORT Z_TIME_SHEET_REPT.
TABLES
Tables : ztmsh, "Time Sheet Header
ztmsd, "Time Sheet Data
zempy. "Employee
Data Definations
Internal Table for Employee input data
Data : begin of i_employee occurs 0,
vbeln like ztmsh-vbeln, "Sales and Distribution Document Number
deprt like ztmsh-deprt, "Department
tmsdt like ztmsh-tmsdt, "Date
jbcpl like ztmsh-jbcpl, "Job Complete
empid like zempy-empid, "Employee ID
empnam(50) type c , "Employee Name
nmltm like ztmsd-nmltm, "Normal Time
ovrtm like ztmsd-ovrtm, "Over Time
meala like ztmsd-meala, "Meal Allowance
sitea like ztmsd-sitea, "Site Allowance($)
end of i_employee.
Internal Table For Department Input Data
Data : begin of i_department occurs 0,
vbeln like ztmsh-vbeln, "Sales and Distribution Document Number
deprt like ztmsh-deprt, "Department
tmsdt like ztmsh-tmsdt, "Date
jbcpl like ztmsh-jbcpl, "Job Complete
nmltm like ztmsd-nmltm, "Normal Time
ovrtm like ztmsd-ovrtm, "Over Time
hlftm like ztmsd-hlftm, "1.5 Time
dbltm like ztmsd-dbltm, "Double Time
meala like ztmsd-meala, "Meal Allowance
sitea like ztmsd-sitea, "Site Allowance($)
CHECKBOX(1) TYPE C,
end of i_department.
Temp Internal tablee for holding department values
Data : begin of i_t_dept occurs 0,
vbeln like ztmsh-vbeln, "Sales and Distribution Document Number
deprt like ztmsh-deprt, "Department
tmsdt like ztmsh-tmsdt, "Date
jbcpl like ztmsh-jbcpl, "Job Complete
nmltm like ztmsd-nmltm, "Normal Time
ovrtm like ztmsd-ovrtm, "Over Time
end of i_t_dept.
internal table for detailed data
data : begin of i_detail occurs 0 ,
vbeln like ztmsh-vbeln, "Sales and Distribution Document Number
deprt like ztmsh-deprt, "Department
tmsdt like ztmsh-tmsdt, "Date
jbcpl like ztmsh-jbcpl, "Job Complete
nmltm like ztmsd-nmltm, "Normal Time
ovrtm like ztmsd-ovrtm, "Over Time
cadsv like ztmsh-cadsv, "CAD Services
stsvy like ztmsh-stsvy, "SiteSurvey
cstdw like ztmsh-cstdw, "Construction Drawing
sppln like ztmsh-sppln, "Space Planning
dsndw like ztmsh-dsndw, "Design Drawings
drw3d like ztmsh-drw3d, "3D Drawings
dwplt like ztmsh-dwplt, "Drawing Plots
otamt like ztmsh-otamt, "Others
inact like ztmsh-inact, "In store Activity type
ictnq like ztmsh-ictnq, "In store Activity Quantity
inctn like ztmsh-inctn, "In store Activity Loading
mitim like ztmsh-mitim, "Movement Volume in Type
mivlm like ztmsh-mivlm, "Movement Volume in Loading
motim like ztmsh-motim, "Movement Volume Out Type
movlm like ztmsh-movlm, "Movement Volume Out Loading
outtm like ztmsh-outtm, "Out of Store Activity Type
outact like ztmsh-outact, "Out of Store Activity Loading
frklft like ztmsh-frklft, "Forklift
strpt like ztmsh-strpt, "Storage Protection
rbbsh like ztmsh-rbbsh, "Rubbish
crtes like ztmsh-crtes, "Crates
vhlhr like ztmsh-vhlhr, "Vechile
toll like ztmsh-toll, "Toll
park like ztmsh-park, "Parking
hrdwr like ztmsh-hrdwr, "Hardware
trlly like ztmsh-trlly, "# of Trollys
dolly like ztmsh-dolly, "# of Dollies
oepno like ztmsh-oepno, "# of Other Equipment
oteqp like ztmsh-oteqp, "Other Eqipment
end of i_detail.
ALV Field Catlog declaration
TYPE-POOLS : slis.
data : i_depart TYPE slis_t_fieldcat_alv,
i_emp TYPE slis_t_fieldcat_alv,
i_design TYPE slis_t_fieldcat_alv,
i_warehouse TYPE slis_t_fieldcat_alv,
i_transport TYPE slis_t_fieldcat_alv,
i_install TYPE slis_t_fieldcat_alv,
i_temp TYPE slis_fieldcat_alv,
l_layout TYPE slis_layout_alv.
Events
DATA: v_events TYPE slis_t_event,
wa_event TYPE slis_alv_event.
Tempary Variables
data: wa_nmltm type p decimals 2,
wa_ovrtm type p decimals 2,
wa_meala type p decimals 2,
wa_sitea type p decimals 2,
wa_HLFTM type p decimals 2,
wa_DBLTM type p decimals 2,
w_nmltm(5) type c,
w_ovrtm(5) type c,
w_meala(5) type c,
w_sitea(5) type c,
wa_first(25) type c,
wa_last(25) type c.
data : repid type sy-repid.
Selection Screen
*Select options
selection-screen begin of block blk1.
select-options : s_vbeln for ztmsh-vbeln,
s_tmsdt for ztmsh-tmsdt.
selection-screen end of block blk1.
Radio Buttons
selection-screen begin of block blk2 WITH FRAME TITLE TLT1.
Parameters: dept radiobutton GROUP SX,
emp radiobutton GROUP SX.
selection-screen end of block blk2.
Intialization
INITIALIZATION.
TLT1 = 'Time Sheet Summary Report'.
repid = sy-repid.
s_tmsdt-low = sy-datum.
s_tmsdt-high = sy-datum.
append s_tmsdt.
START-OF-SELECTION.
START-OF-SELECTION.
if dept = 'X'.
perform 100_time_sheet.
perform 200_build_field_catlog.
perform 400_ALV_Display.
elseif emp = 'X'.
perform 100_time_sheet.
perform 500_build_field_catlog.
Perform 600_ALV_display.
endif.
*& Form 100_time_sheet
text
FORM 100_time_sheet.
select * from ztmsh
where vbeln in s_vbeln
and tmsdt in s_tmsdt.
if ztmsh-vbeln ne space.
perform empl_calcuation .
if emp = 'X'.
clear i_employee.
elseif dept = 'X'.
clear i_department.
endif.
ENDIF.
endselect.
ENDFORM. " 100_time_sheet
*& Form 200_build_field_catlog
Department Wise Summary Report
FORM 200_build_field_catlog .
refresh i_depart.
i_temp-fieldname = 'CHECKBOX'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-col_pos = 1.
i_temp-fix_column = 'X'.
i_temp-CHECKBOX = 'X'.
i_temp-outputlen = 4.
i_temp-seltext_l = 'Flag'.
i_temp-input = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'VBELN'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'VBELN'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Work Order No'.
i_temp-col_pos = 2.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'DEPRT'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'DEPRT'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Department'.
i_temp-col_pos = 3.
i_temp-outputlen = 15.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'TMSDT'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'TMSDT'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Time Sheet Date'.
i_temp-col_pos = 4.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'JBCPL'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'JBCPL'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Time Sheet Status'.
i_temp-col_pos = 5.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'NMLTM'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'NMLTM'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Total NH'.
i_temp-col_pos = 6.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'OVRTM'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'OVRTM'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Total AH'.
i_temp-col_pos = 7.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'HLFTM'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'HLFTM'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Total 1.5 Time'.
i_temp-col_pos = 8.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'DBLTM'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'DBLTM'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Total 2.0 Time'.
i_temp-col_pos = 9.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'MEALA'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'MEALA'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Tot Meal Allowence'.
i_temp-col_pos = 10.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
i_temp-ref_fieldname = 'SITEA'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'SITEA'.
i_temp-tabname = 'I_DEPARTMENT'.
i_temp-seltext_l = 'Tot Site Allowence($)'.
i_temp-col_pos = 11.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_DEPART.
CLEAR i_temp.
ENDFORM. " 200_build_field_catlog
*& Form 300_populate_events
Top Of Page Events for Warehouse Report
FORM 300_populate_events .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = v_events.
READ TABLE v_events
INTO wa_event
WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
wa_event-form = 'TOP_OF_PAGE'.
MODIFY v_events
FROM wa_event TRANSPORTING form
WHERE name = wa_event-form.
endif.
ENDFORM. " 300_populate_events
*& Form 400_ALV_Display
Department ALV Display
FORM 400_ALV_Display .
sort i_department by vbeln deprt tmsdt.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = repid
I_CALLBACK_PF_STATUS_SET = 'PO_STATUS '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_STRUCTURE_NAME = 'i_department'
IS_LAYOUT = l_layout
IT_FIELDCAT = i_depart
IT_EVENTS = v_events
TABLES
T_OUTTAB = i_department
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. " 400_ALV_Display
*& Form 500_build_field_catlog
Employee wise Summary Report
FORM 500_build_field_catlog .
refresh i_depart.
i_temp-ref_fieldname = 'VBELN'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'VBELN'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Work Order No'.
i_temp-col_pos = 1.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'DEPRT'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'DEPRT'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Department'.
i_temp-col_pos = 2.
i_temp-outputlen = 15.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'TMSDT'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'TMSDT'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Time Sheet Date'.
i_temp-col_pos = 3.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'JBCPL'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'JBCPL'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Time Sheet Status'.
i_temp-col_pos = 4.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'EMPID'.
i_temp-ref_tabname = 'ZEMPY'.
i_temp-fieldname = 'EMPID'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Employee ID'.
i_temp-col_pos = 5.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'JBCPL'.
i_temp-ref_tabname = 'ZTMSH'.
i_temp-fieldname = 'EMPNAM'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Employee Name'.
i_temp-col_pos = 6.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'NMLTM'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'NMLTM'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Total NH'.
i_temp-col_pos = 7.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'OVRTM'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'OVRTM'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Total AH'.
i_temp-col_pos = 8.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'MEALA'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'MEALA'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Tot Meal Allowence'.
i_temp-col_pos = 9.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
i_temp-ref_fieldname = 'SITEA'.
i_temp-ref_tabname = 'ZTMSD'.
i_temp-fieldname = 'SITEA'.
i_temp-tabname = 'I_EMPLOYEE'.
i_temp-seltext_l = 'Tot Site Allowence($)'.
i_temp-col_pos = 10.
i_temp-fix_column = 'X'.
APPEND i_temp TO i_emp.
CLEAR i_temp.
ENDFORM. " 500_build_field_catlog
*& Form 600_ALV_display
Employee Wise ALV Display
FORM 600_ALV_display .
sort i_employee by vbeln deprt tmsdt.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = repid
I_CALLBACK_PF_STATUS_SET = 'PO_STATUS '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_STRUCTURE_NAME = 'i_employee'
IS_LAYOUT = l_layout
IT_FIELDCAT = i_emp
IT_EVENTS = v_events
TABLES
T_OUTTAB = i_employee
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. " 600_ALV_display
*& Form Po-Status.
FORM po_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZBUTTON' EXCLUDING rt_extab.
ENDFORM. "po_status
*& Form User_command.
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
data : valid type i,
cnt like ztmsh-deprt.
clear i_department.
loop at i_department where CHECKBOX = 'X'.
on change of i_department-deprt.
if cnt ne space.
if valid ne 0.
message 'Please select same department' type 'I'.
valid = 2.
exit.
cnt = i_department-deprt.
endif.
endon.
valid = 1.
endloop.
if valid = 1.
case ucomm.
when 'DESIGN' .
perform transfer_table.
perform design_report.
perform des_build_field_catlog.
Perform design_ALV_display.
when 'WAREHOUSE'.
perform transfer_table.
perform design_report.
perform war_build_field_catlog.
perform 300_populate_events.
perform warehouse_ALV_display.
when 'TRANSPORT'.
perform transfer_table.
perform design_report.
perform tran_build_field_catlog.
perform top_of_page.
perform Transport_ALV_display.
when 'INSTALLAT'.
perform transfer_table.
perform design_report.
perform inst_build_field_catlog.
perform Install_ALV_display.
endcase.
elseif valid = 0.
message 'Please select a department' type 'I' .
endif.
endform. "user_command
*& Form empl_calcuation
Employee total hours calculation
FORM empl_calcuation .
data : w_hours(3) type C,
w_min(3) type c,
w_hours1(3) type c,
w_min1(3) type c,
w_hours2(3) type c,
w_min2(3) type c,
w_hours3(3) type c,
w_min3(3) type c,
w_hours4(3) type c,
w_min4(3) type c,
t_nmltm(5) type c,
t_ovrtm(5) type c,
t_meala(5) type c,
t_sitea(5) type c,
t_HLFTM(5) type c,
t_DBLTM(5) type c,
temp type i.
clear :wa_nmltm,
wa_ovrtm,
wa_meala,
wa_sitea,
wa_HLFTM,
wa_DBLTM.
To convert into Minutes
select * from ztmsd
where vbeln = ztmsh-vbeln
and tmsdt = ztmsh-tmsdt
and deprt = ztmsh-deprt.
*uncommenting the below code between the select and endselect will work
*for normal time scenario (eg: 2.55+3.55 =6.50) *
Normal Time
t_nmltm = ztmsd-nmltm.
SPLIT t_nmltm at '.' into w_hours w_min.
temp = w_hours.
w_hours = temp.
w_hours = w_hours * 60.
wa_nmltm = wa_nmltm + t_nmltm.
Over Time
t_ovrtm = ztmsd-ovrtm.
SPLIT t_ovrtm at '.' into w_hours1 w_min1.
temp = w_hours1.
w_hours1 = temp.
w_hours1 = w_hours1 * 60.
wa_ovrtm = wa_ovrtm + t_ovrtm.
Meal Allowence
t_meala = ztmsd-meala.
SPLIT t_meala at '.' into w_hours2 w_min2.
temp = w_hours2.
w_hours2 = temp.
w_hours2 = w_hours2 * 60.
wa_meala = wa_meala + t_meala .
Site Allowence
t_sitea = ztmsd-sitea.
wa_sitea = wa_sitea + t_sitea.
if dept = 'X'.
1.5 Time
t_HLFTM = ztmsd-HLFTM.
SPLIT t_HLFTM at '.' into w_hours3 w_min3.
temp = w_hours3.
w_hours3 = temp.
w_hours3 = w_hours3 * 60.
wa_HLFTM = wa_HLFTM + t_hlftm.
Double Time
t_DBLTM = ztmsd-DBLTM.
SPLIT t_DBLTM at '.' into w_hours4 w_min4.
temp = w_hours4.
w_hours4 = temp.
w_hours4 = w_hours4 * 60.
wa_DBLTM = wa_DBLTM + t_dbltm.
endif.
endselect.
if sy-subrc = 0.
uncommenting the below will work for normal time scenario
(eg: 2.55+3.55 =6.50)
and change in the appending coloum wa_ to t_
to convert into Hours
perform min_to_hrs_nmltm using wa_nmltm changing t_nmltm.
perform min_to_hrs_ovrtm using wa_ovrtm changing t_ovrtm.
perform min_to_hrs_meala using wa_meala changing t_meala.
perform min_to_hrs_sitea using wa_sitea changing t_sitea.
if emp = 'X'. "Report By Employee
Employee Id
select single empid deprt into ztmsd
from ztmsd
where vbeln = ztmsh-vbeln.
if sy-subrc = 0.
Employee Name
select single empye_f empye_l
into (wa_first,wa_last )
from zempy
where empid = ztmsd-empid.
if sy-subrc = 0 .
concatenate wa_first
wa_last
into i_employee-empnam.
Appending To internal Table
i_employee-empid = ztmsd-empid.
i_employee-deprt = ztmsh-deprt.
i_employee-nmltm = wa_nmltm.
i_employee-ovrtm = wa_ovrtm.
i_employee-meala = wa_meala.
i_employee-sitea = wa_sitea.
i_employee-vbeln = ztmsh-vbeln.
i_employee-tmsdt = ztmsh-tmsdt.
i_employee-jbcpl = ztmsh-jbcpl.
APPEND i_employee.
endif.
endif.
elseif dept = 'X'. "Report By Department
uncommenting the below will work for normal time scenario
(eg: 2.55+3.55 =6.50)
and change in the appending coloum wa_ to t_
perform min_to_hrs_HLFTM using wa_HLFTM changing t_HLFTM.
perform min_to_hrs_DBLTM using wa_DBLTM changing t_DBLTM.
Appending To internal Table
i_department-deprt = ztmsh-deprt.
i_department-nmltm = wa_nmltm.
i_department-ovrtm = wa_ovrtm.
i_department-meala = wa_meala.
i_department-sitea = wa_sitea.
i_department-vbeln = ztmsh-vbeln.
i_department-tmsdt = ztmsh-tmsdt.
i_department-jbcpl = ztmsh-jbcpl.
i_department-hlftm = t_hlftm.
i_department-dbltm = t_dbltm.
APPEND i_department.
endif.
endif.
ENDFORM. " empl_calcuation
*& Form min_to_hrs_nmltm
text
-->P_WA_NMLTM text
FORM min_to_hrs_nmltm USING P_WA_NMLTM
CHANGING P_T_nmltm.
data : hours(2) type c,
minutes_n(2) type c,
nmltm(10) type c.
if p_wa_nmltm >= 60.
hours = P_WA_NMLTM / 60.
endif.
minutes_n = P_WA_NMLTM MOD 60.
concatenate hours
minutes_n
into P_T_nmltm.
ENDFORM. " min_to_hrs_nmltm
*& Form min_to_hrs_ovrtm
text
FORM min_to_hrs_ovrtm USING P_WA_OVRTM
CHANGING P_T_OVRTM.
data : hours(2) type c,
minutes_n(2) type c.
if p_wa_ovrtm >= 60.
hours = P_WA_OVRTM / 60.
endif.
minutes_n = P_WA_OVRTM MOD 60.
concatenate hours
minutes_n
into P_T_OVRTM.
ENDFORM. " min_to_hrs_ovrtm
*& Form min_to_hrs_meala
FORM min_to_hrs_meala USING P_WA_meala
CHANGING P_T_MEALA.
data : hours(2) type c,
minutes_n(2) type c.
if p_wa_meala >= 60.
hours = P_WA_meala / 60.
endif.
minutes_n = P_WA_meala MOD 60.
concatenate hours
minutes_n
into P_T_meala.
ENDFORM. " min_to_hrs_meala
*& Form min_to_hrs_sitea
FORM min_to_hrs_sitea USING P_WA_sitea
CHANGING P_T_SITEA.
data : hours(2) type c,
minutes_n(2) type c.
if p_wa_sitea >= 60.
hours = P_WA_sitea / 60.
endif.
minutes_n = P_WA_sitea MOD 60.
concatenate hours
minutes_n
into P_T_sitea.
ENDFORM. " min_to_hrs_sitea
*& Form min_to_hrs_HLFTM
FORM min_to_hrs_HLFTM USING P_WA_HLFTM
CHANGING P_T_HLFTM.
data : hours(2) type c,
minutes_n(2) type c.
if p_wa_hlftm >= 60.
hours = P_WA_HLFTM / 60.
endif.
minutes_n = P_WA_HLFTM MOD 60.
concatenate hours
minutes_n
into P_T_HLFTM.
ENDFORM. " min_to_hrs_HLFTM
*& Form min_to_hrs_DBLTM
FORM min_to_hrs_DBLTM USING P_WA_DBLTM
CHANGING P_T_DBLTM.
data : hours(2) type c,
minutes_n(2) type c.
if p_wa_dbltm >= 60.
hours = P_WA_DBLTM / 60.
endif.
minutes_n = P_WA_DBLTM MOD 60.
concatenate hours
minutes_n
into P_T_DBLTM.
ENDFORM. " min_to_hrs_DBLTM
*& Form design_report
FORM design_report .
select * into corresponding fields of table i_detail
from ztmsh for all entries in i_t_dept
where vbeln = i_t_dept-vbeln
and deprt = i_t_dept-deprt
and tmsdt = i_t_dept-tmsdt .
loop at i_detail.
read table i_t_dept with key vbeln = i_detail-vbeln
deprt = i_detail-deprt
tmsdt = i_detail-tmsdt .
if sy-subrc = 0.
i_detail-nmltm = i_t_dept-nmltm.
i_detail-ovrtm = i_t_dept-ovrtm.
modify i_detail.
endif.
endloop.
ENDFORM. " design_report
*& Form transfer_table
Doin some operation using the checkbox
FORM transfer_table .
clear i_t_dept[].
loop at i_department where checkbox = 'X'.
move-corresponding : i_department to i_t_dept.
append i_t_dept.
endloop.
ENDFORM. " transfer_table
Regards,
karthik.
Edited by: karthikeyan sukumar on Jan 3, 2008 9:46 AM -
Checkbox display when printing
Hello All,
I have created a web page that contains several checkboxes (input type="checkbox") that is to be filled out by a user and then printed. When printing from Safari, however, the checkboxes do not display. Does anyone have any idea as to what may be causing this? Do I have to change any print settings?WebDevDan, did you get an answer to your question? Your problem with checkboxes may be the same problem as my problem with radio buttons (See my separate post). I've tried other pages besides the one I developed, and the problem is the same.
-
Help for checkbox display as marked
HI ALL,
I am facing some problem displaying the check box as marked or flagged when displaying the record.
my requirement is that when i display a record it should also display the check box as marked. how do i do that. help me with the code.
i have 8 checkboxes and when each checkbox is marked, the respective field is filled with a record. and when i display ( using push button) the selected record , it should show me the check box as marked if the field is not empty. how do i do it?LOOP AT T_SFLIGHT INTO sflight.
WRITE:
/ SFLIGHT-FLDATE,
SFLIGHT-SEATSMAX,
SFLIGHT-SEATSOCC.
MODIFY CURRENT LINE FIELD FORMAT BOX INPUT on.
BOX = 'X'.
MODIFY CURRENT LINE FIELD VALUE BOX.
ENDLOOP.
ULINE.
Try the highlighted lines.It will helps u.I -
Webdynpro ALV checkbox displays 'X'
Hello Webdynpro Champions,
I have an issue with displaying ALV output in Webdynpro.
I have a checkbox as my first column.
This checkbox is bound to a context node.
When I check this checkbox, in the ALV output I get 'X' displayed in the output. I think this is unwanted in my case and hence will like to curb it and not display that X next to my checkbox in the ALV output.
Any ideas how to disable that X from gettting displayed in the ALV output?Hello,
This one can you can solve by removing this (or smilar) method call from the place where you setup your ALV layout:
lrc_checkbox->set_text_fieldname( 'CBXCOLNAME' ).
As you probably have this call in your coding (copy&paste from different cell editor example? ), you will see column's text (autoo-mapped to content) next to your checkbox.
Best regards,
Marcin -
Does anyone know of a method to control how items are displayed for a Checkbox so that items could be broken into columns?<BR>
In other words, instead of:<BR><BR>
<B>Select Options:</B><BR><BR>
Option 1<BR>
Option 2<BR>
Option 3<BR>
Option 4<BR>
etc.<BR><BR>
I'd like to do:<BR><BR>
<B>Select Options:</B><BR><BR>
Option 1 Option 3<BR>
Option 2 Option 4<BR>
<BR>
Usually displaying them all vertically is fine but, if you have a large number of options it would would provide a better interface to display the options in columns.<BR><BR>
Thanks,<BR><BR>
-JoeThanks, Vikas, U R awesome. That's EXACTLY what I'm looking for.
However, I couldn't see the actual code that you used to achieve that.
I just see the running app but no edit link. Can you give me a little more info about the method?
-Joe -
Dynamic Checkbox Display, Insert, Update
I have a form in which there are 70 checkboxes with different
selections in it, currenlty each check box value is submitted to a
different field in a database table. What I dould like is to
retrieve those selections from a database table instead of hard
coding it, and submit it to a table (I am not sure whether it can
be stored on a same database field or not). Users will also be able
to view their selection after initial submission.
Any suggestions or sample code is appreciated.
Thanks;
Best Wishes For AllIn general, you want to do something like the code
below. -
Checkboxes displayed as diamonds when running reports in APEX
I read and implemented the steps offered in other postings on this subject and the checkboxes appear fine when I run the report locally on my PC. However, when I run the report in APEX (not through web service), the checkboxes are still not showing up. This is after uploaded the Wingdings font to the BI Publisher server; did the font mapping and defined the Property for RTP Template/ Characters used for checkbox to: Wingdings;254;111.
Does anyone have the solution to this?
These are the versions we're using:
Application Express 4.0.2.00.07
Oracle BI Publisher 11.1.1.5.0
Thank you.Hi,
Give it a try by using the close and dispose method for report object and also use the GC.collect.
Hope it helps!!
Amit -
Dynamic checkbox - displaying from mysql database and inserting after selection
I have a many to many relationship between Students and Modules and I created another table called StudentModules which will hold StudentID and ModuleID. Since it is a many to many, one students can study many modules..
I am trying to create a page where the user will select the modules he or she will be taking from a web page with checkboxes (The Modules will be coming from the Modules table). The selection will then be inserted into StudentModules. Can anyone guide me to a tutorial which can help me? I can pick up the StudentID either from session or url variable but having problems with checkboxes. I am using php mysql and Dreamweaver.Hi Bregent,
Thanks for your suggestions. This is what I have for the moment.
http://p4uluv.brinkster.net/cfsl/moduleselection.php
and the piece of coding for my checkbox are:
<?php do { ?>
<input name="checks" type="checkbox" id="checks" value="<?php echo $row_rsModules['ModulesID']; ?>" <?php if (!(strcmp($row_rsModules['ModulesID'],"True"))) {echo "checked=\"checked\"";} ?>>
<label for="checks"><?php echo $row_rsModules['ModulesName']; ?></label>
<?php } while ($row_rsModules = mysql_fetch_assoc($rsModules)); ?>
I am hoping once it is checked, it will pick up the ModulesID. I am now in the process of creating another page that will pick up the moduleID.. -
An issue with multiple checkboxes displaying correctly.
My company is converting our website to seam. We obviously have a number of existing pages we must convert and at least try to mimic the previous code. The page I'm currently working on is a catalog request form(see: http://www.perma-bound.com/CatalogRequestForm). I'm totally new to jsf's to an extent. I've done some coding in it while we shift to this but I'm far from an expert. I've been able to get the bean and all the code that interacts with the database to work correctly. My issue is that it's seemingly impossible to style selectManyCheckbox's in a manner similar to that page. When we were using standard html, it wasn't an issue because you could put <input>'s wherever you wanted. In the case of selectManyCheckbox's, they insert a table into the code which seemingly isn't alterable. Here's the snippet in question
<h:form>
<h:selectManyCheckbox layout="pageDirection" value="#{ catalogRequestAction.catalogs }">
<f:selectItem itemLabel="Perma-Picks - Grades PreK-12" itemValue="#{ catalogs[ 455164 ] }"/>
<f:selectItem itemLabel="Graphic Novels - Grades 2-12" itemValue="#{ catalogs[ 455013 ] }"/>
<f:selectItem itemLabel="Social Studies - Grades PreK-12" itemValue="#{ catalogs[ 455159 ] }"/>
<f:selectItem itemLabel="References - Grades PreK-12" itemValue="#{ catalogs[ 455669 ] }"/>
<f:selectItem itemLabel="High/Low - Grades 2-12" itemValue="#{ catalogs[ 455884 ] }"/>
<f:selectItem itemLabel="Science & Math" itemValue="#{ catalogs[ 455160 ] }"/>
<f:selectItem itemLabel="Fiction - Grades PreK-12" itemValue="#{ catalogs[ 455056 ] }"/>
<f:selectItem itemLabel="Curriculum - Grades PreK-6" itemValue="#{ catalogs[ 455491 ] }"/>
<f:selectItem itemLabel="English Curriculum - Grades 6-12" itemValue="#{ catalogs[ 455201 ] }"/>
<f:selectItem itemLabel="Spanish - Grades 7-12" itemValue="#{ catalogs[ 455266 ] }"/>
<f:selectItem itemLabel="College Prep - Grades 7-12" itemValue="#{ catalogs[ 455018 ] }"/>
<s:convertEntity/>
</h:selectManyCheckbox>
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
<h:commandButton styleClass="ui-state-default ui-corner-all ui-priority-primary" value="Submit" action="#{ catalogRequestAction.requestCatalogs }"/>
<h:commandButton styleClass="ui-state-default ui-corner-all ui-priority-secondary" value="Reset" action="reset"/>
</div>
</h:form>That code generates this page(http://img299.imageshack.us/img299/6550/82163381.png). As I said before, the actual selection of the boxes will yield the appropriate catalog in the database. However, I seemingly can't figure out how to stylize this in a manner that will work. From my understanding, jsf has access to 2 sets of check boxes(the ones I used and the booleans). I'm more than willing to try alternate code. However, after hours of searching online I've found few if any examples that are doing something similar to what I'm trying to do. I have to imagine that there is some other way to do this because in normal html it is simple. But, I'm just not having any luck.
Edit: Oh and if it matters we're using Mojarra
Edited by: beckdawg on May 18, 2009 2:19 PMI believe this is IE 9. Whatever the latest is. It basically stacks all the images on top of each other. And after some changes I attempted last night, bevel effect is still on some images after I attempted to remove that effect. This is an issue in all the browsers.
http://http://jclementdesign.businesscatalyst.com/graphic-design1.html
This is a link to my portfolio page of my website. This is an issue with all the lightboxes.
Thanks for the help. -
How can I make a checkbox display only depending on the value of another item on the page?
I imagine I need to add a process based on htmldb_item.checkbox but I cannot figure out how
Thanks
MacHi,
1-If you have a checkbox item , you can use Condition Type =
Value of item in expression 1 = expression 2
2-Otherwise with APEX_ITEM.CHECKBOX :
APEX_ITEM.CHECKBOX(1,PK,
decode(your_item ,NULL,NULL,your_item )
3- with javascript, if you need it :
APEX_ITEM.CHECKBOX(1,PK,
decode(your_expression ,
your_search,
'checked onClick="your_function1" ',
'null onClick="your_function2" '
Regards,
Gregory -
How to obtain count of displayed checkboxes...
OK, I give up. I checked the manuals, the forum, done a number of tests, and can not find the answer...
I have a page that lists parents, and for those parents whose account is locked a checkbox will appear next to their name, allowing that parent to be selected so their account can be unlocked.
SELECT
CASE
WHEN acct_locked = 'Y' THEN apex_item.checkbox(3,p_id)
ELSE ' '
END UNLOCK,
p_id "View Stu",
p_id "User ID",
p_password "Pswd",
CASE
WHEN acct_locked = 'Y' THEN 'YES'
WHEN acct_locked = 'N' THEN 'NO'
ELSE NVL(acct_locked,' ')
END "Acct Locked",
I have a button at the bottom of the region that says 'Unlock Selected Users'.
I only want to display the button if there are locked users (checkboxes displayed on the screen).
I know I can use 'FOR i in 1..APEX_APPLICATION.G_F03.count' to see how many checkboxes have been selected. Is there a way to check a field to see how many checkboxes are displayed?
That way if the displayed checkboxes count is > zero I can display the button that says 'Unlock Selected Users' - on other words, only display the button if there are users who need to be unlocked.
Any other solutions would be greatly appreciated...
TIAAndy,
I did not manually create the checkboxes, they were automatically created by APEX in the following CASE statement in my SELECT for the region:
CASE
WHEN acct_locked = 'Y' THEN apex_item.checkbox(3,p_id)
ELSE ' '
END UNLOCK,
I do not know what name/ID that APEX assigns to the checkboxes, only that to reference the value in the checkboxes on my Processes I have to use the following format:
APEX_APPLICATION.G_F03(i)
I did a View Page Source in my browser, and it appears that APEX uses javascript to construct the region portion of the page. There isn't anything that is identifiable to me.
<script type="text/javascript">
<!--
var rowStyle = new Array(1);
var rowActive = new Array(1);
var rowStyleHover = new Array(1);
rowStyle[1]='';
rowStyleHover[1]='';
rowActive[1]='N';
function row_mouse_over1224265375934797690(rowNode,currentRowNum) {
rowActive = 'Y';
for( var i = 0; i < rowNode.childNodes.length; i++ ) {
if (rowNode.childNodes.tagName=='TD') {
rowStyleHover[currentRowNum] = rowNode.childNodes[i].style.backgroundColor;
rowNode.childNodes[i].style.backgroundColor = '';
function row_mouse_out1224265375934797690(rowNode,currentRowNum) {
rowActive = 'N';
for( var i = 0; i < rowNode.childNodes.length; i++ ) {
if (rowNode.childNodes[i].tagName=='TD') {
rowNode.childNodes[i].style.backgroundColor = rowStyleHover[currentRowNum];
// -->
</script> -
Checkboxes in BI Publisher not showing up for all reports
Hi everyone,
I followed the instructions (uploading fonts, checking the checkbox font property e.t.c) for displaying checkboxes (without the diamond shape) in my BI Publisher reports. It worked for 1 report and still does. Unfortunately the new reports I have uploaded still display the diamond shape. I find this very odd even though followed exactly the same process for all of my reports.
Is there a way to make sure that checkboxes display properly for all reports? Could there be a mistake I have made and that I am missing out on. Any thoughts will be appreciated.Have you set the properties as per
http://blogs.oracle.com/xmlpublisher/2007/05/wherere_my_checkboxes.html
especially
1. The font location, we need to tell the publisher engine where the Wingdings font is located:
<font family="Wingdings" style="normal" weight="normal">
<truetype path="c:\windows\fonts\wingding.ttf"/>
</font>
2. The glyphs to be used. Here we specify the font family name ie 'Wingdings' and the 253/254 glyphs
<property name="rtf-checkbox-glyph">Wingdings;253;254</property>
Do ensure that you use the same glyph character codes defined in ur config and RTF
Maybe you are looking for
-
MSI K8N Diamond Plus - Guide to my first week
OK, not a newb here, but been around the block quite a bit. MSI K8N Diamond Plus is my 5th A64 mobo (ECS K8M800, my daily undestroyed computer, K8T800, my 12 year olds gamer, Asus A8V Deluxe, first 939 system, Abit AN8 SLI, first SLI gamer, and now
-
Urgent!!! A question about p6.7 stand alone
I had P6.7 stand alone installed and have used it for a while. Last week, I suddenly couldn't login. After I entered password and clicked Login, and when "loading data" came to 99%, error message popped up and task ended itself, not able to enter int
-
Oracle 10g XE Error when trying to open manager in browser
Hi, i'm a newbies in oracle, i'm tryin to life with legal side, so in case with oracle i already downloaded oracle 10g Express Edition, i'm tryin to install it.. it succeed, but i dont know why if i try to open oracle home with this address in my bro
-
Layout to a Report run in the background
For a standard SAP Report which is run in background everyday with a variant . How can I attach a layout ( i created for sort column )to the report ? I want the output of the report to be as per the Layout ...How can i assign the layout to the report
-
XI-XML Error: Cannot Produce Target Element /ns0:Messages?
Experts, Anybody ever seen this error? Looks like XI is expecting a line of XML that says: <ns0:messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"> <ns0:Message1> I making this assumption based on a valid test case for this mapping in XI. Howeve