How to show result from process in popup page?
<br>We want to use one popup page for many information in application. So we want to make the following thing.
<br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE").
<br>We also assign title of region on that popup page through "P2_TITLE".
<br>What I do not know is how to show popup after process-branch problem.
<br>Process is executed from one button. Button is located on page "28" and popup page is "2"
<br>Code for javascript should be like:
<br>
javascript:popupURL('f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:'+'status '+','+'&P28_X.')<br>THX
I have found in one thread:
<br>
<br>1) create an application item APP_ONLOAD (of course you can choose your own name)
<br>2) create an application level before footer computation on APP_ONLOAD to clear the item after the page is generated.
<br>3) place &APP_ONLOAD. (dot also) in the on load property of the page.
<br>4) fill the APP_ONLOAD using :APP_ONLOAD := 'onload="your own javascript to call a popup window;"' in the plsql of an after On Submit - After Computations and Validations process (type PL/SQL anonymous block)
Fill the when button pressed property of the process with the button you want to use to show the popup.
<br>5) create a branch to branch to the current page (or a other if you wish)
<br>
Looks OK but when I create in PL/SQL js with "&" signe, which I use for filling some hidden values in popup page I get error.
begin
is_test_ok (1, :P28_X);
:APP_ONLOAD := 'onload="javascript:popupHeightURL(''f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:''+''statusu testova''+'','+''&P28_X.'')"';
end;<br>Should I use ASCII codes for that or what? Any example please!
<br>THX
Similar Messages
-
How to compare result from sql query with data writen in html input tag?
how to compare result
from sql query with data
writen in html input tag?
I need to compare
user and password in html form
with all user and password in database
how to do this?
or put the resulr from sql query
in array
please help me?Hi dejani
first get the user name and password enter by the user
using
String sUsername=request.getParameter("name of the textfield");
String sPassword=request.getParameter("name of the textfield");
after executeQuery() statement
int exist=0;
while(rs.next())
String sUserId= rs.getString("username");
String sPass_wd= rs.getString("password");
if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
exist=1;
if(exist==1)
out.println("user exist");
else
out.println("not exist"); -
How to show rss from other sites on my site?
how to show rss from other sites on my site?
i'd like to have a window on my site that shows rss from
another site
(their content in a window on my site)
thanks
lennyWhat version of DW do you have. The later versions have RSS
script generators (I believe) for consuming feeds. Otherwise, you
can use 3rd party sites to generate the code, or you can use a
server side scripting language to consume the feeds. -
How to filter results from 4 dynamic list menus depandant on how many of them are selected
I have a search page with a form with 4 list menus and 1 submit that post the results to the results page. I can create a record set that either retrieves the correct data from my database if a selection is made from all four menus Or i can create the recordset if only 3 menus have a selection or the same for 2 menus and 1 menu. However i want the user to be able to make a selection from either 1, 2, 3 or all 4 of the menus and the exact data be retrieved. At present if i try to combine the recordset using AND and ORs the results are not specific enough, for example the 4 menus are Location, Type, Price & Style if a user selects from all 4 i only want to retrieve data that matches all 4 criteria, but at the same time if the user selects only 2 of the menus the i want it to retrieve data that matches specifically those 2 variables. I´m not actually sure if i should be creating a more advanced sql query of if its the php side of things that i need to look at. This is my first dynamic site so please be aware i´m still a learner where php and sql is concerned. Please can anyone help?
Hey there,
Thanks for replying,
I too am using Dreamweaver recordset, my local server is XAMPP ( apache php mysql), i´have pasted my sql recordset below to give an idea of what i´m trying to do, however this does not work as i´m trying to select the exact data based on 4 menus PRICE TYPE LOCATION and BEDS, and also want the search to work if the user only selects options from either 1, 2, 3 or 4 of the menus, with the code as it is if the user select only two options from 2 of the menus the results don´t just find (for example) all results for location AND price they find all results for the location varibale OR the price variable rather than a match for both, if you see what i mean?
Any suggestions?
SELECT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number`
FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid
WHERE (location=varloc AND price = varprice AND type=vartype AND beds=varbed ) OR (price=varprice AND location=varloc AND type=vartype) OR (price=varprice AND location=varloc AND beds=varbed) OR (price=varprice AND beds=varbed AND type=vartype) OR ( location=varloc AND type=vartype AND beds=varbed) OR (price=varprice AND location=varloc) OR (price=varprice AND type=vartype) OR (price=varprice AND beds=varbed) OR (type=vartype AND location=varloc) OR (type=vartype AND beds=beds) OR (location=varloc AND beds=varbed) OR (price = varprice OR beds=varbed OR type=vartype OR location=varloc)
ORDER BY detailstable.trueprice ASC
Look forward to receiving your thoughts,
Linda
Date: Wed, 21 Oct 2009 14:36:33 -0600
From: [email protected]
To: [email protected]
Subject: how to filter results from 4 dynamic list menus depandant on how many of them are selected
Hiya,
I'm just doing my first dynamic site too, and am at a similar level to yourself.
Can you give us more info re the site. What software, eg Dreamweaver etc are you using, and is your server using PHP or ASP etc?
For what I've used, I amended the SQL side of things in the recordset in Dreamweaver. That way, you can test the SQL as you're setting up the recordset.
Let me know how you're going on anyway
Cheers
Andy
> -
How to show "ALL" Values by default in Page Drop-Down Lists in Pivot Tables
Hi Everyone,
Iam stuck with 1 problem please can any 1 help me if u know the solution.
Here is my problem:
How to show "ALL" Values by default in Page Drop-Down Lists in Oracle BI Pivot Tables?
For example, if you place Region in the pages area, a Region drop-down list allows the user to select a particular region, and see the data for only that region, rather than seeing all the Regions,But by default its not showing "ALL" option in the drop down list ,rather than doing that its showing result for only 1 region by default.
And an other problem with this pages area is, if we palce the multiple attributes in the Pages area in the pivot table, the (Fields)result is showing in vertically, the attributes 1 by 1(Every attribute in a new line) ,rather than showing like that, is there any way to show the results in horizantally?(We want to have it as a seperate drop drown list for every field horizantally not as a concatenated list).Thanks Nikhil. But I am fetching the values from the LOVCache.java.
I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
I mean to say can I write
unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
where LOVCache.entityTypeSelectionList is used to populate the drop down box.
Regards,
Aseet -
How to show details from web part as pop up window
Hello
I designed few web pages in SharePoint Designer 2010 and trying to customize it. I have a XSLTListView web part that is displaying filtered data from the external SQL database. When user choses the item from this list, I need it to show in the new pop
up window. I can't seem to find the way to do it. Saw multiple references to use SP.UI.ModalDialog.ShowPopupDialog(url), but I don't know how and where to incorporate it, since there is no place in the page where it actually specifies that url
of the page that I need to show as pop up.
Below there is a code for the XsltListWebPart, where I'm hoping I could make changes to make it pop up (it seems that this is the part that is calling the display details form). The form that I'd like to pop up is DispForm.aspx
<script>
function showpreview<xsl:value-of select="$ViewCounter" />(o) {
count = 1;
for(i = 0; i < o.childNodes.length; i++)
var child = o.childNodes[i];
if (child.style.display == "none" && child.tagName == "DIV")
f = document.getElementById("n" + count + "<xsl:value-of select="$WPQ" />");
f.innerHTML = unescape(child.innerHTML) + ' ';
count ++;
</script>
<div id="previewpaneerror{$ViewCounter}" style="width: 801px"></div>
<table cellspacing="0" cellpadding="0" border="0" id="previewpanetable{$ViewCounter}" dir="{List/@Direction}">
<xsl:choose>
<xsl:when test="not($dvt_RowCount=0)">
<tr>
<td valign="top" style="width: 186px">
<div class="ms-ppleft" style="width: 100px">
<table cellspacing="0" cellpadding="0" border="0" style="width: 122%">
<xsl:apply-templates select="." mode="RenderView"/>
</table>
</div>
</td>
<td valign="top">
<div id="preview1{generate-id()}" class="style2" style="width: 690px; margin-left: 30px;">
<table border="0" cellpadding="0" cellspacing="0">
<xsl:for-each select="ViewFields/FieldRef[not(@Explicit='TRUE')]">
<tr>
<td nowrap="nowrap" valign="top" class="ms-formlabel" style="width: 143px">
<nobr>
<xsl:value-of select="@DisplayName"/>
</nobr>
</td>
<td valign="top" class="ms-formbody" id="n{position()}{$WPQ}" style="width: 370px">
</td>
</tr>
</xsl:for-each>
</table>
</div>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="ms-vb">
<table class="ms-summarycustombody" cellpadding="0" cellspacing="0" border="0">
<xsl:call-template name="EmptyTemplate" />
</table>
</td>
</tr>
<tr>
<td height="5">
<img src="/_layouts/images/blank.gif" width="1" height="5" alt="" />
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:template>
Alla SandersHi Alla,
You can show details from web part as pop up window using JavaScript with SP.UI.ModalDialog.ShowPopupDialog(url). Here is a demo you can refer to:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
var obj1=$("a[id='forum0-NewPostLink']");
url="http://sp13"+obj1.attr("href");
//alert(url);
obj1.removeAttr("href");
obj1.click(function(){
openDialogBox(url);
function openDialogBox(url) {
var pageUrl=url;
var title="New Discussion";
SP.UI.ModalDialog.showModalDialog(
url: pageUrl,
autoSize: true,
title: title,
dialogReturnValueCallback: function (result){
if(result== SP.UI.DialogResult.OK){
//refresh parent window
window.location.href=window.location.href;
</script>
Reference:
https://social.technet.microsoft.com/Forums/en-US/f18062ed-2e17-440e-8e00-2904f5316802/discussion-board-forum-opens-in-other-page?forum=sharepointdevel
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Show results from the database to html tables?
Hi,
I am a PHP programmer and did a successful CMS program for a company. Now I have another project which is a web based system.
I basically know how to do it and finish it in PHP.. but I am trying to do it using J2EE.. I am trying to learn J2EE now since I have been programming
on J2SE for quite sometime..
I am trying to show the results from a MySQL database on a table on J2EE but I am having hard time doing that. I am trying to research online and reading books but with no luck I can't find any resources on how to do that..If you guys can lead me into a resource where I can read how to do it? or just give any ideas on how to do it correctly I'll try to read and learn I will very much appreciate it.. here's my coding please look at it. Thank you very much
I want to make it like this in a html table:
userid username activated task
1 alvin y delete(this will be a link to delete the user)
Right now this is what I was able to do so far:
Userid username activated task
1
alvin
y
Here are my codes... I am not even sure if I am doing it in the correct way...
User.java
mport java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class Users {
public List getUsers(){
List names = new ArrayList();
try{
Connection con = DBConnect.getConnection();
Statement stmt = con.createStatement();
String sql = "select * from users";
ResultSet rs = stmt.executeQuery(sql);
while(rs.next())
String userid = rs.getString("user_id");
String usernames = rs.getString("user_name");
String password= rs.getString("password");
String activated= rs.getString("activated");
names.add(userid);
names.add(usernames);
names.add(password);
names.add(activated);
catch(SQLException e)
System.out.print(e);
catch(Exception e)
System.out.print(e);
return names;
UserServlet.java
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class UsersServ extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Users be =new Users();
List result = be.getUsers();
request.setAttribute("user_results", result);
RequestDispatcher view = request.getRequestDispatcher("manage_users1.jsp");
view.forward(request, response);
manage_users1.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import = "java.util.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
List results = (List)request.getAttribute("user_results");
Iterator it = results.iterator();
out.print("<table border = 1>");
out.print("<th>");
out.print("userid");
out.print("</th>");
out.print("<th>");
out.print("username");;
out.print("</th>");
while(it.hasNext()){
out.print("<tr><td> " + it.next()+"</td></tr>");
out.print("</table>");
%>
</body>
</html>I suggest:
1: you use this:
e.printStackTrace()
instead of this:
System.out.print(e);
so it will tell you what line it crashed on.
2: In the code below,here is how you mix coding html tags and java scriptlets
(you should never have to use out.print()):. In a later project, you can learn how to use JSTL
instead of java scriplets (I suggest using java scriptlets for now until you have more JSP experience).
FROM:
<html>
<%
//some java code goes here
out.print("<th>");
//some more java code goes here
out.print("<tr>");
%>
TO:
<html>
<% //some java code goes here%>
<th>
<%//some more java code goes here%>
<tr>
3: Put a lot of System.println() statements in your *.java classes to verify what its doing (you can learn how to use a debugger later).
4: I highly recommend reading a book on JSP/servlets cover to cover.
Here's a simple MVC design approach I previously posted:
http://forums.sun.com/thread.jspa?messageID=10786901 -
How to shows result as Alias name.
Dear All,
I am having following query and output, in that inside query showing one record check another query, that result i want to show as Alias, Can we show result as alias ?
select SPL.speciality_description,Emp.FIRSTNAME,DT.full_date
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION
FROM (SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=1),patientcount)) as First
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=2),patientcount)) as Second
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=3),patientcount)) as Third
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=4),patientcount)) as Forth
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=5),patientcount)) as Fifth
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_SPECIALITY SPL ON SPL.SPECIALITYID = PD.SPECIALITYID
INNER JOIN D_EMPLOYEEMASTER EMP ON EMP.EMPID = PD.DOCTORID
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual)
group by SPL.speciality_description, Emp.FIRSTNAME, DT.full_date
order by SPL.speciality_description,Emp.FIRSTNAME,DT.full_date
Output:
REGISTRATION Dr.POOJA 19-JUL-10 12:00 AM 56 74 99 32 96
REGISTRATION Dr.POOJA 21-JUL-10 12:00 AM 93 74 45 43 69
REGISTRATION Dr.POOJA 22-JUL-10 12:00 AM 34 34 76 66 24
REGISTRATION Dr.POOJA 24-JUL-10 12:00 AM 99 75 97 78 69
REGISTRATION Dr.POOJA 26-JUL-10 12:00 AM 54 34 76 66 24
REGISTRATION Dr.POOJA 28-JUL-10 12:00 AM 76 75 97 78 33
REGISTRATION Dr.POOJA 30-JUL-10 12:00 AM 54 23 34 65 23
Travel Clinic Dr.PRAN 19-JUL-10 12:00 AM 56 74 99 32 96
Travel Clinic Dr.PRAN 21-JUL-10 12:00 AM 93 74 45 43 69
Anothe Query :
SELECT DIAGNOSIS_DESCRIPTION
FROM (SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=1
Output:
Neurocytoma
I want to show this result as Alias name. Can anybody tell me how to do that ?
Thanks and Regard's
Harish PatilHi,
If I've understood the intention of your code correctly, you are trying to pivot the rows into columns and assign a "nice" header to the resulting columns.
You cannot dynamically assign a column name to a pivoted row. You need to know beforehand what row you are pivoting so you can assign a column name to it. This isn't as difficult as it sounds, there are a number of ways you could know what row will become what column.
Since I have no way to test using your code, I am posting an example for you that uses the EMP table that is part of the standard example databases shipped with Oracle.
Also, notice that, the code I am presenting is enclosed between the tags (which you cannot see) [ code ] and [ / code ] which is why it appears nicely formatted. Your code would be much easier to read and folks would be much more likely to understand what you want and therefore help you if you take the time to format your code so it is comprehensible.
See the basics of using tags to format your code at this page:
http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
Now the example that will help you get what you want:
/* this query calculates the total salaries per deptno */
SELECT job,
deptno,
sum(sal) sal
FROM emp
GROUP BY job, deptno;
/* output is */
JOB SUM(SAL)
CLERK 4150
SALESMAN 5600
PRESIDENT 5000
MANAGER 8275
ANALYST 6000
/* this query pivots the above query (which is what you're trying to do) */
SELECT *
FROM (
SELECT job,
deptno,
sum(sal) sal
FROM emp
GROUP BY job, deptno
PIVOT (sum(sal) FOR deptno IN (10, 20, 30, 40));
/* output is */
CLERK SALESMAN PRESIDENT MANAGER ANALYST
4150 5600 5000 8275 6000If you are not using 11g, there are ways of doing the above without using the PIVOT clause. There are lots of examples in this forum on how to pivot rows. Here is one that pretty much does manually what the PIVOT clause does:
select max(case when job='CLERK'
then ename else null end) as clerks,
max(case when job='ANALYST'
then ename else null end) as analysts,
max(case when job='MANAGER'
then ename else null end) as mgrs,
max(case when job='PRESIDENT'
then ename else null end) as prez,
max(case when job='SALESMAN'
then ename else null end) as sales
from (
select job,
ename,
row_number()over(partition by job order by ename) rn
from emp
) x
group by rn
/* outputs */
CLERKS ANALYSTS MGRS PREZ SALES
MILLER FORD CLARK KING TURNER
JAMES SCOTT BLAKE MARTIN
ADAMS JONES WARD
SMITH ALLENHTH,
John.
Edited by: 440bx - 11gR2 on Aug 2, 2010 9:28 AM - added missing verb "is" in sentence
Edited by: 440bx - 11gR2 on Aug 2, 2010 9:32 AM - missing "s" in select. -
How to use Results from Another Query for SAP BW universes
Hi Everyone,
I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding Sales doc no in first data provider.
I want to place all these fileds into a single report like as shown.
(Datarpovider1) (Datarpovider1) (Datarpovider2)
*Sales Doc No* Orderqty BillQty
Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
I tried it but it was giving the follwing error:
A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
All this I am doing in Webi Rich Client.
Appreciate your help
Thanks &in Advance
Kiran SakaHi Kiran,
I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
Regards,
Neeraj -
How to get result from another JSP file?
I have to write a jsp (my.jsp) to get information from another jsp file (other.jsp).
The other.jsp return integer value (0 / 1) so that user can tell if certain service is available or not. And in my.jsp I need to collect such result and other information from a text file to make up of a XML string.
How can I call other.jsp to get the result? Thanks a lot.Hi, I think I didn't describe the problem clearly
enough. In fact, there is a JSP file, and if our
database is currently connected, the JSP will return
value 1, otherwise, it will return 0. My java program
need to get that result, and then form an XML string,
and send the string back to the client. I'm just
wonder how can I write such a program to read result
from JSP file. Thanks a lot.Why is this function implemented as a JSP file? It should be implemented as a bean. It would be simple to get the information you require from that bean. -
How insert additional results from "SequenceFilePostStep" callback on the report
I'm trying to insert a value processed on "SequenceFilePostStep" callback on the report. But every try I did, using additional results, didn't work well.
Anyone knows how to include the value processed after every step on the report?
ThanksPlease try the following :
In the "SequenceFilePostStep" copy the processed data to a stationglobal or fileglobal variable.
In the calling step properties add this variable in the additional result (properties-->additional results).
I checked with TS 13 it reports properly.
Since the "SequenceFilePostStep" is an engine callback probably it may not support updating the report .
Hope this helps.
Ravi -
How to show colors from servlet
Greetings
Please give me a example of how to show color baground and how to show buttons and list objects from servlets.
Thanks in advanceHere is the code sample:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ServletSample extends HttpServlet {
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter pw = response.getWriter();
pw.println("<html>");
pw.println("<head>");
pw.println("</head>");
//set background color
pw.println("<body bgcolor="#99cccc">");
//list object?
ServletContext context = getServletContext();
pw.println(context.getRealPath("/."));
//create a submit button
pw.println("<button type=\"submit\">A Submit Button</button>");
pw.println("</body>");
pw.println("</html>");
}I recommand to take a tutorial or a book on Servlet -
How to show result with 4 columm
I using this to show result
$result += [PSCustomObject]@{
ServerName = "$computername"
CPULoad = "$($AVGProc.Average)%"
MemLoad = "$($OS.MemoryUsage)%"
CDrive = "$($vol.'C PercentFree')%"
i need result with 5 columms, but when i add more line to code, result format change to list, how to keep format on table
thank u$result | Format-Table -auto
\_(ツ)_/ -
How to show messages in a little popup ?
Hello,
Im faced with an issue when I want to show messages in my little popup.
The calling component is BT111H_OPPT.
Whenever I want to show the message in my popup that the mandatory fields are not filled with information the systems only shows them on the view of BT111H_OPPT when I closed my popup.
Ive implemented an own check method for that issue. See the following Code:
IF me->check_mandatory_fields( 'CREATE' ) = abap_true.
lr_window ?= me->view_manager->get_window_controller( ).
lr_window->call_outbound_plug( 'CREATE' ). "#EC NOTEXT
ELSE.
DATA: lr_service TYPE REF TO cl_bsp_wd_message_service.
lr_service = me->view_manager->get_message_service( ).
+ TESTED THAT CODE FIRST TIME, BUT NOTHING APPEARS ANYWHERE!!!!+*
* CALL METHOD me->messages->add_message
* EXPORTING
* condition = co_mandatory_field_empty
* message = 'Test'
** otr_alias =
* severity = cl_bsp_messages=>co_severity_error
** dummy = me->component_id
** p1 =
** p2 =
** p3 =
** p4 =
+ SO I TRIED THAT ONE. NOW, THE MESSAGE APPEARS IN THE CALLING COMPONENT!+*
TRY.
lr_service->add_message(
iv_msg_type = 'W'
iv_msg_id = 'ZICRM'
iv_msg_number = '050'
iv_msg_v1 = 'lv_text'
CATCH cx_bsp_wd_dupl_mess_subscr.
ENDTRY.
ENDIF.
THANK you for an answer...
Regards,
marcusHi Marcus,
try to use the following method as you create the popup in the calling view controller:
<your popup ref>->set_display_mode( iv_mode = if_bsp_wd_popup=>c_display_mode_surrounded ).
Best Regards,
Michael
Edited by: Michael Neumann on Feb 23, 2011 5:50 PM -
How to present results from a sql-query in java
Hi - I'm having problems finding out how to present data from a database-query in a nice looking way in a JFrame. Want to present them similar to the way they are presented in the database. Is there an easy way doing this?
Tried to use a JTable, but it's difficult when data in the table should be able to change all the time, i.e the number of rows. What is a Html-table? Can i use it in an application?
Maybe you are looking for
-
I am a new apple/ipad user and trying to transfer photos to my new ipad2 from my windows pc using itunes. The pictures all transfered to my ipad in one very large folder (My Pictures) on the ipad2 instead of the multipule folders that were on my pc.
-
Can I turn my soon to be old Apple TV into a wireless hard drive???
Can I turn my soon to be old Apple TV into a wireless hard drive???
-
Load Balancing 2 ISP connections on Cisco Router
Hi all, I have a Cisco 3900 series Router with the following characteristics: Cisco IOS Software, C3900 Software (C3900-UNIVERSALK9-M), Version 15.0(1)M2, RELEASE SOFTWARE (fc2) I have two VDLS connections, my ISP cant really offer good speeds, so we
-
Error message loading Historical reporting
I am getting an error message on a few PCs. It is unrelated to the user because this user is able to view reports on other PCs. Attached is the error I am receiving. I have tried installing/uninstalling. We have also made sure the user logged into
-
IPhone calendar faile to search for future events more than 1 year
Dear guys, I can't search for future events more than 1 year later. Is it a common scenario? Many thanks!