Query of Queries (QofQ) Escaped Character Problem
Hello All,
I'm trying to run a query or queires (QofQ) and I'm doing a
LIKE comparison that looks for bracket characters ([ ]) within a
string, however ColdFusion is ignoring the brackets. How can I
escape the bracket character? So far I have only been able to
escape the percent sign based on the ColdFusion Live Docs. The
error message I get when I run the query below is:
Invalid Escape Sequence. Valid sequence pairs for this escape
character are: "\%", or "\_".
Here is the query:
<cfquery dbtype="query" name="getLogs">
SELECT *
FROM GetLogs
WHERE Description LIKE '%\[User:#UserID#\]%' ESCAPE '\'
</cfquery>
Thanks for your help!
You are correct. If you leave the brackets in the LIKE
statement, it will return results as if the brackets weren't there
at all.
Perhaps I need to figure out the ASCII character value of the
bracket and include it that way i.e. #Char(?)# where the question
mark would be the numerical value of that character.
My temporary solution has been to leave off the starting
bracket:
<cfquery dbtype="query" name="getLogs">
SELECT *
FROM GetLogs
WHERE Description LIKE '%user:#UserID#]%'
</cfquery>
This has (so far) returned the results i'm looking for
although its not as 100% accurate without that beginning [ in the
LIKE statement.
Similar Messages
-
PLease help me in solving my problem:
I am trying this query
select empid
from tbl_emp
where empname='john&teck'
whenever i am running this query i am prompted for a variables.
i think this 'john&teck' is creating problem.You need to disable the Interactive Prompting in your Session.
http://www.orafaq.com/wiki/SQL*Plus_FAQ#How_does_one_disable_interactive_prompting_in_SQL.2APlus.3F -
Query of queries problem or bug
Hello Everyone,
I have used cfdirectory to get a list of files. As the result
I receive query with the files.
Then I want to search it using query of queries. I' ve found
a problem and I wonder if it is a bug of Coldfusion or perhaps
wrong usage of QoQ. The thing is that the files that I have are
using '_' and then are followed by number of week. It seems that
searching something like this '%_6' returns results *_*6. See
attached code.
Thanks for all answers in advance.> I think you'll find "_" is a single-char wildcard when
used with the LIKE
> operator.
Found out how to escape it:
WHERE Name LIKE '%[_]6%'
I'm glad you brought this up... I didn't know about this
until I looked @
your issue. That's my new thing learned for the day: I can go
to the pub
now ;-)
Adam -
Over the past several weeks we've been experiencing periodic
hangs of the ColdFusion service. We finally invested in SeeFusion
and found the problem, but aren't sure how to fix it
The code that hangs is a query of queries block. Basically we
are getting a result set from verity (~1000 rows), then getting a
result set from SQL server (~3000 rows), and joining the two with
the query of query statement. Everything will run fine for a few
hours, then that block of code will bog down. When I dumped the
threads during the error, everything gets hung like so:
"jrpp-255" runnable
at
coldfusion.sql.imq.rttExpr.guesstimateJavaType(rttExpr.java:439)
at
coldfusion.sql.imq.rttExpr.guesstimateJavaType(rttExpr.java:371)
at
coldfusion.sql.imq.imqTable.guessColumnType(imqTable.java:443)
at
coldfusion.sql.QueryTableMetaData.InferMetaDataTypes(QueryTableMetaData.java:350)
at coldfusion.sql.imq.TableList.validate(TableList.java:166)
at
coldfusion.sql.imq.rttSelectExprSpec.validate(rttSelectExprSpec.java:498)
at
coldfusion.sql.imq.rttSelectStmt.validate(rttSelectStmt.java:84)
at
coldfusion.sql.imq.jdbcStatement.fetchResult(jdbcStatement.java:538)
at
coldfusion.sql.imq.jdbcStatement.execute(jdbcStatement.java:131)
at coldfusion.sql.Executive.executeQuery(Executive.java:775)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:240)
at
coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:500)
at
cfauctionManagement2ecfc978963305$funcJOINAUCTIONSTOVERITY.runFunction(D:\inetpub\wwwroot \CustomTags\mysite\component\auctionManagement.cfc:137)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344)
at
coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at
coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:290)
at
coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:254)
at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56)
at
coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:366)
at
coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:198)
at
coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:157)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1594)
at
coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:341)
at
cfact_search_auctions2ecfm1040202400._factor47(D:\inetpub\wwwroot\CustomTags\mysite\actio n\act_search_auctions.cfm:849)
at
cfact_search_auctions2ecfm1040202400.runPage(D:\inetpub\wwwroot\CustomTags\mysite\action\ act_search_auctions.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:63)
at
coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:255)
at
coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:1925)
at
cfindex2ecfm1952396859.runPage(D:\inetpub\wwwroot\mysite\cfml\auctions\index.cfm:18)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915)
at
cflas2dvegas2dtimeshares2ecfm1477369516.runPage(D:\inetpub\wwwroot\mysite\cfml\las-vegas- timeshares.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
...etc
I believe this means CF is trying to "guesstimate" the java
type of each column in the result set. We tried to work around that
by CASTing each column as a varchar, but we still have the same
issue.
If anyone has an idea what the problem could be, we'd really
appreciate any help. Also, if anyone can suggest a way to merge the
two result sets without using SQL, that would be great too. I've
already tried nested loops to manually build the final result set,
but that was taking up to 5 seconds to run.
Environment:
CFMX 7.0.2
Win2K
SQL Server 2K> We need more information than that to display a record,
so we select
> everything out of the database (which is fairly quick),
then JOIN that to the
> verity results (WHERE auctionID = KEY).
Right. And what do you need THOUSANDS of matches for, in one
hit, here?
And what do you need ALL those columns for, when dealing with
all these
thousands of rows. You've not really answered my question as
to "what's
the end result here?" What are you trying to achieve? I don't
mean what
you're doing to aggregate the data, but simply *why*? What is
the
requirement you have here to be engaging in this enterprise
in the first
place? Search screen? Stock control report? What?
Is there any way of optimising how much processing you're
doing?
If - say - you're doing a search results screen, you probably
don't need
1000s of results: you probably need 20. So just ask the DB
for 20: WHERE
id IN (#list of 20 IDs from Verity search results#)
If the user goes "NEXT >>", then grab the next 20
(cache the Verity query
somehow, rather than re-query it).
Obviously there's some heavy-lifting processing that might
need to process
the whole lot. Can this not be done in a sliding window of
results? Or
could you not pass the list of IDs from the Verity resultset
into the DB
somehow, and do the filtering on the DB engine, rather than
with CF (which
is not very good at bulk data processing, as you're seeing.
It's not what
it's designed for).
I find QoQ to be very flaky for all ut the most basic
operations. For
basic stuff it's fine. It does not surprise me that it seems
to leak
memory (or whatever it's doing) and eventually give up the
ghost. This
does not help you, I realise, but as a suggested practice:
don't expect too
much out of QoQ. Try some other method instead.
Adam -
Querying a text field with an escape character in it.
I want to retrive a the search results from the database with the search string being something like
say "{2.5}"
select cola from tableX where contains(cola, '{{2.5}}', 1)>0)
I tried to parse the string with another escape character - ie i modified the search string to like this
{\{2.5\}}. Doing so i am getting a wrong result. That is it is ignoring the two braces and giving me results that contains only 2.5.
Please give me a solution
Thanks in Advance.
VenkatYou need to define the braces as PRINTJOINS characters, otherwise they are stripped from the term during both indexing and query processing, making "{2.5}" identical to "2.5"
Try this example:
set echo on
drop table x;
create table x (x varchar2(50));
insert into x values ('2.5');
insert into x values ('{2.5}');
exec ctx_ddl.drop_preference('mylex')
exec ctx_ddl.create_preference('mylex', 'basic_lexer')
exec ctx_ddl.set_attribute('mylex', 'printjoins', '{}')
create index xi on x(x) indextype is ctxsys.context
parameters ('lexer mylex');
select x from x where contains (x, '2.5') > 0;
select x from x where contains (x, '\{2.5\}') > 0; -
Problem using DECODE() function with a Query of Queries
I
posted
on my blog about an issue I was having trying to use the PL/SQL
DECODE() function with a Coldfusion Query of Queries. This function
works fine when you query a database for information. However, when
you query another query, it seems that CF doesn't recognize it. I
got errors stating that it found a left parenthesis where it
expected a FROM key word. Here is a simplified version of what I am
trying to do:
quote:
<!--- Simulated query; similar to what I was calling from
my database --->
<cfscript>
qOriginal = queryNew("Name,Email,CountryCode",
"VarChar,VarChar,VarChar");
newRow = queryAddRow(qOriginal, 5);
querySetCell(qOriginal, "Name", "Joe", 1);
querySetCell(qOriginal, "Email", "[email protected]", 1);
querySetCell(qOriginal, "CountryCode", "AMER", 1);
querySetCell(qOriginal, "Name", "Sally", 2);
querySetCell(qOriginal, "Email", "[email protected]", 2);
querySetCell(qOriginal, "CountryCode", "AMER", 2);
querySetCell(qOriginal, "Name", "Bob", 3);
querySetCell(qOriginal, "Email", "[email protected]", 3);
querySetCell(qOriginal, "CountryCode", "ASIA", 3);
querySetCell(qOriginal, "Name", "Mary", 4);
querySetCell(qOriginal, "Email", "[email protected]", 4);
querySetCell(qOriginal, "CountryCode", "EURO", 4);
querySetCell(qOriginal, "Name", "John", 5);
querySetCell(qOriginal, "Email", "[email protected]", 5);
querySetCell(qOriginal, "CountryCode", "EURO", 5);
</cfscript>
<cfquery name="qCountries" dbtype="query">
SELECT DISTINCT(CountryCode) AS CountryCode,
DECODE(states, "AMER", "North America & Canada",
"EURO", "Europe & Africa", "ASIA", "Japan &
Asia","") CountryName
FROM qOriginal
ORDER BY CountryCode
</cfquery>
<cfdump var="#qCountries#">
<!--- ========== END OF CODE ========== --->
So running this returned the following error:
Query Of Queries syntax error.
Encountered "(. Incorrect Select Statement, Expecting a
'FROM', but encountered '(' instead, A select statement should have
a 'FROM' construct.
Does anybody know why this doesn't work? Is it just not
supported? Please note that I have also tried to use the CASE()
function instead of DECODE() and that resulted in basically the
same error. For now I an looping over my distinct query with a
switch statement and manually loading a new query with the data how
I want it. But it would be a lot cleaner and less code to have the
DECODE() to work. Thx!DECODE() is an Oracle function, not generic SQL. Q-of-Q is a
very limited subset of SQL and lacks many functions and clauses
available in standard SQL, especially what you may be used to using
in your particular RDBMS.
See
Query
of Queries user guide
Phil -
Escape Character in ODBC Connections?? HELP!
Hi All,
I have a problem : we have a C++ app here that is supposed to attach to an Oracle 8i or 9i database here via a standard ODBC connection.
When this app attempts to do something like this:
INSERT INTO MyTable (MyRow) Values('[testing]')
it fails - it does not like the square brackets in the command. when I copy this into SQL Plus, of course, it runs just fine.
the ODBC link also doesn't like this:
INSERT INTO MyTable (MyRow) Values('/[testing/]') either
or this:
INSERT INTO MyTable (MyRow) Values('[[testing]]') either
or this:
INSERT INTO MyTable (MyRow) Values('`testing`') either
in fact, it appears the following are all reserved characters that oracle's ODBC driver can't handle:
` ' " \ / [ ]
My questions are :
1) Can I find a definitive list of these (Oracle documentation is good on reserved WORDS, but poor on reserved CHARACTERS)
2) what can I use to set an escape character within my ODBC SQL? Is this something I can tweak on the ODBC DSN cofiguration? I know in SQL*Plus you can just say
SET ESCAPE ON
SET ESCAPE "\"
But you can't do that on every SQL Query getting sent through ODBC can you?
Please help!
IThanks, but thats not really answering the two
questions I posed, is it? Well you are asking the wrong questions.
The quoted example was just
that, an example. The actual app is calling stored
procedures and not doing simple SQL statements. Using
bound variables is not really an option because the
number and type of parameters being sent down change
continually. This is no reason to not use bind variables. If you do not use bind variables and this is an OLTP database then scaling will not be an option for your application. It can also raise potential security holes due to SQL injection.
The site you quoted is to do with
obtaining recordsets back from stored procedures. We
do not need to obtain recordsets back from stored
procedures. Yes and it also shows how to bind input variables in ODBC calls, does the presence of record sets somehow render this invisible?
>
shall I repeat myself:-
My questions are :
1) Can I find a definitive list of these (Oracle
documentation is good on reserved WORDS, but poor on
reserved CHARACTERS)
As you can run the command in SQL*Plus it should indicate that it is not a reserved character as far as Oracle is concerned. Therefore looking in the Oracle documentation will not get you anywhere. You will need to refer to the documentation for your ODBC driver and the ODBC specification.
2) what can I use to set an escape character within
my ODBC SQL? Is this something I can tweak on the
ODBC DSN cofiguration? I know in SQL*Plus you can
just say
SET ESCAPE ON
SET ESCAPE "\"
I must admit I don't know. -
How to specify SQL escape character
The percent (%) and underscore (_) character have special meaning in SQL,
and I want to escape these so users cannot type them in and effect the
queries. The database is DB2, which does not have a default escape
character, but one can be specified in an "escape" clause, like this:
select * from customer where name like 'ERIC\%' escape '\'
This query will look for a row where the name is literally equal to
'ERIC%'. This brings me to my question:
How do I specify to Kodo that it adds the "escape" clause to the end of
the SQL?
Thanks,
EricHow do I specify to Kodo that it adds the "escape" clause to the end of
the SQL?Unfortunately there is no easy way to do this. The only way I can think of off
the top of my head is to create a subclass of the appropriate DBDictionary for
your database (see src/kodo/jdbc/sql/) and override the DBDictinoary's
toSelect(SQLBuffer, SQLBuffer...) method to add the escape clause. You can then
plug your custom dictionary into kodo:
kodo.jdbc.DBDictionary: your.custom.class.Name -
Can't find answer to Query Of Queries runtime error
Not only I browsed this forum but also googled this problem but unfortunnately I have no luck in finding the answer.
All I did was writing this simple query:
<cfquery name="test" dbtype="query">
select SSN,BirthDate from myquery where SSN <> '' OR BirthDate <> ''
</cfquery>
and I got this error:
Query Of Queries runtime error.
Comparison exception while executing <>.
Unsupported Type Comparison Exception: The <> operator does not support comparison between the following types:
Left hand side expression type = "DOUBLE".
Right hand side expression type = "STRING".
I tried the following and did not work either, still got the same error.
<cfquery name="test" dbtype="query">
select SSN,BirthDate from myquery
where SSN <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/>
OR BirthDate <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/></cfquery>
Has someone ever encountered the same problem and know how to solve it?HELP ! ! ! Going into testing soon. I need this to work to get correct report results ! ! ! !
My issue seems similar to the one under discussion and the reply from lawhite01 caught my eye. Can you roll my issue into this discussion?
This is a 2 parter. The second part is the QoQ part, but the 1st part has a line in the query that is similar to the QoQ one and it uses the same data. Part 1 also throws an error.
PART # 1.
I'm trying to use a query table created through QueryNew and then query it.
I need multiple columns in the query table I create:
<cfscript>
tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
</cfscript>
Then I populate all the cells of the query table.
Then I set up to use the created query table.
I do this first:
<cfquery name="qAltPostID" datasource="#at_datasource#">
SELECT AltPoster, fk_Job_AnnounceNum
from JOB_JPContacts
Where AltJPContactType = 'AltPosterID'
and AltPoster = '#session.IHSUID#'
</cfquery>
Then, in my first query using the created query, I expect to need to choose from multiple values, so I'm using this line in the query (this is NOT a QoQ query):
and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
I've also tried:
and AnnounceNum IN (#ValueList(qAltPostID.fk_Job_AnnounceNum)#)
and:
and JOB_AnnounceNum IN
SELECT fk_Job_AnnounceNum
from JOB_JPContacts
Where AltJPContactType = 'AltPosterID'
and AltPoster = '#session.IHSUID#'
ERROR is: one record should return. I get 0.
PART # 2: Here's the QoQ part.
I get the error:
Query Of Queries runtime error.
Comparison exception while executing IN.
Unsupported Type Comparison Exception: The IN operator does not support comparison between the following types:
Left hand side expression type = "LONG".
Right hand side expression type = "STRING".
A tutorial I found gave an example using only one column for this part of the fix:
tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
How would I set up the query with the datatype when I'm using multiple columns:
<cfscript>
tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
</cfscript>
I used this code after all the cells contained values and before running my QoQ query:
<cfloop index="intID" from="1" to="#tot_AllCurrentDraftListing.recordcount#" step="1">
<cfset tot_AllCurrentDraftListing["AnnounceNum"] [intID] = JavaCast("string", intID) />
</cfloop>
Is that correct?
Thanks.
Whoever can help me with this should be awarded extra points ! ! ! ! -
Query of queries disallows SQL right() function
We're attempting to do a query of queries using the SQL
right() function like this:
select *
from getresults
where right([key],charindex('\',reverse([key]),1)-1) not in
(#quotedvaluelist(getexcluded.file_name)#)
We've even replaced that where clause with a much more simple
where right([key])='m'
just to make sure that it wasn't the nesting functions that
were causing the problem.
In either case, we get the error:
Query of Queries syntax error.
Encountered "right" at line 0, column 0. Incorrect
conditional expression,
Expected one of [like|null|between|in|comparison] condition,
What SQL functions are disallowed from query of queries?
Thanks,
KrisNasty stuff huh. Just happened to discover myself today that
Left doesn't work. I'd suspect that Aggregate functions are the
ONLY ones that will work. It would have been nice if they'd at
least allowed CF vs DB functions in their own "database" language.
BTW, also discovered that Count() returns Null rather than 0
when there aren't any per your WHERE clause. -
Urgent Help - in using Escape character
hai,
i have problem in using escape character..
can anyone help me out in the same...
sb.append(<jsp:getProperty name="resume_main" property="name"/>);
//error i am getting is -- Missing term, ')' expected.
pl help me out in using the escape character in the above statement.
thanx in advance
regards
koeltry
sb.append("<jsp:getProperty name='resume_main' property='name'/>");
or
sb.append("<jsp:getProperty name=\"resume_main\" property=\"name\"/>");
both will work -
Bypass Adapter URI Endpoint with Escape Character for Web Service
Dear All,
I would like to apply by pass adapter URI Endpoint for XI webservice, the default format is
http://<host>:<port>/sap/xi/engine?type=entry&version=3.0&Sender.Service=<BusinessService>&Interface=<namespace>^<Outbound Interface name>
If I am using format using with carat () character then there has no problem to the service, but consumer doesn't support carat () character. I instead the carat (^) with URL Escape Character (%5E)
http://<host>:<port>/sap/xi/engine?type=entry&version=3.0&Sender.Service=<BusinessService>&Interface=<namespace>%5E<Outbound Interface name>
Then error occurred
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>System Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context/>
<code>RCVR_DETERMINATION.MESSAGE_INCOMPLETE</code>
<text>Message is incomplete. No Sender found</text>
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
How to resolve this error...
Thank you.
Regards,
WengHi ,
as per my knowledge.....................
When you create a WSDL with the help of a wizard. In the Integration Directory, choose Tools -> Define Web Service to enter the wizard.
On Propose URL button, as this genertated URL default Point to Entegration Engine.. SO already proformance wise Good.
If You want to Point your URL to adapter engine , use below given URL this will point ur incoming soap message to SOAPadapter sender channel
http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet?channel=:<service>:<channel>.
Regards
Prabhat Sharma. -
Can Linux recognize the escape character?
Hi,
It's possible that this problem doesn't belong here. But please give it a try.
I am developing an project using JSP. It includes image uploading. after image uploading, I use a javascript function popUp(url, ...) to open a new window and display this image. The very strange thing is that, sometimes the link can work, open a new window and display the image while sometimes the link can't work, or it only works for one time, then it fails. I couldn't find the reason yet. it works on IE, and not on Netscape and also not work on Linux OS while do work on Window2000. Can somebody take a look at the following link and tell me how to change it to make sure it is work on Linux OS and netscape. What's the difference between OS and windows to specify a String(that is, url of a link). The linux OS seems interperte \" to ", so it cannot recognize the full url.
The link is :
imageLink[i] = "<a href='showForm' onclick=\"popUp('" + request.getContextPath() + "/displayForm.jsp?filename=" + sdb.getImageFileName(i)+"&fileDesc=" +sdb.getImageDesc(i) + "', 'showForm', '600', '450', 'yes'); return false;\">"+sdb.getImageDesc(i)+"</a>";
Thanks in advance!
jmlingLinux will recognize the escape character. It looks like you might have other difficulties with your imageLink tag. For example, I think you need to use tags when you use Java inside your html or javascript..
onclick=\"popUp(" + <%= request.getContextPath() %> + "/displayform.jsp?... -
Query Prompt Selector ... few problems in it
Hello Folks !
I am using Query Prompt Selector and I see the component has few limitations / bugs. Can you point out if any solution pleaseeee !
1. The list of value drop down is too wide, any idea how to short the width ? (Changing width of component does not shorten the width of dropdown list).
2. The Query prompt selector has got outer rectangle which is around 1 mm wide around the combo box. This does not fit to our dashboard GUI design. Any way to remove the outer rectangle and just keep it like a normal combo box ?
3. This one is major - I am not using "apply" button on the query prompt selector, so when i click on any values in list of values drop down, the value gets selected - this is okay; but the list of values drop down does not close (ideally it should disappear after i click on any value, but here i have to click outside query prompt selector so make it disappear) ... I am sure there must be some way out of it. any idea please ?
Please refer screenshot for further clarity.
little background: I am using BO 4, Dashboard designer, SP4
Query prompt selector selects values for BEx query variable. There are around 10 such queries selecting month, since all of them have same selection, I am using Query prompt selector to supply selection to all queries in Query Pannel.
Standard dropdown did not work - i mean in data insertion I am not able to select "Query Prompt", queries are grayed out. So I decided to use Query Prompt selector. It works correctly but has got above 3 issues.
Hope this was easy to understand
Waiting for suggestions now
Thanks a lot !Dear Pratik,
I was also facing the same issue but got the solution.Instead of using prompt on
bex level use filter on Dashboard Level it will be solved.e.g if u r using year prompt on Bex level use year filter on Dashboard level .the problem will be solved .
Thanxs .
Tayyab -
Bug in CF11 regarding Query of queries syntax?
So I have decided to try CF11 because of an official outstanding CF10 bug.
Once I installed CF11, I get an error when running code like this:
<cfquery name="LOCAL.stat_questions" datasource="#APPLICATION.dsn#">
SELECT survey_questionID
FROM tbl_survey_questions
</cfquery>
<cfset LOCAL.this_statID = 1>
<cfquery name="LOCAL.subset" dbtype="query">
SELECT survey_questionID
FROM [LOCAL].stat_questions
WHERE survey_questionID = <cfqueryparam cfsqltype="cf_sql_numeric" value="#LOCAL.this_statID#">
</cfquery>
The error I receive is: "Query Of Queries syntax error.
Encountered ";. "
If I remove the semi-colon... No error! Is this a bug, or was the semi-colon always bad, but just ignored?
ThanksI just always put it in out of habit from typing out actual MySQL queries (non QoQ). Never was a problem and I always did it. Now running CF11... it requires fixing. Thought it was strange.
I actually didn't even notice that the semi-colons weren't required in QoQ until I ran into this CF11 bug. I also notice the semi-colon isn't necessary for a MySQL query either in cfquery! Seems weird that it accepts them, but isn't required. Just ignores them?
Maybe you are looking for
-
AirPlay mirroring...small picture on tv
I've looked everywhere and haven't found any mention of my problem. Hopefully someone else has seen this, and can suggest a possible fix. I have iPad 2 and Apple TV 2 ...both successfully upgraded to iOS 5. AirPlay and mirroring also function ok...to
-
HT4623 after updating, my texts are going through like emails
I just updated my iphone 4S and now my imessages are going through like email in text form. I went into settings, into messages, to the send and recieve i messages and its using my apple id, which is an old email address.
-
Hi, i am trying to make XML/SOAP based Web services work with iFS Let me give u the exact details of the what i am trying to achieve. I have a stateless session bean method which i am exposing as a webservice. This method invokes the IFS API. I do so
-
Calmonth with Text description
Hi All, We are using 0CALMONTH2 is our design. In variable screen of query, only integers from 01 -12 is displayed. We want it along in text format ie, jan, feb, mar etc. Is there any possiblity to change it at 0CALMONTH2 itself or else what could be
-
Hi Friends, Can you please help me in writing a query for : YEAR PRODUCTION QLY_TYPE 1991 23 A 1991 12 B 1991 19 K 1992 23 A 1992 25 B 1992 23 K 1993 27 A 1995 12 B 1993 16 K 1994 42 A 1995 53 A 1994 40 A Query : Statistics on total production for la