Facing Problem in Configuring Radio buttons
Hi,
I have a requirement as follows:
There are two fields:
A1 - Input field
R1 - Radio button field
Now I need to display the fields as mentioned below, in ONE ROW of left Panel
I to J K to M N to P
A1.label A1.field value R1 (2 radio buttons with no label)
When I am trying to do this, I am getting an error for Radio button field, saying:
Element must cover the entire panel
Error in property value
Could you please help me out to solve my issue..
Thanks for the needful..
Sandeep
Hi Dharma,
My Problem is solved..
Well the weird part is, when I click on Apply button, it has shown the errors as mentioned above. I thought, it won't allow me to save the configuration. However as soon as click on SAVE button, all the config changes have been updated successfully.
I am not sure, why SAP is showing those errors, when we are able to save the config successfully....
Thanks for your reply...
Cheers
Sandeep
Similar Messages
-
FAcing problems in configuring multiple macs(imac and mac book) pro) on time capsule
FAcing problems in configuring multiple macs(imac and mac book)
You may find these links useful:
http://pondini.org/TM/Time_Capsule.html
http://pondini.org/TM/4.html
Ciao. -
i am facing problem when configuring listener.ora and tnsnamess.ora in listener side it is showing The listener supports no services The command completed successfully and in when i cross check with listener from tns it is showing the error
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
here is my listener file
lsn =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.125.128)(PORT = 1575))
#ADR_BASE_LISTENER = /u01/app/oracle
(SID_LIST_LISTENER=
(SERVICE_NAME=kull)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
tnsnames.ora
to_lsn=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1575))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kull )
my database name is kull
please somebody helpBiswaranjan wrote:
i have two database one is kull and another is kk
i configured listener.ora in kull
and tnsnames.ora in kk
when i am running lsnrctl start listener in database kull
This makes no sense. You don't configure a listener nor a tnsnames.ora "in a database". I hope this is just a language issue and not reflective of a fundamental misunderstanding of how tns works.
read: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ Help! I can’t connect to my database
read: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ Help! I can’t connect to my database (part duex)
it is showing the message
Alias lsn
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 05-JUL-2013 19:08:06
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/db_1/log/diag/tnslsnr/server1/lsn/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1575)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server1)(PORT=1575)))
The listener supports no services
The command completed successfully
and in another database in kk when i am giving the command tnsping to_lsn
it is giving this message
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1575)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = kull)))
OK (0 msec)
but when i am cross check sqlplus system/manager@ to_lsn
it is giving the following error
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor -
i have just downloaded a new version of Iphone software on my iphone 3 . but i'm facing problem in configuring it . also tried to configure it with itunes but it always says that there's no sim card in your phone and previously i was using same sim without any problem . need solution . kindly help .
Hello ashharuddin,
Thank you for using Apple Support Communities.
For more information, take a look at:
iPhone: Troubleshooting No SIM
http://support.apple.com/kb/ts4148
Toggle Airplane mode On and Off.
Try turning iPhone off and then on again.
Check for a carrier settings update. Tap Settings > General > About. If an update is available, a prompt will appear.
Remove the SIM Card and verify that it is a valid, carrier-manufactured SIM. Also verify that it is not damaged, worn, or modified. Then reinsert it.
Restore the iPhone.
Have a nice day,
Mario -
Facing problem in configuring in IIS server
Dear all,
I am trying to configure my oracle application developed in form6i in IIS server making 3 teir arch.
SO please here i am facing problem to do it.
So kindely guide me .
thanks & regards.Thanks,
But can you tell me where cam I make the changes in the property like AlertActionAllowExternalEmails = true. I am ot able to find it out. -
Problem in activating Radio buttons and need to hit save button
Hi Gurus,
I added custom fields in CJ06,CJ07,CJ08 T-CODES. As per user requirement , I created radio button fields in sub screen and user selects radio buttons FROM A1 TO A3 fields and also user wants to click "SAVE button" in that subscreen, that fields data should store in database table. Is there any Note to implement for this and suggest me how to proceed further.
Thanks,
Chiru.
Edited by: chiranjeevi Rao on Apr 1, 2010 2:24 PMHi Chandrasekhar,
Can you explain, in detail.
Inside the EXIT, EXIT_SAPLIMR0_001, I am writing logic to insert or modify the Z-Table for custom screen.
Here, I need to make that SAP Updates ie Triggers the "SAVE" Button, so that the logic gets executed for updating the Z-Table.
Motto: is to have single LUW or SAVE Button.
Thanks.
Vijayanand.
Message was edited by:
Vijayanand Annamalai -
Facing problem in configuring mail server in BAM server
Hi All,
I want to configure my BAM server to be able to send emails. For that I made the required changes in Email Driver Properties in usermessagingdriver-email(bam_server). Also I made the following changes in BAM Server Properties in OracleBamServer(bam_server):-
Application URL : http://<server ip>:<bam_server1 port>
Outbound Email Account: ****@<host name of the mail server>
and Data Source JNDI for BAM
Do I need to configure more changes and if then could anyone please tell me what other configuration has to be made in order to send emails from my BAM server.
Thanks in AdvanceThanks,
But can you tell me where cam I make the changes in the property like AlertActionAllowExternalEmails = true. I am ot able to find it out. -
Radio button problem in jdeveloper.
Hello all..
I am new to Jdeveloper and infact to CSS and stuffs. In a fix now regarding <tr:selectOneRadio> styling.
For brevity..
<tr:selectOneRadio styleClass="radioClass" contentStyle="font:25px bold;">
the above is the code i have,
but the problem is the radio button font is not changing even after giving separate style class.
Can anyone give a solution, might be a simple one, but it ll be wonders lot for me!! [:)]
First post in the forum, hope to get a sol..
Appreciate ur help.. Thank you.Hi brano... thanks for quick response...
The issue still exists here..
Actually this perticular line contentStyle="font:25px bold;* inside <tr:selectiononeradio> seem not to render any effect for me.
<tr:panelFormLayout styleClass="id">
<p>
<tr:outputLabel inlineStyle="position:relative; font:35px bold;"
value="Claim number:"/>
<tr:inputText contentStyle="height:45px; font-size:35px;"
columns="25"></tr:inputText>
</p>
<p>
<tr:outputLabel inlineStyle=" font:35px bold; position:relative;"
value="Claim on my policy:"/>
<span style="font:20px bold;">
<tr:selectOneRadio layout="horizontal" contentStyle="font:25px bold;"
id="radioYN">
<tr:selectItem label="Yes" id="Y"
value="Yes"/>
&&nbsp;&&nbsp;
<tr:selectItem label="No" id="N" value="No"/>
</tr:selectOneRadio>
</span>
</p>
<p>
<tr:commandButton inlineStyle="width:300px; font-size:30px;"
text="continue"/>
</p>
<p></p>
</tr:panelFormLayout>
check out the code for ref..
Thank you... -
Problem with Approve & Reject buttons text
Hi Team,
Once we have configured UWL in EP 7.0 & backed is SRM 7.0, facing problem in Approve & Reject Buttons text.
Instead of showing Approve & Reject text on Buttons, it showing text like this com.sap.pct.srm.core.action.oldwfl.approve & com.sap.pct.srm.core.action.oldwfl.reject
Can you please help me on this?
Thanks in advance.
Thanks & Regards
Sandeep.Sergio, Thanks for your reply.
It's happening for all the task items. Pls find out XML file here. here i pasted some of the code from my XML, because it is not taking full XML code here.
<Action name="com.sap.pct.srm.core.action.oldwfl.approve" groupAction="" handler="FunctionModuleActionHandler" referenceBundle="com.sap.pct.srm.core.approve" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="toolbar=no,menubar=no,location=no,directories=no,resizable=yes">
<Properties>
<Property name="FunctionModule" value="/SAPSRM/FU_WF_RFC_DECISION"/>
<Property name="IV_DECISION" value="APPROVED"/>
<Property name="IV_APF_VERSION" value="0500"/>
<Property name="IV_WIID" value="${item.externalId}"/>
<Property name="IV_MODE" value="APPROVAL"/>
<Property name="FunctionModule" value="/SAPSRM/FU_WF_RFC_DECISION"/>
<Property name="display_order_priority" value="50"/>
</Properties>
</Action>
<Action name="com.sap.pct.srm.core.action.launchWD.conf.detail" groupAction="" handler="ObjectNavigationLauncher" referenceBundle="com.sap.pct.srm.core.launch.WDCLFPOIF" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="toolbar=no,menubar=no,location=no,directories=no,resizable=yes">
<Properties>
<Property name="Operation" value="detail"/>
<Property name="ObjectValue" value="a=b&sapsrm_botype=${item.BOTYPE}&sapsrm_boid=${item.BOID}&System=${item.systemId}&sapsrm_wiid=${item.externalId}&sapsrm_mode=${item.BOMODE}&sapsrm_portalbaseurl=<Portal.BaseURL>&sapsrm_pcdlocation=<IView.ID>"/>
<Property name="ObjectName" value="conf"/>
<Property name="System" value="SAP_SRM"/>
<Property name="display_order_priority" value="30"/>
</Properties>
</Action>
<Action name="com.sap.pct.srm.core.action.launchWD.oldwfl.conf.display" groupAction="" handler="ObjectNavigationLauncher" referenceBundle="com.sap.pct.srm.core.launch.WDCLFPOIF" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="toolbar=no,menubar=no,location=no,directories=no,resizable=yes">
<Properties>
<Property name="Operation" value="detail"/>
<Property name="ObjectValue" value="a=b&sapsrm_botype=BUS2203&System=${item.systemId}&sapsrm_wiid=${item.externalId}&sapsrm_mode=DISPLAY&sapsrm_portalbaseurl=<Portal.BaseURL>&sapsrm_pcdlocation=<IView.ID>"/>
<Property name="ObjectName" value="conf"/>
<Property name="System" value="SAP_SRM"/>
<Property name="display_order_priority" value="30"/>
</Properties>
</Action>
<Action name="com.sap.pct.srm.core.action.launchWD.OldWFL" groupAction="" handler="ObjectNavigationLauncher" referenceBundle="com.sap.pct.srm.core.launch.WDCLFPOIF" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="toolbar=no,menubar=no,location=no,directories=no,resizable=yes">
<Properties>
<Property name="Operation" value="oldwfl"/>
<Property name="ObjectValue" value="a=b&System=${item.systemId}&sapsrm_wiid=${item.externalId}&sapsrm_portalbaseurl=<Portal.BaseURL>&sapsrm_pcdlocation=<IView.ID>"/>
<Property name="ObjectName" value="uwl"/>
<Property name="System" value="SAP_SRM"/>
<Property name="display_order_priority" value="30"/>
</Properties>
</Action>
<Action name="com.sap.pct.srm.core.action.launchWD.conf.display" groupAction="" handler="ObjectNavigationLauncher" referenceBundle="com.sap.pct.srm.core.launch.WDCLFPOIF" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="toolbar=no,menubar=no,location=no,directories=no,resizable=yes">
<Properties>
<Property name="Operation" value="detail"/>
<Property name="ObjectValue" value="a=b&sapsrm_botype=${item.BOTYPE}&sapsrm_boid=${item.BOID}&System=${item.systemId}&sapsrm_wiid=${item.externalId}&sapsrm_mode=DISPLAY&sapsrm_portalbaseurl=<Portal.BaseURL>&sapsrm_pcdlocation=<IView.ID>"/>
<Property name="ObjectName" value="conf"/>
<Property name="System" value="SAP_SRM"/>
<Property name="display_order_priority" value="30"/>
</Properties>
</Action>
Thanks & Regards
Sandeep. -
Radio buttons don't uncheck when another button is checked
I have this strange problem with my radio buttons. I was taught that when a radio button is checked any other button that is checked becomes unchecked, but that's not what is happening here. This form is part of a php data base; therefore, the value of the name attribute in the form has to correspond with the value of the name attribute in the php file. It appears as long as I keep the default value in the name attribute in the form the buttons will uncheck when another is checked. But I can't keep the default name. Any suggestions? Here is the code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Homework 7</title>
<script type="text/javascript">
function edits()
if(document.getElementById("name").value=="")
alert("Please enter your whole name.")
return false;
if(document.getElementById("jarreau").checked=="")
alert("Please enter your whole name.")
return false;
else if(document.getElementById("aretha").checked=="")
alert("Please enter your whole name.")
return false;
else if(document.getElementById("withers").checked=="")
alert("Please enter your whole name.")
return false;
else if(document.getElementById("joel").checked=="")
alert("Please enter your whole name.")
return false;
else if(document.getElementById("warwidk").checked=="")
alert("Please enter your whole name.")
return false;
if(document.getElementById("rate").value=="")
alert("Please enter your whole name.")
return false;
if(document.getElementById("email").value=="")
alert("Please enter your whole name.")
return false;
else return true;
</script>
<style type="text/css">
body {
background-color: #F9F;
h1 {
font-size: xx-large;
color: #FFF;
</style>
</head>
<body>
<h1 font color="#fff">Old School Concert</h1>
<table width="87%" border="0" cellspacing="0" cellpadding="2">
<tr>
<th align="left" width="19%" scope="col">Al Jarreau</th>
<th align="left"width="13%" scope="col">Aretha Franklin</th>
<th align="left"width="16%" scope="col">Bill Withers</th>
<th align="left"width="19%" scope="col">Billy Joel</th>
<th align="left"width="19%" scope="col">Dionne Warwick</th>
</tr>
<tr>
<td><img src="al jarreau.jpg" width="247" height="204" alt="Al Jarreau" /></td>
<td><img src="images/aretha franklin.jpg" width="198" height="204" alt="aretha franklin" /></td>
<td><img src="Bill Withers.jpg" width="192" height="204" alt="Bill Withers" /></td>
<td><img src="billy joel.jpg" width="225" height="204" alt="Billy Joel" /></td>
<td><img src="Dionne Warwick.jpg" width="176" height="204" alt="Dionne Warwick" /></td>
</tr>
</table>
<h2><font color="#FFFFFF">In order to keep bringing you the best in old school legends please fill out this brief survey.</font></h2>
<form name="service" method="post" action="concert.php" />
<label for="fname">First name:</label>
<input name="name" type="text" id="fname" size="20" maxlength="15" />
(optional)
<br />
<label for="lname">Last name:</label>
<input name="name" type="text" id="lname" size="20" maxlength="15" />
(optional)<br />
<label>Which performance you liked best:</label><br />
<p>
<label>
<input type="radio" name="jarreau1_0" value="radio" id="RadioGroup1_0" />
Al Jarreau</label>
<br />
<label>
<input type="radio" name="aretha1_1" value="radio" id="RadioGroup1_1" />
Aretha Franklin</label>
<br />
<label>
<input type="radio" name="withers" value="radio" id="RadioGroup1_2" />
Bill Withers</label>
<br />
<label>
<input type="radio" name="joel" value="radio" id="RadioGroup1_3" />
Billy Joel</label>
<br />
<label>
<input type="radio" name="warwidk" value="radio" id="RadioGroup1_4" />
Dionne Warwick</label>
</p>
<br />
<label for="rate">On a scale of 1 to 10 how would you rate this concert?</label>
<br />
<input name="rate" type="text" id="rate" size="5" maxlength="2" />
<label for="email"><br />
Your email address:</label>
<br />
<input name="email" type="text" id="email" size="45" maxlength="45" />
</p>
<p>
<label for="comment">Your comments:</label>
<textarea name="comment" cols="50" rows="5" id="comment"></textarea>
</p>
<input type="button" value="submit" name="" id="" onclick="edits()" />
</form>
</body>
</html>You are completely right. Part of my problem is how to ask the question.
The buttons now uncheck. When I submit the form I'm suppose to get a php
output that shows all the fields completed. And I also need for Dreamweaver
to make an alert message if no button is checked? Is that possible? Or do
I have to use javascript code for that? So far the form won't submit until
I clean up javascript if else statements to create an alert box if a button
is not checked or false. But I don't need an alert message for each button,
right? Just for the radio group? So that means I have to give the radio
group a name, right? But I don't see a way to do that so far. Any
suggestions. Oh, here the link:
http://ciswebs.smc.edu/cis54/tyson_schweidel/concert.htm -
Required Radio Button Colored Red in a Dynamic Form
Hi again
Okey, like the headline said, I've got some problems with required radio buttons right now. In static fields they have a border when they are required.
In dynamic forms they neither have, nor get any border.
I tried already:
1) to make a border with script (unfortunatelly it takes in the text too and is much smaller than the normal required border and will include the text => looks really ugly)
2) to paint a border with lines (unfortunatelly the box itself overlaps the border only for 0,02mm (couldn't fix it) and it looks damn ugly )
3) Cut the text out, write it in a textfield instead and border the complete box (Best solution right now... though a lot of work and won't look very good either)
Since I needed to change 25 of my forms to dynamic and all of them have some of those required radiobuttons in it, I would appreciate ANY solution that would look a little bit acceptable.
Anybody has any other idea how to get such a border (or anything similar) for these boxes?
Thanx already
Lisa
(PS.: I only use quadratic check-fields
PPS.: Sorry to bother you in the last time that much... I really try )Sorry to say, but I think you got me a bit wrong.
It's not the radiobuttons that got in my way, it is the way they are displayed. (A field to enter information and a text. If you refer with a colour in it and it is in a dynamic form both, the input part and the text will be highlighted.)
I wanted to accomplish the following thing:
Make some kind of radiobutton or checkboxfield where only the little input part is red highlighted (with a border or something).
But neither in radiobuttons nor in checkboxes it works, does it?
Therefor it is no use in using checkboxes I think. If I do wrap those into subforms and highlight those again, not only the input part will be highlighted but also the following text. (That's why I don't understand how subforms could be of any use )
Right now I seperated the input part from the text and just highlighted the input field. Though it still doesn't look as good as I would like it to do.
If I got you wrong plz say so I am a bit tired right now and my English gets worse ;D
I'll have a closer look at those pages you suggested me on tuesday. (I'm a bit in trouble right now)
Thanx for providing me with information though
I'm allways greatfull to learn some new things ;D
(Silly people (like me) just can't learn enough so they could hide how dump they are ;D )
Byebye
Lisa -
Assign values dynamically to radio button
I am creating an online test. I will need to display answer choices from the table. I created radio buttons for these answer choices and I could put the labels dynamically by using
Set_Radio_Button_Property('block_name.radio_group_name', 'radio_button1',LABEL,cursor_name.field_name);
Now I have problem to set radio button values dynamically. Should I use when_radio_changed event?
Any help would be appreciated.I really appreciate your help.
My intention is to display the test on the screen.
That means I need to display all questions and answer
choices for each one dynamically. Based on the answer
choice type (radio button or checkbox or drop down
etc) I will need to assign the values to them and
display on the screen. So far I could display
questions and answer choices on the screen and set
the label property for each radio button.
Do you know what is the syntax to assign value to
each radio button? First I will need to store user's
answers in a table. For that I need to know what
answer they selected. I wasn't sure how to do that.
ThanksAs I said, the values cannot be assigned dynamically. Thus you will store the answers in code (perhaps in an array?) and your radio buttons will be 1,2,3,4 etc.
In WHEN-RADIO-CHANGED you can retrieve the value from the array using the radio button value. Then store that value.
e.g. Your screen shows
What is the sound of one hand clapping?
o Blue
o Yes
o 12
These labels will be set dynamically, but the values for the radio buttons will be 1,2,3. If they pick "Yes", your radio button will be 2. You then get the value you really want from answer_array(2), where you put it when you retrieved the question details. Then you insert that into your users_answers table. -
Problem in configuring Apache Web Server v2.2
Hi,
I am facing problem in configuring apache web server with tomcat 7.0. I want to configure the web server in such a way that I can access the application only using the localhost(without appending the port to it). Ex I want to access the application through "http://localhost" instead of "http://localhost:8080".
I tried to configure it using the concept of vertical clustering and "load balancer", but failed to do that.
Can anyone please tell me steps to configure apache web server with tomcat or provide any useful link / urls to do that one.
Thanks in advanceThe only way you can achieve it is by running the web server to listen on port 80
Please change the port in your httpd.conf file for the webserver and restart it.
If any other processes are running/using on port 80 on that machine, then please stop them, otherwise you will not be able to achieve your requirement.
Arun -
Hi All,
I have some problem with the radio button concept
i will tell u what i did so that u can help me out ,
I have an emp table , which has deptno, two radio buttons(name of radio button : Enter Directly", "Enter thro Database",), name , salry , the deptno is an lov and the there are two radio buttons which has the yes or no , so that the user can enter the details and the condition is such,
when the lov button is pressed , it will populate the dept no such as ,"10","20","30"etc...
when the deptno "10" is selected, both the radio buttons gets enabled , so that the user can choose the mode of entering , if the user selects the mode as enter thro Database , then the fields name and salry should be disabled, whereas when the user select the the vive versa radio button it should enable both the fiields , so that the user can enter via this form it self
when the dept 20 is selected the first radio button gets diabled
i have tried many steps , but could not do what i need , excatly
plz do tell me how can i solve this
can any one send me a sample code , so that i can undersatnd wat is to be done
eagerly waiting for u r reply
ByeHi Raja ,
Sending u the code ...
DECLARE
CURSOR C1 IS
SELECT DEPTNO
FROM DEPT
WHERE DEPTNO = :DEPTNO;
V_DEPTNO DEPT.DEPTNO%TYPE;
BEGIN
IF :DEPT IN (10) AND :MODE = 2 THEN
Set_Radio_Button_Property('MODE','M_MANUAL',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property('MODE','M_AUTOMATIC',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('NAME',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property('MODE','M_MANUAL',ENABLED,PROPERTY_TRUE); Set_Radio_Button_Property('MODE','M_AUTOMATIC',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('NAME',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('NAME',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',NAVIGABLE,PROPERTY_TRUE);
ELSIF :EFNG_FORM_TYPE IN (10) AND :MODE = 1 THEN
SET_ITEM_PROPERTY('NAME',ENABLED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('SEX',ENABLED,PROPERTY_FALSE);
ELSIF :EFNG_FORM_TYPE IN (20,30) THEN
: MODE := 2;
Set_Radio_Button_Property(‘MODE','M_MANUAL',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property(‘MODE','M_AUTOMATIC',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(‘NAME’,VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(SEX',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property(MODE','M_MANUAL',ENABLED,PROPERTY_FALSE); Set_Radio_Button_Property(MODE','M_AUTOMATIC',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY(‘NAME',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY(‘NAME’,NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',NAVIGABLE,PROPERTY_TRUE);
END IF ;
IF C1%ISOPEN THEN
CLOSE C1;
END IF;
OPEN C1;
FETCH C1 INTO V_DEPTNO;
IF C1%NOTFOUND THEN
CLOSE C1;
END IF;
CLOSE C1;
END; -
Hello
I am having some trouble adding UI controls dynamically. Mostly with radio buttons.
Here is an example that demonstrates my problem:
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationPolicy="all"
>
<fx:Script>
<![CDATA[
import mx.containers.Form;
import mx.containers.Panel;
import mx.controls.Label;
import mx.controls.NumericStepper;
import mx.controls.RadioButton;
private var theChar:String = "B";
protected function btnAdd_clickHandler(event:MouseEvent):void
var theForm:Form = new Form();
theForm.label = theChar;
//1. Label
var myLabel:Label = new Label();
myLabel.text = "My Label";
myLabel.width=120;
theForm.addChild(myLabel);
//2. Numeric Stepper
var myNumStepper:NumericStepper = new NumericStepper();
myNumStepper.id = "numPointHigh" + theChar;
myNumStepper.name = "numPointHigh" + theChar;
myNumStepper.minimum = 0;
myNumStepper.maximum = 120;
myNumStepper.width = 50;
myNumStepper.height = 30;
theForm.addChild(myNumStepper);
//3. radio button
var myRadioButton:RadioButton = new RadioButton;
myRadioButton.id = "myRadioButton" + theChar;
myRadioButton.name = "myRadioButton" + theChar;
myRadioButton.label = "my radio button";
myRadioButton.selected = true;
theForm.addChild(myRadioButton);
//4. Panel
var thePanel:Panel = new Panel();
thePanel.width = 300;
thePanel.height = 475;
thePanel.name=theChar;
thePanel.title = "My Profile Panel";
thePanel.setStyle("backgroundColor", "blue");
//add the form to the panel
thePanel.addChild(theForm);
//add the Panel to the list control
myList.addChild(thePanel);
protected function btnClear_clickHandler(event:MouseEvent):void
var numChildren:Number = myList.numChildren;
for(var i:Number=numChildren - 1; i > -1; i--){
myList.removeChildAt(i);
]]>
</fx:Script>
<mx:VBox width="100%">
<mx:List id="myList" />
<mx:Button id="btnAdd" label="Add a panel" click="btnAdd_clickHandler(event)" color="black"/>
<mx:Button id="btnClear" label="Clear" click="btnClear_clickHandler(event)" color="black" />
</mx:VBox>
</s:Application>
^ Run that. Click the "Add a panel" button. Then click "Clear". Then click the "Add a panel" button again. You will see the error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/getChildIndex()
at mx.core::Container/getChildIndex()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core \Container.as:2833]
at mx.containers::Panel/getChildIndex()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntainers\Panel.as:1174]
at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:600]
at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:611]
at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:611]
at Array$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at mx.controls::RadioButtonGroup/http://www.adobe.com/2006/flex/mx/internal::addInstance()[E:\dev\4.0.0\frameworks\projects \framework\src\mx\controls\RadioButtonGroup.as:465]
at mx.controls::RadioButton/addToGroup()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\c ontrols\RadioButton.as:574]
at mx.controls::RadioButton/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\controls\RadioButton.as:514]
at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
I do not understand why I cannot re-add the radio button? If you comment out the code for the radio button (comment section #3.) you can re-add the panels easily. It is only happening when I have radio buttons being added to the form/panel.
Why is this happening and how do I fix it? Why is this only happening to radio buttons? I thought I had this fixed^ well, okay, but that's not the problem.
here, i removed list and replaced with Panel. same problem on the radio buttons.
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:containers="com.dougmccune.containers.*"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationPolicy="all"
>
<fx:Script>
<![CDATA[
import mx.containers.Form;
import mx.containers.Panel;
import mx.controls.Label;
import mx.controls.NumericStepper;
import mx.controls.RadioButton;
private var theChar:String = "B";
protected function btnAdd_clickHandler(event:MouseEvent):void
var theForm:Form = new Form();
theForm.label = theChar;
//1. Label
var myLabel:Label = new Label();
myLabel.text = "My Label";
myLabel.width=120;
theForm.addChild(myLabel);
//2. Numeric Stepper
var myNumStepper:NumericStepper = new NumericStepper();
myNumStepper.id = "numPointHigh" + theChar;
myNumStepper.name = "numPointHigh" + theChar;
myNumStepper.minimum = 0;
myNumStepper.maximum = 120;
myNumStepper.width = 50;
myNumStepper.height = 30;
theForm.addChild(myNumStepper);
//3. radio button
var myRadioButton:RadioButton = new RadioButton;
myRadioButton.id = "myRadioButton" + theChar;
myRadioButton.name = "myRadioButton" + theChar;
myRadioButton.label = "my radio button";
myRadioButton.selected = true;
theForm.addChild(myRadioButton);
//4. Panel
var thePanel:Panel = new Panel();
thePanel.width = 300;
thePanel.height = 475;
thePanel.name=theChar;
thePanel.title = "My Profile Panel";
thePanel.setStyle("backgroundColor", "blue");
//add the form to the panel
thePanel.addChild(theForm);
//add the Panel to the list control
myContainer.addChild(thePanel);
protected function btnClear_clickHandler(event:MouseEvent):void
var numChildren:Number = myContainer.numChildren;
for(var i:Number=numChildren - 1; i > -1; i--){
myContainer.removeChildAt(i);
]]>
</fx:Script>
<mx:VBox width="100%">
<mx:Panel id="myContainer" />
<mx:Button id="btnAdd" label="Add a panel" click="btnAdd_clickHandler(event)" color="black"/>
<mx:Button id="btnClear" label="Clear" click="btnClear_clickHandler(event)" color="black" />
</mx:VBox>
</s:Application>
Any idea why radio buttons causing this to happen? If I comment out the radio button, this works fine. This is really baffling me.
The exception is thrown when the dynamically created panel (thePanel) is added to the main Panel (myContainer):
myContainer.addChild(thePanel); <--- causes the exception!
^ Why would radio buttons make a difference on "thePanel"?? How can I enforce parent-child relationship, explicitly? .parent is read-only
Maybe you are looking for
-
Application stuck under menu toolbar
An application I'm running (Filezilla FTP client) is stuck under the mac menu toolbar. I can't grab the toolbar of the application to move it or access what I need to access. I've researched this issue and other people have had the same problem, but
-
Hi, Which report will show the material cost, Equipment cost, Resources cost & Activity cost for the Project. Prashant
-
Could any one give me direction towards creating asset with REST/javascript
could any one give me direction towards creating asset with REST/javascript?
-
View high res images on iPhone?
I'd like to view high res images of subway maps on my iPhone as I used to on my BlackBerry. However, iTunes seems to pare down the resolution when syncing them, making them useless. Suggestions?
-
Hi :-) I have installed the last Update to Photoshop CS6 13.0.4... Now I can't increase/decrease the Brush Size in the Liquify-Dialog anymore (before I installed the update, it works fine with alt+crtl and drag)... If I press alt+crtl, the "Cancel"-B