Parameters with DW
how to pass a identity parameter to DW in order show me only the data for an specific user, in the validation user of the form.
I think as income in your e-mail, you may only see your data.
I am assuming that you want to pass an ID to a page so that the data can be filtered for that user. This can be done using a URL parameter as in
http:www.mysite.com?ID=clientID
The page can then read the variable to use as the filter.
Using PHP you would use $ID = $_GET('ID');
using JS you could write a function that returns the parameter as in
function GetURLParameter(sParam)
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++)
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam)
return sParameterName[1];
and get the parameter as in
var ID = GetURLParameter('ID');
To get a more specific answer, please supply more details.
Similar Messages
-
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; -
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 -
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. -
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 ?
-
Associate Print Parameters with Program Variant
Is there any standard way to associate a particular set of print parameters with a program variant?
i think it is possible ? try to make use of
<b>
Selection Variables
The following three types of selection variables are currently
supported:
o Table variables from TVARVC
You should use these variables if you want to store static
information. TVARVC variables are proposed by default.
o Dynamic date calculations:
To use these variables, the corresponding selection field must have
type 'D' (date). If the system has to convert from type T to type D
when you select the selection variables, the VARIABLE NAME field is
no longer ready for input. Instead, you can only set values using
the input help.
The system currently supports the following dynamic date
calculations:
Today's date
From beginning of the month to today
Today's date +/- x days
First quarter ????
Second quarter ????
Third quarter ????
Fourth quarter ????
Today's date - xxx, today's date + yyy
Previous month
o User-specific variables
Prerequisite: The selection field must have been defined in the
program using the MEMORY ID pid addition. User-specific values,
which can be created either from the selection screen or from the
user maintenance transaction, are placed in the corresponding
selection fields when the user runs the program.
The SELECTION OPTIONS button is only supported for date variables that
fill select-options fields with single values.
</b>
but thing is u have to maintain para/selection options for ur report.
Regards
Prabhu -
Crystal Reports Dynamic Parameters with SAP Business One
Okay, I've got this very strange issue with dynamic parameters in Crystal Reports connected to SAP Business One.
Let's start with the software versions:
- Crystal Reports 12.3.0.601
- SAP Business One 8.8 (8.80.231) SP: 00 PL: 13
- Windows XP SP3
(SBO Server on Windows 2003 and SQL 2005)
What I'm about to describe is something I've tried in several reports and for which I created a very, very simple test report to see if it was reproducible in a very simple situation.
- I connected to a Business One server through CR's SBO connection type. Logon is successful, tables are shown.
- I pick OCRD and plac CardCode and CardName in the details section on the report. Previewing the report shows data.
- I create a dynamic parameter on CardCode and in the Select Expert I select the CardCode field and define that that should be equal to the parameter.
- I preview the report again. Now it asks me in such a parameter screen for logon credentials. It shows the server and database it tries to connect to and in the username it shows the SQL Server username I used to connect to the SQL Server in the first place. However, the password for that user is not accepted. I also tried to login with the Windows administrator user and with the SBO manager user, but no success with any attempt.
I also tried to add a static parameter and add all database values to the list. Same screen, different result:
Crystal Reports 2008 wrote:
Logon Failed.
Error in File UNKNOWN.RPT:
Unable to connect: incorrect log on parameters. (rptcontrollers.dll)
(On a side note: the report is saved as report1.rpt)
Anyone else got similar issues and found a solution?Hi,
When you have fixed your crystal installation following the note posted earlier, please take a look at the [how to guide|http://service.sap.com/sapidb/011000358700000882232009E.pdf] and also at the [e-learning|http://service.sap.com/sapidb/011000358700001370262010E] about SAP Business One 8.8 and Crystal Reports.
There are so called "tokens" which you need to use instead of dynamic parameters.
Dynamic paramters don't work in SAP Business One 8.8, if they are not defined as a static paramter with token.
Best regards,
Darius -
Calling stored procedures with parameters with the Database Connectivi​ty Toolkit
Hi all,
I am new to the forum and am having difficulty finding a solution to a particular problem I am having regarding using the LabVIEW Database Connectivity Toolkit on a project I am currently working on at my job. I have a database in which I have tables and stored procedures with parameters. Some of these stored procedures have input, output, and return parameters.
I have been trying to follow this example but to no avail: http://digital.ni.com/public.nsf/allkb/07FD130746083E0686257300006326C4?OpenDocument
One such stored procedure I am working on implementing is named "dbo.getAllowablePNs", which executes "SELECT * from DeviceType" (DeviceType is the table). In this case, it does not require an input parameter, it has an output parameter that generates the table [cluster], and has a return parameter which returns an integer value (execution status code) to show if an error occurred. The DeviceType table has 3 columns; ID (PK, int, not null), PN (nvarchar(15), null), and NumMACAddresses (int, null). I have gone over many examples and have talking to NI support to try to implement this and similar stored procedures in LabVIEW but have not been successful. I am able to connect to the database with the Open Connection VI without error, but am running into some confusion following this step. I am then trying to use the Create Parameterized Query VI to call the stored procedure and set the parameters. I assume I would then use the Set Parameter Value VI for each parameter that is wired into the parameters input on the previous Parameterized Query VI? I am also having some confusion during and following these steps as well. I would greatly appreciate any advice or suggestions anyone might have in regards to this situation as I am not a SQL expert. Also, I would be happy to provide any more information that would be helpful.
Regards,
Jon
Solved!
Go to Solution.Also, I don't know if this would be helpful but here is the actual stored procedure in SQL:
CREATEPROCEDURE [dbo].[getLastSequenceNumber]
@p1 nvarchar(10)='WO-00000'
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SETNOCOUNTON;
-- Insert statements for procedure here
selectmax(SequenceNumber)from Devices where WorkOrderNumber= @p1
END
GO -
Report Builder 3.0 and Report Parameters with Available Values - do a LIKE expression?
I would like to write an expression based on a @Status parameter that includes the labels you see in the diagram. My problem is that in the field Status - that includes these data results of Issued, Cancelled and Finaled - data entry is not consistent
so I would like to do a like expression for the value - something like this Issued would be "Is*" or Cancelled would be "can*" etc. however I keep getting error statements and I'm not sure what I'm doing wrong.Hi KittyCat101,
If I understand correctly, you want to use a parameter to filter Status field that starts with “Is” or “Can” or “Fi”. If in this scenario, we can refer to the following steps to achieve your goal:
Modify the available values for @Status parameter to “Is”, “Can” and “Fi”.
Right-click the tablix or dataset to open the properties dialog box.
Select Filter in the left pane, then add a filter like below to filter Status field:
Expression: =Fields!Status.Value like (Parameters!Status.Value & "*") Type: Boolean
Operator: =
Value: true
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
I am using my MacBook Pro at home mainly as a desktop. As per Apple u should not leave notebook on power all the time. Will it enough if I charge and discharged the battery once a month or will it be better to use the battery more then that. ( Chargi
-
I'm using Java to connect to a SQL Server 2000 database. I connect using the Driver Manager with Sun's odbc driver ( sun.jdbc.odbc.JdbcOdbcDriver ) or I can use the jdbc driver provided by Microsoft (com.microsoft.jdbc.sqlserver.SQLServerDriver) The
-
Can I remove a sim card with power on
can i remove sim card with power ON and not damage it. Sleep/wake button broke so can not get to power down choice.
-
Hi, We are facing this issue in 4.7 as 4.6 version is working absolutely fine, so please look into this asap
-
Price based on Customer's Material
Dear Gurus, Pricing can be maintained based on the combination of customer and material.But, my client wants to maintain price based on the combination of customer, material and customer material info. Pls adivce. Regards, Leela Krishna. R