Parsing a parameter into CFSAVECONTENT
Hello,
I am trying to use CFSAVECONTENT so that I can easily
maintain a bit of code that I want to use on a single web page
multiple times. However, I need to parse a parameter (variable)
into it which I don't seem to be able to do. Is this possible? If
not, is there another way of achieving this without the use of
CFINCLUDE? My website is a Fusebox 4 application.
Many thanks,
Simon Bingham
If not, is there another way of achieving this without the use
of CFINCLUDE?
Even if there was, why would you bother? CFINCLUDE is
arguably the most efficient re-use tool in all of Coldfusion. Then
there are CTs and UDFs, as Dan has mentioned.
Similar Messages
-
How to pass parameter into a source variable of a invoke activity
I'm an new BPELer, I created a invoke activity to submit Oracle Appplications concurrent program, but I don't know how to pass parameter into source variable.
BTW, I have created the mapper file (.xsl) file.
could anyone tell me how to do that?
Thanks,
VictorHi.
How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
But I created only processes where input value doesn't matter. I haven't use mapper yet too. -
How to Parse a string into an XML DOM ?
Hi,
I want to parse a String into an XML DOM. Not able to locate any parser which supports that. Any pointers to this?Download Xerces from xml.apache.org. Place the relevant JAR's on your classpath. Here is sample code to get a DOM document reference.
- Saish
public final class DomParser extends Object {
// Class Variables //
private static final DocumentBuilder builder;
private static final String JAXP_SCHEMA_LANGUAGE =
"http://java.sun.com/xml/jaxp/properties/schemaLanguage";
/** W3C schema definitions */
private static final String W3C_XML_SCHEMA =
"http://www.w3.org/2001/XMLSchema";
// Constructors //
static {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(true);
factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
builder = factory.newDocumentBuilder();
builder.setErrorHandler(new ErrorHandler() {
public void warning(SAXParseException e) throws SAXException {
System.err.println("[warning] "+e.getMessage());
public void error(SAXParseException e) throws SAXException {
System.err.println("[error] "+e.getMessage());
public void fatalError(SAXParseException e) throws SAXException {
System.err.println("[fatal error] "+e.getMessage());
throw new XmlParsingError("Fatal validation error", e);
catch (ParserConfigurationException fatal) {
throw new ConfigurationError("Unable to create XML DOM document parser", fatal);
catch (FactoryConfigurationError fatal) {
throw new ConfigurationError("Unable to create XML DOM document factory", fatal);
private DomParser() {
super();
// Public Methods //
public static final Document newDocument() {
return builder.newDocument();
public static final Document parseDocument(final InputStream in) {
try {
return builder.parse(in);
catch (SAXException e) {
throw new XmlParsingError("SAX exception during parsing. Document is not well-formed or contains " +
"illegal characters", e);
catch (IOException e) {
throw new XmlParsingError("Encountered I/O exception during parsing", e);
}- Saish -
How to parse xml data into java component
hi
everybody.
i am new with XML, and i am trying to parse xml data into a java application.
can anybody guide me how to do it.
the following is my file.
//MyLogin.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
class MyLogin extends JFrame implements ActionListener
JFrame loginframe;
JLabel labelname;
JLabel labelpassword;
JTextField textname;
JPasswordField textpassword;
JButton okbutton;
String name = "";
FileOutputStream out;
PrintStream p;
Date date;
GregorianCalendar gcal;
GridBagLayout gl;
GridBagConstraints gbc;
public MyLogin()
loginframe = new JFrame("Login");
gl = new GridBagLayout();
gbc = new GridBagConstraints();
labelname = new JLabel("User");
labelpassword = new JLabel("Password");
textname = new JTextField("",9);
textpassword = new JPasswordField(5);
okbutton = new JButton("OK");
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 5;
gl.setConstraints(labelname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 2;
gbc.gridy = 5;
gl.setConstraints(textname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 10;
gl.setConstraints(labelpassword,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 2;
gbc.gridy = 10;
gl.setConstraints(textpassword,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 15;
gl.setConstraints(okbutton,gbc);
Container contentpane = getContentPane();
loginframe.setContentPane(contentpane);
contentpane.setLayout(gl);
contentpane.add(labelname);
contentpane.add(labelpassword);
contentpane.add(textname);
contentpane.add(textpassword);
contentpane.add(okbutton);
okbutton.addActionListener(this);
loginframe.setSize(300,300);
loginframe.setVisible(true);
public static void main(String a[])
new MyLogin();
public void reset()
textname.setText("");
textpassword.setText("");
public void run()
try
String text = textname.getText();
String blank="";
if(text.equals(blank))
System.out.println("First Enter a UserName");
else
if(text != blank)
date = new Date();
gcal = new GregorianCalendar();
gcal.setTime(date);
out = new FileOutputStream("log.txt",true);
p = new PrintStream( out );
name = textname.getText();
String entry = "UserName:- " + name + " Logged in:- " + gcal.get(Calendar.HOUR) + ":" + gcal.get(Calendar.MINUTE) + " Date:- " + gcal.get(Calendar.DATE) + "/" + gcal.get(Calendar.MONTH) + "/" + gcal.get(Calendar.YEAR);
p.println(entry);
System.out.println("Record Saved");
reset();
p.close();
catch (IOException e)
System.err.println("Error writing to file");
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
if(str.equals("OK"))
run();
//loginframe.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
}hi, thanks for ur reply.
i visited that url, i was able to know much about xml.
so now my requirement is DOM.
but i dont know how to code in my existing file.
means i want to know what to link all my textfield to xml file.
can u please help me out. i am confused.
waiting for ur reply -
How to pass in a parameter into a report viewer on a jsp - and hidden
Hi, I've built a php application and am using the java environment to enable the crystal report/viewer. The developer was looking how to pass in a parameter into a report viewer on a jsp. Ultimately the end product we need is to get an HTML report viewer loading a report file with hidden parameters so to not expose other customer data (it's a shared database for multiple customers) preferably loaded from php using maybe the php java bridge. Would anyone happen to have any sample code or any guidance?
<%@ page contentType="text/html; charset=UTF-8"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
<%
// just a test to grab rpt name from GET
String rptFile = "report_files/" + request.getParameter("rpt");
%>
<crviewer:viewer reportSourceType="reportingComponent" viewerName=""
isOwnPage="true">
<crviewer:report reportName="<%= rptFile %>" />
</crviewer:viewer>
Many thanks in advance!
MarkI am not aware of any html tags you can pass to the viewer for parameter values. Normally, you would load the report in code and then use the SDK with the report object to pass parameter values.
-
HOW to pass page parameter into table function in HTMLDB
I created this object and table function in database.
create or replace TYPE date_flow_type
AS OBJECT (
time date,
max_time number,
avg_total NUMBER,
sum_total NUMBER,
max_total NUMBER,
change_rate number
create or replace TYPE date_flow_table_type AS TABLE OF date_flow_type;
create or replace function ret_date(p_date date default sysdate) return date_flow_table_type is
v_tbl1 date_flow_table_type :=date_flow_table_type();
begin
v_tbl1.extend;
v_tbl1(v_tbl1.last):=date_flow_type (p_date,1,1,1,1,1);
return v_tbl1;
end;
and it is correct in htmldb when using in these ways
SELECT TIME da,
max_time max_time,
sum_total total,
max_total max_total,
change_rate
FROM TABLE ( ret_icp_date_flow ) a;
SELECT TIME da,
max_time max_time,
sum_total total,
max_total max_total,
change_rate
FROM TABLE ( ret_icp_date_flow( sysdate-1 )) a;
but return error
ORA-00904: "RET_ICP_DATE_FLOW": 无效的标识符
when pasing page parameter into the table function
SELECT TIME da,
max_time max_time,
sum_total total,
max_total max_total,
change_rate
FROM TABLE ( ret_icp_date_flow( to_date(:p1_date,'yyyy-mm-dd') )) a
and this sql is correct while running in sqlplus .Hi!
Thanks for your reply!
I have tried this solution but it doesn't work!
When I do getInitParameter in the init function, the servlet take the default values...
Maybe I have wrote something wrong?
Excuse me for my english,
Thanks -
How to pass a parameter into a sql expression?
How to pass a report parameter into a sql expression?
Hi Donald,
The functionality of using a parameter in a function is only available in the formula editor and not in SQL Expression. Parameters cannot be passed to the SQL Expression, the main purpose of the SQL Expression is to make use of Database functions to make calculations at the database level but the current functionality of the product only allows you to use Database fields.
There is an article that talks on SQL Expressions and can be useful http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2016184&sliceId=&dialogID=6018612&stateId=1%200%206020316
Regards,
Vinay -
How to pass a parameter into RMAN script
Hello,
I have the following rman script :
run {
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'c:\oracle\RmanORCL102\ora_df%t_s%s_s%p';
This script called configure.rman is launch by a .bat script with the following command:
rman target 'sys/sys12@ORCL102 as sysdba' @c:\oracle\RmanORCL102\configure.rman
How can I pass a parameter into rman script, I want to pass an additional directory like this:
rman target 'sys/sys12@ORCL102 as sysdba' @c:\oracle\RmanORCL102\configure.rman v_dir_name
And use it in rman script:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'c:\oracle\RmanORCL102\$v_dir_name\ora_df%t_s%s_s%p';
Is it a way to do this?
Regards,
ElodieOne option would be to create a file called backup.bat with the following:
echo run {
echo CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
echo CONFIGURE CONTROLFILE AUTOBACKUP OFF;
echo CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
echo CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'c:\oracle\RmanORCL102\%1\ora_df%t_s%s_s%p';
echo } ) | rman target sys/sys12@orcl102and then call the script as:
c:\> backup.bat backup_directory_name -
How to Pass multiple parameter into single store procedure
How to Pass multiple parameter into single store procedure
like a one to many relationship.
it is possible then reply me immediatlyyou mean like this .....
CREATE OR REPLACE procedure display_me(in_param in varchar2,in_default in varchar2 := 'Default') is
BEGIN
DBMS_OUTPUT.put_line ('Values is .....'||in_param || '....'||in_default);
END display_me;
CREATE OR REPLACE procedure display_me_2 as
cnt integer :=0;
BEGIN
For c1_rec In (SELECT empno,deptno FROM test_emp) Loop
display_me(in_param => c1_rec.empno);
cnt := cnt+1;
end loop;
DBMS_OUTPUT.put_line('Total record count is ....'||cnt);
END display_me_2;
SQL > exec display_me_2
Values is .....9999....Default
Values is .....4567....Default
Values is .....2345....Default
Values is .....7369....Default
Values is .....7499....Default
Values is .....7521....Default
Values is .....7566....Default
Values is .....7654....Default
Values is .....7698....Default
Values is .....7782....Default
Values is .....7788....Default
Values is .....7839....Default
Values is .....7844....Default
Values is .....7876....Default
Values is .....7900....Default
Values is .....7902....Default
Values is .....7934....Default
Values is .....1234....Default
Total record count is ....18 -
Pass multiple values as single input parameter into pipelined function
Hi all,
My need is to pass multiple values as single input parameter into pipelined function.
For example - "2" and "3" are values of input parameter "t":
with data as (
select 1 as t from dual union all
select 2 as t from dual union all
select 3 as t from dual union all
select 4 as t from dual union all
select 5 as t from dual
select * from data where t in (2,3)Is it possible at all?Not exactly sure, but usually 'multiple values'+'pipelined function' = some IN-LIST related approach?
See:
SQL> create table data as
2 select 1 as t from dual union all
3 select 2 as t from dual union all
4 select 3 as t from dual union all
5 select 4 as t from dual union all
6 select 5 as t from dual;
Table created.
SQL> --
SQL> CREATE OR REPLACE FUNCTION in_list (p_in_list IN VARCHAR2)
2 RETURN sys.odcivarchar2list PIPELINED
3 AS
4 l_text VARCHAR2(32767) := p_in_list || ',';
5 l_idx NUMBER;
6 BEGIN
7 LOOP
8 l_idx := INSTR(l_text, ',');
9 EXIT WHEN NVL(l_idx, 0) = 0;
10 PIPE ROW (TRIM(SUBSTR(l_text, 1, l_idx - 1)));
11 l_text := SUBSTR(l_text, l_idx + 1);
12 END LOOP;
13
14 RETURN;
15 END;
16 /
Function created.
SQL> --
SQL> select *
2 from data
3 where t in ( select *
4 from table(in_list('1,2'))
5 );
T
1
2
2 rows selected.http://www.oracle-base.com/articles/misc/dynamic-in-lists.php
or
http://tkyte.blogspot.nl/2006/06/varying-in-lists.html -
How to pass parameter into extract function (for XMLTYPE)
I have a table PROBLEMXML with XMLTYPE field xml_column. In this column there are several deffinitions for the problem. There is no max amount of deffinitions and it can be no definition at all. I need to return all definitions for every problem as a string wirh definitions separated by ";".
Query
SELECT extract(prob.Def,'/Definitions/Definition[1]/@var') || ';'|| extract(prob.Def,'/Definitions/Definition[2]/@var')
FROM PROBLEMXML j ,
XMLTABLE (
'/problem'
PASSING j.xml_column
COLUMNS probid VARCHAR (31) PATH '/problem/@id',
Def XMLTYPE PATH '/problem/Definitions') prob
where PROBLEM_ID =1;
returns exactly what I want a;m.
But
declare
my_var varchar2(2000) :=null;
n1 number;
n2 number;
begin
n1:=1;
n2:=2;
SELECT extract(prob.Def,'/Definitions/Definition[n1]/@var') || '|'|| extract(prob.Def,'/Definitions/Definition[n2]/@var') into my_var
FROM ETL_PROBLEMXML_STG_T j ,
XMLTABLE (
'/problem'
PASSING j.xml_column
COLUMNS probid VARCHAR (31) PATH '/problem/@id',
Def XMLTYPE PATH '/problem/Definitions') prob
where PROBLEM_ID =1;
dbms_output.put_line(my_var);
end;
returns NULL.
Is there is a way to pass parameter into extract function?I need to return all definitions for every problem as a string wirh definitions separated by ";".In XQuery, there's the handy function "string-join" for that.
For example :
SQL> WITH etl_problemxml_stg_t AS (
2 SELECT 1 problem_id,
3 xmltype('<problem id="1">
4 <Definitions>
5 <Definition var="var1"></Definition>
6 <Definition var="var2"></Definition>
7 <Definition var="var3"></Definition>
8 </Definitions>
9 </problem>') xml_column
10 FROM dual
11 )
12 SELECT j.problem_id,
13 prob.probid,
14 prob.def
15 FROM etl_problemxml_stg_t j,
16 XMLTable(
17 'for $i in /problem
18 return element r
19 {
20 $i/@id,
21 element d { string-join($i/Definitions/Definition/@var, ";") }
22 }'
23 passing j.xml_column
24 columns
25 probid varchar2(30) path '@id',
26 def varchar2(100) path 'd'
27 ) prob
28 ;
PROBLEM_ID PROBID DEF
1 1 var1;var2;var3 -
How to pass parameter into transaction iview ?
Hi experts,
I want to know "how to pass parameter into transaction iview ".
Regards,
Krishna Balaji THi Krishna,
Not sure if this can help you.
1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
Passing a parameter to a transaction iview
2) Passing a parameter from the portal to R3 (helpful info for you)
Passing a parameter from the portal to R3
3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
Create SAP Transaction iView using SAPGUI for Windows
Please check the following link for Transaction Iviews
http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
Hope that helps and award points for helpful suggestions.
Ray -
Error when uploading a crystal report with dynamic parameter into Infoview
Hi All,
I was trying to upload a crystal report which has a dynamic parameter into a Infoview. It shows an error message that say:- "Failed to read data from report file C:\WINDOWS\TEMP\tmp27A.rpt. Reason: Failed to read parameter object ". Can anybody help me in solving this?
Thanks!
Edited by: undefined on Aug 20, 2009 8:57 PMPost your question to the Business Objects Forum
-
Parsing SOAP Results into Variables
Can someone assist me in figuring out what way I need to go
to parse SOAP results into an array?
I have setup the <MX:WEBService> correctly, created my
resultEvent(event) handler and faultEvenet(event) handler as
needed. Below is the web service:
<mx:WebService
id="srvGetTagHistory" wsdl="{SOAP_URL}"
result="CreateTagHistory(event)" fault="faultEvenet(event)"
useProxy="false">
<mx:operation name="GetTagHistory" resultFormat="e4x">
<mx:request>
<RSWID>{vRSWID}</RSWID>
</mx:request>
</mx:operation>
</mx:WebService>
This works perfectly. I can return the results of the
webservice to a text area control, and the complete SOAP results
are displayed.
My problem is I cannot and have not figured out how to make
the SOAP results into some type of arraycollection for using in,
lets say, a dataGrid.
Here is an example of a SOAP result for the above webservice:
<NS1:GetTagHistoryResponse
xmlns:NS1="urn:myresaleworldserviceIntf-myresaleworldserver"
xmlns:NS2="urn:myresaleworldserviceIntf" xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/">
<NS2:return href="#1"/>
<SOAP-ENC:Array id="1">
<item href="#2"/>
<item href="#9"/>
<item href="#16"/>
<item href="#25"/>
<item href="#29"/>
</SOAP-ENC:Array>
<NS2:rswTagHistory id="2">
<OrderDate>2005-12-08T11:15:24.857-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#3"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="3">
<item href="#4"/>
<item href="#5"/>
<item href="#6"/>
<item href="#7"/>
<item href="#8"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="4">
<TagColor>Lavender</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="5">
<TagColor>Light Blue</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="6">
<TagColor>Green</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="7">
<TagColor>Pink</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="8">
<TagColor>Yellow</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="9">
<OrderDate>2005-12-08T11:18:44.233-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#10"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="10">
<item href="#11"/>
<item href="#12"/>
<item href="#13"/>
<item href="#14"/>
<item href="#15"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="11">
<TagColor>Lavender</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="12">
<TagColor>Light Blue</TagColor>
<Total>3</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="13">
<TagColor>Green</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="14">
<TagColor>Pink</TagColor>
<Total>3</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="15">
<TagColor>Yellow</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="16">
<OrderDate>2006-08-07T13:56:22.513-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#17"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="17">
<item href="#18"/>
<item href="#19"/>
<item href="#20"/>
<item href="#21"/>
<item href="#22"/>
<item href="#23"/>
<item href="#24"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="18">
<TagColor>Lavender</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="19">
<TagColor>Light Blue</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="20">
<TagColor>Green</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="21">
<TagColor>Orange</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="22">
<TagColor>Pink</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="23">
<TagColor>Red</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="24">
<TagColor>Yellow</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="25">
<OrderDate>2007-04-10T12:08:03.950-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#26"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="26">
<item href="#27"/>
<item href="#28"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="27">
<TagColor>Light Blue</TagColor>
<Total>3</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="28">
<TagColor>Green</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="29">
<OrderDate>2007-12-19T12:52:30.883-05:00</OrderDate>
<TagType>Thermal Tags</TagType>
<NS2:ColorDetail href="#30"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="30"/>
</NS1:GetTagHistoryResponse>
Any assistance to this issue would be greatly appreciated.If you have set resultFormat="e4x" than you can handle the
result very easily.
I guess you already find out that your result is in
event.result.
Your example is too hard to parse by human.
You can read:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=13_Working_with_XML_01.html
Especially: Traversing XML structures and Using XML
namespaces
I hope this will help -
Putting Parameter into SQL Expression or convert to formula Basic or Crystal
Post Author: yoschua
CA Forum: Formula
Hello,In my old report I got something like thisSELECT MIN(cast("ParDyn"."ParVal" as integer))FROM "result".ParDyn WHERE "ParDyn"."ParNo" = (SELECT Max("Piece"."ParDynNo") FROM "result"."Piece" WHERE "Piece"."RequestNo" = XPARAM1 And "Piece"."PieceNo" = XPARAM2) And "ParDyn"."ParIdent" = 'Trace.Assignment' This report are viewed from VB component - at old VB they read SQL from report, input XPARAM1 and XPARAM2 and put it into report again and the show report.Because now I want to make my aplication I convert this report to use it not only at this old aplication, but with CR Viewer too.I see I can not insert Parameter into SQL Statement, so I need to use Basic or Crystal Formula.I try to make something like this : minimum({ParDyn.ParVal})and {ParDyn.ParNo} = 0of cource zero should be exchange with next statement, but this not working.What I would like to get is only one record, I do not want get whale table into CR engine and then evaluate becouse this report must work on slow connection, so I need take from database only records witch I need. Can someone help me, or show how to insert into formula value as parameter taked from another table dynamicly ?? Best Regards Bartłomiej JóźwiakOk,
The only way I found to get the maximum status date of an employee with the date entered in parameter was to litteraly put each employee ID, and Status Date in the Detail section.
Then in the select expert create the parameter date.
Then I created a running total field that counts the employees and resets on change of employee sorted by status date.
Then I created a formula that gets all the first occurences of this running total field and if the running total field equals 1, a new formula field shows 1 and if not (2 and more), it shows 0.
But I can't find the way to give me the total that I need for each group sections.
It's ok if the SQL expression field does not work, but I need to find a way to get the max date.
Thank's for your help for the SQL Expression field.
Steph
Maybe you are looking for
-
Component from a set of jsf elements
I use a set of JSF elements (adf:table, adf:commankLink...). How to make all this elements part of a "Components" with input params ? What is the best solution ? region, facelets, subview, ...
-
HT1766 how to delete photos in album
How to delete photos in album fr iphone 5 so the storage will be freed
-
N8 = 480 euros worth of fail
Long time Nokia user. Started in 1996 with their banana phone, used 9200/9300i/E70/72/75/90 and now I bought a Nokia N8. Since I've had it, i had nothing but problems. 1. Wifi on the phone is mediocre. There is no simple off button and it takes 20 m
-
Since my Mini no longer holds a charge and I have had it 3 years, I would like to buy a new MP3 player. I was wondering if songs purchased on ITunes (99% of my library) will play on a non-Apple MP3 player? I know the songs are in Apple's format, and
-
IPhone's display cuts (imported) portrait pictures on right margin...
... if displayed in portrait orientation. Turn iPhone in landscape and the whole image is there! :-/ It's a bug or a feature? paolo