Parameters with radiobutton
Hi,
I want to use only one radiobutton on the selection screen.
I have declared the parameters statement like this.
PARAMETERS: p_screen RADIOBUTTON GROUP rad1.
When I try to execute the program it is giving error as
'The radiobutton group "RAD1" contains only one PARAMETER'.Can anyone tell me what would be the reason for this.
Regards,
Hema
It is meaning less to use single Radio Button in
selection Screen. In this case we should have use
Check Box.
We can create single radio Button in selection screen but don't use it.
The following way we can create it. Here we can create 2 Radio Button but we used single
and other is Disable mode.
SELECTION-SCREEN BEGIN OF...............
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) text.....
PARAMETERS: p_rad1 RADIOBUTTON GROUP rad1 .
PARAMETERS: p_rad2 RADIOBUTTON GROUP rad1 .
SELECTION-SCREEN..........
SELECTION-SCREEN END OF..............
DISABLE ONE RADIO BUTTION **
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'P_RAD2'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
[ Don't Use it ]
If helpfull...Rewards point
Regards,
Sk Kamruzzaman
Similar Messages
-
How to define parameters with radio button
HI
How to define parameters with radio button, but that radio button should display in front of the variable name not after variable name. and under that radio button variable I hve to define parameters, select-options and some other radiobutton varibles.
I don't know how to paste figures here, otherwise i will provied u the figure for more details.
Regards.PARAMETERS : r1 RADIOBUTTON GROUP radi.
Go to --> text elements --> selection text
R1 <your text>
You can change the program selection screen lay out in screen painter (se51) .
screen number for your selection screen is 1000.
Regards,
Santosh reddy
Edited by: Santosh Reddy on Dec 9, 2008 11:21 AM -
Changing fields with radiobuttons
Hi all!
I have a group of radiobuttons in a selection screen and when a radiobutton is chosen I want some output fields on the selection screen to be changed right away. Does anyone know how to solve this?
Thanks
MagnusHi ,
Try this code.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-100.
PARAMETERS: rad_locl RADIOBUTTON GROUP main
MODIF ID aa USER-COMMAND abc
DEFAULT 'X',
rad_appl RADIOBUTTON GROUP main MODIF ID aa .
SELECTION-SCREEN END OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-101.
PARAMETERS: p_lcl TYPE rlgrap-filename MODIF ID bb.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-101.
PARAMETERS: p_appl(150) MODIF ID cc.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN ON P_LCL.
MESSAGE I032(ZI) WITH 'TEST'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lcl.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = ''
IMPORTING
file_name = p_lcl.
AT SELECTION-SCREEN OUTPUT .
*Selection by local file
IF rad_locl = 'X'.
PERFORM deactivate USING 'CC'.
ELSE.
PERFORM deactivate USING 'BB'.
ENDIF .
*& Form deactivate
* text
* -->P_0041 text
FORM deactivate USING value(p_grp).
LOOP AT SCREEN.
screen-active = '1'.
IF screen-group1 = p_grp.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
Raghav -
How put visible a parameters using RADIOBUTTONS
Hello:
I would like to ask one favor , i am trying to put a parameter in a visible mode, when i select a specific radiobutton.
i am using a selection-screen and when i execute the program my radiobuttons are appears well, but i need to select one of the radiobuttons and after of that i need to present the correspondin parameters for the radiobutton selected before.
does anybody knows have to do that?
I making the validations of the radiobuttons area using the AT SELECTION-SCREEN ON RADIOBUTTON GROUP opc. and then i ask for what of the radio was selected, and after of that i need to present the parameter.
thanks a lot for you helpHi,
Use the below code.
tables: pa0000, pa0001.
parameters: p_rad1 radiobutton group rad1 default 'X' user-command rusr,
p_rad2 radiobutton group rad1,
p_rad3 radiobutton group rad1,
p_rad4 radiobutton group rad1,
p_rad5 radiobutton group rad1.
selection-screen: begin of block blk1 with frame.
parameters: p_pernr like pa0000-pernr modif id ABC,
p_stat2 like pa0000-stat2 modif id DEF,
p_werks like pa0001-werks modif id GHI,
p_persg like pa0001-persg modif id JKL,
p_persk like pa0001-persk modif id MNO.
selection-screen: end of block blk1.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
IF p_rad1 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'DEF'.
IF p_rad2 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'GHI'.
IF p_rad3 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'JKL'.
IF p_rad4 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MNO'.
IF p_rad5 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*Note
*Titles for Rado buttons and parameters.
*P_RAD1 Personal Number
*P_RAD2 Employment Status
*P_RAD3 Personnel Area
*P_RAD4 Employee Group
*P_RAD5 Employee Sub group
*P_PERNR Personal Number
*P_PERSG Employee Group
*P_PERSK Employee Sub group
*P_STAT2 Employment Status
*P_WERKS Personnel Area -
Query parameters with the same name and different values
According to HTTP, multiple query or post parameters with the
same name and different values are permitted. They are transfered
over the wire in the following format -
name1=val1&name1=val2&name1=val3
The problem is that I can't see anyway of assigning multiple
parameters with the same name and different values to the request
object of mx.rpc.http.HTTPService. I have tried using the
flash.utils.Dictionary object as it does strict key comparison but
that doesn't work too. I have tried setting an array of values to a
property of the request object but that sends the request to the
server in the following format -
name1=val1,val2,val3
The java servlet engines throw exceptions when they see this.
Any help would be greatly appreciated.If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
release.
wrote:
I have an html select box that contains several values, and multiple
selection is enabled. When my code runs as a remote portlet, the
following is showing up in the soap monitor when I select multiple
values and submit the form:
<urn:interactionParams>
<urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
<urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
<urn:formParameters
name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
<urn:value>true</urn:value>
</urn:formParameters>
<urn:formParameters
name="P62005wlw-select_key:{actionForm.selectedEmployees}">
<urn:value>beatest1</urn:value>
</urn:formParameters>
In this case, I selected beatest1 and beatest2, but only beatest1 comes
through to the remote portlet. Is this a known bug, and, if so, is
there a patch or workaround available?
Thanks in advance,
Andy -
Passing multiple URL parameters with same name
Hi,
I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here.
Background:
I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything)
For example,
http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR
Now, this service_server runs a query to database where it uses both these values of "RequestStatus" to form 'OR' condition for a field.
Issue:
When I run this URL from browser, it shows XML response containing results for both values. In short, this is the ideal response.
(I am using getParameterValues(string) at service_server to read multiple values for same parameter)
But when I see response in SAP system, I see that it is returning data for only one value of 'RequestStatus'.
I checked the logs of service_server, and I see that it has received only one parameter, not two.
Question:
It seems like SAP systems web server is truncating both parameters with same name and passing just one of them to outside server(??)
Is there any configuration at Web Server side or any HTTP headers to be set so as to avoid this?
Can anybody suggest something on this?I managed to resolve this issue by using HTTP 'Post' method to send the data.
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = L_URL
IMPORTING
CLIENT = L_HTTP_CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4 .
"STEP-2 : AUTHENTICATE HTTP CLIENT
CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
EXPORTING
USERNAME = 'name'
PASSWORD = 'password'.
"STEP-3 : SET HTTP HEADERS
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = 'Accept'
VALUE = 'text/xml'.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = '~request_method'
VALUE = 'POST' .
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
EXPORTING CONTENT_TYPE = 'application/x-www-form-urlencoded' .
"SETTING REQUEST DATA FOR 'POST' METHOD
IF L_PARAMS_STRING IS NOT INITIAL.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = L_PARAMS_STRING
IMPORTING
BUFFER = L_PARAMS_XSTRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
EXPORTING DATA = L_PARAMS_XSTRING .
ENDIF.
"STEP-4 : SEND HTTP REQUEST
CALL METHOD L_HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
"STEP-5 : GET HTTP RESPONSE
CALL METHOD L_HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
"STEP-6 : READ RESPONSE DATA
CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
RECEIVING DATA = L_RESULT .
"STEP-7 : CLOSE CONNECTION
CALL METHOD L_HTTP_CLIENT->CLOSE
EXCEPTIONS
HTTP_INVALID_STATE = 1
OTHERS = 2 .
{code} -
How to use lexical parameters with Sql Server Stored Procedure?
Hi,
I'm developing a BI Publisher report on a sql server database. I need to execute a stored procedure to dynamically build the query by replacing the lexical parameters with the values of varaibles of the stored procedure. With Oracle stored procedures, I have used data template and had reference the varaiable in SP by prefixing it with '&'.
It doesn't work if I try to do the same thing with SQL server. Is there anyone who has come across the similar situation? Please let me know if anyone has got any ideas...
Thanks in Advance
RagTopLink currently doesn't support multiple ResultSets. Multiple ResultSets support is considered for a future release.
-
Deprecated system parameters with specified values:
Hi ,
I am getting below in alert log:
Deprecated system parameters with specified values:
remote_os_authent
IS this parameter is suppotable in 11G and also how can i remove it from SP file with out bouncing the instance.
thanks..1) It is deprecated in 11g as er your alert log message. http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams199.htm
2) Set it in your spfile to FALSE which will reset this back to the default. This can't be changed dynamically and you will have to reboot your instance.
alter system set remote_os_authent=false scope=spfile; -
Displaying 2 parameters with descriptions in same line of Selection-Screen
Hi All,
I want to know how can we display 2 parameters with descriptions in same line of Selection-Screen.
Means in selection screen first we will give comment as
<b>Material no</b> then <b>parameter box as MARA-MATNR</b>, In the same line description as <b>Plant</b> then <b>parameter box as T001W-WERKS</b>.
Material No - BOX - Plant - BOX.
Can any body tell me how can we do it.
Thanks in advance.
Thanks & Regards,
Rayeez.Hi shaik,
1. define two TEXT-SYMBOLS :
001 Material
002 Plant
and Activate
2. use this code (just copy paste)
REPORT abc LINE-SIZE 80.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) text-001 FOR FIELD p_matnr.
PARAMETERS : p_matnr TYPE mara-matnr.
SELECTION-SCREEN COMMENT 35(10) text-002 FOR FIELD p_werks.
PARAMETERS: p_werks TYPE t001w-werks.
SELECTION-SCREEN END OF LINE.
regards,
amit m. -
The type Iterator is not generic; it cannot be parameterized with arguments
Hi all, i have a problem, and i think is a JRE problem
The error is the following:
If i share a Web JSF Exadel project enterely, with the .classpath, the .project,
ect everything go ok. I can Check out the project
and work with it without problems.
But if i share only the JavaSource and the Webcontent of the same project
and the other files and folders like the .classpath, the .project, the ant folder,
ect are added to the subversion then appear the problem. When i Check out the project and build it (not with shift-alt-x Q but with the Build Project option of the Projec Menu in Eclipse)
appear an strange error that say: "The type Iterator is not generic; it cannot be parameterized with arguments <E>".
If i build the project using the build.xml file that came with the project everything is ok, but when i run the project into the Exadel the error
appear againt.
The error appear with all the eclipse versions from 3.1 to 3.3 and with all the ExadelStudio Pro versions from 3.5 to 4.0.4 and with the JRE versions 1.5.0_05 and 1.6.0_02
Any idea will be very appreciated.Hi, i think i found a clue to discover the mistery, i deployed the same .war in the ExadelStudio Pro 3.5.1 tomcat and in the ExadelStudio Pro 4.0.1(and 4.0.4) tomcat in the first one everythink work fine but in the second i get the error i described above.
The ExadelStudio Pro 3.5.1 use Tomcat 5.0 and ExadelStudio Pro 4.0.1 and 4.0.4 use Tomcat 5.5
There are some problem with the new versions of Tomcat?
Something related to the use of an old version of the JVM by default?
There are some problem with the jdk1.5, something related to the posibility that i can't mix code compiled with an old version of jdk with code compiled with the jdk1.5?
Any suggestion will be very appreciated -
I want parameters with f4 help for program names in value request
I want parameters with f4 help for program names in value request
points will be awarded if usefullv_name1 TYPE name1, "Vendor Name
CALL FUNCTION 'POPUP_TO_SEARCH_VALUE'
EXPORTING
textline1 = 'Vendor Name'(f09)
titel = 'Enter'(f17)
valuelength = 35
IMPORTING
value = lv_name1.
try this out .. -
The type Set is not generic; it cannot be parameterized with arguments K ?
When I use Hashtable or HashMap to get the keySet, it shows the error of "The type Set is not generic; it cannot be parameterized with arguments <K>".
The following is my code:
Hashtable table = new Hashtable();
table.put("A", new Integer(1));
table.put("B", new Integer(2));
Iterator its = table.keySet().iterator(); // <<<<<<<<<<<<<< this line shows the error "The type Set is not generic; it cannot be parameterized with arguments <K>"
How can I solve it? Please help me! I have no idea on it. It works fine in 1.4.
Best regards,
EricThe original is my codes, please help!
public static List findDlicApp(Date startDate, Date endDate, Connection con) {
String SQL = getSQL("app.sql");
String where = getSQL("app.sql.where");
boolean hasWhere = false;
if (startDate != null) {
SQL = SQL + " where d.create_date >= to_date('" + DMSUtil.convertDateToString(startDate) + "', 'yyyy-MM-dd')";
hasWhere = true;
if (endDate != null) {
if (hasWhere) {
SQL = SQL + " and to_date(to_char(d.create_date, 'yyyy-mm-dd'), 'yyyy-mm-dd') <= to_date('" + DMSUtil.convertDateToString(endDate) + "', 'yyyy-MM-dd')";
} else {
SQL = SQL + " where to_date(to_char(d.create_date, 'yyyy-mm-dd'), 'yyyy-mm-dd') <= to_date('" + DMSUtil.convertDateToString(endDate) + "', 'yyyy-MM-dd')";
hasWhere = true;
if (hasWhere) {
SQL = SQL + " and " + where;
} else {
SQL = SQL + " where " + where;
SQL = SQL + " " + getSQL("app.sql.order");
//System.out.println(SQL);
//Connection con = getParaDMConnection("findDlicApp");
HashMap<String, DlicApp> dlicDocs = new HashMap<String, DlicApp>();
List result = new ArrayList();
try {
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
long lastDocID = 0;
boolean hasStartDate = false;
while(rs.next()) {
long docID = rs.getLong("docID");
String docName = rs.getString("docName");
String refNo = rs.getString("refNo");
java.util.Date createDate = rs.getDate("createDate");
String creator = rs.getString("creator");
String profileType = rs.getString("profileType");
String assunto = rs.getString("assunto");
String fromEntity = rs.getString("fromEntity");
String location = getLocation(docID, con);
long fieldID = rs.getLong("fieldID");
String fieldValue = rs.getString("fValue");
DlicApp doc = null;
if (dlicDocs.containsKey(String.valueOf(docID))) {
doc = (DlicApp)dlicDocs.get(String.valueOf(docID));
} else {
doc = new DlicApp();
doc.setId(docID);
doc.setDocName(docName);
doc.setReferenceNo(refNo);
doc.setCreateDate(createDate);
doc.setCreator(creator);
doc.setProfileType(profileType);
doc.setAssunto(assunto);
doc.setFrom(fromEntity);
//if (doc.getStartDate() == null) {
// doc.setStartDate(createDate);
doc.setLocation(location);
if (fieldValue != null) {
if (fieldID == 1114) {
doc.setChineseName(fieldValue);
if (fieldID == 1115) {
doc.setPortugueseName(fieldValue);
if (fieldID == 1116) {
doc.setApplicationCategory(fieldValue);
if (fieldID == 1118) {
doc.setStatus(fieldValue);
if (fieldID == 1119) {
Date d = DMSUtil.parseDate(fieldValue, "yyyy-MM-dd");
doc.setStartDate(d);
hasStartDate = true;
if (fieldID == 1120) {
Date d = DMSUtil.parseDate(fieldValue, "yyyy-MM-dd");
if (!StringUtils.isEmpty(fieldValue)) {
//System.out.println(docName + ":" + fieldValue + ">>>>>>>>>findDlicApp>>>>>>>>>>>>>>>>>>APP END DATE: " + d);
doc.setEndDate(d);
if (docID != lastDocID) {
doc.setRelatedDocs(findRelatedDoc(docID, con));
lastDocID = docID;
dlicDocs.put(String.valueOf(docID), doc);
stmt.close();
rs.close();
Iterator<String> its = dlicDocs.keySet().iterator();
while(its.hasNext()) {
String id = (String)its.next();
DlicApp a = (DlicApp)dlicDocs.get(id);
a.setRelatedDocs(findRelatedDoc(a.getId(), con));
dlicDocs.put(id, a);
result.addAll(dlicDocs.values());
// take out start date is not in the given period
int n = 0;
while(true) {
if (n < result.size()) {
DlicApp a = (DlicApp)result.get(n);
Date sd = a.getStartDate();
if (!isWithin(sd, startDate, endDate)) {
result.remove(n);
} else {
n++;
} else {
break;
} catch(Exception e) {
e.printStackTrace();
if (result.size() > 0) {
Collections.sort(result, new DmsDocComparator());
return result;
}Edited by: EJP on 13/01/2011 14:41: added code tags for you. Please use them next time. -
hi , I 'm making a page with radiobutton as search options .
it works very well except one problem.
I choosed radiobutton among one of my radiobutton group.
and click the search button.
then I got searched data that I expect to get .
but... the button I selected was not selected anymore.
instead , the last radio button is selected after clicking search button or refreshing the page.
thanks for your help in advance.
ps. I tried to search threads like my case , haven't found yet.I resolved the problem in different way.
but thanks anyway.
what I did was
put Java code in CO instead of setting in OAF property setup. that works.
I tried to use flowlayout but I havn't figured out how to do it. -
Timestamp Parameters With Zero Scale Must Have a Precision of 13, 16, Or 19.
Hi Madhu Provide full target table name for target under session properties - mapping - target table- target table name.suppose if schema is abc and table name is dbo.blr then given target table name = abc.dbo.blr It has worked for us and hopeful that it ll work for you too. RegardsNitish
Hi, I am getting the following error when I try to load data from Oracle to SQL.FnName: Execute -- [Informatica][ODBC SQL Server Wire Protocol driver]Timestamp parameters with zero scale must have a precision of 13, 16, or 19. Parameter number: 4, precision: 999.
FnName: Execute -- [DataDirect][ODBC lib] Function sequence error . Also i am not having any field in the source as dataTime data type.Not getting exactly where to look for the issue. Please advise. Thanks & Regards,Madhu -
Call Paje jsp passing parameters with method post
How can I call a jsp page with outputlink, passing parameters with method post ?
Ex: I need that the word "?pNumMensagem=#{currentRow["NumMensagem"]}" not was exposed when a call P0077_2.jsp.
<h:outputLink binding="#{P0077.hyperlink1}" id="hyperlink1" target="t1" value = "#{facesContext.externalContext.requestContextPath}/faces/P0077_2.jsp?pNumMensagem=#{currentRow["NumMensagem"]}">
<h:outputText binding="#{P0077.outputText14}" id="outputText14" value="#{currentRow['NumMensagem']}"/>
</h:outputLink>
Thanks.
Heitor.Any body have an idea ?
Maybe you are looking for
-
Hi, we have a report that we use to print multiple result on multiple Y-AXIS. The problem is that in the legend, we only see the name of the channel, but not the name of the Y-AXIS that is associated with it. Is there a way we can print in the legend
-
Left Arrow "Goto Previous Frame" Not Working in Projects
When trying to navigate around the timeline in a project, I can press the "Right Arrow" key on the keyboard to navigate to the next frame in the timeline from the playhead. When I try and press the "Left Arrow" key to navigate to the previous frame,
-
Python - Screenkey and Key-mon won't start (SOLVED)
You can see from the information supplied below that screenkey is set to use python2 while key-mon is not. However, the errors are pretty similar. What could be done? vaio@nando, Wed Oct 27 06:56:53 ~ $ bash >>> screenkey Traceback (most recent call
-
Installationsproblem Acrobat XI Standard
Seit einer Woche schlage ich mich schon mit der folgenden Fehlermeldung herum: An error occurred during the installation of assembly component {76C3F0F6-9B9D-35DA-81C6-Ca8088CC93CA} HRESULT: 0x80070003 mein Betriebssystem: Windows 7 x64 SP1 Der Chat
-
Adobe dreamweaver cs5 11.0.3
adobe dreamweaver cs5 11.0.3 installation failed why im on a mac mini 10.6.7