Display radio button if number of rows in table equals 1
I'm having issues buy there maybe a simple script out there.
I have a table which can have up to four rows. If the table contains only one row, a radio button can be clicked to change the format/entry of cells within that row. I want to hide this radio button from a user if they have added more than one row to the table, and make it available again if they reduce the row count back to one.
I have everything else working fine (Radio buttons changing format of row, add/removing rows in the table using buttons, row count in first column)
Anybody got any ideas?
Cheers
Bobby
Place the below code..Change the field names as per your form.
if(Table1.Row1.instanceManager.count == 1)
RadioButton.presence = "visible";
else
RadioButton.presence = "hidden";
Thanks
Srini
Similar Messages
-
Two radio buttons in a single row of a table
Hi All,
Can we have two radio buttons in a single row of ADF TABLE.
My requirement is that i have a list of submitted records. The user can approve or reject the records.
All the records are displayed in the table. there will be two columns in the table(Approve , Reject) The user can approve the first record and reject the second record and so on....
using table selectOne we can select only one row. Using radio buttons how to select the multiple records, at the same time grouping is done between the two columns(radio buttons) in the tableHi,
I don't think that you can do this with radio buttons. The usecase is more for chackboxes. It would have been a usecase for radio buttons if there was a single column with 3 possible options
- pending
- approved
- rejected
Frank -
Is it possible to show the count of number or rows in table on the Home page Tab button.
Is it possible to show the count of number or rows in table on the Home page Tab button.
On home page there is a Tab called Count and I want to show the count on the right corner of this tab button.
Please helpCreate an application item. APP_HOME_COUNT.
Create an application process:
make the application process type "on new instance" if you only want this to run once
make it "on load before header" if you want to have the value set every page load
application process source:
select count(*) into APP_HOME_COUNT from <your table>
modify the tab name to reference the app item, maybe something like "Count(&APP_HOME_COUNT.)"
result should look like this "Count(5)"
Good Luck,
Tyson -
How to display Radio buttons with default selection on
Hi
I want to display Radio buttons using jsf
i have done it using
<h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
var="apartments">
<h:column>
<h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
<f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
</h:selectOneRadio>
</h:column>
inside a data table
now when i click some page i want to display the radio's with default radio button selected
also when i select one radio button and click on some command button
eg:<h:commandButton action="#{userBean.setSelectedApartment}"
the Radio button's Selection should not disappear
i have written a javaScript
function setSelectedApartment(oRadio)
oForm = oRadio.form;
elems=oForm.elements;
for(iIndex=0;iIndex<elems.length;iIndex++)
if(elems[iIndex].type == 'radio')
if(elems[iIndex].name != oRadio.name)
elems[iIndex].checked=false;
document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
To check which Raio button is Selected
How do i show the Default Selected button and How the selection should not disappear
Can any one suggest me links or the solution to this problem
Thank you
Geetanjalee-set the value binding expression of select items to a request scope bean
- on the page load event() ,do
setdefaultval("ur default value")
so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
--raju -
Searchin pattern in datbase table.(Number of rows in table :More than 3 cro
Actually i have a db table having 2 columns(columnA,time).db table has 70lac rows.I have to retireve all those values which are present min. 2 times in the interval of 10 minutes for a particular value of columnA. eg. columnA,time values are
{a,June-01-2011 10:13:12},{b,June-01-2011 10:14:12},{b,June-01-2011 10:15:12},{c,June-01-2011 10:16:12},{b,June-01-2011 10:17:12},{d,June-01-2011 10:18:12},{d,June-01-2011 10:25:12},{e,June-01-2011 10:26:12},{e,June-01-2011 11:38:12},{f,June-01-2011 10:39:12},{f,June-01-2011 10:43:12},{a,June-01-2011 10:44:12},{f,June-01-2011 10:51:12},{b,June-01-2011 10:51:12},{b,June-01-2011 10:53:12},{c,June-01-2011 10:54:12},{g,June-01-2011 10:55:12},{b,June-01-2011 10:56:12},{b,June-01-2011 10:57:12},{b,June-01-2011 10:58:12}
Then I have to retrieve following rows in output : {b,June-01-2011 10:14:12},{b,June-01-2011 10:15:12},{b,June-01-2011 10:17:12},{d,June-01-2011 10:18:12},{d,June-01-2011 10:25:12},{f,June-01-2011 10:39:12},{f,June-01-2011 10:43:12},{b,June-01-2011 10:51:12},{b,June-01-2011 10:53:12},{b,June-01-2011 10:56:12},{b,June-01-2011 10:57:12},{b,June-01-2011 10:58:12}
Is it related to data Mining? i have 3 crore rows in database table.I have to search such type of many patterns in my application.I have spent hours looking for tutorials on Google. However I cannot seem to find anything that holds the hand? try to be more clear, i'm in lack of ideas in this problem, even it sounds like a classic. Can oracle java data mining solve the problem?first of all thanks for reply, i will take care of your suggestion.
Number of rows in table : More than 3*10pow7(30 Milion rows)(But it can be more than 120 milion)
Actually i have to display all those rows which setisfy following criteria:( Specific value of column A should appear min 2 times in the interval of 10 minutes.)
for eg.
eg 1. {b,June-01-2011 10:14:12},{b,June-01-2011 10:15:12},{b,June-01-2011 10:17:12}{This set is appearing 3 times in the any interval of 10 minutes.}
EG2 {a,June-01-2011 10:13:12} is present only one time,so i dont want this rows in output.
EG# {e,June-01-2011 10:26:12},{e,June-01-2011 11:38:12} is present 2 times in db,but not in the interval of 10 minutes,so i dont want this rows as output.(t1=10:26:12,t2=11:38:12 difference is more than 10 minutes.)
In my eg. i specified only 2 columns but in actual scenario there will be 8-10 columns in table.This is only one pattern which i specified,but there are many more pattern which i have to search in db.As specified above in eg. was only one pattern,After fulfiling this pattern It has to pass many other pattern.and i want result should be retrieved very fast.
Please dont go into answer of above eg.Actually i want, what should be approach of such type of problems?
Is this problem related to oracle data mining and how?
Can data mining algorthms(Minimum Description Length ,Naive Bayes,Apriori,Decision Tree,Non-Negative Matrix Factorization ,Support Vector Machine...etc..) solve my problem?
Different-2 type of queries will be fired against this table?
if i am still not clear then let me know. -
How to set total number of rows of table control
Hi All,
I want to set the total number of rows of table control. I don't want to display the blank rows in table.
Regards,
ShrinivasNeed some fine tuning regarding the scrollbar height but it's a start
Unless this isn't what you asked for
Small number of rows
Large number of rows
Attachments:
PlayingWithTable.vi 17 KB -
Can we find the number of rows in table from the dump file
Hi All,
Can we find the number of rows in table from the dump file with out importing the table in to the database?
Please let me know ,if any option is there.
Thanks,
Kumar.<s>Try to import with option SHOW=Y, that should skip the number of rows which are into a table from a dump file.</s><br>
<br>
Nicolas.<br>
Oops, sorry, that doesn't show the number of lines...<br>
Message was edited by: <br>
N. Gasparotto -
How to count number of rows in table
can I get number of row in table except Count(*) in pl/sql
is there any other wayAlso posted and answered here
how to count number of rows in table
count(*) will be the fastest way. It is only slow if the table has a vast number of rows, in which case why do you need to know the tables has 73552436467721 rows and not 73552436467737 rows. It doesn't seem to be much use. Either that or you are counting them a lot, which again seems rather pointless. -
How to display Radio buttons?
Hi all,
I have a textfield say P18_No_OF_RADIOS.In this if the user enters 4 then immediately below the textfield four radio buttons needs to be displayed with editale textfields for radio buttons so that user could give values for each radio buttons.If 5 then 5 radio buttons...i.e with respect to the number radio buttons needs to be displayed!Is it possible?
~thanksHi sweetcha,
Check out following link
http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm
In this link check out function APEX_ITEM.TEXT and APEX_ITEM.RADIOGROUP
Of course the task which you have mentioned is very much feasible using this utility. Let me know if you find some issue in it.
Sunil Bhatia -
How to not display radio buttons in the select many shuttle component
Hi all,
af:selectManyShuttle is a true nice component.
For business / UI ergo reasons I've decided to not display the radio buttons before each item. There's no option to do that.
Is it possible ? How ?
Regards
Luc-Let say there are three ways:
1. You can use skinning mechanism,
2. You can include css file in .jspx page and then use it.
3. You can write css directly in .jspx page.
For skinning read documentation. For two other ways here is example code that should be inside metaContainer facet of document tag.
<f:verbatim>
<!-- CSS directly in jspx page -->
<style type="text/css">
.myClass{
background-color: #8888FF;
</style>
<!-- Include css file in jspx page -->
<link href="css/incStyle.css" rel="stylesheet" type="text/css" />
</f:verbatim>
{code} -
Displaying radio button on report output
hi folks,
how to display radiobuttons on the report output.
thanks,
santosh.Declare parameter as RADIOBUTTON
like
Single radio button
PARAMETER p_purch RADIOBUTTON.
Two radio button with same group.
PARAMETER p_sales RADIOBUTTON GROUP opt.
PARAMETER p_purch RADIOBUTTON GROUP opt.
Regards,
Mahesh
Edited by: Mahesh Guragol on Jan 23, 2008 4:12 PM -
Displaying radio buttons with dynamic subforms between 2 radio buttons
I am very new to Adobe Designer/Form Server and had the following question.
Our form is going to have the following display
Radio A
Radio B
Radio B1
List of text boxes
Radio B2
Radio C
Radio C1
List of text boxes
Radio C2
When the form is first displayed, user sees Radio A, Radio B and Radio C, right below each other. When the user selects Radio B, Radio B1 and Radio B2 should appear, and the Radio C should 'slide' down to accomodate Radio B1 and B2.
Similarly, when the user clicks Radio B1, List of text boxes should appear and Radio B2 should 'slide' down to accomodate those text boxes.
Is this possible? Can anyone please send me a sample code/design?
ThanksWell I got the form to work by copying the Options List Java Script code in change to docReady and adding if(this.rawValue==0). This produces the result that I need.
To clean this up I would like to put this code in a Script Object so I can use the same code in both change and docReady. I’m not a programmer so I’m not sure what additional code I have to put in the Script Object and what code I have to put in change and docReady to use the Script Object. Any assistance would be greatly appreciated.
Thank you. -
How to add the Row count(number of rows in table) in the table header?
Hi,
I'm having a table. This table is viewed when i click on a search button.
<b>On the table header it should dynamically display the number of rows in the table, i.e., the row count.</b>
How to do this? could any one explain me with the detailed procedure to achieve this.
Thanks & Regards,
SureshIf you want to show a localized text in the table header, you should use the <b>Message Pool</b> to create a (parameterized) message "tableHeaderText" like "There are table entries".
Next, create a context attribute "tableHeaderText" of type "string" and bind the "text" property of the table header Caption UI element to this attribute.
Whenever the table data has changed (e.g. at the end of the supply function for the table's data source node), update the header text:
int numRows = wdContext.node<TableDataSourceNode>().size();
String text = wdComponentAPI.getTextAccessor().getText
IMessage<ComponentName>.TABLE_HEADER_TEXT,
new Object[] { String.valueOf(numRows) }
wdContext.currentContextElement().setTableHeaderText(text);
Maybe you want to provide a separate message for the case that there are no entries.
Alternatively, you can make the attribute calculated and return the header text in the attribute getter.
Armin -
How to find number of rows in tables
Hi,
Can you please help me how to know the number of rows in all the tables databsae.
Thanks In Advance,Just found out that the behaviour changed in 11.2.0.2:
SQL> select * from v$version where rownum = 1
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
1 row selected.
SQL> select owner, table_name, column_value cnt
from (select owner, table_name, 'count(ora:view("' || owner || '","' || table_name || '"))' xq
from all_tables
where table_name in ('EMP', 'DEPT')),
xmltable (xq) order by owner, table_name desc
OWNER TABLE_NAME CNT
FLEET EMP 14
FLEET DEPT 4
MICHAEL EMP 14
MICHAEL DEPT 5
SCOTT EMP 14
SCOTT DEPT 4
STEFAN EMP 14
STEFAN DEPT 4
8 rows selected. -
Deleing large number of rows from table
Hi,
Consider tables A,B,C,D,E,F. all are having 100000++ records Tables B,C,D are dependent on table A (with foreign key constraint). When I am deleting records from all tables, table B,C,D are taking max 30-40 seconds while table A is taking 30-40 mins. All tables are having indexes.
Method I have used:
1. Created Temp table
2. then deleted all records from B,C,D,E,F for all records in temp table for limit of 500.
delete from B where exists (select 1 from temp where b.col1=temp.col1);
3. please suggest options for me why it is taking too much time for deleting records in table A.
Is there any thing that during deleting data from such master table, it is reffering to all dependent tables even if dependent data is not present ??? If yes then couls you please please suggest options for me to remove this ? I hope it won't go for CHECK constraints during deleting data.
Thanks,
Avinash
Edited by: user12952025 on Apr 30, 2013 2:55 AM
Edited by: user12952025 on Apr 30, 2013 2:56 AM
Edited by: user12952025 on Apr 30, 2013 2:57 AMuser12952025 wrote:
Hi,
Consider tables A,B,C,D,E,F. all are having 100000++ records Tables B,C,D are dependent on table A (with foreign key constraint). When I am deleting records from all tables, table B,C,D are taking max 30-40 seconds while table A is taking 30-40 mins. All tables are having indexes.What attribute of the Foreign key is specified? Is it On Delete Cascade? If yes, then in a way, deleting data fro Child tables is un-necessary. Only a Delete from parent shall suffice.
>
Method I have used:
1. Created Temp table
2. then deleted all records from B,C,D,E,F for all records in temp table for limit of 500.
delete from B where exists (select 1 from temp where b.col1=temp.col1);
3. please suggest options for me why it is taking too much time for deleting records in table A.
Is there any thing that during deleting data from such master table, it is reffering to all dependent tables even if dependent data is not present ??? If yes then couls you please please suggest options for me to remove this ? I hope it won't go for CHECK constraints during deleting data.One another way is to "Switch-Off" the relationship while deleting the data.
ALTER TABLE table_name
disable CONSTRAINT constraint_nameAnd then Delete the data from each of tables.
You did specify the number of rows in each table, it would have been better to mention the number of rows to be deleted.
It is not a hard-and-fast way, but would generally perform better, to copy the data (to be retained) from Parent Table into a Temporary Table, Drop Parent Table and rename teh Temporary table to parent table. Similar can be performed on Child tables.
You may then Enable the Foreign key constraints.
Maybe you are looking for
-
CRM To ECC Sold to party Communication Details Not populated in ECC
Hi All i have one problem when we create sales order through crmd_order we need to give sold to party and ship to party numbers suppose like 8000002166 for both and status i keep as order created and in partner tab i i seem all partner funtions(sold
-
Bootcamp - Seems there is no Support from Microsoft for Windows 8.1, once it is loaded. I Just got off the Microsoft Technical Help line (Australia ph132058) and they refused to help me because I am running Win 8.1 in Bootcamp. I have the latest Mac
-
Using EXIT command b/w IF and END IF
I have below query in the code , could you let me know why exit is used b/w IF and END IF . for a in 1..siteuse_code.count() LOOP IF cust.site_use_code = siteuse_code(a) THEN v_valid_site_use := 'Y'; exit; END IF; END LOOP; Thanks.
-
Copy from Sales Order to Production Order
Hi all, Is there a way to copy direct a Sales Order to Production Order (probably for item with BOM).I am using SAP B1 2005 Thanks in Advance
-
G40 error in Access ibm on start
when press this button on start up, show the error message: Authentication of system services failed. Press <F1> to setup, <Esc> to resume.