Setting FileControl delimiter string programatically
Hello,
I'm working with WLI's FileControls. I'd like to configure a FileControl instance at runtime. I can set many of the FileControl properties using the FileControlPropertiesDocument. One thing I'd like to dynamically configure is the delimiter string. This attribute, however, is part of a nested class within FileControl called IOOperation. I don't see how to set the values of the IOOperation attributes programatically. They appear to be set as part of an annotation, and are read-only at runtime. Has anyone tried something like this before?
Thanks very much,
Brian.
Hello,
I'm working with WLI's FileControls. I'd like to configure a FileControl instance at runtime. I can set many of the FileControl properties using the FileControlPropertiesDocument. One thing I'd like to dynamically configure is the delimiter string. This attribute, however, is part of a nested class within FileControl called IOOperation. I don't see how to set the values of the IOOperation attributes programatically. They appear to be set as part of an annotation, and are read-only at runtime. Has anyone tried something like this before?
Thanks very much,
Brian.
Similar Messages
-
Command line to sort semi-colon delimited string
I'm sure there's a simple solution eluding me... I have an app which stores sets as a string like:
"bee;ant;cow;ant;Aardvark;dog"
which I want to sort to a string like:
"Ardvark;ant;bee;cow;dog"
...where letter sort** is case insensitive and number strings sort on numberical value (i.e. 1,2,10 not 1,10,2). FWIW, the string length is likely to be short and not large numbers of delimited terms - in case that matters.
** I can duck issue of sorting & accented characters if that's a significant complication at this point.
The app in question can't do the sort but can call a Unix command line and read its stdout. I want a single command line not an external script for portability/support reasons, though it doesn't matter if the CL is long. So, please don't suggest I use a script even if it's your own preferred method!
I thought of using 'sort' but that's for lines in a file vs a single input line. I guess I use awk, or can a pass perl as a CL (as opposed to calling a script)? Either way, my poring over the references I have hasn't showed me a solution and I don't know perl. Here's hoping someone can point me in the right direction.
TIA
MarkHere's one way to accomplish what you're asking:set stuff2Sort to "bee;ant;cow;ant;Aardvark;dog;1;10;2"
set sortedStuff to sortStuff(stuff2Sort)
on sortStuff(x)
set tmpSort to paragraphs of (do shell script "echo " & quoted form of x & " | awk 'gsub(\"",\"\\n\") {print}' | sort -g")
set oldDelims to text item delimiters
set text item delimiters to ";"
set theSorted to tmpSort as string
set text item delimiters to oldDelims
return theSorted
end sortStuffI don't know if the ";" and "\" are appearing correctly or not. When I preview this post it shows up as a smiley face even though I have it in a code block!
Hope this helps...
Message was edited by: Chachi
Sorry, thought I was in the Applescript forum! DOH!!! -
DRM Function to divide comma delimited string to list value
Hi
Any one knows how to seperate comma delimited string into list values.
ThanksAre you wanting to dynamically set the list values for a property? If so there are a couple options:
1. You can update them via the API.
2. You can write a sql script to update the table Property_List. This requires an application server restart and generally isn't recommended for support reasons but it makes sense in some instances.
Edited by: Naren Truelove on 16/02/2011 22:08 -
Delimited String To A Single Row Within A Table
I'll try to make a simple example of what I am trying to accomplish...
Let's say that I have a table (Blah) which has the following Fields:
User, DateTime, Q1, Q2.... all the way to Q50. The Questions are radios with a value of 1,0, or null.
Since I didn't want to manually make 50 different items for the Radio questions, I am creating them from Javascript within a Region Source; as well as giving them id's and names. This worked fine.
When I hit a submit button, I have Javascript create a delimited string for the questions, which I pass to a Shared Item. (1,0,1,1,null,0,etc...) I then have the Javascript run a Shared Procedure for the Insert into my Table.
Here is where I am stuck. I am confused on how to merge the delimited string into my Insert statement, from PL/SQL.
Here is a dummied down sample of what I am trying to write. (Shared Item is :ITEM_ARRAY, with a delimiter of ~:~ )
DECLARE
array APEX_APPLICATION_GLOBAL.VC_ARR2
BEGIN
array := APEX_UTIL.STRING_TO_TABLE(:ITEM_ARRAY, ':~:' );
INSERT INTO tbl_blah (
:APP_USER
,SYSDATE
FOR z IN 1..array.count LOOP
array(z);
END LOOP;
END;
Every which way I tried, I always get Not Enough Values Error.
I tried to make everything in a delimited string as well:
Insert Into tbl_blah (SELECT * FROM array)
Can someone please enlighten me on the correct way to do this. All of the examples I have seen are to write to multiple rows, via the loop. I want to just have 1 record, horizontally.
Thanks !!!Hi,
Why can't you insert a row into table with first two columns and do update for that row???
Just for simple work around, I have created a table with below columns,
USER_NAME VARCHAR2
EXAM_DATE DATE
M1 NUMBER
M2 NUMBER
M3 NUMBER
M4 NUMBER
M5 NUMBER
M6 NUMBER
M7 NUMBER
M8 NUMBER
M9 NUMBER
M10 NUMBER
I wrote a below code to insert a row into that table,
declare
v_arr APEX_APPLICATION_GLOBAL.VC_ARR2;
v_stmt varchar2(1000);
begin
v_arr:= APEX_UTIL.STRING_TO_TABLE(:p_all_items,'~');
insert into test_group(user_name,exam_date) values (:APP_USER,sysdate);
dbms_output.put_line('row inserted');
FOR i IN 1..v_arr.COUNT LOOP
dbms_output.put_line('i='||i||' value='||v_arr(i));
if v_arr(i) is null then
v_stmt:='update test_group set m'||i||'=NULL';
else
v_stmt:='update test_group set m'||i||'='||v_arr(i);
end if;
dbms_output.put_line(v_stmt);
execute immediate v_stmt;
END loop;
end;
I just ran this block in 'SQL Commands', It worked for me. but i inserted only one row, so it updates a single row, In case of multiple row need to use the unique column for update. change the above code as per your requirement.
I hope this work around will help you. If not can you please create an example in apex.oracle.com and share login credentials.
Thanks
Lakshmi -
Find and replace value in Delimited String
Hi All,
I have a requirement, where i need to find and replace values in delimited string.
For example, the string is "GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~". The 4th column gives month and year. I need to replace it with previous month name. For example: "GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~". I need to do same for last 12 months.
I thought of first devide the values and store it in variable and then after replacing it with required value, join it back.
I just wanted to know if there is any better way to do it?for example (Assumption: the abbreviated month is the first occurance of 3 consecutive alphabetic charachters)
with testdata as (
select 'GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~' str from dual
select
str
,regexp_substr(str, '[[:alpha:]]{3}') part
,to_date('01'||regexp_substr(str, '[[:alpha:]]{3}')||'2013', 'DDMONYYYY') part_date
,replace (str
,regexp_substr(str, '[[:alpha:]]{3}')
,to_char(add_months(to_date('01'||regexp_substr(str, '[[:alpha:]]{3}')||'2013', 'DDMONYYYY'),-1),'MON')
) res
from testdata
STR
PART
PART_DATE
RES
GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~
FEB
02/01/2013
GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~
with year included
with testdata as (
select 'GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~' str from dual
select
str
,regexp_substr(str, '[[:alpha:]]{3}-\d{2}') part
,to_date(regexp_substr(str, '[[:alpha:]]{3}-\d{2}'), 'MON-YY') part_date
,replace (str
,regexp_substr(str, '[[:alpha:]]{3}-\d{2}')
,to_char(add_months(to_date(regexp_substr(str, '[[:alpha:]]{3}-\d{2}'), 'MON-YY'),-1),'MON-YY')
) res
from testdata
STR
PART
PART_DATE
RES
GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~
JAN-13
01/01/2013
GL~1001~157747~DEC-12~CREDIT~A~N~USD~NULL~
Message was edited by: chris227 year included -
Converting Delimited string to XML message
Hi,
We are trying to convert pipe delimited string into a xml schema using a XSD and BPEL funtion. Consider a scenario in which message has 5 fields with last as 2 optional fields. So the incoming string message can be like "1|2|3" or "1|2|3|4|5". In this case how the XSD should look like, since for each field we have to give "terminatedby" option in the XSD. So the issue is coming for element 3 where the delimiter can be "|" or "eol" (end of line). How to specify that ? Is there any option to use like "optionally terminated by?"
Any help will be appreciated.
Thanks,
Ramesh
Edited by: rameshchandra85 on 2 Aug, 2010 10:00 AMHi Ramesh,
You can use below XSD for input file of kind
1|2|3
1|2|3|4|5
1|2|3|4
1|2|3|4|5|6
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
targetNamespace="http://TargetNamespace.com/InboundService"
xmlns:tns="http://TargetNamespace.com/InboundService"
elementFormDefault="qualified"
attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
<xsd:element name="Root-Element">
<xsd:complexType>
<xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy="|">
<xsd:element name="RECORD1" nxsd:conditionValue="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C2" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C3" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy=""">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RECORD2" nxsd:conditionValue="2">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C2" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C3" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C4" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C5" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy=""">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RECORD3" nxsd:conditionValue="3">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C2" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C3" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C4" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy=""">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RECORD4" nxsd:conditionValue="4">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C2" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C3" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C4" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C5" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy=""">
</xsd:element>
<xsd:element name="C6" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy=""">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<!--NXSDWIZ:D:\DBIN\ReadFile.txt:-->
<!--USE-HEADER:false:-->But in your case if you are getting 5 elements instead of 3 elements in some other file....Use the same and maipulate the last element afterwards.
I think we can not have an element definition for two scenarios.
Update you if i get any..
Regards
PavanKumar.M -
Error in create-nodeset-from-delimited-string
Hi Gurus,
I am trying to use the orcl:create-nodeset-from-delimited-string XPath extension function in the XSL mapper.
I am using the Map test feature to test my map, and notice that if I use this function, the XSL does not give any output - i guess the map is failing to execute at runtime. When I open the JDeveloper as jdev.exe [so that I can see the command line window for JDev], I can see that an error appears in the command line window that states "Method orcl:create-nodeset-from-delimited-string" not found.
This XPath function is available for use in the "Advanced Functions" palette in the XSL Mapper.
Please let me know if
a) This function can be used within the Mapper, and if so,
b) whats the right way to use it.
My usage looks like
orcl:create-nodeset-from-delimited-string('tns:sampeNode',$delimVar,',')
where delimVar is a comma delimited string.
Please let me know your thoughts on this .
rgds,
RamHello..
Look, I paste a functional piece of code that I develop in a transformation.
Take this for your example and develop with the same structure.
BR...Rodrigo
<xsl:param name="HomeNumber"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:HomePhone"/>
<xsl:param name="HomeNumberExt"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:HomePhoneExt"/>
<xsl:param name="WorkNumber"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:WorkPhone"/>
<xsl:param name="WorkNumberExt"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:WorkPhoneExt"/>
<xsl:param name="Fax1"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:Fax1"/>
<xsl:param name="Fax2"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:Fax2"/>
<xsl:param name="Email"
select="/tns:GetCustomerResponse/tns:GetCustomerResult/tns:DefaultAddress/tns:Email"/>
<xsl:param name="contactMedium"
select="concat($HomeNumber,'-%',$HomeNumberExt,'-%',$WorkNumber,'-%',$WorkNumberExt,'-%',$Fax1,'-%',$Fax2,'-%',$Email,'-')"/>
<xsl:param name="contactMediumNodeSet"
select="oraext:create-nodeset-from-delimited-string('contactMediumNodeSet',$contactMedium,'%')"/> -
Numbers '09 2.1 - setting import delimiter for .txt or .rtf
Hi there -
I have a series of text files with leading numbers that I'd like to remove. The files are lists, where each line is enumerated sequentially & these line-numbers have to be removed for further processing.
This is too painful to do manually (takes forever), but the content is not in English and so Excel, which allows me to set the delimited & correctly parses the information, doesn't read the content properly (even after copy paste into a word processor that usually does) whereas Pages will handle the content, but for the life of me I can't get it to parse the information - so it's effectively useless.
The other threads I've read basically suggest that one has to manually insert tabs between the fields - is this actually the case? Is there really no way to control how Pages '09 parses imported data?
As a final add-on: I know this would be relatively easy to do with a script, but I havne't a clue where to get started with scripting for the Mac, so if you read this & have a suggestion as to where I might get started (generally, or w.r.t. this particular project), I would very much appreciate the enlightenment.
Thanks in advance and all the best,
RaxIf the leading numbers are separated from the rest of lines by space character, you file is not a tab delimited one.
If a file whose name ends with .txt is a tab delimited one, it may be opened by Numbers with no problem.
If its name ends with .csv, thingsa re more complicated.
If the system use the period as decimal separator, the values MUST be separated by commas
but
if the system use the comma as decimal separator, the values MUST be separated by semi-colons.
I have a possible understanding of your problem.
Maybe values are separated by single or several spaces which is the awful format used in the typewriter era.
I guess that with this structure, Excel use its knowledge of English language to split the lines.
As I don't like to work in the Terminal, I wrote a short script achieving what you described.
--{code}
set fichier_source to choose file with prompt "Select a text file" of type {"public.plain-text"}
set le_fichier to POSIX path of (fichier_source as text)
do shell script "sed -i.bak -e 's/^[0-9]* *//' " & quoted form of le_fichier
tell application "Pages"
open le_fichier
end tell
--{code}
Yvan KOENIG (VALLAURIS, France) mardi 25 octobre 2011 00:03:57
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
How to Identify the count , If multiple parameters are passed using Pipe Delimited string
Hi,
We are passing Pipe delimited string to the parameter and I want to know how many values we are passing to the parameter.
Here is the example
Parameter.Grant: 24|34|54|67
I am using below expression, but it is not giving the right values. Please let me know if I am missing anything or is it possible.
=iif(parameters!Grant.Count>1,"Multiple value selected",parameters!Grant.Value)Hi NaveenCR,
According to your description, you used pipe delimited multi-value parameter in the report, you want to know how many values passed to the parameter. If that is the case, please refer to the following steps:
In Design view, click Text Box in the Toolbox.
On the design surface, click and then drag a box to the desired size of the text box.
Right-click inside of the text box, then click Expression.
In Expression text box, type the expression like below:
=iif(split(Parameters! Grant.Value,"|").Length>1," Multiple value selected",Parameters!Grant.Value)
The following screenshots are for your reference:
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
If you have any feedback on our support, please click
here.
Wendy Fu
TechNet Community Support -
Using a comma-delimited string in Dynamic SQL
Hi --
If I receive a comma-delimited string as an in parameter, can I simply use that (in string format) when building my dynamic sql?
Thanks,
ChristineThe problem is, that you can not use bind variables
here, only literals. This causes
eventual performance problems.And to avoid the inevitable database performance problems Dmytro mentions you can use a function to convert the string to a varray and select from that. This also avoids having to use dynamic sql.
First you create a varray and conversion function.
SQL> create or replace type tabstr_t as table of varchar2(255)
2 /
Type created.
SQL> create or replace function tabstr (
2 p_str in varchar2,
3 p_sep in varchar2 default ','
4 )
5 return tabstr_t
6 as
7 l_str long default p_str || p_sep;
8 l_tabstr tabstr_t := tabstr_t();
9 begin
10 while l_str is not null loop
11 l_tabstr.extend(1);
12 l_tabstr(l_tabstr.count) := rtrim(substr(
13 l_str,1,instr(l_str,p_sep)),p_sep);
14 l_str := substr(l_str,instr(l_str,p_sep)+1);
15 end loop;
16 return l_tabstr;
17 end;
18 /
Function created.Then you can use these in either regular sql.
SQL> var s varchar2(100)
SQL> exec :s := 'Smith,Scott,Miller'
PL/SQL procedure successfully completed.
SQL>
SQL> select * from emp where ename in
2 (select upper(column_value) from table(tabstr(:s)));
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10Or in pl/sql.
SQL> var c refcursor
SQL> begin
2 open :c for
3 select * from emp where ename in
4 (select upper(column_value) from table(tabstr(:s)));
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> print c
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10 -
How to use create-nodeset-from-delimited-string()
Hi All,
I am getting the input data as following
name rollno sub
Anu 1 Maths|science|social
and the output should be as follows:
name rollno sub
Anu 1 Maths
Anu 1 Science
Anu 1 Social
I need to implememt this by using oraext:create-nodeset-from-delimited-string() in XSLT Pls help me out in resolving this issue
Regards,
Anasuyacan u elaborate the query with ur input xml and output xml for clear understanding instead of
name rollno sub
Anu 1 Maths|science|social
and the output should be as follows:
name rollno sub
Anu 1 Maths
Anu 1 Science
Anu 1 Social
check the following links it might help u
http://www.soabyte.com/2011/01/delimited-string-to-xml-nodeset.html
Edited by: olety on Nov 2, 2011 2:29 AM -
Comma delimited string relating to subreports
I previously opened a discussion called comma delimited string for a report header. The response I received then worked well for 'Year' but not for two other areas I am trying to use it for.
Original Code
Details:
whileprintingrecords;
stringvar Year:= Year+ {@Year} + ", ";
Report Footer:
whileprintingrecords;
stringvar Year;
Left(Year, len(Year)-2);
I needed to modify the code to eliminate duplication in Year and this worked fine. See the code below. I also needed this code for two other areas, Author and School. Without the extra line of code with the 'instr' function the code would always show and error for ' Left(author, len(author)-2);'. It came up with and error saying that the result was less than 0 or not and integer and went into debug mode. I added the instr function line and it worked for most but not all. This is my problem. Either the ' Left(author, len(author)-2);' line or 'If instr(author, {@Author } ) = 0 then' makes data disappear. It will show a comma delimited string for 'Author' on most rows but not from some. The same would be true for' School'. I am not sure what is going on. The code below is what I am currently using in the subreports.
Details:
whileprintingrecords;
stringvar author;
If instr(author, {@Author}) = 0 then
author:= author + {@Author } + ", ";
Report Footer:
whileprintingrecords;
stringvar author;
If instr(author, {@Author } ) = 0 then
author:= author + {@Author } + ", ";
Else
Left(author, len(author)-2);Hi Abhilash,
The code for the @Author is:
If ({Command.chrStatus} = "External")then
{Command.chrSurname} & ", " & {Command.chrFirstname}
Else
{Command.chrSurname(1)} & ", " & {Command.chrFirstname(1)}
The goal of this code was to pull all the authors into one comma delimited string.
eg Smith, Brian; Jones, Barry; Lee, Henry
The same desire was with the Schools and the code was the same. I just don't know why this is returning the blanks.
You mentioned in the last post that this would be better done in an SQL command. Should I open up another discussion because I think this would be the way to go. I just don't know how I can do the same comma delimited code in SQL.
Thanks -
Programmatically setting SQL Query string?
Post Author: JoeM
CA Forum: Data Connectivity and SQL
Hi,
I recently updated to Crystal Reports 11 from 8.5 and am having some problems getting my reports to properly function. I need to set the SQL query string in the report at runtime in our C++ based program when the user selects what report they want to print. So to do this I first open the report and connect to our database and that works fine, here is the code for that -
pReport = pCRPApp->OpenReport(TmplFName, dummy) ;
pReport ->Database->LogOnServer("crdb_odbc.dll", ODBC_FILEDSN, DatabaseName, DatabaseUsrNm, DatabasePwd);
but when I use PutSQLQueryString to set the custom sql query that I've made it does not appear to work because when I use GetSQLQueryString right after that, the returned string is not the one I just set. Here is the code for that part -
pReport->PutSQLQueryString(SQLExprBuf);
sprintf(TestSQL, pReport->PutSQLQueryString());
TestSQL is not the same as SQLExprBuf
So my question is how do I properly set the SQL query string programmatically, is there some setting in my report that needs to be turned on or am I using the wrong function? I read somewhere that you can use the Add command option in the report to set the query string as well, is there a way to programmatically do that?In Access create a View showing the information you want, then in design mode click View, SQL to see teh SQL you need. now make sure the SQL you build in VBA is exactly the same. so in the Immediate window type a ? then copy paste your code then press Enter
to see the result, EG:
?"UPDATE Lan_landmeter " _
& "SET OpleidingsBedrijf =" & bedrijf & " ,Opleiding_startdatum =#" & startdatum & "#,Opleiding_einddatum =#" & einddatum & "#,Aantal_opleidingsuren_vast=20,Aantal_gevolgde_uren
=" & gevolgde_uren & ",Aantal_resterende_uren=0" _
& "WHERE Id_landmeter =" & naam & ""
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz -
How to set global resoure string
Hello!
I successfully set a resource string, i.e. af_calendar.TIP_NEXT with the following implementation:
public class MyMessageBundle extends ListResourceBundle {
private Object[][] CONTENTS = {
{"AFAutoSuggestEmptyText", "Hello there!"},
{"af_calendar.TIP_NEXT", "TEST"}
protected Object[][] getContents() {
return CONTENTS;
}But this doesn't work for global resource strings like AFAutoSuggestEmptyText Any suggestions?
Thanks
christophHi Praveen G,
this blog was one of the sources I already found.
I was searching for the "official" way to set the default-workbook - without manipulating the tables programmaticaly (and possibly inconsistant).
Best regards,
Marco -
Split Comma Delimited String Oracle
I want to Split Comma Delimited string in oracle9i into rowwise data.i do not want to use Functions or connect by level...
is there any other way from which we can split strings.???
if we use Connect by level method the problem im facing is we cannot use suqueries in Connect by clause...
Edited by: user11908943 on Sep 16, 2009 8:37 AMmichaels2 wrote:
I prefer using XMLTABLE which has superceded XMLSEQUENCE and I personally find it easier to read...Agree, but that would be hard in 9i since it is not implemented ;)Ah! missed that bit (gawd I wish people would upgrade to supported versions)
In still later versions (11g) I prefer
SQL> with t as
select 'a,b,c,d,e' str from dual
select trim(column_value) str
from t, xmltable(('"' || replace(str, ',', '","') || '"'))
STR
a
b
c
d
e
5 rows selected.
Natty! But completely illogical (I mean creating an XMLTABLE from a non-XML string). I'm guessing that's a development of XQuery?
Maybe you are looking for
-
Windows XP and Windows 7 home sharing not working at all
Had a really old laptop with XP that I used basically only for iTunes. Now want to use homesharing to get all my music/apps from the old XP to a new, Windows 7 laptop. Both laptops are authorised to use my Apple ID and I've authorised and de-authoris
-
More than one h:form tag?
Hi, I have my pages setup with a header and footer page. So that each page does this: home.jsp: <%@ include file="/includes/header.jsp" %> <%@ include file="/includes/footer.jsp" %>Now, both the header.jsp and footer.jsp pages use h:commandLink tags
-
Need Loop - All data elements in one section
Guys, Below is the XML file I have with one section "Payment_History_Vendor" and all data elements present under it. The mailing name, address line 1 and addressline2 are changing. I need the output as below. Mailing_Name_ID6 Address_Line_1_ID8 Addre
-
How to get status of a short lived process?
I have a short-lived process I call from servlet (submit servlet), I would know when the process has completed, I tried the following code, but it says [3/3/09 10:35:37:593 PST] 0000002f SystemErr R Caused by: com.adobe.idp.jobmanager.common.JobNotFo
-
Can't download iTunes setup exe in Windows 7
Hi, trying to install iTunes on a new PC with Windows7. Was able to download and install skype etc, but iTunes, when I press the download button, and the pc asks me where to save it and I click save, nothing happens. I have tried 10 times. I have an