Friday, March 30, 2012
Jump to URL - Javascript
I have put and URL link in an report as follows to open a new
window(cotaining another report)
="javascript:void(window.open('http://localhost/ReportViewer/ReportFrame.aspx?rptPath=REPORTPATH&args="
& REPORTARGS &
"','GraphDetail','left=50,top=50,width=800,height=580,menubar=no,resizable=yes,scrollbars=Yes,status=yes,toolbar=0'))"
When the report is displayed for the first time...the URL link works fine. I
get an security msg from adobe reader saying document is trying to open this
link ..asks to block or allow...when i click Allow ..the new window
opens(with the report). But when i close this new window and reclick the
link...it does not work.
I have been stuck in this for 4 days now...i am not getting what is the
issue...
The aspx page has frames...but i do not see any issue with that either...i
am tried with a simple aspx page...same issue...i have tried allowing
pop-ups ...etc
I think this is issue with adobe reader ..because if i display the report
in HTML format...the link works fine...opens every time i click it!!!!.
Has anyone has had any similar issues!!!!...
Can anyone help me ...all i want to do is...open a link in new window from
an deployed PDF report ...link is an aspx page with a new detail report.
Thanks.Hi,
my jump to link is similar and working.
my link is like this..
="javascript:" &
IIF(Fields!Acked.Value = 1,"void(0)",
"var sRS='" & Globals!ReportServerUrl &
"';void(window.open(sRS.substring(0,sRS.indexOf('/ReportServer')) +
'/rtreporting/acknowledge.aspx?FilterID=" & Fields!FILTERID.Value &
"&prmServer=" & Fields!SERVER.Value & "&prmStartDate=" &
Format(Parameters!prmDateFrom.Value,"yyyy-MM-dd HH:mm:ss") & "&prmEndDate=" &
Format(Parameters!prmDateTo.Value,"yyyy-MM-dd HH:mm:ss") & "','_blank'))")
can you use Globals!ReportServerUrl instead of localhost.
also try using _blank parameter and make it default size..
"Sunny" wrote:
> We are displaying reports in a PDF format through an aspx page.
> I have put and URL link in an report as follows to open a new
> window(cotaining another report)
> ="javascript:void(window.open('http://localhost/ReportViewer/ReportFrame.aspx?rptPath=REPORTPATH&args="
> & REPORTARGS &
> "','GraphDetail','left=50,top=50,width=800,height=580,menubar=no,resizable=yes,scrollbars=Yes,status=yes,toolbar=0'))"
>
> When the report is displayed for the first time...the URL link works fine. I
> get an security msg from adobe reader saying document is trying to open this
> link ..asks to block or allow...when i click Allow ..the new window
> opens(with the report). But when i close this new window and reclick the
> link...it does not work.
> I have been stuck in this for 4 days now...i am not getting what is the
> issue...
> The aspx page has frames...but i do not see any issue with that either...i
> am tried with a simple aspx page...same issue...i have tried allowing
> pop-ups ...etc
> I think this is issue with adobe reader ..because if i display the report
> in HTML format...the link works fine...opens every time i click it!!!!.
> Has anyone has had any similar issues!!!!...
> Can anyone help me ...all i want to do is...open a link in new window from
> an deployed PDF report ...link is an aspx page with a new detail report.
> Thanks.
Monday, March 26, 2012
joning result of dynamic queries
i m making the code of search button in aspx page using C#.
i have multiple dynamic queries that take data from multiple tables
but i dnt know how to join the result of these queries.
example:
1) first query using table1
2)second query using table2
3)third query using table3
how to join the result of these queries at asp.net page?
thanx in advance
If the result sets of all the queries are similar (ie. same number of columns of the same data types)
Then just issue one command with all three queries union'd together
Code Snippet
SELECT x,y,z From Table1
UNION ALL
SELECT x, y z From Table2
UNION All
SELECT x, y, z From Table 3
|||thanx for reply but it is not useful at all
because i m asking how to combine the result of dynamic queries that relate multiple tables and u r sending simple sql query.i willl try to explain my problem in moredetail as follow.
TABLE NAME COLUMNNAMES
1) tbQualification -- ResumeId,Graduation,PostGraduation
2) tbStrength-- Resumeid,Strength
3)tbExperience Resumeid,YearExperience,MonthExperience
there is a button of SEARCH .clicking on this button search is to be made in all columns fields.this is to be done throgh dynamic query or stored procedure.
this cant be done using simple sql query because we are writting code in aspx page.
plizz help me out
all replies are welcome
Thanx.
|||You can store the result of each query in the temp table then join those temp tables for your final query...
Code Snippet
Create Table #tbQualificationResult (
ResumeId int,
Graduation varchar(20),
PostGraduation varchar(20)
)
Create Table #tbStrength (
Resumeid int,
Strength int
)
Create Table #tbExperience (
Resumeid int,
YearExperience int,
MonthExperience int
)
Insert Into #tbQualificationResult
Exec sp_executesql 'Your Dynamic Search Query'
Insert Into #tbStrength
Exec sp_executesql 'Your Dynamic Search Query'
Insert Into #tbExperience
Exec sp_executesql 'Your Dynamic Search Query'
Select
COALESCE(A.ResumeId, B.ResumeId, C.ResumeId)
,A.Graduation
,A.PostGraduation
,C.Strength
,C.YearExperience
,C.MonthExperience
From
#tbQualificationResult A
Full OUTER JOIN #tbStrength B on A.ResumeId = B.ResumeId
FULL OUTER JOIN #tbExperience C On A.ResumeId = C.ResumeId
|||
One approach to your issue, from my response and Mani's, is to code the combinations on the back-end in SQL Server.
However, this can also be done at the BI or UI tier.
See these articles for creating datasets with multiple tables and establishing datarelations between those tables.
http://msdn2.microsoft.com/en-us/library/ss7fbaez(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/ay82azad(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/d6s958d6(VS.80).aspx
|||thanx a lot for reply.
plizz tel how i write query where u say"your dynamic query" because i dnt know how to write dynamic query in sql.
i know only in aspx page and it is different to write in sql so pliz tel.
need urgently
thanx
sql