To get values as checked or unchecked from databse to apex checkbox
Hi gurus
apex 4
oracle 11g
how to load data from database for check box if values =1 then checked and id value=0 then unchecked .
can you please help me to solve this issue
Sample table
En0 empname pack1 pack2 pack3 pack4
1 a 1 0 0 1
2 b 0 1 0 0
3 c 1 1 1 1
4 d 0 1 1 0
my output in APEX should shows that for ename 1
Check box pack1 checked
checkbox paCK2 unchecked
checkbox pack3 unchecked
checkbox pack4 checked
and im the new user in apex so can u help
Thanks in advance
r
Edited by: A on Apr 13, 2011 7:26 PM
Please some patience!
For a standard report, your SQL would look like this:
SELECT eno,
empname,
apex_item.Checkbox(1, pack1, Decode(pack1, 1, 'CHECKED', NULL)) AS pack1,
apex_item.Checkbox(1, pack2, Decode(pack1, 1, 'CHECKED', NULL)) AS pack2,
apex_item.Checkbox(1, pack1, Decode(pack3, 1, 'CHECKED', NULL)) AS pack3,
apex_item.Checkbox(1, pack1, Decode(pack4, 1, 'CHECKED', NULL)) AS pack4
FROM sample_tbl Under column Attributes, make sure your checkbox columns are displayed as Standard Report Column
Jeff
Similar Messages
-
How to get the values for checked and unchecked chekboxes
Hai i have using the checkbox in for loop.
I need the urgent help from anyone,
for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and unchecked checkboxes. Because if i checked the checkboxes, those values need to be inserted into the database. Those for unchecked checkboxes values need to be deleted from the database. Can anyone help me for this
i am using the following jsp code for this. If anyone can know about this please post me the sample code.
<form name="confirmcontainer" id="confirmcontainer" method="post" action="submit.jsp">
<% for(int i=0;i<value.length;i++) {%>
<tr>
<td><input name="assigncontainer_chkbox" d="assigncontainer _chkbox" type="checkbox" value="<%=value[0]%>"></td>
<td class="bottomborder"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[1]%> </font></div></td>
<td bgcolor="#FFFFFF" class="bottomborder"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[2]%></font></td>
</tr>
<% } %>
<tr><td><input type="submit" name="submit" value="submit"> </td></tr>
</form>
Thanks & Regards,
TamilvananHey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
Not getting values for HR_READ_SUBTYPE while calling from Webdynpro appl
Hello,
When we pass infotype,begda,endda and other required parameters and run this FM in standalone we are
getting values however when same FM is called through Webdynpro ABAP application it is not returning values.
I tried debugging and i found out that some buffer issue is there.
But still my problem is not sloved.
can anyone tell me what can be the reason?
Regards,
MayankHi Mayank,
Can you tell me how much entries you are getting in return when you run FM standalone.
there may be possiblility of huge amount of data returnning.
If u can give more details that will be great!!
Thanks -
How to get value for a global variable from an exel file?
Hallo all,
I am a beginner in LabVIEW and I have a problem in reading datas from an exel file . I would like to import a group of data with timestamps from exel file to a global variable. for ex. speed, acceleration and position of 4 different sensors to each of its global variable.
It will be very nice if anyone can give me some ideas.
Thanking you in advance...continued here
-
How to change a check box default from checked to unchecked?
Hi All,
I have a form, want to change a check box default from checked to unchecked.
from the layout, doulb click into property of this check box, did not see default setting for the box, where to change a check box default from checked to unchecked?
Thanks.hello friend,
->go to the property palette of ur check box
->under the functional set the property "check box mapping of other values"=unchecked
so...when u run the form then checkbox will unchecked.
but..at design time u can't see the effect of unchecked..
Regards
Chandan -
Failed to get value of the "Attachments" column after my Edit Form customization in share point 2010
Hi,
I am trying to customize the Edit Form in sharepoint 2010 .After my customization when i click on save it is giving below error.
Failed
to get value of the "Attachments" column from the "Attachments" field type control. See details in log. Exception message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) "
Every thing works fine if i uncheck the Attachments property of the custom list.But i would need user to allow add attachments to the list.Could you
help me to resolve this issue.Hi,
It would be better if you could provide the steps in details about how you customize your Edit Form.
Anyway, you can take a look at the similar thread below, there is someone stuck with the similar issue before:
http://social.technet.microsoft.com/Forums/en-US/d60e2a8e-575d-4b3c-959f-2a6a2b1364cf/failed-to-get-value-of-the-attachments-column?forum=sharepointcustomizationlegacy
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Getting values from a multi check box
I have a multi record block with on text item and check box... I ned to get the value when i click the checkbox to fetch the data from teh sql query..
For eg;
I have a multi record block with the values as A,B,C,D,E and if i check the checkbox for teh dept A,C,D then I should ge the return value as ('A','C','D') to fetch the data from the query
Requesting your help..Thanks in AdvanceCheckbox properties:
"Value when Checked" - 1
"Value when Unchecked" - 0
Create variable str varchar2(2000) in the package val
Create summerized item (sum of checkboxes)
When-Checkbox-Changed Trigger
if <checkbox> = 1
then
val.str := val.str||''''||<text_value||''',';
else
val.str := replace(val.str, ''''||<text_value||''',', NULL);
end if;
Pre-qwery trigger
if <sum of checkboxes> = 0
then
-- No selection => no qwery
raise form_trigger_failure;
elsif <sum of checkboxes> = 1
then
set_block_property(..., default_where, 'where ... = '||rtrim(val.str, ','));
else
set_block_property(..., default_where, 'where ... IN ('||rtrim(val.str, ',')||')');
end if; -
How to get values from an IFrame...
Hi everyone. I have come to a complete stop i my project and need to ask the following: How do i get the values from an IFrame.
Situation: I have a main.jsp page that contains an IFrame(data.jsp). Data.jsp is basically made up of a bunch of checkboxes. The state of these boxes(checked or unchecked) is determined and set by a JAVA program and the results are then stored in a StringBuffer. Contents of Stringbuffer could look something like this: <tr><input type='checkbox' name='box0' CHECKED></tr>.
The StringBuffer in then presented in the IFrame(data.jsp) like so: <%=res.getInfo()%>
The user should be able to check or uncheck the boxes from the main.jsp page then when pressing a submit button the changes should be stored in a DBase.
After the submit button have been pressed i go into my Servlet's doPost() method for some basic processing. This is were the problem starts. I usally use HttpServletRequest.getParameter(String param) to get values from the main.jsp page. But these checkboxes are stored in the IFrame, so how do i go about to retrieve the values from data.jsp from the doPost() method or in some other way maybe. This is quite urgent and i hope that i have explained the scenario in enough detail.
Any help would be greatlly apritiated.
Best regards
PeterHello
Just try this link
http://www.faqts.com/knowledge_base/view.phtml/aid/13758/fid/53
HTH -
Creating Variable with Replacement Path to get value from ANOTHER Variable
Hi all,
Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ?
First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
The following is from help.sap..com:
Replace with Characteristic Value
Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
Replace with Variable
Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
The following prerequisites need to be fulfilled:
Variable
● The variable must not be input-ready
● The variable must represent a single value
Source Variable
● The source variable must not be a hierarchy node variable
● The source variable must be input-ready
● The source variable must be available in the query
● The source variable must represent a single value or an interval
In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
Thanks,
Venkat.Hi Eve,
It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
We are using the scenario in a couple of places, and it works very well.
Hope this helps... -
How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM -
Jsp:usebean How to get value of an object from a bean
I am new to JSP and am struggling from past few days to solve a problem. Consider the below scenario
Class Book{
private String author;
public void setAuthor(String author)
public String getAuthor(){
return author; }
Class Rack{
private Book []books;
public []Book getbooks()
return books;
public void setbooks([]Book val){....}
Suppose Books gets populated only using Rack and I have Rack populate in my session, using jsp:usebean or any other tag how can I get value of author? Does using tag handle null value check of books, if books are not set by any chance?
Regards,
DhyanI got a way out to access the attribute, i feel it is
<jsp:usebean id="myRack" class="settings.Rack"/>
<c:foreach var="book" item="myRack.books">
</c:foreach>
I am not able to check if this is correct or not because myRack.books is not having any value set by me in the request scope. How do i get instance of Rack class set by another page in the current request? I can get the value if i use scriptlet but i dont want to use scriptlet.
I am continiously trying, if I get an answer, I shall post, else pls somebody guide. -
Rosetta refuses to be checked or unchecked in get info in Safari
Although it's unchecked but I think Safari thinks it's in rosetta mode on my external drive because I can't use QuickTime 7.2. Yes I made sure that I have the correct permissions too.
Yes in Safari, that's exactly what I'm saying.
I had to remove the QuickTime webplugin from my Internet plug-in folder on my external hard drive to get QuickTime 7.2 working in Safari again.
However my biggest mystery is why it doesn't let me check or uncheck “Open with Rosetta” option in Get Info in my Safari on my external hard drive. -
Working with iDVD on a project, there is a box in the lower left corner and sometimes another in the lower right corner. Scrolling over the one in the lower left corner, I get a message indicating that this box hides or shows the intro movie. I have checked and unchecked the box, but see nothing different in the project. Nor can I figure out what is meant by "intro movie." Can anyone explain?
Go to iDVD Help and type in Intro Movie, and you will get the full version of this:
Many iDVD themes have “motion menus” that include animations or video that loop, or play repeatedly, until the viewer clicks a menu button. Themes with motion menus have a motion icon in the lower-right corner.
In addition to background video, iDVD motion menus may also feature an intro, or short animation, that plays once before the part that loops. Other motion menus also include an “outro” that plays after the viewer clicks a button, serving as a transition between the menu and the selected content.
An example of an iDVD 6.0 theme with an intro and an outro is Reflection White Main. In this theme, the first drop zones appear in the intro, and the buttons and title appear just before the looping part of the background video. In the outro, everything flies offscreen after the viewer clicks a button.
iDVD provides tools for viewing these motion menus without going into preview mode, which is especially helpful when you are filling drop zones, and for turning the intro or outro off.
Here are ways to view and edit the background movie:
◼
Drag the diamond-shaped motion playhead along the scrubber bar (shown below), to view the background movie, stopping wherever you like.
(If you don’t see the motion playhead in iDVD, choose View > Show Motion Playhead.)
◼
Deselect the checkboxes at the left and right end of the scrubber bar if you don’t want to use the intro or outro, respectively, in your DVD menu.
The scrubber bar shows the intro and outro as shaded areas at the beginning and end.
You can also control the intro and outro from the Menu Info window. With your pointer over the menu (and with no buttons or text objects selected), press Command-I to open that window. Select or deselect the Intro and Outro checkboxes in the Background section of the window.
NOTE: If you drag your own movie to a motion menu background, the outro is automatically removed. To customize the background and keep the outro, use a still image in the menu background instead of a movie. -
How can i get value from tilelist?
I have created checkbox in itemRenderer that use for TileList
How can i get value (checked) from checkbox?"Marsza" <[email protected]> wrote in
message
news:g6r6vj$di0$[email protected]..
> Help me please....... T_T
Could you rephrase the question? -
How to get values against checkbox from table
hi all,
how can i get column values from database against multiple check boxes,
is there array in oracle to store multiple values?
i stored value of check boxes in column named checkid, in table named information.
now i want to get value of infoid against these chekid column where checkid=1 from this table and want to store infoid against it in another table named handing,
i want to do like this
-----Table handing-------
HID value1 value2
1 abc xyz
1 abc xyz
1 abc xyz
2 ccc ddd
3 bbb aaa
3 bbb aaa
i wrote code
DECLARE
var_id number;
CURSOR my_cur is
select infoid from information
where CHECKID = 1;
BEGIN
open my_cur;
fetch my_cur into var_id;
CLOSE my_CUR;
insert into handing
(hID,
value1,
value2)
values
(var_id,
:handing.value1,
:handing.value2);
COMMIT;
SAVED_ALERT;
end;
but i know that var_id data type is number it must be array, this codd does not works what should i do? should i use loop but how??? please help me.
regarsHello Wreesha,
you can enhance your chance to get an answer in several ways.
- Use {noformat}{noformat} Tags around your code examples to make them more readable and to preserve white space
- Provide CREATE and INSERTS for sample data (We still don't know how your information table looks like and what date it has)
- The expected result (also formatted)
- Don't use words like "immediate" or "asap". We don't get paid for answering questions.
Regards
Marcus
Maybe you are looking for
-
Disk Utility has Lost Connection with the Disk Managment Tool
Hi, For starters, this problem is not associated with the thread that Brian Z. has posted at the top of this forum. Having said that, here's my problem: I had installed Security Update 2006-003, and Quicktime 7.1. Permissions were repaired before and
-
Saving image in windows 8.1 using stream and bitmap encoder id
Hi var renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap.Render(myElementTree); var pixels = await renderTargetBitmap.GetPixelsAsync(); var picker = new FileSavePicker(); // Picker setup var file = await picker.PickSaveFileAsync
-
Problems with fresh XP installation
Hi there everyone! I have Lenovo 3000 N100 0768 and I recently had some problems with Windows so I had to format my C drive and make a fresh install of Windows XP Pro SP2. After I installed XP, my notebook is "another person" compared to what it used
-
Hi, I am working on the ALV report using objects (custom container and cl_gui_alv_grid). I have a drop down editable field in the alv. How can i capture the selected values in the dropdowns for all rows when a button is clicked on appln tool bar. Tha
-
I recently upgraded to lion 10.7 and lost my iWork apps. Can I reload iWork?
I recently upgraded to lion 10.7 and lost my iWork apps. Can I reload iWork?