Multiselect,checkbox,shuffle in a report
ID:, NAME:
1, FIRST
2, SECOND
report has: select multiselect_field ID from table -- 1:2
If I use a multiselect,checkbox,shuffle in a report it shows the ID# of the record..
but I want to show the name that is stored in the table the LOV is using..
how can this be done..
report has: select multiselect_field name from table -- FIRST:SECOND
Hi Mervyn ,
You already have a post open for this question.
Check at
Check Box Reading -- Urgent
Can you close one of them and see if solution in previous post works for you. If not then paste your code.
Cheers.
( Dont forget to reward if answers helped )
Similar Messages
-
Adding a checkbox to a form report
Hi there,
I've built a multi-item form in APEX 3.1.2, based on the following query:
SELECT id,
ticker,
deal_date,
deal_type,
no_shares,
price_per_share,
commision,
stamp_duty,
DECODE( trade_group_id, NULL, 'N', 'Y' ) AS group_ind,
trade_group_id
FROM trades
WHERE ticker = 'FXPO'
ORDER BY trade_group_id,
ticker,
deal_date.
Unfortunately, I'm not hosting an image online and can't seem to figure out how to attach one to this post, so I can't show you a picture.
I'd like to replace the GROUP_IND value with a Checkbox in the Form Report. However, when I go to Report Attributes>Column Attributes for the GROUP_IND column, I cannot choose a Checkbox to represent that editable column in the report form. In the Tabular form Section>Display As dropdown list, a Checkbox is not given as an option. The closest thing I can find is Select List (static LOV).
Is there any way I can include a Checkbox where I want it to be? If I can, is there any way to ensure the associated report row is highlighted after the Checkbox has been ticked?
Cheers.
JamesHi try this
SELECT id,
ticker,
deal_date,
deal_type,
no_shares,
price_per_share,
commision,
stamp_duty,
APEX_ITEM.CHECKBOX(1,trade_group_id) group_ind,
trade_group_id
FROM trades
WHERE ticker = 'FXPO'
ORDER BY trade_group_id,
ticker,
deal_dateCheers
Ben -
Functionality of Checkbox in ALV Grid Report
Hi Experts,
I created a ALV grid report with the checkbox as my first coloum and other fields as shown below. Initially, my ALV report displays as below. It is working fine till here.
checkbox customer material quantity UOM Sales Order Delivery
C1 M1 1 KG
C1 M2 2 KG
C2 M1 1 KG
C2 M2 2 KG
C3 M1 1 KG
C3 M2 2 KG
C3 M3 3 KG
C4 M1 1 KG
C5 M5 1 KG
I have created a push button on application toolbar for creating sales order and delivery using bapi's. When I click on my pushbutton, as of now it creates the SO and delivery for the first customer C1 and updates my Internal table with the sales order number and delivery number. If I need to create sales order for the second customer I need to run my ALV report again and so on for 3rd, 4th and 5th customers. It is also working fine till here.
checkbox customer material quantity UOM Sales Order Delivery
C1 M1 1 KG SO1 DEL1
C1 M2 2 KG SO1 DEL1
C2 M1 1 KG
C2 M2 2 KG
C3 M1 1 KG
C3 M2 2 KG
C3 M3 3 KG
C4 M1 1 KG
C5 M5 1 KG
Need help on this:
When I select the check boxes as shown below and when I click the push button to create SO and Delivery then my program should create sales order and delivery for all the checked ones as shown below. What is the condition do I need to put here for selecting the checkbox.
checkbox customer material quantity UOM Sales Order Delivery
X C1 M1 1 KG SO1 DEL1
X C1 M2 2 KG SO1 DEL1
C2 M1 1 KG
C2 M2 2 KG
X C3 M1 1 KG SO3 DEL3
X C3 M2 2 KG SO3 DEL3
X C3 M3 3 KG SO3 DEL3
C4 M1 1 KG
X C5 M5 1 KG SO5 DEL5
I would really appreciate if somebody could help me / guide me on this. I will also post my code if someone needs to understand what I am doing exactly.
Thanks.You need to use OO ABAP
Use Class the class 1) CL_GUI_ALV_GRID, 2) CL_GUI_CUSTOM_CONTAINER
Create Sceen and container on same screen.
Check following COde it used for printing purpose.
Using AFTER_USER_COMMAND Event you will find Check box selected entries.
Capture those in another internal Table and use it for SO Creation
DATA: O_GRID TYPE REF TO CL_GUI_ALV_GRID,
O_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
T_FCAT TYPE LVC_T_FCAT,
CONTAINER(15) TYPE C VALUE 'ET_CONTAINER'.
CLASS EVENT_CLASS DEFINITION
CLASS EVENT_CLASS DEFINITION.
PUBLIC SECTION.
METHODS: BEFORE_COMMAND FOR EVENT AFTER_USER_COMMAND OF CL_GUI_ALV_GRID IMPORTING E_UCOMM,
DOUBLE_CLICK_N FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID IMPORTING E_ROW E_COLUMN,
TOOLBAR FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID IMPORTING E_OBJECT.
ENDCLASS. "EVENT_CLASS DEFINITION
CLASS EVENT_CLASS IMPLEMENTATION
CLASS EVENT_CLASS IMPLEMENTATION.
METHOD BEFORE_COMMAND.
IF E_UCOMM = 'PRINT'.
CLEAR : W_FLAG.
T_FINAL2 = T_FINAL.
SORT T_FINAL2 BY COL_CHK .
DELETE T_FINAL2 WHERE COL_CHK = ' '.
IF NOT T_FINAL2 IS INITIAL.
LOOP AT T_FINAL2 INTO WA_FINAL.
IF W_FLAG IS INITIAL.
Does some of modification/s in control parameters
W_CONTROL_PARAM-NO_OPEN = 'X'.
W_CONTROL_PARAM-NO_CLOSE = 'X'.
W_CONTROL_PARAM-PREVIEW = 'X'.
W_CONTROL_PARAM-NO_DIALOG = SPACE.
W_OUTPUT_OPTIONS-TDNEWID = 'X'.
W_OUTPUT_OPTIONS-TDIMMED = SPACE.
Opens the smartform print-job
CALL FUNCTION 'SSF_OPEN'
EXPORTING
OUTPUT_OPTIONS = W_OUTPUT_OPTIONS
CONTROL_PARAMETERS = W_CONTROL_PARAM
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC EQ 0.
W_FLAG = 'X'.
ELSE.
LEAVE LIST-PROCESSING.
ENDIF.
ENDIF.
IF W_FLAG = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZFORM_BIW_PRINT'
IMPORTING
FM_NAME = LF_FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
IF SY-SUBRC = 0.
CALL FUNCTION LF_FM_NAME
EXPORTING
CONTROL_PARAMETERS = W_CONTROL_PARAM
V_VBELN = WA_FINAL-VBELN
WA_FINAL = WA_FINAL.
TABLES
T_FINAL = T_FINAL.
ELSE.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDLOOP.
* Close the smartform print job
IF W_FLAG EQ 'X'.
CALL FUNCTION 'SSF_CLOSE'
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
OTHERS = 4.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD. "BEFORE_COMMAND -
Checkbox in an Updatable Report
How can I use a checkbox to display checked for 'T' and unchecked for anything else in a report based on an SQL Query?
How can I use the checkbox in the report to set the value in the field in the table in an MRU?
Can this be done the same way as if I used a Text Field, as opposed to some extra coding to make it work?
Thanks all,
GregoryThanks Arie. I was really hoping there was a simpler way, but apparently not. Vikas put it quite succinctly in:
Re: Change text Item into Check Box in a Tabular Form
Gregory -
Multiselect item in a SQL/Report received No data found msg
I am having a problem with retrieving rows from a table with a multiselect item.
I am using the INSTR function in my SELECT but it only works for one value not two values.
I am use an anonymous PL/SQL block in a report region:
Begin
V_Q:= 'select "ID","FIRMID","FIRM_NAME","ADDRESS1","ADDRESS2","CITY","COUNTY","STATE","ZIP",
decode("PHONE",null,null,''('' || SUBSTR("PHONE",1,3)|| '') '' || SUBSTR("PHONE",4,3)||''-''|| SUBSTR("PHONE",7,4)) as "PHONE",
decode("FAX",null,null,''('' || SUBSTR("FAX",1,3)|| '') '' || SUBSTR("FAX",4,3)||''-''|| SUBSTR("FAX",7,4) )as "FAX","EMAIL","ETHNICITY","GENDER"
from "FIRMS" "F"
where 1=1 ';
/********************* this is the code in which I am having a problem ***********/
If V('P1_COUNTY') is not null then
v_Q := v_Q || ' AND ' ||'INSTR('':''||v(''P1_COUNTY'')||'':'', '':''||"COUNTY"||'':'') > 0';
end if;
APEX_COLLECTION.DELETE_COLLECTION (
p_collection_name => v_collection_name );
:P1_Q := v_q;
APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
v_collection_name,
v_q );
End;
I am using APEX 2.2 with Oracle 9.2
I ran the same query in SQL*Plus and it worked. I received data for multiple selections (2).
Why did it work in SQL*plus and not in APEX?
Was this a reported bug in APEX 2.2? Was this corrected in APEX 3.0(.1)?
Can someone please help, I am completely perplexed!
RobertOops...
I found the error. INSTR works perfectly. The problem was that I used where clause referencing the COLLECTION which did not have the INSTR builtin function.
Sorry about that.
This is now closed. -
Checkbox derived column in report
I added an HTML checkbox that has the same name for every row and a value of the pk for that row to a report. I also added a submit button.
The submit button branches back to the same page.
If I don't check ANY checkbox buttons the submit button just takes me back to the same report. If I even click one checkbox, I get a 404 "Page cannot be found" with the url saying: pls/htmldb/wwv_flow.accept
why is this procedure doing this? How can I add a derived column containing a checkbox to a report for selection of report rows for further processing or adding of these rows to a "shopping cart/basket".Enough with this ..... link
http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html
How many times do we have to see it in the forum....Enough.....
Its so frustrating giving the same link time and time again...And the funny
part is that most people's questions has nothing to do with that. But
still some geniuses give the same link....I just feel so sorry for people
who are struggling to get a answer and some idiots give the same link -
Reading checkbox entries in classical report
Hi, I have a non-alv report. The report writes out the contents of an itab. The last field in the itab is checkbox field. The user can check the fields as expected. However how can I determine which ones were selected?
I have tried using at line-selection and at user-command. However as the fields are part of a header line I don't see how it is possible.
write:/001 wa_deleted_materials-matnr,
020 wa_deleted_materials-maktx,
062 wa_deleted_materials-mtart,
070 wa_deleted_materials-matkl,
080 wa_deleted_materials-werks,
090 wa_deleted_materials-inv_flag,
095 wa_deleted_materials-mass_change as checkbox.
I don't want to go to secondary list. I just want to check the desired fields and then when I trigger an event I want the selected fields moved to a separate itab. Any ideas?
Thanks in advance,
KevinYes, it's possible - you have to read the list back in to determine which checkboxes are selected. Do F1 on READ (a list).
Essentially:
READ LINE 1 FIELD VALUE wa_deleted_materials-mass_change INTO f1.
Rob
Message was edited by:
Rob Burbank -
HTML Code text appearing instead of checkbox in an interactive report
Hi All,
When I try to include a check box column in an interactive report only the HTML text is being displayed as
<input type="checkbox" name="f01" value="1739" />.
However check boxes are working fine in other application and also in other sample test reports that I've tried on...
Could you please give any ideas as to why this is happening?
Thanks in AdvanceHi,
Change column to Standard report column from report attributes.
Br, Jari -
Checkboxes - htmldb_item.checkbox multi-record updatable report
htmldb_item.checkbox can be used to display retrieved database values as a check box (e.g. a Y/N Flag).
These can also be added to an updateable report in a multi-record tab.
When a new record is created on the multi-row tab however there appears to be no way to render a checkbox. Instead a text box appears instead.
Is there any way to acheive this?
This data needs to be present in a multi -row layout
Thanks
BTW - I have checked the docos and read the forums.Firstly, thank you for the reply.
I must clarify what I am doing.
I have a table that has a column in it that is called ZEROFUEL. This can have a value of either Y or N. The user wants a block of these records (say eight) per screen. This column need to be represented by a checkbox. I manage this by calling the NVL(htmldb_item.checkbox(10,ID, DECODE (ZEROFUEL,'Y','CHECKED')),'N')ZEROFUEL, in the report select statement.
The automatic checkbox (for deletion) is added by the wizard no problem. It is the checkbox for the column ZEROFUEL I am having the problem with.
If I do not render the checkbox from the sql select then the wizard just creates a little text field display.
Everything works fine until I press the ADD button. A new record pops up on the bottom of the block with no checkbox on the ZEROFUEL column.
Eventually there are four columns I need to display as a checkbox. These all need to be displayed in the multi-record tab.
Am I missing something.
Thanks -
Check all checkbox in an interactive report
Hi,
I would like to add a "check all" functionality in an interactive report. I've done that by adding a javascript function to the header, but when I click the column header to check all the page first executes the javascript that is used by the interactive report (sorting etc). Is there a way to disable this javascript for just the checkbox clolumn, so that my own javascript code is executed?
Or is there another way to add this functionality to the IR?
ThanksThat works great! Thanks jarola
The complete answer in case anyone needs it is to first include the checkbox column in your IRR query
APEX_ITEM.checkbox (1, ca.id) del
Then include this as the column heading
<input type="Checkbox" onclick="$f_CheckFirstColumn(this)">
Then include the code as identified by jarola in the page HTML Header
<script type="text/javascript">
addLoadEvent(RemoveChkOnclick)
function RemoveChkOnclick(){
$x('apexir_DEL').onclick='';
</script>
Edited by: Bill Wheeling on Aug 1, 2010 4:12 AM
Edited by: Bill Wheeling on Aug 1, 2010 4:36 AM -
Urgent: about the checkbox in OOP ALV report
Hi Experts,
I had use OOP method to display my ALV report. In the report I have a checkbox for each line. I had set this check box use below statements:
gt_fieldcat_record-tabname = 'GT_ISSUE_INT'.
gt_fieldcat_record-fieldname = 'CHECKBOX'.
gt_fieldcat_record-checkbox = 'X'.
gt_fieldcat_record-edit = 'X'.
APPEND gt_fieldcat_record.
When I press the save button, then I will save the lines to my Z-table which its GT_ISSUE_INT-CHECKBOX = 'X'.
Now I click the checkbox to select several lines in my ALV report and then press save, but it do not work. Then I check the internal table GT_ISSUE_INT in debugger, I found the GT_ISSUE_INT-CHECKBOX = ' '. Above statements is not correct for the checkbox?? Or I need additional statements to move 'X' to GT_ISSUE_INT-CHECKBOX?? Please help!!!Thanks.Hi,
If u want to read check box status from list, need to call function module explicitly.
see the sample code:
case sy-ucomm.
when 'SAVE'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.
loop at GT_ISSUE_INT to workarea.
____ continue writing ur code.
function module read the data from list . and save the changes that made on list.
when u debug, u can see the check box status as 'X' after exucut\ing this fm and method.
reward if helpful.
regards,
swapna -
How do you create a tickbox/checkbox in an OBIEE report
Hello
Im pretty new to OBIEE (this forum has proved to be invaluable so thank you all)
How do you setup a measure to be a tickbox/checkbox?Ok so you go to the measure column in your request.
--> Column properties
--> Conditional format
--> Add Condition
--> is equal to 1 (or Y or TRUE)
--> Edit Format
--> Image
--> "Custom Image"
--> fmap:portal/iselected.gif
That's just an example for getting the out-of-the-box tickbox. "iselected_off.gif" is the unchecked one.
Cheers,
C. -
How to update CheckBox value change in report in DB table
Hi;
I have created a tabular form & added a check box in my Select statment...also i created a procedure On Submit to update my table according to the checkbox values..
My problem is that the update statment is updating the whole records in the form not only the changes which i done
Any one can give me the key for the update statment?
Regards;
EhammadDid any one tried to implement the same example of dkubicek?!! i tried to do the same code but i have problem (f011) should be identified!!!
does any1 have any idea about kind of this error?
Regards; -
To activate/deactivate checkbox in ALV grid report
Hi All,
I am trying to create an ALV Grid that contains check-box as column fields. I am able to either activate or deactivate all the check-boxes in the entire column. But, I need to keep only certain check-boxes for editing based on certain conditions. The other check-boxes in the column should be deactivated for editing by the user. Any help is appreciated.
-DineshHi dinesh babu ,
In this example, i use 'REUSE_ALV_GRID_DISPLAY_LVC'
FORM display_alv .
DATA: ls_event_exit TYPE slis_event_exit,
lt_event_exit TYPE slis_event_exit OCCURS 1.
DESCRIBE TABLE itab_data LINES lv_cont.
PERFORM layout_build USING gs_layout.
PERFORM eventtab_build USING gt_events[].
PERFORM comment_build USING gt_lheader[].
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZHRESS_FORMACION_ALV'
i_client_never_display = 'X'
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = gt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT gt_fieldcat INTO ls_fcat.
Active check field
IF ls_fcat-fieldname EQ 'CHECK'.
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-fix_column = 'X'.
ls_fcat-reptext = 'Check'.
ENDIF.
PERFORM field_attributes.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_background_id = 'ALV_BACKGROUND'
i_callback_program = g_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
is_layout_lvc = gs_layout
it_fieldcat_lvc = gt_fieldcat[]
i_save = g_save
is_variant = g_variant
it_events = gt_events[]
it_event_exit = lt_event_exit
i_default = 'X'
TABLES
t_outtab = itab_data.
ENDFORM. " DISPLAY_ALV
FORM field_attributes .
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
LOOP AT itab_data INTO wa_data.
IF wa_data-status NE c_status_p. " Condition for enable / disable check
ls_stylerow-fieldname = 'CHECK' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled. "set field to disabled
APPEND ls_stylerow TO wa_data-field_style.
MODIFY itab_data FROM wa_data.
ENDIF.
ENDLOOP.
ENDFORM.
Regards,
José
Edited by: Jose Luzardo on Oct 6, 2009 3:37 PM -
Hi,
#1. I have a SQL report with a checkbox . The page has a LOV and based on the selected value, the records show up in the SQL report. If I "check" one or more rows in the report and click Save button, new rows get created in a table against LOV selection+"checked row".
So, upto this point, it is fine that I am able to save data into the database based on which checkbox is "checked".
#2. Then I used following link. Using that , if for a selected LOV value , data exists in the table, then it shows the checkboxes "checked" (when the SQL report first shows up), for all those records.
http://www.inside-oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/
The problem is that if the SQL report has already some checkboxes checked as per above functionality (#2), and user "checks" more checkboxes and clicks Save, new data does not get saved. Looks like, the check box array does not recognize any new selections or even or "unchecking" o any"checked' checkboxes.
Please help me how I can achieve saving checkboxes values from a report alongwith showing checkboxes checked , when SQL report first loads, based on what db has.
PS: Using Apex 4.0
Thanks,You should check this link:
https://apex.oracle.com/pls/apex/f?p=31517:95
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
https://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
Maybe you are looking for
-
Would Apple PLEASE say something more than it's o.k?
I just would like more information as to when it might be fixed. I am not getting mail AT ALL and worry I am missing important messages from clients. I have had to let my friends know to use Facebook Mail. Yikes!
-
How to create an alert in a script
Dear Colleagues, I would like to know if it's possible to create an alert which should be displayed then in the communication channel of a specific user in a custom script. If it's possible could you please share what Class method should I user? Rega
-
How to catch undeclared variables in debugging?
Hi, I've been doing an awful lot of Flash debugging and the biggest thing wasting my time is tracking down variable misspellings, since Flash just considers the value 'undefined' and doesn't throw any kind of error. Is there some hidden setting in Fl
-
I have uninstalled and reinstalled iTunes several times, but keep getting an error message that "the registry settings for importing and burning CD's and DVD's is missing". Can anyone help with this?
-
Is it ok to keep PB closed while using an LCD display?
Hello, I was wondering if it is "ok" to keep my Powerbook display closed while using my LCD display. Are there any advantages/disadvantages? Is it better for the screen life of the PB? Is it keeping heat in? Any info would be appreciated. Thanks much