Integration based on a Query
I need to create an interface based on an existing query by example:
Select * from EMP
Where ename = 'Peter'
The Table of destination MWD_EMP received the same columns in the existing on Table of Origin.
How do I create this interface?
Hi ,
r u done with ur models and topollgy done....
if yes go to the Designer, add a new interface ..... Drag and drop ur source and target tables and click the ename column jus drag u will c a filter conditions jus mention Ename- 'Peter' as u have written
Thanks
Ananda
Similar Messages
-
I am facing a problem in a crystal report which is based on Infoset query.i
Hi All,
I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly
-
How to bulid a Crystal report based on Bex query as source
Hi,
I have requirment where the end user wants the query in Crystal.I built a Bex query in Bex query designer.I would like to know how to create crystal report based onthe Bex query.
Thanks,Hi
The Crystal Reports are integrated with BW such that the query built in BW can be used to bulit Crystal Reports on them.
After launching the Crystal Reports, you will have and option : "Open reprt from BW" whcih will help you in opening the BW Queries and create Crystal Reports.
Also in the Menu there is an optin SAP-->Create New Report from a Query
Regards, Hyma
Edited by: Hymavathi Yanamadala on Aug 13, 2009 5:52 AM -
Content presenter: content source based on a query resulting in error
Hi all,
I am using a content presenter taskflow showing content based on a query. After some changes were made to the Webcenter Content instance (extra metadata field, extra profiles) the query is resulting in an error. In my WC_Spaces log I see the following message:
Caused By: oracle.webcenter.content.integration.RepositoryException: Jun 13, 2012 11:15:11 AM oracle.webcenter.content.integration.spi.ucm.search.SearchService search
SEVERE: An error occurred when searching repository WebCenterSpaces-UCM. When calling service GET_SEARCH_RESULTS, as user weblogic, at timestamp 6/13/12 11:15 AM, received status code -32. The search was Search[repositoryId=WebCenterSpaces-UCM, max to return=100, useFullTextSearch=true, useCache=true, sort="toProperty('dDocTitle') ASC", fullText="
Metadata criteria((cm_contentType equals IDC:Profile:qblIntranetArtikel)AND(xqblGroep [any] equals Quobell)AND(xqblIntranetSubGroep [any] equals Opleidingen))
isOr=false"] and the parameter map was {ResultCount=51, FolderPathInSearchResults=1, SortField=dDocTitle, IdcService=GET_SEARCH_RESULTS, SortOrder=ASC, vcrAppendObjectClassInfo=1, StartRow=1, QueryText=(xqblGroep <matches> `Quobell`) <AND> (xqblIntranetSubGroep <matches> `Opleidingen`), vcrContentType=IDC:Profile:qblIntranetArtikel}.
The profile qblIntranetArtikel I am using already existed before the change were made and the query worked fine then.
In WCC I see the following error:
(internal)/6 06.13 11:15:10.272 IdcServer-551 -1 exception backtrace:java.lang.ArrayIndexOutOfBoundsException: -1(internal)/6 06.13 11:15:10.272 IdcServer-551 at java.util.Vector.get(Vector.java:696)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.data.DataResultSet.getStringValue(DataResultSet.java:2183)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at collections.CollectionFilters.doFilter(CollectionFilters.java:95)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:115)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.Service.executeFilter(Service.java:4095)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.SearchService.doResponse(SearchService.java:2081)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.Service.doRequest(Service.java:1956)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
services/3 06.13 11:15:10.274 IdcServer-551 !csUserEventMessage,weblogic,CIS!csSystemCodeExecutionError java.lang.ArrayIndexOutOfBoundsException: -1services/3 06.13 11:15:10.274 IdcServer-551 at java.util.Vector.get(Vector.java:696)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.data.DataResultSet.getStringValue(DataResultSet.java:2183)
services/3 06.13 11:15:10.274 IdcServer-551 at collections.CollectionFilters.doFilter(CollectionFilters.java:95)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:115)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.Service.executeFilter(Service.java:4095)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.SearchService.doResponse(SearchService.java:2081)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.Service.doRequest(Service.java:1956)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
services/3 06.13 11:15:10.274 IdcServer-551 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
services/3 06.13 11:15:10.274 IdcServer-551 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
services/3 06.13 11:15:10.274 IdcServer-551 at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
When I select a single item to be shown in the content presenter taskflow, I works fine. It also works fine when showing all documents in a folder.
Does any body have an idea what might be the problem I am facing and how to fix it?
thanks in advance,
HaroldHi all,
I found what caused the error. Someone had set the CollectionID metadata field in WCC to non-searchable. This resulted in an error in the CollectionsFilter.
Setting the field back to searchable in WCC solved the problem.
regards,
Harold -
Unable to schedule CR based on BW query after newer transports
Hi
We have update the integration kit for SAP tranports on BW server as below,
Content Administration transport (K900645.r21 and R900645.r21)
Personalization transport (K900646.r21 and R900646.r21)
MDX Query Connectivity transport (K900643.r21 and R900643.r21)
ODS Connectivity transport (K900582.r21 and R900582.r21)
At the same time we have updated the drivers on client side (CR designer and Enterprise) with the following,
Integration Kit SP 2.0 and FP 2.7
After this opened the crystal report that is based off BW query in CR designer, verified the database, save back to BW and republished to enterprise from BW.
Report work good in CR designer.
In enterprise, when the report is scheduled, it stays in running state forever and never finishes.
Viewing on demand also does not return and stays in processing stage.
Please help.
IMSUninstalling FP2.7 got our scheduling going. Now we can schedule out report again successfully...
So, it actualy FP2.7 for solution kit that was preventing, not newer transports....
IMS -
FAQ: CR (based on Bex query) bursting with Local profile
We have the following scenario
1. A CR based on BEx query, specified to use a BW account with the property - 'use same DB account for refresh'.
2. Created a profile with two different Groups, each group having a specific CR expression for a field. The users in this group are enterprise aliases not BW aliases
3. Created a publication with the above two Groups as 'Enterprise Recipient'
4. Assigned personalization on a specific field with local profile (the profile created in step2)
When we schedule the publication with the option 'single DB refresh for each batch', it fails with the error "User specific security is in use. One database fetch per recipient must be used"
Env: BOE XI 3.1 SP2, Windows
Edited by: Rajesh Jayakumar on Oct 27, 2009 9:33 PMHi,
would suggest you open it in the general BusinessObjects forum as this doesn't look to be related to the SAP Integration Kit
Ingo -
Sending email using PL/SQL based on a query result
Hello all,
I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
select Acct_id, total from SourceTableA
minus
select Acct_id, total from TargetTableA
select Acct_id, sum from SourceTableB
minus
select Acct_id, sum from TargetTableB
If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
KhanActually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.
-
Bold a single row in a Report based on SQL Query
Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?
One way to do this is to add a hidden column to your report which contains the formatting value, for example:
select empno
, ename
, sal
, decode(empno,1,'font-weight:bold','font-weight:normal') style
from emp
Hide the STYLE column.
Then you can use this column for each column in Column Formatting > HTML expression in this way:
<span style="#STYLE#">#SAL#</span>
Unfortunately you have to do this for each colum you want to appear bold.
good luck,
Dirk Dral -
I am facing a problem in a crystal report which is based on Infoset query
Hi All,
I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1
Best Regards,
SrinivasHi,
I would first of all suggest you don't open the same question twice. this looks like a duplicate to this entry:
Best Practices v3.31 - SAP InfoSet Query connection
Did you assign the queries and the infosets to an InfoSet user group and you assign the SAP account to it as well ?
Ingo -
Refreshing drop down list in a web template based on a query view
Refreshing drop down list in a web template based on a query view
I have just developed my first set of portal pages displaying the results of Bex queries and query views in the SAP Netweaver portal. I developed the pages using web application designer. Each web template created with W.A.D is using a query or query view. In one template I have that is using a query view I am using a variable in my Bex query. This variable is of type customer exit, is set to variable is ready for input and calls some ABAP code which returns the current fiscal week number and year. When I run the query or query view in isolation through Bex analyzer the variables gets populated correctly. In my web template I have associated my variable from my query view to a drop down list box. However when I run the Iview created from this template the query results get refreshed but my drop down list box does not, it still shows last weeks week number. How do I get the drop down list box to refresh with the latest result from my customer exit variable?
Regards
CollinHi ,
According to your description, my understanding is that you want to filter a calendar based a look up column in SharePoint 2013.
Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
You can achieve this using combination of jQuery and SharePoint OOB techniques.
For jQuery filters refer to the blog: enter SharePoint List Filters using jQuery
Also you can filter Calendar View Web Part using JQuery and SPServices:
http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
http://spservices.codeplex.com/discussions/258846
Another way, you can have a look at the SPFilterCalendar :
http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Create a view based off a query in Access WebApp
I'm trying to create a summary view based on a query. The query is being used to make a simple join two tables. I don't have an issue creating a datasheet or list view off the query, but when I try to create a summary view, I'm unable to
create it.
From the desktop app, I'm able to click on the plus sign to add a new view, give it a name, choose the type and select my record source. When I click on "Add New View" nothing happens. I do not get any progress dialog box as I do for
other views. The popup for the "Add New View" simply disappears. Is this the expected behavior?
Based on this thread I don't think so.
https://social.msdn.microsoft.com/Forums/en-US/a5e60abc-0061-429e-8ce8-2014626c42c2/access-web-app-open-a-subform-from-a-query-based-summary-view?forum=accessdev
Again, this is a simple query table 1 has 8 colums, all of them are simple text except for one lookup column that includes the data with the table, one column stores the a primary key from the second table. The second table is a simple table with
3 columns.
Is this a limitation of the Access Web App?Hi,
You should be able to create a new summary view off a saved query. The behavior you describe sounds very odd but I’m not able to repro this on my computer. Could
you try something for me? Try and create a new summary view and use a table as its record source. Does that get created OK?
Jeff Conrad - Access Junkie - MVP Alumnus
Senior Content Developer - Modern Assistance and Support Experience - Microsoft Corporation
Author - Microsoft Access 2013 Inside Out
Author - Microsoft Access 2010 Inside Out
Co-author - Microsoft Office Access 2007 Inside Out
Access 2007/2010/2013 Info: http://www.AccessJunkie.com
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/en-us/legal/Copyright/Default.aspx -
view image based on the query
hi i what to download my image based on the following query,am in jdeveloper 11g am using this method for download,i show the whole link of procedure where the query is located and how was it used in forms,but nw i what to take the query and put it in my java code not the webutil just the query,i put the whole forms package so you can undestand the logic of the query how was it used
public void ViewImage(FacesContext facesContext, OutputStream outputStream)
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
// get an ADF attributevalue from the ADF page definitions
AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("DocumentImage");
if (attr == null)
return;
// the value is a BlobDomain data type
BlobDomain blob = (BlobDomain) attr.getInputValue();
try
{ // copy the data from the BlobDomain to the output stream
IOUtils.copy(blob.getInputStream(), outputStream);
// cloase the blob to release the recources
blob.closeInputStream();
// flush the output stream
outputStream.flush();
catch (IOException e)
// handle errors
e.printStackTrace();
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
FacesContext.getCurrentInstance().addMessage(null, msg);
}when i use the above method in diffient screen without the upload i get this error
Target Unreachable, identifier 'viewImage' resolved to null
Error
The file was not downloaded or was not downloaded correctly.
the below procedure is how i what to download the image but in java,but usin query in below procedure
function right_file (idref integer, i_file varchar2) return boolean is
begin
-- check directory
-- file size
if webutil_file.file_exists(dir ||'\' ||i_file) then
return true;
end if;
return false;
end;
procedure download(i_dref integer, i_file varchar2) is
file varchar2(50);
dlin_id integer;
l_success boolean;
begin
if not right_file (i_dref ,i_file ) then
select file_name,dlin.id
into file, dlin_id
from sms_document_links dlin
,sms_document_references dref
where dref.id = i_dref
and dref.dlin_id = dlin.id
l_success := webutil_file_transfer.DB_To_Client
( dir ||'\'|| file,
'SMS_DOCUMENT_LINKS',
'DOCUMENT_IMAGE',
'id = '||dlin_id);
end if;
end download;
procedure open_image (i_dref integer,i_file varchar2) is
begin
local_path;
local_viewer;
if I_file is not null then
file := i_file;
else
select file_name into file
from sms_document_references
where id = i_dref
end if;
download(i_dref, file);
if not webutil_host.ID_NULL(active_process) then
close_previous_image_process;
end if;
image_dir_file := dir ||'\'|| file;
process := webutil_host.nonblocking (image_viewer || image_dir_file);
if webutil_host.ID_NULL(active_process) then
active_process := process;
end if;
if webutil_host.equals(process,active_process) then
null;
else
close_previous_image_process;
active_process := process;
end if;
viewer_active := true;
end;--oh ho.
Dear user,
this is not code factory/design factory/bla bla bla.
this area for guide peoples where you are? what is way right to reach your target/goal. whatever in you words...
from your post and also procedures, you are from forms background. am also came from ORacle froms 10g background try to understand. and implement it adf.
back to topic:
Target Unreachable, identifier 'viewImage' resolved to null Error .i just am giving the steps to igonre your error
simple go to your taskflow - go to overview section - go to managed beans. configured you which you created bean say as x.java
if you create following code can be seen in source
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-definition id="xx-V-TF">
<default-activity id="__1">xxV</default-activity>
<managed-bean id="__2">
<managed-bean-name id="__4">SUP1040V</managed-bean-name>
<managed-bean-class id="__5">com.x.x.view.xBeans.xxV</managed-bean-class>
<managed-bean-scope id="__3">backingBean</managed-bean-scope>
</managed-bean>
<view id="xV">
<page>/ReportsPageFragments/xxV.jsff</page>
</view>
<use-page-fragments/>
</task-flow-definition>
</adfc-config> -
Select List (based on LOV) query problem
Hello experts! I have a small problem here, which I can't seem to overcome.
I have a page item (select list based on LOV), which is based on a query. The query returns all potential employees of a department that are responsible for a certain duty. So far so good!
The problem is that there are two departments, which should not only see there own employees but also the name of the employee that has carried out a certain task. However, due to my query, the name of that person is not displayed - only the pk is returned.
Do you have a recommendation how I display all employees of a specific department and have additional values translated as well?
My query is as follows: select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where cnt_bearbeiter in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK) union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user)) whereas :app_user holds the information of the department.
Any hint is appreciated!
Many thanks,
SebOkay, I just had the right idea and it's working well! Sorry for posting!
I return the name of the employee that has edited a dataset and simply add all others of the logged on department! Really easy! Should have thought of that before posting! ;-(
The correct code is select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter a, vt_tbl_punktdaten b where a.cnt_bearbeiter = b.int_bearbeiter and
inv_pt_id_sub = :P4_PTIDS
union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user))Bye,
Seb -
Generate XML based on MySQL Query
Hello guys,
I need to create a XML file like this one(same structure) but based on MySQL query:
<chart>
<chart_type>pie</chart_type>
<chart_data>
<row>
<null/>
<string>2007</string>
<string>2008</string>
<string>2009</string>
</row>
<row>
<string>Region A</string>
<number>10</number>
<number>30</number>
<number>63</number>
</row>
</chart_data>
</chart>
I found a couple of good articles but I do not know how to get the same structure, I tried this:
<?php
header("Content-type: text/xml");
$host = "localhost";
$user = "test";
$pass = "test";
$database = "test";
$enlace = mysql_connect($host, $user, $pass) or die("Error MySQL.");
mysql_select_db($database, $enlace) or die("Error base de datos.");
$query = "SELECT AGENTE, count(*) FROM clientes group by agente";
$resultado = mysql_query($query, $enlace) or die("Sin resultados.");
$salida_xml = "<?xml version=\"1.0\"?>\n";
$salida_xml .= "<chart>\n";
$salida_xml .= "<chart_type>" . 'pie' . "</chart_type>\n";
$salida_xml .= "<chart_data>\n";
for($x = 0 ; $x < mysql_num_rows($resultado) ; $x++){
$fila = mysql_fetch_assoc($resultado);
$salida_xml .= "\t<row>\n";
$salida_xml .= "\t\t<agente>" . $fila['AGENTE'] . "</agente>\n";
$salida_xml .= "\t\t<cantidad>" . $fila['count(*)'] . "</cantidad>\n";
// Corregiendo caracteres incorrectos
$fila['texto'] = str_replace("&", "&", $fila['texto']);
$fila['texto'] = str_replace("<", "<", $fila['texto']);
$fila['texto'] = str_replace(">", ">", $fila['texto']);
// $salida_xml .= "\t\t<texto>" . $fila['texto'] . "</texto>\n";
$salida_xml .= "\t</row>\n";
}//segundo for
$salida_xml .= "</chart_data>\n";
$salida_xml .= "</chart>";
echo $salida_xml;
but I'm not getting the same structure, I am getting this:
<chart>
<chart_type>pie</chart_type>
−
<chart_data>
<row>
</row>
−
<row>
<agente>Danilo</agente>
<cantidad>8</cantidad>
</row>
<row>
</row>
−
<row>
<agente>Evelyn</agente>
<cantidad>5</cantidad>
</row>
<row>
</row>
−
<row>
<agente>Maribel</agente>
<cantidad>2</cantidad>
</row>
<row>
</row>
−
<row>
<agente>Nestor</agente>
<cantidad>11</cantidad>
</row>
<row>
</row>
−
<row>
<agente>Noemy</agente>
<cantidad>2</cantidad>
</row>
</chart_data>
</chart>
Can someone give me a hand plase?
Thanks in advanceDoing some extra research I almost get to the result that I need, I guess I am jus
t having an small problem.
Basically I need this
[PHP]
<chart>
<chart_type>pie</chart_type>
<chart_data>
<row>
<null/>
<string>2007</string>
<string>2008</string>
<string>2009</string>
</row>
<row>
<string>Region A</string>
<number>10</number>
<number>30</number>
<number>63</number>
</row>
</chart_data>
</chart>
[/PHP]
Currently I have this:
[PHP]
<chart>
<chart_type>pie</chart_type>
<chart_data>
<row>
<null></null>
<agente>Danilo</agente>
<agente>Evelyn</agente>
<agente>Maribel</agente>
<agente>Nestor</agente>
<agente>Noemy</agente>
</row>
<row>
<rutas>rutas</rutas>
<cantidad></cantidad>
<cantidad></cantidad>
<cantidad></cantidad>
<cantidad></cantidad>
<cantidad></cantidad>
</row>
</chart_data>
</chart>
[/PHP]
And I am using this code
[PHP]<?php
header("Content-type: text/xml");
$host = "xxx";
$user = "xxxx";
$pass = "xxxx";
$database = "xxxx";
$enlace = mysql_connect($host, $user, $pass) or die("Error MySQL.");
mysql_select_db($database, $enlace) or die("Error base de datos.");
$query = "SELECT AGENTE, count(*) FROM clientes WHERE PREVENTA LIKE 'Viernes' group by agente";
$resultado = mysql_query($query, $enlace) or die("Sin resultados.");
$salida_xml = "<?xml version=\"1.0\"?>\n";
$salida_xml .= "<chart>\n";
$salida_xml .= "\t<chart_type>" . 'pie' . "</chart_type>\n\n";
$salida_xml .= "\t<chart_data>\n";
$salida_xml .= "\t\t<row>\n";
$salida_xml .= "\t\t\t<null>" . $fila5['NULL']. "</null>\n";
for($y = 0 ; $y < mysql_num_rows($resultado) ; $y++){
$fila2 = mysql_fetch_assoc($resultado);
$salida_xml .= "\t\t\t<agente>" . $fila2['AGENTE'] . "</agente>\n";
}//cierro for Y
$salida_xml .= "\t\t</row>\n";
$salida_xml .= "\t\t<row>\n";
$salida_xml .= "\t\t\t<rutas>" . 'rutas'. "</rutas>\n";
for($z = 0 ; $z < mysql_num_rows($resultado) ; $z++){
$valor = mysql_fetch_assoc($resultado);
$salida_xml .= "\t\t\t<cantidad>" . $valor['count(*)'] . "</cantidad>\n";
}//cierro for z
$salida_xml .= "\t\t</row>\n";
$salida_xml .= "\t</chart_data>\n";
$salida_xml .= "</chart>";
echo $salida_xml;
?>[/PHP]
The issue I am having is that it is not showing the quantity, in this case "cantidad", does someone know why? -
Lookup vo based on sql query or on Entity?
Hello all,
which is better for performance to build a view object to be used as lookup [LOV] based on SQL query or build an Entity object and a view object based on it? and why?
regards,As fas as i know,EO is better rather than SQL because result is backedup by EO cache..
Maybe you are looking for
-
Input ready query is not showing loaded data in the cube
Dear Experts, In Input ready query we have problem that it is not showing the values which was not entered by throught hat query. Is any settings in input ready query that we can do to populate the loaded data on the cube as well as data entered thro
-
I can no longer open pages and I cant open any documents saved as pages. What can I do?
Suddenly, I can no longer open my pages documents and I keep getting an error message, stating that the document could be corrupted. I can also no longer open pages itself. I am a bit of a technophobe and have no idea what to do. I have tried restart
-
How 2 invoke an oracle form from a database procedure?
I have a procedure.When i run the procedure itt invokes an oracle form. This procedure is a database procedure. Is this possible? if possible how?
-
Problem with iPad & iPod (All internet devices) because of Router.
I have had my iPad & iPod replaced because of the images below and slow and weird video problems.. Does anyone know what it is?
-
Preprocess Program for MM_EBAN (ECC 5.0)
Hello everyone, I am currently trying to add the Preprocess program to the achiving transaction SARA. Our version us 5.0. I am unable to locate the program that does the Preprocessing. Currently the system is configured for RM06BW30 for the Write