Query Parameters
my url looks like
http://localhost:8080/strutsuix/pages/viewuser.uix?loginName=Senthoor&%3BaccessLevel=AdministratorI am trying to access it in the UIX page
<struts:messageTextInput columns="60" prompt="Login Name"
name="loginName" data:text="loginName@ctrl:page"/>But the text is not appearing there? How can I resolve this?
See my most recent post to the following thread for some suggestions:
html:link
Andy
Similar Messages
-
How to handle a large number of query parameters for a Browse screen
I need to implement an advanced search functionality in a browse screen for a large table. The table has 80+ columns and therefore will have a large number of possible query parameters. The screen will be built on a modeled query with all
of the parameters marked as optional. Given the large number of parameters, I am thinking that it would be better to use a separate screen to receive the parameter input from the user, rather than a Popup. Is it possible for example to have a search
button on the browse screen (screen a) open a new screen (screen b) that contains all of the search parameters, have the user enter the parameters they want, then click a button to send all of the parameters back to screen a where the query is executed and
the search results are returned to the table control? This would effectively make screen b an advanced modal window for screen a. In addition, if the user were to execute the query, then want to change a parameter, they would need to be able to
re-open screen b and have all of their original parameters still set. How would you implement this, or otherwise deal with a large number of optional query parameters in the html client? My initial thinking is to store all of the parameters in
an object and use beforeShown/afterClosed to pass them between the screens, but I'm not quite sure how to make that work. TIAWow Josh, thanks. I have a lot of reading to do. What I ultimately plan to do with this (my other posts relate to this too), is have a separate screen for advanced filtering that also allows the user to save their queries if desired.
There is an excellent way to get at all of the query information in the Query_Executed() method. I just put an extra Boolean parameter in the query called "SaveQuery" and when true, the Query_Executed event triggers an entry into a table with
the query name, user name, and parameter value pairs that the user entered. Upon revisiting the screen, I want the user to be able to select from their saved queries and load all the screen parameters (screen properties) from their selected query.
I almost have it working. It may be as easy as marking all of the screen properties that are query parameters as screen parameters (not required), then passing them in from the saved query data (filtered by username, queryname, and selected
item). I'll post an update once I get it. Probably will have some more questions as I go through it. Thanks again! -
Using Form to pass value to query parameters in the selct part of query
I created a form in Access 2007 to pass 2 values to an Access query. I am doing this to create delimited output (very large) with the parameters included in the selected data. The select works and is something like this:
SELECT "^"+!FORM!EXPORT2DAT!PREF_VALUE+"_"+Replace(UCase([column_1])," ","_")+"^|" AS OUTPUT_column1, "^"+!FORM!EXPORT2DAT!COMPANY_VALUE+[COLUMN_3]+"
([COMPANY_VALUE])"+"^|" AS OUTPUT_column2,....................
The form has text boxes for the values I want to pass PREF_VALUE and COMPANY_VALUE to the query parameters, and an execute button to open the query when clicked.
However when I enter the values and click the execute button, I still get the parameter boxes for the 2 parameters. 1 for this: !FORM!EXPORT2DAT!PREF_VALUE, and FORM!EXPORT2DAT!COMPANY_VALUE. I thought I was filling in with the form text box values.
Can I use the form's text boxes to pass values to concatenated using(+) columns in the select part of the query as I'm doing above?
Thanks in advance for your response.I have never seen a select statement like that!
For query criteria I would use this --
[FORMS]![EXPORT2DAT]![PREF_VALUE]
and [FORMS]![EXPORT2DAT]![COMPANY_VALUE]
Build a little, test a little -
"Source not found" Error creating URL Data control with query parameters
Hi,
I have a restful service for which i want to create a URL data control. I am able to create the URL data control successfully when i am not passing any parameters in the Source field. But if i am specifying the parameters in the source field like this Department=##ParamName##, something weird is happening. After giving the param string in the Source field, it asks for default param value to test the url. It tests the url successfully. After that i select XML as the data format in which i am mentioning the xsd like this . "file:///C:/..../something.xsd" . And this is when i am getting the error. "Invalid Connection. The source is not found". I am giving exactly same path for xsd which i gave while creating URL data control without query parameters. Infact i was able to create the URL data control with query parameters successfully till afternoon. after that it started giving me this error all of a sudden. Infact as soon as i was able to create a URL data contol with query parameter successfully, i took a backup of the application before moving further. But even that backup is not working now.
As far as i understand, i dont think there will be any change in xsd if query params are passed to a web service. Please correct me if i am wrong.
Just dont know what could be the issue. Please help
ThanksHi,
xsd is used for the URL service to know what the returned data structure is so it can create the ADF DC metadata
Frank -
Using Reporting Services Web Service methods to run a report with query parameters
I'm attempting to use the ReportExecutionService methods to process a report that contains four parameters, two of them query parameters. In total, the report must execute two queries. The two query parameters are determined by the execution of
the second query.
So, I've read about GetExecutionInfo and SetExecutionParams. To quote the MSDN page for GetExecutionInfo, "Use this method iteratively with the SetExecutionParameters method to evaluate parameters that have query- or expression-based defaults."
Can anybody explain how to use this, or any other method, to execute a report such as mine? The first query gets the rows of the report; the second query gets the row count. LoadReport does not seem to do the trick by itself. I need to use the technique
described in the quote above, I think.
I could really use some help. Thanks!Hello,
If I understand correctly, you create a local report which choose report from Report Server. You have two query parameters in the report which are returned by stored procedure. Currently, you cannot get default values for these parameters when run the report.
Based on my test, if we haven’t configure these parameter with Available Values, we can reproduce the same issue. Also, caching issue may cause the same issue. If the issue is persist, please delete the corresponding report in the report server. Then, redeploy
it to check.
There is a similar issue, you can refer to it.
http://social.msdn.microsoft.com/Forums/en-US/6a548d65-35d0-4a3e-8b64-3b7b655c76ee/ssrs-2008-report-parameter-default-value-doesnt-work-when-deployed
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
When we upgraded our SSRs projects to 2012, we are facing an issue in Data tools environment.
When we click REFRESH FIELDS button in Dataset properties, With query type as SP (For all our sps), the "Define query parameters" popup is not displayed.
When we checked the SQL Profiler for queries executed at back end , NULL values are used for parameters.
But when we Used the QUERY DESIGNER button, and clicked execute for sp, the popup comes.
For User defined Functions, the Popup comes correctly.
In BIDS, still we can open the RDLs and do the operations correctly
Please adviceDear Wendy Fu
My Scenario is different.
In Query Designer, Every thing is fine (Parameter Popup is coming, and fields are populated under data set)
But what we need to do is
1, Select Query Type As SP
2, Select the required SP
3, Click Refresh Button
4, A "Define
query parameters" window popsup
5, Provide values and click Ok
6, Fields will be populated under the dataset
The issue we face is that, we are not getting the Define query parameters popup,
Hence NULL values are passed to execute the sp, to retrieve the fields set.
The Work around we are using now is editing the sp, and use
set @Parameter = Value
for each parameters in sp, and then we get the fields populated under dataset, when we click refresh.
The issue exists in both MSDT for
Visual studio 2010 & MSDT for Visual studio 2012.
But every thing is fine in BIDS with VS 2008 Shell for the same RDL -
Query parameters in BC and setting up Site Search tracking in Google Analytics
I would like to enable site search tracking in Google Analytics for a non-eCommerce BC site but I do not know what query parameters I need to use to enable site search tracking - can anyone help?!
I can turn Site search tracking 'on' in Analytics but it requires the query parameters to be entered e.g. 's' or 'q'. I have the option of selecting 'strip query parameters out of URL' but I'm not sure what this does and what needs to be done in the backend of BC?
Usually, when an internal search is done within a website (and in this case it is www.newcastleairport.com.au), the URL will indicate the parameters by adding a 'en&q' in the URL. To test what metric would be used for the Airport, I did a search on 'annual report' and the following URL came up (not containing an en&q)
http://www.newcastleairport.com.au/Default.aspx?SiteSearchID=1012&ID=/travellers-search-re sult#.U3A3HmQ-JU0
Any help would be appreciated. There was a previous discussion re this subject but it remained unanswered but there was a suggestion around using javascript within a web app?
CheersHi Sebastian and Manas,
I am trying to set up a hybrid environment and followed the blog posts. Everything was set up as per the guidelines mentioned but still I am not able to fetch any results from SharePoint Online inside my on-premise environment.
There are no errors coming as such. Its just that my on-premise is showing no results from SPO. However if the same user logs on into the Office 365 SPO site he is able to see SPO search results. That means there is no permission related issue specific to
test user.
I am totally out of ideas now. In case you have faced similar issues while setting up the same then any pointers to troubleshoot would be very helpful.
The link to my query that I have asked on the forums is
https://social.msdn.microsoft.com/Forums/office/en-US/540d2629-ec6b-4905-b8e2-f6ba4e770d26/configure-one-way-outbound-hybrid-search?forum=sharepointgeneral
Thanks,
Geetanjali
Geetanjali Arora | My blogs | -
SQL trace query parameters round 2
Hi,
This is a follow up of this topic:
SQL trace query parameters
My problem is no matter what i do, the queries in my trace file do not show the query paramaters.
I have tried several approach including this:
http://theblasfrompas.blogspot.com/2010/05/dbmsmonitor-for-tracing-from-oracle.html
Any idea why it isn't working? (I'm using Oracle XE 11g)
Thanksuser610868 wrote:
Hi,
This is a follow up of this topic:
SQL trace query parameters
My problem is no matter what i do, the queries in my trace file do not show the query paramaters.
I have tried several approach including this:
http://theblasfrompas.blogspot.com/2010/05/dbmsmonitor-for-tracing-from-oracle.html
Any idea why it isn't working? (I'm using Oracle XE 11g)
Thankshttp://www.lmgtfy.com/?q=oracle+sql_trace+level=4 -
Data Components && Query Parameters
I just started playing with the database binding since I use PostgreSQL. I have a couple questions around parameters. Let's say that I want to make a page to display / update configuration variables from my application. I have a table in my database called config, with two simple members ckey and cvalue. Let's say I have 20 key / value pairs.
I want my page to simply load the values associated with all 20 keys into 20 different text boxes. I created a query with the WHERE clause being WHERE ckey = ?. Now, I've seen some posts that say that I have to have a Session Bean parameter to populate this ? -- is this correct? Can't I have a simple keyword somewhere since this parameter will be fairly static for each of my 20 text boxes? Could I just name each text box the associated ckey name?
Secondly, how do I go about letting the data components update and validate this data if it is changed? The tutorial didn't show me much. Thanks.Hi,
Please take a look at the AppModel sample application. This is available at:
http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
This sample application demonstrates many features including how to handle the query parameters and how to update etc.
Hope this helps
Cheers
Giri :-)
Creator Team -
POWL - Query parameters doesn't open
Hi Gurus,
I configured a POWL for shopping carts based on SAPSRM_E_CHECK_STATUS.
1. Create custom application ID
2. Create a custom POWL type with the standard feeder (/SAPSRM/CL_CLL_PWL_A_SC_ESS)
3. Create the link between application ID and POWL type (Tx. POWL_TYPER)
4. Create the query with the POWL Type ID.
At this last one if you click on button "Query parameters" any windows is opened.
Can anybody help me?
I double check the configuration but I didn't see any problem.
Many thanks in advance.
David.Hi Konstantin,
I solved by myself.
I didn't create the field catalog for POWL Type. For this reason I hadn't any field to show into the query parameters.
Thanks,
David. -
Solution to parse URL query parameters
I would like to parse query parameters in a URL GET request. I want to know if there is an efficient solution.
e.g. http://www.google.com?search=red&query=blue
I want to get "search", "red", "query", "blue" strings. I am not sure whether using StringTokenizer is the efficient solution.
Thanks
JawaharStringTokenizer st = new StringTokenizer("http://www.google.com?search=red&query=blue","?&=",true);
Properties params = new Properties();
String previous = null;
while (st.hasMoreTokens())
String current = st.nextToken();
if ("?".equals(current) || "&".equals(current))
//ignore
}else if ("=".equals(current))
params.setProperty(URLDecoder.decode(previous),URLDecoder.decode(st.nextToken()));
}else{
previous = current;
params.store(System.out,"PARAMETERS"); -
Is it possible to pass Query parameters between two XLF's
Hi,
I have a parent dashboard (.xlf) and i'm trying to launch another .xlf (child) from the main dashboard using OpenDocURL.
Is it possible to pass Query Parameters from parent to the child using OpenDocURL ?
If not , how we can do it ? . I don't want to use SWF loader to load the child dashboard.
I'm using SAP Dashboard 4.1 SP4.
Thanks,
Shiva.Hi Permisindo,
I tried the approach suggested in the blog, but the parameters are not being passed.
I have a master xlf and a child swf. I used swf loader to load the child and pass the paramters.
Here is the URL -
http://<Server>:8080/BOE/Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=<doc id>&sKind=Flash&Fac=All Departments&RoomGroup=All Rooms
I created the flash varibles(Fac , RoomGroup) in the child swf which i mapped to the respective query trigger cells. -
How to send query parameters using BIApplicationFrame
HI,
I am working on integration of BEx WebTemplate in webdynpro view.
I am using BIApplicationFrame ui element for this.
I set the template id in template property of BIApplicationFrame.
I have to execute a query of this template.
So i selected the option 'query' of dataProviderStateType property.
<b>How to send the query parameters to that query.</b>
I did not find any help ( Example tutorial ) for BIApplicationFrame UI element in SDN.
Please anybody help me out.Hi Charan
I tried to add the costume parameter in BIApplicationFrame same method that you mentioned. But the result is not coming.
I am trying to pass the input variable for the query.
My url is:
http://<host>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=BTMP_20100929_054852&DUMMY=8&debug=x&BI_COMMAND=&BI_COMMAND-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND-CHARACTERISTICS_SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=ZCUSTOM1&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=C07&BI_COMMAND-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF=DP_1&REQUEST_ID=11
If I execute the url directly the out put is coming perfectly after filtering and if I pass the parameter by adding code in wddomodifyview method the filters not working.
My webdynpro code given below:
mapParams.put("BI_COMMAND=&BI_COMMAND-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF=DP_1&BI_COMMAND-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND-CHARACTERISTICS_SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=ZCUSTOM1&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING","C05");
Appreciate if you can help me on this.
Sajith -
How to send query parameters using BIApplicationFrame in WD Java
HI,
I am working on integration of BEx WebTemplate in webdynpro view.
I am using BIApplicationFrame ui element for this.
I set the template id in template property of BIApplicationFrame.
I have to execute a query of this template.
So i selected the option 'query' of dataProviderStateType property.
How to send the query parameters to that query.
I am setting the fowlloing values in BIApplicationFrame
dataProviderStateName: BEx Query Name
dataProviderStateType: query
server: server url
server type: java
templateid: BEx template id.
The query screen is opening ..But no data.
I have to pass the following two parameters to that query:
BI_COMMAND_1-I_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZVARCUST01&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=0500000003
&BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0I_CMNTH&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=01/2000-12/2002
How to send these two query parameters using BIApplicationFrame.
I did not find any help ( Example tutorial ) for BIApplicationFrame UI element in SDN.
Please help me.My problem solved. I used the following code in wdModifyView() method.
Map parameters=new HashMap();
parameters.put("BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZVARCUST01&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING","0500000003");
parameters.put("BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0I_CMNTH&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING","01/2000-12/2002");
WDBIMethods.addCustomParameters(wdThis.wdGetAPI(),"BIApplicationFrame",parameters); -
How to set query parameters to i5Grid
Hello Everyone,
I am working on creating i5Charts.
I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.
How to set query parameters to i5Grid?
Pls help with syntax.
Thanks.
Regards,
MinakshiHi Minakshi,
Yes you can try the first 2 options listed by Rohit, the 3rd one however is not supported.
The below syntax should work for you:
1. gridObject.getQueryObject().setRowCount(<Value>);
2. gridObject.getQueryObject().setParameter("RowCount", <Value>);
You can check the documentation at the following link:
http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html
You could also use the script assistant to check for the JS methods.
Regards,
Ria -
Managing beans based on URL query parameters
I was just reading this thread with interest, but it didn't come to the conclusion that I need.
http://forum.java.sun.com/thread.jsp?forum=427&thread=441432
In that thread, there were two screens: a table of links to employees and an "edit employee" page. The solution was to use the command_action on the list create an "employee data" bean, which could then be edited on the "edit employee" page.
My problem is that I need to create some session beans based on query parameters in the URL. Using the example above, I'd have something like: http://localhost/app/editEmployee?empNo=38
Why? Because the user can bookmark the edit employee page, have two
browser windows open (which would require two seperate employee data beans), etc... and we need to handle that. It looks like
that means I can't use the solution in the above thread.
My current thought is to create a managed-bean with request scope and have it create the EmployeeData bean.
Another idea is to somehow initialize the bean with managed-properties
<managed-bean>
<managed-bean-name>EmpBean</managed-bean-name>
<managed-bean-class>com.mycompany.EmpBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>employeeID</property-name>
<value-ref>queryParamBean</value-ref>
</managed-property>
</managed-bean>
<!--
just returns FacesContext.getCurrentInstance().getServletRequest().getParameter("id")
-->
<managed-bean>
<managed-bean-name>queryParamBean</managed-bean-name>
<managed-bean-class>com.mycompany.QueryParamBean</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>but that seems kinda hacky. Any other ideas?Excellent, using requestScope gets rid of the queryParamBean hack from my first post. For some reason I thought value-ref evaluatations only resolved against stuff the VariableResolver can see. That's not the case. Thanks.
Unfortunately, this bean really wants to be cached on the session, not the request. I suppose it would be possible to have EmpBean delegate to a bean which is actually cached on the session, but that feels like a hack too (and is a lot of glue code).
So, I think I'm back to the factory, which can handle creating the bean from the query params, caching it, and putting it on the servlet request. I also got a visit from Captain Obvious and realized that the factory could just be a scriplet.
<% BeanCreator.createBean("com.company.EmpBean", request.getParameter("id")); %>which also isn't great, but is perhaps easier to understand than the BeanCreator from above. I looked into using EL Functions in the variable resolver for the factory, but it doesn't look like that's possible. It's probably possible to extend VariableResolver to add factory methods for managed-beans, which might be the cleanest solution. I'm thinking something like
<managed-bean>
<managed-bean-name>Emp</managed-bean-name>
<managed-bean-factory>
<factory-name>com.company.BeanFactory.getBean</factory-name>
<bean-class>com.company.EmpBean</bean-class>
<arg-value-ref>sessionScope.id</arg-value-ref>
</managed-bean-factory>But for now, the current two hacks are:
#1: to create a URL use plain html <href>.
#2: use a factory method (varying implementions) to create the bean, cache it, and put it on the servlet request
Maybe you are looking for
-
Customer error message in sales order on save
Hi Friends, as per requirement i have to raise the error message and system should enable the field to change values. This should happen when condition is not met on Saving of Sales order. For this, i have used the user exit USEREXIT_SAVE_DOCUMENT_PR
-
Have ADF Business Components replaced BC4J in Jdeveloper10g?
I haven't found BC4J in Jdeveloper10g. Will it be replaced for ADF framework? Anyone, help me please.
-
Operation subcontracting - excess component issue to vendor
Hi gurus, Operation subcontracting Issue of component to operation subcontractor with excess material. After goods receipt from subcontracting what is the impact at subcontractor vendor stock , costing and financial for excess issue stock. example As
-
I try to save a pdf as a tiff file and get the message the image is to wide to output?
I am trying to save a map I have in PDF format as a Tiff file. When I "save as other - image -tiff I get the message:
-
Entire R12 over internet!!!
Hello, Our requirement is to make EBS R12(forms,OA pages, conc_processing etc) all components accessible over internet I had gone through note 380490.1 & 726953.1 but thing is making this implementaion is only making OA pages accessible over internet