Commas not correctly processed when values are passed through the URL!!!!!!
I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
The URL looks like this:
f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
However the URL should look like this:
f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.
Never mind... problem solved.
In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
Sorry... no bug. :)
Similar Messages
-
Hi, I can't access my iTunes store even though I had updated to the latest version of the iOS. It always shows "the request could not be processed" when I tried to access the iTunes store. This has been going on for the past 3 days already. Pls help..
Many thanks b Noir
This is a copy of ONEof the keys in the registry I changed as told by Apple support today. I also have changed others as instructed by GEAR software support to manually delete GEAR drivers (that I had installed but couldn't delete some of the others they mentioned from Windows system 32. Then some bright spark at work told me I need the Gear drivers so I downloaded the software and installed again.
Sorry, just this minute went to insert image and it is giving me a message saying this sort of content is not allowed?.
The most recent key I altered is in: HKey _local _machine. System\class - 4D36E965-E325-11CEBFC1-08002BE10318. Upper Filter data: Upper filter NTIDrvr SiRem GEARAspiWDN.
The GEARsoftware info about manually deleting GEAR drive is from:
http://www.gearsoftware.com/wiki/index.php?title=DRIVERS:_Windows_-_Updating%2C_ removing%2C_64_bit_versions%2C_etc
I hope you can help -
PO wf should not be triggred when POs are created through RFC
Hi
My PO wf is working fine for POs created and changed. But it is getting triggered for POs which are created by Ariba system using RFCs.And since there is no Organization structure for the user id which is used in RFC, it is throwing an error.
Please let me know what can be done in this regard.
Thanks
BhaskarHi Bhaskar,
you are telling that the reson of the error is, that the user for the RFC is on in the OM.
So, why not put this user there, or use a different user?
If you don't want a wf to be created by ariba.
you can use check function modules for it, or put the logc in the first step of the flow.
I can imagine that when a user is responsible for the event, that the workflow probably should have additional dialog steps, like control steps by other users. If however you use an automated system, you can assume that controlling the data isn't necessary, but other background processes should be executed by the flow.
In that case do it in the WF modelling, with conditions on the initiator.
Kind regards, Rob Dielemans
Message was edited by: Rob Dielemans -
Why does imovie not show the video when you are scrolling through the timeline
why is it when using imovie when you scroll through the timeline it doesn't show in the movie window this is for imovie 11 when editing a large video composedof many small clips
Do you have AuthenTec TrueSuite ?
See:
*[[/questions/937571]] Firefox address field hide the last part of the address when loaded -
Child forms are not getting displayed when user is linked through the targe
I have provisioned the users to OID through OIM and we have the three child forms(USRB_ROLB,USRB_GRPD,USRB_NBNB) which work well when the user flow normally. Our normal flow implemented is that user comes from OHCM and get created in OIM and then get provisioned to AD and OID. We have also implemented the OID target recon. When we create the user directly in OID and then create the user through normal flow ie from OHCM to OIM) as expected the create user task fail as the user is already present in the OID (target system). Then after running the OID target recon the user is getting linked but its not showing the child forms in the new process form created after running the target recon.
Please let me know if you require more information.
Please let me know if anybody has encountered this issue and the steps to resolve the samewhat happened when you run target recon without creating user in oim(or just create user in oim without access policy and then run target recon)? Is this work fine?
If no means you have to verify your child table mapping. But if above work then this the Produce/connector issue and may you need to raise SR -
Passing values in hyperlinks through the URL
I am trying to do the following:
<a href = "linkhandler.jsp?value=lee">
then in linkhandler.jsp I am trying to get that value...i have:
String firstName = request.getParameter("lee");
...but when I print its NULL
What is the proper syntax?
Thanks!I actually figured that out..
Now I have
String theLink = request.getParameter("value");
and theLink has a value of : 'http://cs.dal.ca'
I just want the page to automatically redirect to this page using JSP if possible. -
I am attempting to update itunes because my device iPhone 5 does not appear on the left side. Can someone offer anything?
Disable any antivirus or firewall hardware.
-
I have tried to restart my computer, restart my Ipod touch and downloaded the latest Itunes and it will still not snyc to itunes. It opens up Iphoto everytime. My computer recently crashed and I took it into Apple and now have version 10.5.8. Could that be the reason? It was working before.
Try here:
iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X
It is normal and expected for iPhoto to open since that is how you get the saved photos off the iPod. -
Hi
I have tried all sorts to fix this. The obvious resetting, rebooting etc of the router. I have spoken to my provider and stuff.
My internet on my iMac is terrible. I turn off wifi and back on and it works for about 20 seconds then stops. Very intermittent and hardly ever fast.
My iPhone however loads pages and apps that use the internet instantly. I am sitting at my computer so i cannot see why there would be a difference!
Its making my head hurt
HELPUse the 5GHz Band Compared with the 2.4GHz band, the 5GHz band is practically empty. The newest AirPort Extreme Base Station is one of the few Wi-Fi base stations designed for home use that work in that 5GHz band. All of Apple’s Core 2 Duo laptops and iMacs (except the discontinued 17-inch 1.87GHz model) can also use the 5GHz band; with the build-to-order wireless option, so can the Mac Pro.
To switch to the 5GHz band, launch AirPort Utility, select your base station, and switch to Manual Setup. Click on the AirPort button and select the Wireless tab. Select 802.11n Only (5 GHz) from the Radio Mode pop-up menu. Click on the Wireless Options button and select Use Wide Channels. Click on Update to restart the base station.
Currently, no Mac-compatible adapters enable you to use the 5GHz band in older Macs or with older versions of OS X.
WiFi update 10.7.3
http://support.apple.com/kb/DL1501
Apple DNS Servers:
208.67.222.222
208.67.220.220
Wireless Improvements
Move the Base Station If interference is particularly bad in one part of your house or office, move the base station to another location. But this can be tricky if your AirPort base station has to connect to the broadband feed coming into the house and that feed happens to enter at a particularly interference-prone spot.
I have no way of testing some of these Firmware updates, read through them and see if any might apply to your system.
http://support.apple.com/kb/index?page=search&src=support_site.home.search&local e=en_US&q=keyboard%20firmware%20update -
Dynamic sql reurns no data when multiple values are passed.
(Dynamic sql returns no data when multiple values are passed.)
Hi,
While executing the below dynamic sql in the procedure no data is returned when it has multiple input values.
When the input is EMPID := '1'; the procedure works fine and returns data.Any suggestion why the procedure doen't works when input as EMPID := '1'',''2'; is passed as parameter?
=======================================================
create or replace PROCEDURE TEST(EMPID IN VARCHAR2, rc OUT sys_refcursor)
IS
stmt VARCHAR2(9272);
V_EMPID VARCHAR2(100);
BEGIN
V_EMPID :=EMPID;
stmt := 'select * from TEST123 where Empid is NOT NULL';
IF V_EMPID <> '-1' THEN
stmt := stmt || ' and Empid in (:1)';
ELSE
stmt := stmt || ' and -1 = :1';
END IF;
OPEN rc FOR stmt USING V_EMPID;
END Z_TEST;
============================================================
Script for create table
==================================================================
CREATE TABLE TEST123 (
EMPID VARCHAR2(10 BYTE),
DEPT NUMBER(3,0)
===========================================
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('1',20);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
=============================================
Select * from TEST123 where Empid in (1,2,3)
EMPID DEPT
1 20
2 10
3 30
3 30
2 10
===================================================================
Any suggestion why the procedure doen't works when input EMPID := '1'',''2';?
Thank you,The whole scenario is a little strange. When I tried to compile your procedure it couldn't compile, but I added the missing info and was able to get it compiled.
create or replace PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
IS
stmt VARCHAR2 (9272);
V_EMPID VARCHAR2 (100);
BEGIN
V_EMPID := EMPID;
stmt := 'select * from TEST123 where Empid is NOT NULL';
IF V_EMPID = '-1' THEN
stmt := stmt || ' and Empid in (:1)';
ELSE
stmt := stmt || ' and -1 = :1';
END IF;
OPEN rc FOR stmt USING V_EMPID;
END;If you pass in 1 as a parameter, it is going to execute because the statement that it is building is:
select * from TEST123 where Empid is NOT NULL and -1 = 1Although the syntax is valid -1 will never equal 1 so you will never get any data.
If you pass in 1,2 as a parameter then it is basically building the following:
select * from TEST123 where Empid is NOT NULL and -1 = 1,2This will cause an invalid number because it is trying to check where -1 = 1,2
You could always change your code to:
PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
IS
stmt VARCHAR2 (9272);
V_EMPID VARCHAR2 (100);
BEGIN
V_EMPID := EMPID;
stmt := 'select * from TEST123 where Empid is NOT NULL';
stmt := stmt || ' and Empid in (:1)';
OPEN rc FOR stmt USING V_EMPID;
END;and forget the if v_empid = '-1' check. If you pass in a 1 it will work, if you pass in 1,2 is will work, but don't pass them in with any tick marks. -
Unable to detect any parameter in html (webresource) when value is passed from onload method of form
I am trying out some stuff. For which I created a simple Entity. In the form of the entity I have added a simple web resource (html). And for the onload of the form I am calling the following function
function HelpDeskActivityOnLoadhandler()
var customParameters = encodeURIComponent("first=First Value&second=Second Value&third=Third Value");
Xrm.Utility.openWebResource("tsi_scriptzz",customParameters);
Here is the code for the tsi_scriptzz.html
<html>
<body>
<script type="text/javascript">
var vals = new Array();
if (location.search != "") {
vals = location.search.substr(1).split("&");
for (var i in vals) {
vals[i] = vals[i].replace(/\+/g, " ").split("=");
</script>
</body>
</html>
MY PROBLEM IS -> location.search is always coming back with empty string. So, it not getting the parametrs I am passing from the load method of the form.
Could someone kindly help me.
Thanks,
HasibHello, I tried it myself. I got a new_test.htm file and a new_test.js file. The loadWebResource function is called on the OnLoad event of an Entity.
function loadWebResource()
var params = encodeURIComponent('param1=value one¶m2=value two¶m3=value three');
Xrm.Utility.openWebResource('new_test.htm', params);
<html>
<head>
<title>Web Resource Parameter Example</title>
<!-- Use ../ClientGlobalContext.js.aspx if your webresource is in a deeper folder on CRM -->
<script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
<script type="text/javascript">
document.onreadystatechange = function () {
if (document.readyState == 'complete') {
var params = getParams();
for(var i=0; i<params.length; i++)
log(params[i].name + ' ' + params[i].value);
// this functions puts the params in a 'dictionary format'
// f.e params[0].name = param1 & params[0].value = 'value one'
// You could customize this function or find some on the internet to retrieve a param fe by name...
// This is just an example how to get the name and values
function getParams(){
var params = [];
var querystring = Xrm.Page.context.getQueryStringParameters().Data;
var querystringparts = querystring.split('&');
for(var i=0; i<querystringparts.length;i++)
var split = querystringparts[i].split('=');
params.push({
name: split[0],
value: split[1]
</script>
</head>
<body>
</body>
</html>
Hope it helps now. Kind Regards -
last week i purchased Apple TV but , when i am trying to loging by the apple id is giving me error "your password is not correct" but when i try to login in my Pc is working fine
Thanks for the flag J.K. - they contaced me and solved my problem. On this account (which I created just to ask this question), I log in with my email rather than my user name (mtalldud). On the account that I was having trouble with, they told me to use my user ID instead of my email to log in and it worked. This is a bit confusing and seems a bit inconsistent but at least I don't need this temporary account any more to get into this community and find answers!
-
I have a Google calendar that is syncing with my iPad and on my MacBook Air. However, the calendar items are not showing up when I access iCloud via the Internet. Any suggestions?
On the iPad tap Settings > iCloud
Toggle Documents & Data off then back on then restart your iPad.
Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.
On the iMac open System Preferences > iCloud
Deselect the box next to Documents & Data then reselect it then restart your iMac. -
I bought the iPhone 4 user and when you are upgrading to the new system ios7 I have a problem activation lock note that I do not know what is the ID Apple and The password because the phone used?
please help my what can i do?
IMEI : 012658006380001Welcome to the Apple community Kobra.
Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone. -
I am not receiving text when they are sent to my phone number , I do receive them when they are se to my email address . Any thoughts
Alll I can say is try to reset your iphone like, taking out the sims card. ALso try loging out of your Facetime and your email on your phone, telll me if that works, and did you try connecting Apple Support Team?
Maybe you are looking for
-
User status in Q-info record not updating on UD
Hi All, My required scenario was, delivery of a material from a vendor must pass through inspection series u2022 Model u2022 Preliminary u2022 Regular delivery For that, 1). Maintain different inspection types (with corresponding task
-
Problem: Disappear Drill Prompt
Hello, I have a problem with Web Intelligence BO XI R2. When I run a drill down on the chart, and then drill up the drill prompt in context analysis disappear... even if I run a drill down, then the prompt appears, but last... without considering ord
-
Hi, Is there anyway, we can give just execute access on sp_who2 SP for a developer without giving VIEW SERVER STATE access? Please let me know ASAP? Any help is greatly appreciated. Thanks, Vel Vel Thavasi
-
I think I have delete the macintosh HD off my MacBook Pro 10.6.8
Hey I think I accidentally deleted the Macintosh HD off my MacBook Pro. I am using snow leopard. I tried to do a factory reset and installed OS X back onto my mac but Macintosh HD is still not there. Is there a way I can get it back?
-
Hi Guys, I am facing this issue of purging the Cache of the Repository everydat manually. Is there any mechanism through whihc I can purge the cache automatically after a day or after certain size of Cache? Thanks Saurabh