Problem with report with filter from other query
Hi All,
I have some report with two queries:
1. First contain Date(1) converted to int (like 20140807). This query calculate Date as getdate minus number of day which I could define (for example -8 return getdate minus 8 days).
2. The second contain also Date(2) converted to int. I would like to add filter where Date(2) will be on the list from results in query 1. When I try do this I receive:
Database error: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. (IES 10901) (WIS 10901)
When I have changed number of days from -8 to -30 in query 1, query 2 return some records.
I do not know why it work sometimes, sometimes not.
Sathish, but I use defined by me objects (today number + days) and (today number) in BO so I do not want to change it manually.
Arijit, the second query without any filters return records with Date(2) equal 20140715. When I add filter with Date(2) = returned data from query 1 (getdate minus 8 days) I receive error. I know that getdate minus 8 days return dates (20140807...20140801) so 20140715 is out of the range. In this case query should return blank page.
When I change query 1 from 8 to 30 days is working correctly because 20140715 is in this range. Maybe it help to help me
This is condition from query1:
WHERE
dbo_Date.DateID(1) BETWEEN year( ( cast(convert(varchar, dateadd(day,@Prompt('Enter the number of X days', 'N',,Mono,Free, Persistent),getdate()) , 102) as datetime) ) )*10000 + month(( cast(convert(varchar, dateadd(day,@Prompt('Enter the number of X days', 'N',,Mono,Free, Persistent),getdate()) , 102) as datetime) ))*100 + day( ( cast(convert(varchar, dateadd(day,@Prompt('Enter the number of X days', 'N',,Mono,Free, Persistent),getdate()) , 102) as datetime) ) ) AND year( getdate() )*10000 + month(getdate())*100 + day( getdate() )
but I use the same condition in other reports and it is work.
Similar Messages
-
I cannot download videos with flash video downloader from other websites also.Whenever I want to download video it says choose file.
I don't know that any Flash downloader extensions work in Firefox for Android. You would be best off asking for support from the extension authors at https://fvdmedia.userecho.com/list/21650-firefox-extensions/?category=4944
-
Alternative for result from other query and merge dimension option option
Hi Everyone ,
Am Developing one webi report over bex Query.
Actual scenario is output of one webi report should be the input of other webi report.
Eg:
Table 1
2010 Cus 1
2010 Cus 2
2011 Cus 3
table 2
cus1 m1 100
cus2 m2 200
Cus3 m1 400
Report 1 designing
First report created using table 1 and prompt for year
Report 2 designing
Second report created using table2 and prompt for customer
So when am Running first report it will ask for parameter year and if am selecting 2010 then the report will return C1 and C2
this out put should e the input for report 2.
So out put will be 100+200=300
NOTE:1. Result from other query is not working in webi filter pane since am building on olap universe.
2. Merge Dimension performance is very slow .
Any Solution ?
Regards,
Kannan.BHi,
Thanks for ur reply
As you said , If am giving hyperlink to other report .
Eg: User selected Tamilnadu then report 1 opened then he has to click the some cell or hyperlink cell to view the actual report(2nd report).
Suppose user Clicked that hyperlink cell and 2nd report opened and he is viewing the data for Tamil nadu and he decided to see the report for
Andrapradesh so according to this logic he has to select first report and refresh the data for Andra and from there he has to come to 2nd report.
totally 4 screen will be opened for seeing the two states report.
So Some other alternative....... -
Problem refreshing reports with params in the Interactive viewer from ASP
I have a problem getting reports to refresh by clicking the Interactive Viewer's refresh button and reusing the supplied parameters. I am seeing this exact same problem on both V9.2 and 11.5 unmanaged RAS servers.
I am using the following function code to set the reports parameters:
Public Sub PassParameter(param_index, param_value, param_is_multi,param_range_kind)
Dim param_old ' parameter field in the report
Dim param_new ' parameter field that will replace old parameter
Dim paramValue ' discrete parameter value
Dim aValues
Dim rValues
Dim iLoop
Set param_old = clientDoc.DataDefinition.ParameterFields.Item(param_index)
Set param_new = objFactory.CreateObject("CrystalReports.ParameterField";)
If param_range_kind = 1 then
Set paramValue = objFactory.CreateObject("CrystalReports.ParameterFieldDiscreteValue";)
paramValue.Value = param_value
else
Set paramValue = objFactory.CreateObject("CrystalReports.ParameterFieldRangeValue";)
rValues = split(param_value, "|")
paramValue.BeginValue = rValues(0)
paramValue.EndValue = rValues(1)
paramValue.LowerBoundType = 2
paramValue.UpperBoundType = 2
end if
param_old.CopyTo param_new
if param_is_multi = 0 then
param_new.CurrentValues.Add paramValue
else
aValues = split(param_value, ",")
For iLoop = LBound(aValues) to UBound(aValues)
param_new.CurrentValues.Add Trim(aValues(iLoop))
Next
end if
clientDoc.DataDefController.ParameterFieldController.Modify param_old, param_new
' Clean up
Set paramValue = Nothing
Set param_new = Nothing
End Sub
and then redirecting to another ASP page to invoke the viewer (the report "clientDoc" object is passed to the viewer asp page a s a session variable). The code of the viewer page is:
<%
Response.ExpiresAbsolute = Now() - 1
Response.Charset=";UTF-8"
Dim clientDoc
Set clientDoc = session("clientDoc")
Dim ObjFactory, RptAppSession
Set ObjFactory = CreateObject("CrystalReports.ObjectFactory";)
Dim viewer
Set viewer = ObjFactory.CreateObject("CrystalReports.CrystalReportInteractiveViewer";)
viewer.PageTitle = "Interactive Report - " & Request("rptnam")
viewer.IsOwnForm = true
viewer.IsOwnPage = true
viewer.HasRefreshButton = true
viewer.EnableParameterPrompt = false
viewer.ReuseParameterValuesOnRefresh ; = true
viewer.HasExportButton = false
' viewer.HasPrintButton = false
viewer.ReportSource = clientDoc.ReportSource
Dim BooleanSearchControl
Set BooleanSearchControl = ObjFactory.CreateObject("CrystalReports.BooleanSearchControl";)
BooleanSearchControl.ReportDocument = clientDoc
viewer.BooleanSearchControl = BooleanSearchControl
viewer.ProcessHttpRequest Request, Response, Session
%>
If I set viewer.EnableParameterPrompt = false then I get an erro upon clicking the viewer's refresh button (error is: Missing parameter values. webReporting.dll error '8004100e' ), but if I set viewer.EnableParameterPrompt = true, then I get the automatically generated prompts appear but they are all empty. Either way, RAS doesn't remember the supplied parameters. I know the parameters are being read by RAS as the report's contents prove this fact, but they are not remembered after refreshing. If the automatically generated prompts are filled in and submitted, subsequent refreshes work correctly.
How do I get the report viewer to reuse the parameters that have been set programmatically after a refresh? BTW, changing my implementation to anything other than using ASP against an unmanaged RAS server is not an option at this time.
Thanks in advance!
Dave.Hi Dave,
I don't have a "nice" set of code lines but below hard codes one parameter name and value:
ISCRParameterField newParameterField = new ParameterFieldClass();
newParameterField.ParameterType = crParameterFieldTypeEnum.crParameterFieldTypeReportParameter;
newParameterField.Name = "YourParamName"; // you can make a collection here
newParameterField.ReportName = "";
newParameterField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField;
newParameterField.AllowMultiValue = true;
newParameterField.AllowCustomCurrentValues = true;
Fields parameterFields = reportClientDocument.DataDefinition.ParameterFields;
ISCRField existingParameterField;
RowsetMetaData rowsetMetaData = new RowsetMetaDataClass();
Fields fields = new FieldsClass();
ArrayList defaultValues = new ArrayList();
reportClientDocument.DataDefController.ParameterFieldController.SetCurrentValue("", @"YourParamName", @"YourParamValue");
Thanks again
Don -
Oracle report problem-Passing a column value from a query block to another
Hi I am facing a problem in oracle reports.
I have 3 query blocks say Q1,Q2 and Q3.
From Q1 I get a tblkey coulmn and for each value of tblkey I need to pass it on to Q2 which gives me a status and now finally Q3 will take tblkey and status to give me final output.
Can somebody please tell me how I can do it?
Thanks,
AvinDepending on your report requirement, you may do a join of Q1, Q2, and Q3; or keep all Qs and for Q3 use subqueries ...
Select ... from ... where tblkey, status in (
select tblkey, status from ... where tblkey in (
select tblkey from .... where .... ) )
Good luck.
DC -
Problem opening reports with a user in the Oracle Directory.
I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory.
I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to the new role I created.
I accessed then the administrator tab in XML publisher. I went to roles and the role I created was there. When I tried to add a folder. I'm able to add the folder there. I click on apply and then when I enter in the security Settings again the folder is not there anymore.
I get the following error in the log:
[021207_103218621][][EXCEPTION] oracle.apps.xdo.servlet.resources.ResourceNotFoundException: /opt/oracle/infra2/j2ee/home/xmlpublisher
/Admin/Security/security.xml
When I access xml publisher with the user A, who belongs to the new role I'm working with, I'm not able to see any folder, nor anything else.
Do you have any ideas about what could be going wrong?
Thanks,
JoaquinCan you replay how? I have been facing this problem for nearly 3 months without any solution. Please help me.
Debarati -
Creating a property with list values derived from other hierarchy
Hello Friends,
Thanks in advance for any help in this regard.
1) Can we have a property with list values populated automatically from other hierarchy.
2) Can we select multiple items from the list box. Does property allows multiple values.
The example is like this. There are 2 hierarchies.
Customer
Customer 1
Child Customer
Industry
Hightech
Computers
TVs
Manufacturing
Auto
Steel
Healthcare
Pharma
HealthInsurance
The requirement is to add Industry hierarchy as property of Customer Hierarchy and select each customer is what type of Industry they belong as a property value.
ThanksUse property data type ListGroup for multiselect.
To select values from another hierarchy you can use Node or MultiNode, or an Asscociated Node property, of which there are several types. I'm not fond of the property editors for Node data types and will often just use a string and validate the user input by defaultin prefixes and such with a derived property that is checked by a query based validation. Make sense? -
Issues with report with checkbox
Hi friends,
i have created a report with checkbox.
the query is
> select apex_item.checkbox(1,person_id,'unchecked') "select",
person_id,
AVAIL_SAL_CERTIFICATE,
OCCURANCE,
LAST_AVAILED_DATE,
REASON,
EFFECTIVE_START_DATE,
EFFECTIVE_END_DATE
from YY_SALARY_CERTIFICATEnow am having one button in my report region. suppose if i checked the particular row in report and clicked that button it should redirect to next page which is a form page it contains all the fields what report page had and it should display the value of corresponding report row which i checked.
how i can achevie this?
pls someone help me...<li>On Submit PLSQL
DECLARE
lc_colln_name VARCHAr2(100) := 'MY_COLLN';
BEGIN
APEX_COLLECTION.CREATE_COLLECTION(lc_colln_name);
FOR i IN 1..APEX_APPLICATION.G_F01.COUNT --use the checkboxes array index used in query
LOOP
--Add each checked record id to collection
APEX_COLLECTION.ADD_MEMBER
p_collection_name => lc_colln_name
,p_c001 => APEX_APPLICATION.G_F01(i) --Now c001 column of collection has this id
END LOOP;
END;<li>SQL Query of report in Page 2
select person_id,
AVAIL_SAL_CERTIFICATE,
OCCURANCE,
LAST_AVAILED_DATE,
REASON,
EFFECTIVE_START_DATE,
EFFECTIVE_END_DATE
from YY_SALARY_CERTIFICATE
,apex_collections AC
where AC.collection_name = 'MY_COLLN' --use the name of the collection created previously
AND person_id = AC.c001 -
Need to create form on a table with report with a table has NO primary key
Hi, I tried to created some insert/update/delete form+report in an application, it works fine only if the table has primary key. Does anyone know how to create the same functionality with a table with no primary key? I saw an application is built on older version of htmldb that is using tables with no primary keys at all.
Here are the specific issues that I am facing:
- I am building some Form on a table with Report, it requires the table with primary key for form to update. Is there a workaround that I can use tables that has no primary keys at all?
- Say if primary key is necessary in the previous report+form, but the maximum number of columns that I can use to composed a primary is only 2 for that Form-Report, I cannot find anything handling > 2 primary key. Do you know if there are some ways to composite a primary key from many columns together?
Your help is really appreciated.
Thanks,
AngelaSorry to ask response so late. I had no time to get back to that issue before.
Regarding the triggers, I can make it work for the update, but not the insert.
Here is my trigger:
create or replace trigger STATUS_T1
instead of insert on STATUS
begin
insert into STATUS ("LABEL", "AREA", "OWNER", "TEST_NAME", "STATUS", "REMARKS", "BUGS", "DEV_MGR", "TEST_BY_DATE")
values(:new.LABEL, :new.AREA, :new.OWNER, :new.TEST_NAME, :new.STATUS, :new.REMARKS, :new.BUGS, :new.DEV_MGR, :new.TEST_BY_DATE);
end;
by any chance, you can notify what is wrong?
I already skip the ROWID when inserting to the view STATUS, but I cannot figure out what is wrong when inserting a new record to that view.
It gave me the following errors:
ORA-06550: line 1, column 38: PL/SQL: ORA-00904: "ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table STATUS
Then, I turned to debug mode, I am thinking that maybe because I use a HIDDEN item to hold the value of ROW_ID as I use the rowid (called ID in the view) to retrieve the record as a column link from previous page. What do you think?
Thanks again,
Angela -
Problems With PrE 8 - Split From Other Thread
GEAtkins (Glenn) posted some info on his system into another THREAD. He posted a lot of good information on his system and also on some diagnostics, that I asked for. For anyone, who wants to see his info and a complete statement of his problems, please see the link above. It's a well-detailed post, and he's been quick to furnish the requested data. It's being reviewed now, but would also like for others to review it too, as there might be additional ideas.
I do not want to pollute that other thread with work on Glenn's issue, or drag it on a tangent, so I'd appreciate that anybody with input on Glenn's problems post to this thread. I will be doing so, as soon as the review of the diagnostics is done. I also did not want to re-post all info provided here, so please just link and read.
I hope that this will be beneficial to Glenn and not interfere with another thread requesting reports on how PrE 8 runs on others' systems.
Thanks,
HuntGlenn, it appears that you have 3x HDD's, 1x = 250GB, 2x = 350GB. Are these 3x physical HDD's, and not partitions?
How are these HDD's allocated? I see that D:\ is nearly full. How is this drive, especially, used?
I hope that you do not mind my calling in an expert on this, but I knew that Harm would find more things, than I would. First, his eyesight is better than mine, and he's also smarter! [plus most people say he's also better looking, than I am.]
To distill my recs., and I think most of Harm's:
Look into static Virtual Memory management in Windows. Up the size of the Page File. Around 2 - 2.5x installed RAM works well for NLE work.
There are some Processes that can probably removed from Startup. iTunes Helper is one of those. When doing an editing session, I strongly recommend not having any on-line presence, and then freeing up resources, for that session, by turning OFF some of your security functions. Then, using a Process manager, like EndItAll, to eliminate those Processes, that are not needed. Even on my workstation, for all but the most simple edits, I do this routinely. It is easy, and one can come back and turn those on manually, or just re-boot, and they'll all be loaded.
Also, please let me know about your I/O sub-system, i.e. your HDD's. The main questions are above.
Harm and I are pretty much in agreement that there should not be any conflicts with your NLE and audio-editing programs. I have most on my workstation, plus many more audio-editing programs (just not Sony). I have no issues doing so. I believe that all were installed after PrPro, and I've seen no priority issues with any CODEC, or modules. All runs fine, so I do not think that there would be a conflict there. I have observed that Adobe, CyberLink and Magix all seem to play very well together, at least in my installation.
Good luck,
Hunt
PS - Harm, thank you so much for your time and your report. I know that your efforts will help Glenn, and I appreciate your input, as always. Thanks! The next bottle of Montrachet is on my tab, OK?
[Edit] One last question: regarding the SearchIndexer, do you have Windows' Indexing turned on for your HDD's? That program can not only rob resources, but will "lock" your Folders, while it tries to do its thing. It can be useful for .DOC, .TXT, etc. files, but for AV files, and especially the large working files that any NLE generates, it cannot extract any useful info, yet it will try, and try. Every time that a file is changed, like your PREL file, or those working files, it'll run in and "lock" that file, while it tries to extract info from it - every time. It can be turned OFF in your My Computer>[Drive Letter]>Properties panel. In XP, one can determine it's indexing by folders, so one could leave it ON for say your .DOC folder. I do not know how finely you can tune it in Vista, or Win7. I keep it OFF for all HDD's, and a Search is not much slower. Remember, it cannot extract useful data from the AV, or working files, no matter how many times it tries, so all it's doing is hogging resources and "locking" files, that your NLE needs and changes all the time.
Message was edited by: the_wine_snob - Added [Edit] -
Problem with loading a project from other system
Hi!
I am tring to load a project that being done on logic with audiowerk card on other computer. I can open the project but when I am choosing a channel and changing the sound-card name to my card (core audio) I can hear the sund but all the plug-ins/instruments disapear allthough i got the plug-ins and most of them are logic built in plug-ins.
What should I need to do in order to keep the plug ins and still be able to play the project from my sound card.
I have logic 7.1,Mac g5 and M-box.
Thanks,
Eshy.You should have chosen the other option when first launcing it
Convert to CA=yes
Usually this dialogue comes up, sounds like you brought it from an OS 9 system. The Logic plugs should follow through and the VSTs, well, you're kinda stuck there. Ask your client/friend to send the presets for 3rd party VSTs if you have them as AUs. Session interchange between your 2 platforms is not very rewarding, so do it as little as possible. -
Problem with report after moving from version 8.5 to 11
Post Author: kenbrien
CA Forum: General
I have a Crystal Report which was created in version 8.5 that is going against an Oracle datasource. When we upgraded to Report Server XI the report worked almost the same but it began to truncate a memo field that is on the report. The field can be up to a few hundred characters long but it truncates it to only the first 2 characters. In addition there is also one field in a Group Header that no longer displays when we run the report. The design of the report hasn't changed so how do we fix the problems introduced since going to XI? Where do I start looking?
Thanks.Hi,
Try this link for update and hot fixes,[ Click Here|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
regards,
Clint -
Publisher11g - no return data with a data model from logical query
Hi, i am usign publisher11g with obiee bi server autenthication.
On rpd i define a security model with a user variable, a initialization block and a where over one fact table.
When i create a answer report, bi server automatically include on the wher something like this: where user = 'name'.
Well, when i create a publisher report and try to view data from this fact table, return no data.
If i create a data model only with a dimension table, not over automatic where from bi server, the report return data.
View the log nqquery, i see that the generate query include where user ='', not include the value of a session variable.
Any idea?
Thanks.I do have one question, is the member Balancesheet already in the outline?
Yes
**Measure
Balance Sheet
Profit and Loss**
Also in the load rule did you change the dimension load settings for the accounts dimension to be parent/child for the accounts dimension.
Field Properties -> Dimension Build Properites
Dimension=
Field 1 Measure; Type = Parent
Field 2 Measure; Type = Child
Field 2 Measure; Type = Alais
OK
Quite often people don't realize they have to double click on the dimension name to make sure it gets put as the dimension that gets changed.
I'm pretty sure your issue is it is trying to do the data load and not the dim build,but that could just be the first problem
**Click on Dimension Build Field
Click on Dimension Build setting
Dimension = Measure; Build Method; = Parent/ Child**
Please advise -
Problem printing Report with Image in BI Publisher 11g
I am working with BI publisher *11g* but I have problem printing images. Everything works fine if I do not include any images however when I add a image I get following problems.
When I tried printing PDF in output I get
Type /Xobject
subtype /Image
Filter /DTDDecode .......
When I tried printing HTML output I get
Type /Xobject
<html...
....>
When I tried printing RTF I get
{ \fontb1 }
{ \f0 Arial;}
{ \f1 Times:}
I think I am missing some BI publisher configuration. Can you help me in this regard.
Thanks,
Santosh
Edited by: user4956795 on Jan 16, 2012 2:08 PM
Edited by: user4956795 on Jan 16, 2012 2:18 PMIsn't there a way for you to do this via a Package/Procedure versus having multiple queries?
Per the BI Publisher guide,
Following are recommended guidelines for building data models:
Reduce the number of data sets or queries in your data model as much as possible. In general, the fewer data sets and queries you have, the faster your data model will run. While multiquery data models are often easier to understand, single-query data models tend to execute more quickly. It is important to understand that in parent-child queries, for every parent, the child query is executed.
You should only use multiquery data models in the following scenarios:
To perform functions that the query type, such as a SQL query, does not support directly.
To support complex views (for example, distributed queries or GROUP BY queries).
To simulate a view when you do not have or want to use a view.
Thanks,
Bipuser -
Problem running reports with graphics in 11i
Hi,
I have developed some custom reports (using
Reports 6i) with graphics charts embedded within them. I would like to display the output from within Oracle Applications 11i.
There seem to be two approaches:
1. Invoke the report from Oracle Self-Service using OracleOasis.runReport
2. Register the report as a concurrent request (with HTML/PDF output) and run it using the concurrent manager
Approach 1 requires the reports server cgi which I start using adrepctl.sh. Approach 2 requires the concurrent manager which I start using adcmctl.sh.
The problems start to occur depending on how and from where I start these scripts. The exact problem occurs in both cases.
If these scripts are started:
1. From a regular telnet window from a windows NT box
The reports error out with a REP-3000 internal toolkit error
2. From an Exceed xterm session and I keep the Exceed session alive (I tried both TrueColors and PseudoColors settings)
The reports work but there are problems with the output - pie colors do not appear (everything is white, for e.g.), etc.
3. From the Sun Solaris console
The reports work fine.
The problem is that method 3 is not very convenient since every time I bring down the concurrent manager or reports cgi server, I need to walk to a different building (where the Sun boxes are) to start it.
Method 2 above isn't particularly great either (even assuming I can get it to work) since I need to have an exceed session running all the time.
Can some one offer suggestions to solve the problem I'm having? Even clues on why method 2 above is not working as expected would be greatly appreciated.
Thanks,
- NRProblem solved! As long as the xhost + is set on the host machine and some one is logged in, it appears that one can simply set the DISPLAY environment variable to point to the host (even from a simple telnet window) and start the reports server or concurrent manager. Looks like you also have to have REPORTS60_NO_DUMMY_PRINTER set to "YES".
Maybe you are looking for
-
Printer driver for an HP LaserJet 1000 series for use with Windows 7
The CD ROM HP LaserJet 1000 series printer driver is not recognized by my new Windows 7 PC. So the printer does not work. I've looked on the HP web site for compatible drives and get the hint that a Vista driver would work. Can someone please confirm
-
UJR_WRITE_BACK: disaggregation based on previous yearu2019s data
Hi Guys, We implement a UJR_WRITE_BACK that performs correctly the evenly disaggregation on two dimensions (product and time). We have to implement the disaggregation based on previous yearu2019s data mentioned in the How-To u201CHow To... Use the Wr
-
I just transferred all purchases from my older iPad 1 to a new instance of iTunes and then synced a new iPad3 to try picking up my music, apps, video and books. I can access and play music, video and apps but when I go to iBooks, nothing displays an
-
After reading the Cisco documentation, it seems that the Lightweight AP's are reduced to ceiling/wall decorations when the WLC is off the network or otherwise unreachable. Is this true? Do they provide for no client connectivity whatsoever if the W
-
Hi All, I am trying to make MDM CLIX command works but I still have the same error : Error: 0x8002000e, File failed a crc check And I am not completely sure if my syntax is correct or not NM