Checkbox and pagination
I am creating checkboxes dynamically follows:
sql1:='SELECT htmldb_item.checkbox(1,COLUMN_NAME) " ", COLUMN_NAME FROM ALL_TAB_COLS WHERE TABLE_NAME like '''||tname||'''';
and i am using pagination scheme :-Row ranges X-Y
The problem here is if i am checking checkbox in the range 1-10 and then going to next range i'e 11-20 then the checkboxes in the range 1-10 getting unchecked.How can i retain the checked state?
Hi Pragya,
There is an option called "Reset pagination Scheme" when you are branhing to pages. Check this option and try. You must be bale to resolve the issue.
Regards,
Swaroop
Similar Messages
-
Problem with checkbox and drop down menu
I am using DW8 with PHP/MySQL.
I made a insertion form and a couple of the fields are
checkboxes and another is a drop down menu. Everything works fine,
however, when I create an update form and the recordset calls the
data it doesn't retain its values on those items.
For example, if I checked a box when inserting the record and
then call the data up for the update form, the box is not checked,
making the user believe it was never checked in the first place.
The same thing goes for the drop down menu. If I have 3
options in the menu and someone selects the third one, when the
update form is used it defaults to the first option automatically
instead of actually calling up the original value selected.The fact that two scripts do not work together does not mean
there is a bug in the RH script. It is simply that they were not
designed by their respective developers to work together. This
happens with multiple scripts in any html file.
Try creating a new project and then importing just this topic
into it. Does it still have the problem? -
How to Add Checkbox and icon in ALVGRID
Hi Experts,
i have one Requirement. i need to add Checkbox, Selectall,icon(Unlock or inactive) infront of Contracts of ALV GRID.How to achive that.
Thanks,
Venkat.Hi
For check box
At declaring field catalog using structure LVC_S_FCAT
mark CHECKBOX = 'X' and also EDIT = 'X'.
For reference check below subroutine in program BCALV_EDIT_05.
form build_fieldcat changing pt_fieldcat type lvc_t_fcat.
data ls_fcat type lvc_s_fcat.
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'SFLIGHT'
changing
ct_fieldcat = pt_fieldcat.
*§A2.Add an entry for the checkbox in the fieldcatalog
clear ls_fcat.
ls_fcat-fieldname = 'CHECKBOX'.
* Essential: declare field as checkbox and
* mark it as editable field:
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
* do not forget to provide texts for this extra field
ls_fcat-coltext = text-f01.
ls_fcat-tooltip = text-f02.
ls_fcat-seltext = text-f03.
* optional: set column width
ls_fcat-outputlen = 10.
append ls_fcat to pt_fieldcat.
endform.
For Icon:
CONSTANTS:
icon_id_failure LIKE icon-id VALUE ' ((Content component not found.)) @',
icon_id_okay LIKE icon-id VALUE ' ((Content component not found.)) @'.
TYPES: BEGIN OF ls_tab,
matnr LIKE equi-matnr,
maktx LIKE makt-maktx,
b_werk LIKE equi-werk,
b_lager LIKE equi-lager,
lgobe LIKE t001l-lgobe,
sernr LIKE equi-sernr,
icon LIKE icon-id,
objnr LIKE equi-objnr,
END OF ls_tab.
*Table that display the data for the ALV.
DATA: itab TYPE ls_tab OCCURS 0 WITH HEADER LINE.
PERFORM get_h_date .
IF h_date => sy-datum .
itab-icon = icon_id_okay.
ELSE .
itab-icon = icon_id_failure.
ENDIF.
Regards
Sudheer -
How to use Checkbox and radio buttons in BI Reporting
Hi BW Experts,
My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I dont know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
Thanks,
RamHi..
Catalog item characteristic
- Data element
- Characteristic type
Entry type
List of catalog characteristics
Designer
Format (character)
Standard characteristic
Alternative: Master characteristic
(used for automatic product
assignment)
Simple entry field
Alternatives:
Dropdown listbox or radio button
list -
How to realize Checkbox and Radio Buttons based on Attributes in JHeadstart
Hy@ all,
I try to redevelop the Summit Forms Demo in ADF.
The module "ORDER" contains, among other things, a checkbox and radio buttons based on database columns(VARCHAR2).
The column(checkbox) named PAYMENT_TYPE contains the values CASH and CREDIT and the column(radio button) called ORDER_FILLED contains the values Y and N.
After creating the business components, I set in JHeadstarts Application Definition the Display Type of these two attributes to checkBox and radio-horizontal.
I created a dymanic domain for the radio-horizontal and a static domain for the checkBox.
The radio-horizontal within the dymanic domain works nearly correct.
I set the Data Collection in this dynamic domain to the required Group and the Value and Meaning Attribute to the necessary Attribute.
Within the JSF- Page the values are shown right but unfortunately there are too many radio buttons available. Instead of displaying the two radio buttons CASH and CREDIT were many CASH and CREDIT radio buttons shown.
I can´t find any solution for this case.
The problem with the checkBox is that therfore a static domain is required but I want to show the value of the checkBox based on the described attribute, like the handling of the radio horizontal.
But I don´t know how to implement this, if it is possible.
I´m using JHeadstart v10.1.3.2 and I´m pleased about any reply or solution.
Best regards
ChrisChris,
If you run the application module tester, and query the view object usage underlying your dynamic domain, how many rows does it return? It should return only two rows, one for CASH and one for CREDIT. If more than two rows are returned, your query is wrong.
What is the problem with using a static domain for the checkbox?
Steven Davelaar,
JHeadstart Team. -
Report with checkbox and collection
Hi all
I need to manage an interactive report to filtering and selecting rows by checkboxes and then use a collection to manage the selected records.
I used a first collection to create the source record set by a On-Load Before-Header Process:
DECLARE
v_id NUMBER;
var1 Varchar2(8);
var2 Varchar2(10);
var3 VARCHAR2(50);
var4 VARCHAR2(10);
var5 VARCHAR2(100);
var6 VARCHAR2(5);
cursor c_Populate is
SELECT
dep.chassis_code AS chassis_code,
dep.model_code AS model_code,
m.model_description AS model_description,
dep.acc_doc_number AS acc_doc_number,
dest.description AS destination_descr,
(trunc(sysdate) - dep.entry_date) Anzianita
FROM deposit_chassis dep, warehouses w, warehouse_map map, models m, site s,
destinations dest, T_SUB_DESTIN_DEALERS sdd
WHERE
dep.status = 5 AND
w.ware_code = map.ware_code AND
dep.DEALER_CODE = sdd.DELIVERY_POINT AND
dep.DESTINATION_CODE = sdd.DESTINATION_CODE AND
map.map_code = dep.map_code AND
m.model_code = dep.model_code AND
DEP.UNLOADING_SITE = S.SITE_CODE AND
DEP.destination_code = dest.destination_code And
dep.unloading_site = 'S0000074' and w.site_code = 'S0000074';
i NUMBER;
BEGIN
APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(p_collection_name => 'MY_COLLECTION');
OPEN c_Populate;
LOOP
FETCH c_Populate into var1, var2, var3, var4, var5, var6;
EXIT WHEN c_Populate%NOTFOUND;
APEX_COLLECTION.ADD_MEMBER(
p_collection_name => 'MY_COLLECTION',
p_c001 => var1,
p_c002 => var2,
p_c003 => var3,
p_c004 => var4,
p_c005 => var5,
p_c006 => var6);
END LOOP;
CLOSE c_Populate;
END;
Then I created a region for a SQL report:
SELECT
APEX_ITEM.CHECKBOX(1,c001) Chk,
apex_item.text(2, c001) Telaio,
apex_item.text(3, c002) ModelCode,
apex_item.text(4, c003) Model,
apex_item.text(5, c004) Doc_Number,
apex_item.text(6, c005) Destination,
apex_item.text(7, c006) Age
FROM APEX_COLLECTIONS
WHERE COLLECTION_NAME = 'MY_COLLECTION';
Then, with a submit button and the relative process (below), I need to load a new collection for further elaboration.
How can I obtain the single values for each field of my selected row (see MY_COLLECTION) ?
APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(p_collection_name => 'COL_AVAILABLE_CHASSIS');
FOR i IN 1..APEX_APPLICATION.G_F01.Count
LOOP
APEX_COLLECTION.ADD_MEMBER(
p_collection_name => 'COL_AVAILABLE_CHASSIS',
p_c001 => I need the Telaio
p_c002 => I need the ModelCode
p_c003 => I need the Model
p_c004 => I need the Doc_Number
p_c005 => I need the Destination
p_c006 => I need the Age
END LOOP;
Thanks in advance,
MassimoDear Jari
I've looked at your sample.
Yes it seems ok for my apps
So, i've done the following update to my code:
Souce Report
SELECT
APEX_ITEM.CHECKBOX(3,c001) Chk,
APEX_ITEM.TEXT(4,c001) Telaio,
APEX_ITEM.TEXT(5,c002) ModelCode,
APEX_ITEM.TEXT(6,c003) Model,
APEX_ITEM.TEXT(7,c004) Doc_Number,
APEX_ITEM.TEXT(8,c005) Destination,
APEX_ITEM.TEXT(9,c006) Anzianita
FROM APEX_COLLECTIONS
WHERE COLLECTION_NAME = 'MY_COLLECTION'
The Submit Process
DECLARE
l_row NUMBER := 1;
BEGIN
FOR i IN 1..APEX_APPLICATION.G_F03.COUNT
LOOP
FOR j IN l_row..APEX_APPLICATION.G_F04.COUNT
LOOP
IF APEX_APPLICATION.G_F04(j) = APEX_APPLICATION.G_F03(i) THEN
-- ONLY FOR TEST PURPOSE --
htp.p('Telaio: '||APEX_APPLICATION.G_F03(i));
htp.p('Campo: ' ||APEX_APPLICATION.G_F04(j));
htp.p('Campo: ' ||APEX_APPLICATION.G_F05(j));
htp.p('Campo: ' ||APEX_APPLICATION.G_F06(j));
htp.p('Campo: ' ||APEX_APPLICATION.G_F07(j));
htp.p('Campo: ' ||APEX_APPLICATION.G_F08(j));
htp.p('Campo: ' ||APEX_APPLICATION.G_F09(j));
l_row := j + 1;
EXIT;
END IF;
END LOOP;
END LOOP;
COMMIT;
END;
Is it correct to manage G_F0x like my code ?
Thanks,
Massimo -
Checkbox and date/text feild
I need to create a form with a checkbox and a date/text feild in the same row. Is this possible?
An example is below:
Form
[ check box ] name of document [date/text feild]
[ ] document name [1/30/2014]Sure - you can add fields adjacent an existing field using the "+" sign on the right side of the field to bring up the add field toolbar to add a field to the side. You can also do this through the right click menu item "Add field beside", and you can Drag and Drop fields where you want them by clicking on the left side of the field and holding the mouse button down while you drag it where you want it, a blue vertical bar shows where it will be placed, drag it to the right of a row to add it to the right of existing fields.
Thanks,
Josh -
Checkbox and ORA-20507: Invalid numeric value #:# for column
Hi All,
I'm facing problems Checkboxes in a form.
I created a form and report on a table. one of the fields on the form is a checkbox and when ever I want to create a new record or update with more than one value for the checkkbox I obtain the following error:
ORA-20507: Invalid numeric value #:# for column COLUMN_NAME Where by #:# is numbers
I think the error occurs at the processes of get_pk and process_row_of_......
how should I change the processes to accommodate the checkbox values.
Kind regards
MelHi Roel,
Colunm = number
LOV Definition
select product display, prod_num return from product_category_vw
where prod_num not in (select p.prod_num from product_user_tb p, user_tb u
where p.user_num = u.user_number
and u.user_name = :APP_USER)
ORDER BY 1column = number
LOV Definition
select school d, sch_id r from school_tbRegards
Mel -
How can I change the space between a checkbox and text all at one time? I have a lot of checkboxes in my form.
Okay, I haven't found a way to add an extra space using Find/replace, but you might be able to add some text wrap to the check boxes that will push the text away from them.
Open Find/Replace and click the Object tab.
Click the Specify attributes to find button to the right of the Find Object Format: field.
Under Basic Attributes, choose Stroke and then the Black swatch (assuming the black swatch is applied to the strokes of your check boxes). If there are no other stand-alone objects in your form with a Black stroke, this should be all you need. (If there are Black strokes on your table cells, they will be ignored.)
Click OK
Click the Specify attributes to change button to the right of the Change Object Format: field.
Under Basic Attributes, choose Text Wrap & Other > Text Wrap > Type: > Wrap around bounding box (2nd button from left)
Under Offset, set a Right offset at the distance you'd like to add (I don't know what units you use, but the 3-5 points might work for your purposes...might take some trial-and-error to get it where you want)
Click OK
Click Change All -
Checkbox and 2 Textbox in the same line
Hi,
I am having a problem trying to show one checkbox and two textboxes at the same line,
the problem is with the text (comment) I want to display for each item.
when I try to activate or run the report , I got this error message :
Error when generating the selection screen "1000"
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
parameters:
ck1 AS CHECKBOX ,
p_u like rlgrap-filename default 'C:\data\',
p_ux(9) default '500'.
"SELECTION-SCREEN COMMENT 4(10) text-c01 for FIELD ck1.
"SELECTION-SCREEN COMMENT 17(10) text-c02 for FIELD p_u.
"SELECTION-SCREEN COMMENT 30(10) text-c03 for FIELD p_ux.
SELECTION-SCREEN end OF LINE.
I think the problem is with the position of the comment ?
how to fix this?
Thanks
MisbahHi Misbah ,
i had faced a similar issue some months ago, following is the solution----->>>
SELECTION-SCREEN BEGIN OF BLOCK F WITH FRAME TITLE TEXT-014.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(18) text-015.
PARAMETERS : P_DNR(10) TYPE C.
SELECTION-SCREEN COMMENT 35(14) text-016.
PARAMETERS : P_ST AS CHECKBOX.
SELECTION-SCREEN COMMENT 56(8) text-017.
PARAMETERS : P_IC AS CHECKBOX.
SELECTION-SCREEN COMMENT 72(14) text-018.
PARAMETERS : P_CA AS CHECKBOX.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK F.
OUTPUT LOOK AS BELOW------>>>>>
Debit Entry Number ___________ Stock Transfer [ ] IC Sales [ ] Credit Allowed [ ].
HERE, Debit Entry Number, Stock Transfer, IC Sales, Credit Allowed are the text sysmbols saved at 015, 016,017 and 018.
see the above code , the logic is the text stored in text 15 is of length 18.
after which i print a blank input field i.e the parameter p_dnr which is of length 10.
so now the next text or field has to be printed at 18 + 10 = 28.
so 28 or any number more than 28 should be the starting position of the next text or parameter or checkbox , etc.
similarly u have to calculate the start position and end position for all the selection screen variables ur printing in a line .
if the calculation goes wrong and variables in a line get overlapped on each other , then u get an error message as u r getting now.....something like selection screen error.
Regards,
Akash Rana -
Layout and Pagination... Limiting my data to top 500 records
Hi,
My report is based on SQL, it's displaying only top 500 records... May I know how to fix it...?
I've tried different options under Report attibutes -> Layout and Pagination but no success yet
ThanksTry closing OAE and the application if running.. Seems like the changes don't take effect until you come back into OAE... At least that is what mine does.
-
Revision: 14017
Revision: 14017
Author: [email protected]
Date: 2010-02-05 16:16:37 -0800 (Fri, 05 Feb 2010)
Log Message:
Fix for icons being off-center in the wireframe CheckBox and RadioButton. The icon was not being vertically centered.
QE notes: No
Doc notes: No
Bugs: SDK-25304
Reviewer: Jason
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-25304
Modified Paths:
flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml
flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mx mlWelcome guy -
Unless you are using Spry menus as a learning experience, you should move forward to a menus system that will display properly on the millions of portable devices that won't work with Spry which was deprecated 2 years ago.
Many are using JQuery menus or pure HTML/CSS menus.
If you wish to continue your Spry for learning experience, we'll be glad to assist; please let us know.
By the way, your submenus are not showing because you need to add the red value to this rule in your vertical CSS
ul.MenuBarVertical ul.MenuBarSubmenuVisible{
width: 220px;
left: 180px; -
Tabindex is not going for checkbox and buttons in Safari 5.0.4. Any solutions?
Try updating your system software.
Click your Apple menu icon top left in your screen then click Software Update.
Latest version of Snow Leopard is v10.6.8 / Safari 5.1. -
Report attributes - layout and pagination
When you set the pagination scheme to Row Ranges X to Y(with next and previous links), Number of Rows to 15 and Max Row count to 1000, I need to know what happens with the query. When the user selects the next (or previous) 15 records, does the region's query fire again and query all 1000 (or more) records?
I hope this makes since. I just need to know if the application is selecting all the records over and over as the user move through the report.
ThanksThank You, Thank You, Thank You.
That is indeed the point I am trying to make.
My report is a SQL Query (PL/SQL Function body returning SQL Query) and is based on information provided in several PopUp LOVs. The more LOVs used, the more information provided to the WHERE CLAUSE, and therefore the less data returned to the screen.
When the End User produces a small report, they are likely to want to sort it.
But when they bring back huge amounts of data, they don't want it sorted. Especially not automatically sorted.
In most cases, this is happening when we are joining two or three tables with say 10 million rows on each table. The join condition is good (meaning there is not a Cartesian Product) but the resultant data is 10 million rows - something you not likely want to sort. Even with a limit on the number of rows returned (Report Attributes - Layout and Pagination - Max Row Count) to something reasonable, like 500, the 10 million resultant rows are first being sorted and then the first 500 returned.
So, yes, a "sort-enabled" report should NOT automatically sort. Which is what is happening.
Of course, it might be a good thing to have some sort of Variable that we could set on a page to decide if we want automatic sorting. On most pages, an automatic sort is great - as the amount of data returned will always be small.
On the pages where I have this problem, it would be great to do the automatic sort when one or more of the PopUp LOVs are populated. So, within a "After Submit" process I might want to turn automatic sorting on.
Hey, if we are going to ask for an enhancement/change, we might as well ask for something really flexible. -
Hi,
I think what I'm trying to do should be relatively simple, but I just can't figure it out. I want a form that displays a list of labs (retrieved from the database) with a checkbox beside each lab. I would then check all checkboxes and for those that are checked I would pass those lab names to my report. I don't know how to set it up to have a dynamic number of checkboxes depending on the number of labs in the database. I also don't know how to set up the checkboxes to display the name of the lab (which would be a record from the database).
I hope someone can help me with this.
Thanks in advance.Celine,
Here's one approach to what you are trying to build:
Create a datablock based on your database table.
Set the form to display multiple values(i.e.) tabular.
Add a check box item to the same datablock. Ensure the check box is a non database item.
This will display a check box against each row of the tabular view of the base table with as many checkboxes available as there are rows in the base table.
Do an execute_query in a when-new-form-instance and the tabular form will be populated with the data from the database table.
You can detect which record was selected by using the when-check-box-changed trigger.
You can use a PL/SQL table or record group to pass multiple values or a global variable(s) if the number of values is known.
Maybe you are looking for
-
Code in the module not triggered..
hi, i have designed a screen with 2 radio buttons, aa and bb. its associated program is of Type M and named as SAPMZXXXXX and screen number is 100. i created 2 subscreens in the same program SAPMZXXXXX , number 101 and 102. now by default the first s
-
No Output in the audio prefrences. Help!
I just installed logic pro 7.2 on my mac book pro core2duo and in the audio prefrences, on audio driver it only has built in input and buillt in microphone. NO OUTPUT.. and i dont understand why. i inalled both updates and my os is up to date as well
-
I have 2 photo albums on my iPhone that i want to delete. One is called "Photo Library" the other is called "iPhonePics". I cannot delete any of the photos in either album. How do I delete the photos and/or the albums?
-
Why is itunes Match so different?
is itunes match different than syncing your device and computer? Also Match can hold 25,000 songs but when you play them don't you download them and put them on your device anyway? thanks david
-
Stop processing of billing batch in VF04 at the time of pricing check
Hi, T-code is: VF04 We are calling external system SABRIX using RFC "RFC_CALCULATE_TAXES_DOC" to get the tax information and once if it returns any error it should not create the billing document for that particular sales document in the batch. The