Query Save As Problem
i am in a situation, need your help....
When I try to save as an existing query, I see only only favorites and roles on save query as window. but i want to save in the same infoarea. the infoareas list is not displayed at all. is there a way i can get the infoareas icon on the left?
or is it an authorization issue?
Actually, if i try to go ahead as you said....a dialog box 'Create Object Directory Entry' is popping up. i think this is from transport mgmt. asking to enter package info.
this did not happen to me earlier.
to give some details: I chose favorites. do i have to choose roles instead? if yes, waht role to choose.
Similar Messages
-
Hellou everybody.
I need your help. I am using forms 6i and i have a block with some non DB items. But items are synchronize with DB items for viewing results. I use this items for diplaying results from DB tables. In enter query mode i write condition in this text items and execute query.
My problem is that i have text item which is VARCHAR2 type and I need to enter the condition for example > 1000. But i don't know how to convert this field to number. When i execute query under char type it not work properly (other result). I tried to change data type to number but i can't because it's not alowed to mixed types.
select * from table_name where pag_cis > 100 - i need this
select * from table_name where pag_cis > '100' - i have this
Can you help me???You may use the set_block_property procedure built-in and the 'default_where' property so as to execute the query using the contents of your item (with the name of column , of course).
Afterwards , you navigate to the db items block (with go_block('blockname')) and execute the query (built-in 'execute_query').
Hope it helps
Sim -
Space Designer Save Setting Problems
Space Designer Save Setting Problems
On the right side of the space designer you have "dry" and "rev" settings.
On reopening the plug-in the dry setting switches back to zero, although I saved it at a different setting...
Everytime, every project...Does it do this on audio/software instrument channels and aux channels?
In general, when you load SD on an aux channel, Logic assumes it's going to be an FX return and so "helps you out" by setting the dry level to zero for you...
On other channel types it should work as expected... -
Save As problems in Microsoft Word?
I upgraded to Mavericks last week and am either having repeated Senior Moment memory lapses or having periodic problems saving Word files (Office 11 14.3.8). Both times this happened, I made changes to a Word document and saved it and closed it. Then I later went back and opened the file later and the changes were not there. The first time, I thought perhaps I had screwed up, but then it happened again this morning. I think they were both files sent as email attachments, opened from the attachments and then Save As with a new name to a different location. So it might be a Save As problem. I wanted to post this in case there are others out there scratching their heads and thinking it is just them.
Sorry for the senior moment comment. I was following onto your mention of that phrase.
If you go into File > Open Recent > More… you can select files you have touched Today, Yesterday, Past Week…
Selecting a file and doing a Save As… should point to the folder where the file went.
Does this work for you to find the file? -
Default query save location in SSMS 2012
So, finally, is there a way to change SSMS 2012 default query save location?
Scenario:
1. Open SSMS
2. Create new query
3. Click Save
I see "Documents\SQL Server Management Studio" folder, but I want to change it to be "d:\". How do I do this?
I tried:
1. http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-ssms/ - in folder "Documents\SQL Server Management Studio\Settings\SQL Server Management Studio\" there is a file NewSettings.vssettings,
setting it to "d:\" or "d:\\" didn't help.
2. Changing HKEY_CURRENT_USER\Software\Microsoft\Microsoft
SQL Server\100\Tools\Shell VisualStudioProjectsLocation didn't help too. There is no "Shell" under "110\Tools\"
Did I do something wrong, or is there another way?try this
http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-ssms/
Regards,
Praveen D'sa
MCITP - Database Administrator - 2008
sqlerrors
Hi Praveen,
Based on my test, the solution in the link your post works in SSMS of SQL Server 2005, 2008 and 2008 R2 version. However, in SQL Server 2012, the configuration of SSMS is changed.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Forms save message problem!
Um working in forms 9i.
I have set SeprateFrame = True in the configuration file, so that the forms applet opens up in a new window.
Now there are two BROWSER windows...one, in which user types the URL of the Forms server and Second, in which the forms applet opens.
I can close the form without getting the default Forms "Do u want to save the ....?" message (by clicking the cross button on the APPLET inside the BROWSER)if there are any pending changes in the data block with a form level When_Window_Closed trigger using Exit_Form(No_Validate). But the problem starts when there are pending changes in the form and I directly press the cross button on the BROWSER which encloses the APPLET. I get the same annoying Forms message "Do u want to save?".
Could somobody tell me how to control the BROWSER window enclosing the APPLET, because all the forms triggers are related with forms only and one have no control over the BROWSER.
Please help.hi
try this.
BEGIN
/* ** Force validation to happen first */
Enter;
IF NOT Form_Success THEN
RAISE Form_Trigger_Failure;
END IF;
/* ** Commit if anything is changed */
IF :System.Form_Status = 'CHANGED'
THEN
Commit_Form;
/* ** A successful commit operation sets Form_Status back ** to 'QUERY'. */
IF :System.Form_Status <> 'QUERY' THEN
Message('An error prevented your changes from being committed.');
Bell;
RAISE Form_Trigger_Failure;
END IF;
END IF;
:system.message_level := '10';
COMMIT_FORM;
:system.message_level := '0';
if
:system.form_status != 'CHANGED'
then
-- go_block('block');
else
Message ( 'Your entered data could not be saved. Please check the form.' );
Message ( ' ' );
end if;
end; -----
On-Message trigger (Form Level)
begin
if
abs ( message_code ) = 40400
then
clear_message;
bell;
message ( message_text, no_acknowledge );
else
message ( message_text );
end if;
end;
Sarah -
ABAP Query display variant problem
Hi,
We have three different SAP clients development DV1, Staging ST1 and production PC1. I have created an abap query for which I m trying to create a global display variant (not user specific). I m able to do so easily in DV1 and PC1 systems. But when I try to create a display variant on ST1 by first running the report and then going to menu Settings->Layout->Save . I find that by default the User-Specific checkbox is selected and disabled. Because of this I can create only user specific display variants for my queries.
Where can I change the settings so that when I go to the above menu the User-specific checkbox is enabled and I m able to create global display variants ?
Thank you for reading.
KrishnaI am confuse after reading your question , any way we can adding "default" variant in SQ01. You can also assign the same variant in SE93 , when you create T-code for the specific query !!.
Well if it doesnt solve your problem ..please explain your question with the help of tr. codes and what youre trying to do !!
Im sorry , its really making me knutt by reading your question again and again .
Thanks
Saquib
Message was edited by: Saquib Khan -
Hi, I'm pretty new to TopLink and am having problems saving my project after mapping attributes one to many. I've included the stack trace below - the problem happens if I simply click the one-many icon and try and save.
Any help would be much appreciated!
Thanks,
Ewan Benfield
Throwable Class Name:
oracle.toplink.exceptions.QueryException
Message:
EXCEPTION DESCRIPTION: The object [BldrClass[2b74bd] (java.util.Vector, modifier = public , array=, implements [BldrClass[c1f5f] (java.lang.Cloneable, modifier = public abstract , interface, array=, implements []), BldrClass[1d39] (java.io.Serializable, modifier = public abstract , interface, array=, implements []), BldrClass[39e891] (java.util.List, modifier = public abstract , interface, array=, implements [BldrClass[ff7d3] (java.util.Collection, modifier = public abstract , interface, array=, implements [])])], extends AbstractList)], of class [class oracle.toplink.workbench.model.meta.BldrClass], with identity hashcode (System.identityHashCode()) [2,847,933],
is not from this UnitOfWork object space, but the parent session's. The object was never registered in this UnitOfWork,
but read from the parent session and related to an object registered in the UnitOfWork. Ensure that you are correctly
registering your objects. If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to
help debug where the error occurred. For more information, see the manual or FAQ.
QUERY: WriteObjectQuery(BldrClass[2b74bd] (java.util.Vector, modifier = public , array=, implements [BldrClass[c1f5f] (java.lang.Cloneable, modifier = public abstract , interface, array=, implements []), BldrClass[1d39] (java.io.Serializable, modifier = public abstract , interface, array=, implements []), BldrClass[39e891] (java.util.List, modifier = public abstract , interface, array=, implements [BldrClass[ff7d3] (java.util.Collection, modifier = public abstract , interface, array=, implements [])])], extends AbstractList))
Stack trace:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-6004] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: The object [BldrClass[2b74bd] (java.util.Vector, modifier = public , array=, implements [BldrClass[c1f5f] (java.lang.Cloneable, modifier = public abstract , interface, array=, implements []), BldrClass[1d39] (java.io.Serializable, modifier = public abstract , interface, array=, implements []), BldrClass[39e891] (java.util.List, modifier = public abstract , interface, array=, implements [BldrClass[ff7d3] (java.util.Collection, modifier = public abstract , interface, array=, implements [])])], extends AbstractList)], of class [class oracle.toplink.workbench.model.meta.BldrClass], with identity hashcode (System.identityHashCode()) [2,847,933],
is not from this UnitOfWork object space, but the parent session's. The object was never registered in this UnitOfWork,
but read from the parent session and related to an object registered in the UnitOfWork. Ensure that you are correctly
registering your objects. If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to
help debug where the error occurred. For more information, see the manual or FAQ.
QUERY: WriteObjectQuery(BldrClass[2b74bd] (java.util.Vector, modifier = public , array=, implements [BldrClass[c1f5f] (java.lang.Cloneable, modifier = public abstract , interface, array=, implements []), BldrClass[1d39] (java.io.Serializable, modifier = public abstract , interface, array=, implements []), BldrClass[39e891] (java.util.List, modifier = public abstract , interface, array=, implements [BldrClass[ff7d3] (java.util.Collection, modifier = public abstract , interface, array=, implements [])])], extends AbstractList))
at oracle.toplink.exceptions.QueryException.backupCloneIsOriginalFromParent(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.getBackupClone(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.getBackupCloneForCommit(Unknown Source)
at oracle.toplink.queryframework.ObjectLevelModifyQuery.prepareForExecution(Unknown Source)
at oracle.toplink.queryframework.WriteObjectQuery.prepareForExecution(Unknown Source)
at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
at oracle.toplink.internal.sessions.CommitManager.commitAllObjects(Unknown Source)
at oracle.toplink.publicinterface.Session.writeAllObjects(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.commitAndResume(Unknown Source)
at oracle.toplink.workbench.ui.BldrSession.saveProject(Unknown Source)
at oracle.toplink.workbench.ui.BldrMainView.saveProject(Unknown Source)
at oracle.toplink.workbench.ui.BldrMainView.saveSelectedProjects(Unknown Source)
at oracle.toplink.workbench.ui.BldrActionManager$104.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Hi Darren,
Thanks for the reply. No, it doesn't have neediness icons. Saving into a new, empty folder doesn't work and I now have two actions which cause a project that did save to stop saving:
1. Make a particular field 1-many and fill in the descriptor ( which works in generated code)
2. Generate a particular new class, specify primary key, and save.
I've been using TL for ten days or so without other problems - but the project saving is beyond me so far!
One can't reload Toplink from the XML files/ descriptor file rather than the project file perhaps?
Ewan -
Query Active Directory + Problem with thumbnailPhoto
Hi<o:p></o:p>
I have a problem and I don’t know if it is my SQL Query, so here goes
<o:p></o:p>
I have a view on my SQL server that Queries our Active Directory. I can see that there is data in the table.<o:p></o:p>
But when I try to use the Image in some C# code I get an error on 60% of the images with the exception header missing or corrupted.
My view is built with this Query:
select
* from
openquery
ADSI,'SELECT sAMAccountName, mail, title, displayName, telephoneNumber, mobile, sn, givenName, department, thumbnailPhoto
FROM ''LDAP:[REMOVED]''
WHERE objectCategory = ''Person''
Do you have any idea where the problem is? The photos shows up fine in Outlook, SharePoint, lync etc. I’m pretty sure that the C# code works correctly. Hope you can help.
Regards
If only I had time to learn everything I wanted ...Hi Latheesh
I've tried with this script:
SELECT ISNULL(ROW_NUMBER() OVER ( ORDER BY department ), -999) 'id' ,
CONVERT(NVARCHAR(25), givenName) AS Fornavn ,
CONVERT (NVARCHAR(50), sn) AS Efternavn ,
CONVERT(CHAR(5), UPPER(SUBSTRING(mail, CHARINDEX(mail, N'@'),
CHARINDEX(N'@', mail)))) AS 'initialer' ,
CONVERT(NVARCHAR(255), mail) AS Mail ,
CONVERT(NVARCHAR(75), title) AS Stilling ,
CONVERT(NVARCHAR(120), department) AS Afdeling ,
CONVERT(NVARCHAR(13), telephoneNumber) AS Fastnet ,
CONVERT(NVARCHAR(13), mobile) AS Mobil ,
CASE WHEN userAccountControl = 2 THEN 'Account is Disabled'
WHEN userAccountControl = 16 THEN 'Account Locked Out'
WHEN userAccountControl = 17
THEN CONVERT (VARCHAR(48), 'Entered Bad Password')
WHEN userAccountControl = 32
THEN CONVERT (VARCHAR(48), 'No Password is Required')
WHEN userAccountControl = 64
THEN CONVERT (VARCHAR(48), 'Password CANNOT Change')
WHEN userAccountControl = 512 THEN 'Normal'
WHEN userAccountControl = 514 THEN 'Disabled Account'
WHEN userAccountControl = 544
THEN 'Account Enabled - Require user to change password at first logon'
WHEN userAccountControl = 8192
THEN 'Server Trusted Account for Delegation'
WHEN userAccountControl = 524288
THEN 'Trusted Account for Delegation'
WHEN userAccountControl = 590336
THEN 'Enabled, User Cannot Change Password, Password Never Expires'
WHEN userAccountControl = 65536
THEN CONVERT (VARCHAR(48), 'Account will Never Expire')
WHEN userAccountControl = 66048
THEN 'Enabled and Does NOT expire Paswword'
WHEN userAccountControl = 66050
THEN 'Normal Account, Password will not expire and Currently Disabled'
WHEN userAccountControl = 66064
THEN 'Account Enabled, Password does not expire, currently Locked out'
WHEN userAccountControl = 8388608
THEN CONVERT (VARCHAR(48), 'Password has Expired')
ELSE CONVERT (VARCHAR(248), userAccountControl)
END AS 'Disabled' ,
CONVERT(NVARCHAR(75), givenName + ' ' + sn) AS 'DisplayName' ,
CONVERT (VARBINARY(MAX), thumbnailPhoto) AS 'Photo'
INTO ##adTemptable
FROM openquery
ADSI,'SELECT sAMAccountName, mail, title, displayName, telephoneNumber, mobile, sn, givenName, department, thumbnailPhoto,userAccountControl
FROM ''[REMOVED]''
WHERE objectCategory = ''Person''
WHERE department IS NOT NULL
But i still gets the same error on MANY rows
OLE DB provider 'ADsDSOObject' for linked server 'ADSI' returned truncated data for column '[ADsDSOObject].thumbnailPhoto'. The actual data length is 6846 and truncated data length is 4000.
OLE DB provider 'ADsDSOObject' for linked server 'ADSI' returned truncated data for column '[ADsDSOObject].thumbnailPhoto'. The actual data length is 7006 and truncated data length is 4000.
OLE DB provider 'ADsDSOObject' for linked server 'ADSI' returned truncated data for column '[ADsDSOObject].thumbnailPhoto'. The actual data length is 6496 and truncated data length is 4000.
If only I had time to learn everything I wanted ... -
How can i use index in select query.. facing problem with the select query.
Hi Friends,
I am facing a serious problem in one of the select query. It is taking a lot of time to fetch data in Production Scenario.
Here is the query:
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelat LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelatrprctr
WHERE rldnr = c_telstra_accounting
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
And rzzlstar in r_lstar
AND rpmax = c_max_period.
There are 5 indices present for Table ZTFTELAT.
Indices of ZTFTELAT:
Name Description
0 Primary key( RCLNT,RLDNR,RRCTY,RVERS,RYEAR,ROBJNR,SOBJNR,RTCUR,RUNIT,DRCRK,RPMAX)
005 Profit (RCLNT,RPRCTR)
1 Ledger, company code, account (RLDNR,RBUKRS, RACCT)
2 Ledger, company code, cost center (RLDNR, RBUKRS,RCNTR)
3 Account, cost center (RACCT,RCNTR)
4 RCLNT/RLDNR/RRCTY/RVERS/RYEAR/RZZAUFNR
Z01 Activity Type, Account (RZZLSTAR,RACCT)
Z02 RYEAR-RBUKRS- RZZZBER-RLDNR
Can anyone help me out why it is taking so much time and how we can reduce it ? and also tell me if I want to use index number 1 then how can I use?
Thanks in advance.Hi Shiva,
I am using two more select queries with the same manner ....
here are the other two select query :
***************1************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelpt LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelptrprctr
WHERE rldnr = c_telstra_projects
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
and rzzlstar in r_lstar
AND rpmax = c_max_period.
and the second one is
*************************2************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelnt LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelntrprctr
WHERE rldnr = c_telstra_networks
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
and rzzlstar in r_lstar
AND rpmax = c_max_period.
for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables. if i will not use it will delete all the data fetched earlier.
Thanks on advanced......
Sourabh -
Error executing a query (validity interval problem in variable)
Hi all,
I have an issue in a query.
While executing the query i am getting following error
"THE VALIDITY INTERVAL HAS THE INITIAL VALUE AS LOWER LIMIT"
There are two CALMONTH variables that are being used in the query and are also used as selection variables
1) interval characteristic mandatory variable
2) single value characteristic mandatory variable
Please suggest me what might be the problem.
Any suggestions are welcome.
Thanks
MuditHello,
I tried debugging my query in RSRT and i have found a possible reason for that.
My query was built on a multiprovider in which data was not loaded in one of the cube.Since no request was loaded in the infocube initial fields of all time characteristics were empty which was the reason for the error.
Thanks once again for your valuable inputs.
Mudit -
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 -
Hello Gurus
I have a problem with my select statement which contains 2 function in it. These functions cause the query to run slow. I have cross checked with all the indexes, statistics and index used within the function they are all correct.
Please some one tell me why is this happening. There was a database crash since then this has started to happen. I have revalidated the fucntions and indexes, still it does not help any.
A questions comes to my mind will it be solved by pinning these functions in memory? and how that could be done.
Please help me at the earliest.
Thanksfirst function
=========
function CS_GET_AGENT_TRACK_DATA (
v_ACCOUNT_NUM VARCHAR ,
v_USER_ID VARCHAR,
v_OEM_ID NUMBER
return VARCHAR
is
L_INFO VARCHAR(2000) := '';
L_EMPTY_INFO VARCHAR(2000) :='N' || CHR(2) || 'N' || CHR(2) || '0' || CHR(2) ||
cursor get_AGENT_TRACK_DATA (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR, P_OEM_ID N
UMBER) is
select
NVL(IN_OUT_FLAG,'N') || CHR(2) ||
NVL(AVAILABLE_FLAG,'N') || CHR(2) ||
NVL(AGENT_INCIDENT_LOAD,0) || CHR(2) ||
ASSIST_LIST
from
WEBTEL.CS_AGENT_TRACK
where
AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
AGENT_USER_ID = P_USER_ID and
OEM_ID = P_OEM_ID ;
--cursor get_LAST_ACTIVITY_DATE (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR) is
-- select
-- NVL(IN_OUT_FLAG,'N') || CHR(2) ||
-- NVL(AVAILABLE_FLAG,'N') || CHR(2) ||
-- NVL(AGENT_INCIDENT_LOAD,0) || CHR(2) ||
-- ASSIST_LIST
-- from
-- WEBTEL.CS_AGENT_TRACK
-- where
-- AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
-- AGENT_USER_ID = P_USER_ID and
-- OEM_ID = P_OEM_ID ;
BEGIN
OPEN get_AGENT_TRACK_DATA (v_ACCOUNT_NUM, v_USER_ID, v_OEM_ID);
FETCH get_AGENT_TRACK_DATA into L_INFO;
IF (get_AGENT_TRACK_DATA%NOTFOUND) THEN
L_INFO := L_EMPTY_INFO;
END IF;
CLOSE get_AGENT_TRACK_DATA;
IF ((LENGTH(L_INFO) <= 0) or (L_INFO IS NULL)) THEN
L_INFO := L_EMPTY_INFO;
END IF;
RETURN L_INFO;
EXCEPTION WHEN OTHERS THEN RETURN L_EMPTY_INFO;
END;
second function
============
function CS_GET_AGENT_OPEN_COUNT (
v_ACCOUNT_NUM VARCHAR ,
v_USER_ID VARCHAR,
v_ADD_HANDICAP NUMBER default NULL,
v_HANDICAP_OEM NUMBER default NULL
return NUMBER
is
L_INFO NUMBER := 0;
L_RET_VAL NUMBER := 0;
L_USING_AGENT_TRACK NUMBER := 0;
cursor get_AGENT_OPEN_COUNT (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR) is
select /*+ INDEX_COMBINE(CS_INCIDENT_TABLE) */
count(*)
from
WEBTEL.CS_INCIDENT_TABLE
where
AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
AGENT_USER_ID = P_USER_ID and
INCIDENT_STATE < 2 ;
cursor get_HANDICAP_COUNT (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR, P_OEM_ID NUM
BER) is
select
NVL(AGENT_INCIDENT_LOAD,0)
from
CS_AGENT_TRACK
where
AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
AGENT_USER_ID = P_USER_ID and
OEM_ID = P_OEM_ID ;
BEGIN
OPEN get_AGENT_OPEN_COUNT (v_ACCOUNT_NUM, v_USER_ID);
FETCH get_AGENT_OPEN_COUNT into L_INFO;
IF (get_AGENT_OPEN_COUNT%NOTFOUND) THEN
L_INFO := 0;
END IF;
CLOSE get_AGENT_OPEN_COUNT;
L_RET_VAL := L_INFO;
IF ((v_ADD_HANDICAP is not null and length(v_ADD_HANDICAP) > 0) AND
(v_HANDICAP_OEM is not null and v_HANDICAP_OEM > 0)) THEN
L_USING_AGENT_TRACK := WEBTEL.IS_SITE_CONFIG_ON('AGENT_TRACKING_ENABLED',v_HAN
DICAP_OEM);
IF (L_USING_AGENT_TRACK > 0) THEN
OPEN get_HANDICAP_COUNT (v_ACCOUNT_NUM, v_USER_ID, v_HANDICAP_OEM);
FETCH get_HANDICAP_COUNT into L_INFO;
IF (get_HANDICAP_COUNT%NOTFOUND) THEN
L_INFO := 0;
END IF;
CLOSE get_HANDICAP_COUNT;
L_RET_VAL := L_RET_VAL + L_INFO;
END IF;
END IF;
RETURN L_RET_VAL;
EXCEPTION WHEN OTHERS THEN RETURN 0;
END;
These are the two functions
thanks -
Acrobat Reader Versions and saveAs, exportXFAdata Problems
We use generate Forms with Reader Extension Save enabled.
The forms are then opened within Acrobat Reader. In the onClose Event a Script called "saveXMLData" is called. This script is install in the javascript folder of the reader installation.
The script :
var saveXMLData = app.trustedFunction(function(doc)
app.beginPriv();
doc.saveAs({cPath:"/c/windows/temp/savedForm.pdf",
bCopy: true,
bPromptToOverwrite: false });
doc.exportXFAData({
cPath:"/c/windows/temp/savedForm.xml",
bXDP:false
app.endPriv();
return;
Using Acrobat Reader 7, eveything worked fine.
Using Acrobat Reader 9 "saveAs" crashes the Application after the document is saved and the filled in Data is not saved.
Without the saveAs function, at least the export File is generate but the data that where filled in are missing.
Using Acrobat Reader X "saveAs" crashes the Application as well. Leavin out the saveAs function, the export File is generated as expected. Thus the filled in data values are saved.
Using Acrobat X Pro everything works as with Acrobat Reader 7.
Our Problem is that the customer uses Acrobat Reader 9. Are there expected incompatibilities with the different versions. Does anybody know any workarounds, settings?
By the way disabling extended security does not help.
Thanks
MaxIt cannot be a problem of the installation, because at least Windows 7
was a fresh install with nothing but Reader additionally installed.
By the way, what do you mean by "risky", I followed straight the
documentation from Adobe, where one is allowed to place function calls
requiring a privileged context.
Have you any better idea where to place the call to save? It must be
called automatically, when the User closes the window, no additional
interaction is possible.
One other thing is the call to exportXFAData, have you any idea why
there is a difference in behavior between reader version 7 / 10 and 9?
I wrote that in version 9 the user entered data is missing.
Am Donnerstag, den 21.07.2011, 05:53 -0600 schrieb try67:
No, it doesn't work.
Sorry, I don't have any ideas except for trying to repair the installation
of Reader.
However, placing code in the WillClose event is considered risky and should
be avoided if there are alternatives available.
>
Maybe you are looking for
-
Officejet 4500 will not print black ink
Our small office has had an Officejet 4500 for a few months now with no problems. Today it has ceased printing any black ink. -I have changed the cartridge to be sure, though at no point has it said low ink. This fixed the problem for a few pages but
-
Different Password Policy for Different User Groups in ACS 4.2
Hi All, Can some one provide a solution for the below requirement? We do have ACS 4.2 appliance managing firewalls of different clients. The users are common i.e, helpdesk administrators. One of the client came up with setting different password poli
-
FCPX is producing video with a stutter on playback
This happens with video uploaded to youtube as well as saved on DVD. I just tired it again with a short video I just uploaded to YouTube. It starts happening 5 seconds in. See here http://youtu.be/gM6jJMMUxUo The audio is fine, its just the videos th
-
Safari Forgets Download Folder
I have created a Safari downloads folder with a folder action script to automaticaly open certain files on download. The problem is Safari keeps forgetting the folder I set in Preferences and reverting to the Desktop for downloads. I have erased the
-
Error when attempting to merge OCS R2 and Lync 2010 Topology
Hello, We are having an issue when trying to merge our OCS R2 and Lync 2010 deployment. The error is as follows: TopologyXmlFileWriter::OpenReportFile IOException: Message 2014-01-22 17:15:54 INFORMATION : Executing query: "SELECT * FROM MSFT_SIPES