Periodic autosave of XML file
Hi guys,
I'm having quite simple task, but no idea how to achieve it. A have a While loop, inside it I have som form to fill in and the output of this form is saved into xml file (using older MSXML library) and OK button for running parser and writting data into right place in XML file. All I need to do is to save XML file after the Stop button is hit, or after e.g. five minutes of application run. Just simple autosave feature.
For better ilustration, please see picture, or example.vi file.
I am running LV 2012
Thank you for your answers.
Attachments:
Example.vi 9 KB
You could put these functions in an event structure within the loop. Have a shift register on the loop, passing the value through the various states of the event stucture. Have the "save" button trigger an event to save your data, and at the same time (bad pun) put the current millisecond timer value onto the shift register. In the time out case of the event structure (with a time out value of, say, 100mS wired to it to cause the timeout case to trigger regularly), compare the value of the shift register with the current millisecond count and when enough time (x) has passed have it: 1) put the new time count on the shift register, 2) save the file. This should ensure that the file is saved every x within a 100mS window of time error.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion
Similar Messages
-
Hi All , validating the overlapped periods ,Uploading the xml file to sap
Hi All,
please provide me the logic for the following requirement: Its an urgent .
Upload Global exception periods via File:
A customized transaction will be created for uploading the global exception periods using
an excel file. User has to maintain the global exception periods in an excel sheet with the
below mentioned format and upload the file manually into the system. The global
exceptions are maintained at step of half hourly period with a factor value.
Please find the format followed for maintaining the global exception periods in the
excel sheet.
Date From Period From Date To Period To Factor value
06.02.2008 12 06.02.2008 14 1.2
07.02.2008 1 07.02.2008 2 1.4
07.02.2008 3 07.02.2008 4 1.2
07.02.2008 5 07.02.2008 6 1.6
07.02.2008 7 07.02.2008 8 1.1
Once user uploads the excel file and press execute button, file contents are downloaded
and the global exception periods are updated into ZLF_GEXCEPTION table. Please refer
the necessary table format for details.
During the upload of global exception periods, the periods are checked if it is overlapping
with the previously uploaded periods. For those overlapping periods, below method is
followed.
1. For e. g, If a below exception period is already uploaded,
Date From Period From Date To Period To Factor value
06.02.2008 12 06.02.2008 16 1.4
The new file contains the period which gets overlapped with the previous global
exception period.
Date From Period From Date To Period To Factor value
06.02.2008 14 06.02.2008 15 1.6
The overlapped periods are split accordingly,
Date From Period from Date to Period To Factor value
06.02.2008 12 06.02.2008 13 1.4
06.02.2008 14 06.02.2008 15 1.6
06.02.2008 16 06.02.2008 16 1.4
2.For e.g., Already existing period,
Date From Period From Date To Period To Factor value
06.02.2008 12 07.02.2008 16 1.3
New period,
Date From Period From Date To Period To Factor value
07.02.2008 5 07.02.2008 8 1.7
The Global exception periods are split into,
Date From Period From Date To Period To Factor value
06.02.2008 12 07.02.2008 4 1.3
07.02.2008 5 07.02.2008 8 1.7
07.02.2008 9 07.02.2008 16 1.3
If any error occurs while updating the global exception periods into ZLF_GEXCEPTION
table, then display LF-001 message given below the Error messages section. For the
successful updating of global exception periods to ZLF_GEXCEPTION table, then
display the message Successfully completed.
User will be provided an option to download the global exception periods into an excel
file. User has to provide the necessary location details where to download the file while
downloading.
Thanks&Regards.
BkHi All,
please provide me the logic for the following requirement: Its an urgent .
Upload Global exception periods via File:
A customized transaction will be created for uploading the global exception periods using
an excel file. User has to maintain the global exception periods in an excel sheet with the
below mentioned format and upload the file manually into the system. The global
exceptions are maintained at step of half hourly period with a factor value.
Please find the format followed for maintaining the global exception periods in the
excel sheet.
Date From Period From Date To Period To Factor value
06.02.2008 12 06.02.2008 14 1.2
07.02.2008 1 07.02.2008 2 1.4
07.02.2008 3 07.02.2008 4 1.2
07.02.2008 5 07.02.2008 6 1.6
07.02.2008 7 07.02.2008 8 1.1
Once user uploads the excel file and press execute button, file contents are downloaded
and the global exception periods are updated into ZLF_GEXCEPTION table. Please refer
the necessary table format for details.
During the upload of global exception periods, the periods are checked if it is overlapping
with the previously uploaded periods. For those overlapping periods, below method is
followed.
1. For e. g, If a below exception period is already uploaded,
Date From Period From Date To Period To Factor value
06.02.2008 12 06.02.2008 16 1.4
The new file contains the period which gets overlapped with the previous global
exception period.
Date From Period From Date To Period To Factor value
06.02.2008 14 06.02.2008 15 1.6
The overlapped periods are split accordingly,
Date From Period from Date to Period To Factor value
06.02.2008 12 06.02.2008 13 1.4
06.02.2008 14 06.02.2008 15 1.6
06.02.2008 16 06.02.2008 16 1.4
2.For e.g., Already existing period,
Date From Period From Date To Period To Factor value
06.02.2008 12 07.02.2008 16 1.3
New period,
Date From Period From Date To Period To Factor value
07.02.2008 5 07.02.2008 8 1.7
The Global exception periods are split into,
Date From Period From Date To Period To Factor value
06.02.2008 12 07.02.2008 4 1.3
07.02.2008 5 07.02.2008 8 1.7
07.02.2008 9 07.02.2008 16 1.3
If any error occurs while updating the global exception periods into ZLF_GEXCEPTION
table, then display LF-001 message given below the Error messages section. For the
successful updating of global exception periods to ZLF_GEXCEPTION table, then
display the message Successfully completed.
User will be provided an option to download the global exception periods into an excel
file. User has to provide the necessary location details where to download the file while
downloading.
Thanks&Regards.
Bk -
How to keep XML file in memory for specified period ?
How to keep XML file in memory for specified period or forever, I have 5 applications running on WebSphere I wants to use XML file for all the applications. I mean when one apllication is not using XML file still I wants to keep it in memory ...
Thanx in advance ,Hello,you can create a DocumentManager class,
here is my solution in the past...
you can use static Hashtable save the xml's Document,if one application want get
a appointed Document.first,you can find it from Hashtable,if can't find it ,you
can create it and put into Hashtable,if the words fail to express the meaning,sorry,my english is limited
package com.foresee.xfiles.util;
import java.util.*;
import org.w3c.dom.*;
import org.apache.log4j.*;
import com.foresee.xfiles.common.*;
import com.foresee.xfiles.server.exception.*;
import com.foresee.xfiles.util.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
public final class DocumentManager {
private static Category m_log = Category.getInstance(DocumentManager.class.getName());
static {
PropertyConfigurator.configure(Configurator.getLCF());
public DocumentManager() {
//synchronized
public static synchronized Document getTransitionDoc(String path) throws SchemaCheckOutException{
Document m_TransitionDoc;
m_TransitionDoc = (Document)TransitionDoc.get(path);
if (m_TransitionDoc == null){
XmlHelper m_xh = new XmlHelper();
try{
m_TransitionDoc = m_xh.getDocument(path);
}catch (SchemaCheckOutException se){
m_log.error("������������������������"+path+"����:"+se.getUserMsg());
throw se;
TransitionDoc.put(path,m_TransitionDoc);
return m_TransitionDoc ;
public static synchronized Document getLogicCheckDoc(String path) throws SchemaCheckOutException{
Document m_LogicCheckDoc;
m_LogicCheckDoc = (Document)LogicCheckDoc.get(path);
if (m_LogicCheckDoc == null){
XmlHelper m_xh = new XmlHelper();
try{
m_LogicCheckDoc = m_xh.getDocument(path);
}catch (SchemaCheckOutException se){
m_log.error("������������������������"+path+"����:"+se.getUserMsg());
throw se;
LogicCheckDoc.put(path,m_LogicCheckDoc);
return m_LogicCheckDoc ;
public static Hashtable TransitionDoc = new Hashtable();
public static Hashtable LogicCheckDoc = new Hashtable(); -
XML publisher report not generating output for huge XML files
Changed Depreciation Projections Report output type to XML.
Defined a Data Definition and a new Data Template (RTF) for this report.
Ran the Depreciation Projection Report to generate the XML output.
Ran the XML Report Publisher report to generate teh PDF/Excel output of the above report.
Output generated for smaller XML files. When XML size is big, the program is running for hours without generating the output.
Teh RTF template is basically a matrix report in which the number of columns in the report is based on the number of periods the report is run for.
The same is not working in the Desktop version also. The system is hanging when i try to view the preview pdf.
The XML file size is approximately 33 MB.
Please let me know if there is any way we can increase the memory size to see the output.
Thanks,
Ram.for publisher use Category: E-Business Suite
-
How to create a data connection with dynamic XML file?
Thanks for all reply first!
I have formatted the submitted data into an XML file on the server side,this file can be import to PDF form correctly.
I try to send this XML file to the user to let him can review what he has submitted.
I guess that I should create a data connection to the XML file so that it can be reviewed by the user.
But the question is that the XML file is dynamic generated.
How can i do?
give me some clus or examples,please.
thanks,
Jasper.Hi Jasper,
To show user back the result, you can use PDF instead of XML. You can store the PDF template in server and you can merge XML data with PDF template by Livecycle Form Data Integration service.
We, as KGC, can generate huge number of Adobe Livecycle forms in small periods. Also we give consultancy on Adobe Livecycle ES products and Adobe Livecyle Designer. In case of any need, do not hesitate to contact us.
Asiye Günaydın
Project Consultant
KGC Consulting Co.
www.kgc.com.tr -
Inserting parent /child records from a xml file ...
XML file pasted below:
I have loaded the xml file into a table called xml_demo which has a column xml_data of type xmltype.
The select for parent record is as follows and it works:
INSERT INTO balit_submissions (balitdoc, documentversion, datetime_from,job_id, status,creation_datetime)
(SELECT 'MOL'
,to_number(extract(x.xml_data,'/MolDocument/DocumentVersion/@v'))
,to_date(substr(extract(x.xml_data,'/MolDocument/ValidTimeInterval/@v'),1,16),
'yyyy-mm-dd"T"hh24:mi')
,123456
,'CREATED',
NULL
FROM xml_DEMO x WHERE
existsnode(x.xml_data,'/MolDocument/DocumentIdentification[@v="MOL_20100331_1500_1600"]') = 1)
Having problem creating child records. From this file I expect to create 3 records.
insert into balit_energy_blocks
SO_ID,
DATETIME_FROM,
DIRECTION,
BLOCK_NUMBER,
ENERGY,
LAST_SUBMIT_DATETIME,
PRICE_POUNDS,
PRICE_EUROS,
BALIT_REF,
STATUS,
LAST_EDIT_DATETIME,
MOL_REASON,
ACQUIRING_SO_AREA)
(SELECT 'RTE'
,to_date(substr(extract(x.xml_data,'/MolDocument/ValidTimeInterval/@v'),1,16),
'yyyy-mm-dd"T"hh24:mi')
,DECODE(extract(x.xml_data,'/MolDocument/MolTimeSeries/Direction/@v'),'AO1','Up','Down')
,to_number(substr(extract(x.xml_data,'/MolDocument/MolTimeSeries/ContractIdentification/@v'),19))
,to_number(extract(x.xml_data,'/MolDocument/MolTimeSeries/Period/Interval/EnergyPrice/@v'))
,sysdate
,null -- price pounds
,null -- price euro
,extract(x.xml_data,'/MolDocument/MolTimeSeries/ContractIdentification/@v')
,'SUBMITTED'
,'A96'
,NULL -- acquiring area
,sysdate
FROM xml_DEMO x WHERE
existsnode(x.xml_data,'/MolDocument/DocumentIdentification[@v="MOL_20100331_1500_1600"]') = 1)
For example, there are 3 ContractIdentification tags. Example of 1:
<ContractIdentification v="RTE_20100331_1500_16"/>
I was expecting this select to pluck the last number from this string. In this case 16.
The select was:
to_number(substr(extract(x.xml_data,'/MolDocument/MolTimeSeries/ContractIdentification/@v'),19))
The result I got was:
16RTE_20100331_1500_20NG_20100331_1500_6
All contractident values are concatnated and returns from position 19 onwards.
Can anyone help me to extract the last number from each ContractIdentification tag value and to create the 3 records
Thanks
James Sathiaraj
<?xml version="1.0" encoding="UTF-8"?>
<MolDocument DtdVersion="3" DtdRelease="0">
<DocumentIdentification v="MOL_20100331_1500_1600"/>
<DocumentVersion v="1"/>
<DocumentType v="A43"/>
<SenderIdentification codingScheme="A01" v="17X100Z100Z0001H"/>
<SenderRole v="A35"/>
<ReceiverIdentification codingScheme="A01" v="10XFR-RTE------Q"/>
<ReceiverRole v="A04"/>
<CreationDateTime v="2010-03-31T14:10:00Z"/>
<ValidTimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<Domain codingScheme="A01" v="10YDOM-1001A001A"/>
<MolTimeSeries>
<ContractIdentification v="RTE_20100331_1500_16"/>
<ResourceProvider codingScheme="A01" v="10XFR-RTE------Q"/>
<AcquiringArea codingScheme="A01" v="17Y100Z100Z00013"/>
<ConnectingArea codingScheme="A01" v="10YFR-RTE------C"/>
<AuctionIdentification v="AUCTION_20100331_1500_1600"/>
<BusinessType v="A10"/>
<BidTimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<MeasureUnitQuantity v="MAW"/>
<Currency v="EUR"/>
<MeasureUnitPrice v="MWH"/>
<Direction v="A02"/>
<MinimumActivationQuantity v="50"/>
<Status v="A06"/>
<Period>
<TimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<Resolution v="PT60M"/>
<Interval>
<Pos v="1"/>
<Qty v="50"/>
<EnergyPrice v="50.45"/>
</Interval>
</Period>
</MolTimeSeries>
<MolTimeSeries>
<ContractIdentification v="RTE_20100331_1500_20"/>
<ResourceProvider codingScheme="A01" v="10XFR-RTE------Q"/>
<AcquiringArea codingScheme="A01" v="17Y100Z100Z00013"/>
<ConnectingArea codingScheme="A01" v="10YFR-RTE------C"/>
<AuctionIdentification v="AUCTION_20100331_1500_1600"/>
<BusinessType v="A10"/>
<BidTimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<MeasureUnitQuantity v="MAW"/>
<Currency v="EUR"/>
<MeasureUnitPrice v="MWH"/>
<Direction v="A02"/>
<MinimumActivationQuantity v="50"/>
<Status v="A06"/>
<Period>
<TimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<Resolution v="PT60M"/>
<Interval>
<Pos v="1"/>
<Qty v="50"/>
<EnergyPrice v="50.48"/>
</Interval>
</Period>
</MolTimeSeries>
<MolTimeSeries>
<ContractIdentification v="NG_20100331_1500_6"/>
<ResourceProvider codingScheme="A01" v="10X1001A1001A515"/>
<AcquiringArea codingScheme="A01" v="17Y100Z100Z00013"/>
<ConnectingArea codingScheme="A01" v="10YGB----------A"/>
<AuctionIdentification v="AUCTION_20100331_1500_1600"/>
<BusinessType v="A10"/>
<BidTimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<MeasureUnitQuantity v="MAW"/>
<Currency v="EUR"/>
<MeasureUnitPrice v="MWH"/>
<Direction v="A01"/>
<MinimumActivationQuantity v="50"/>
<Status v="A06"/>
<Period>
<TimeInterval v="2010-03-31T15:00Z/2010-03-31T16:00Z"/>
<Resolution v="PT60M"/>
<Interval>
<Pos v="1"/>
<Qty v="50"/>
<EnergyPrice v="17.0"/>
</Interval>
</Period>
</MolTimeSeries>
</MolDocument>Hi,
The result I got was:
16RTE_20100331_1500_20NG_20100331_1500_6In the query you tried, you access a single record so you can't expect to get three rows "magically". The EXTRACT function just works as expected, it extracts the requested nodes, but the result is still an XML fragment (a scalar value).
In order to achieve your goal, you have to break the MolTimeSeries sequence into relational rows.
Two similar solutions are possible, XMLTable (10gR2 and up) or Table/XMLSequence.
In your other post you mentioned db version 10.1, so I guess we'll go with XMLSequence :
SELECT 'RTE'
,to_date(substr(extractvalue(x.xml_data,'/MolDocument/ValidTimeInterval/@v'),1,16),'yyyy-mm-dd"T"hh24:mi')
,decode(extractvalue(x2.column_value,'/MolTimeSeries/Direction/@v'),'A01','Up','Down')
,to_number(regexp_substr(extractvalue(x2.column_value,'/MolTimeSeries/ContractIdentification/@v'),'\d+$'))
,to_number(extractvalue(x2.column_value,'/MolTimeSeries/Period/Interval/EnergyPrice/@v'))
,sysdate
,null
,null
,extractvalue(x2.column_value,'/MolTimeSeries/ContractIdentification/@v')
,'SUBMITTED'
,'A96'
,null
,sysdate
FROM xml_demo x,
table(
xmlsequence(
extract(x.xml_data, '/MolDocument/MolTimeSeries')
) x2
WHERE existsnode(x.xml_data,'/MolDocument/DocumentIdentification[@v="MOL_20100331_1500_1600"]') = 1;Please also note the use of REGEXP_SUBSTR instead of the regular SUBSTR because it didn't work for "NG_20100331_1500_6".
Hope that helps.
Edited by: odie_63 on 24 juin 2010 21:18 - added regexp comment -
"The required index.xml file is missing."
Hello everyone !
I created a pages files a couple of days ago.
I modified it successfully yesterday, by adding some jpeg files in it.
But, now i can't open it.
The massage is "The required index.xml file is missing."
Although I still can have a "quick look" at my file.
This is the first and only time I've had this.
What can I do ?
Thank you for your concern.speckel wrote:
I tried using the .zip trick, but it doesn't work...
May you explain what means "it doesn't work".
I know what means "it works" : we get a package in which we may find the Index.xml file
"It doesn't work" may means :
(1) double click the zip file can't expand the file
(2) it expands it but there is no index.xml file in the resulting package
(3) it expands, there is an index.xml file but Pages can't use it
It's a bit odd but we get the same error message in the three cases
In case 1, your unique help is the pdf displayed in Preview.
In case 2 & 3, you may retrieve your picture files if you inserted some of them.
In case 3, sometimes, we may extract the text contents when a preview.pdf isn't available but for you, it's unneeded as the preview is available. So, you may extract the text component with a Copy/Paste action.
CAUTION : I hope that this stupid accident will help you to understand that computers aren't perfect tools. When we use them, the main rule is *_keep incremental (chronological) backups_*. This will give you the ability to retrieve an usable document among a set of consecutive copies.
You may achieve this goal with :
(1) my free autosave script (dedicated to iWork)
(2) the application ForeverSave which apply to every applications but is not free (to get incremental backups).
Yvan KOENIG (VALLAURIS, France) lundi 20 décembre 2010 16:02:05 -
Webdav and xdb, xml-files are automatically deleted (or hidden)
Hi All.
In our project we have mounted webdav from a Linux box against an IBM database server running AIX and Oracle 11g.
The file system on the Linux box is mounted to the xdb-schema on the dbserver.
When placing xml-files into the database through the webdav-catalogue on the Linux-box the files are copied over, but almost immediatly removed (or hidden) from the target directory in the database.
I´m thinking there might be a trigger that tries to validate the xml-file against an xsd that isn´t registered in XDB. The reason for this is that when suffixing these files with something other than .xml the files are kept visible to all users.
What I´d like to know is how to disable this check/trigger, and which trigger does this.
Can anybody tell me if my assumtion is correct, and if yes, how to disable this checking?
Our users in the project will also be given access to folders through this webdav mount, and they will use this as a storage space for other xml-files as well. Files we do not have xsd´s for. Another function for this webdav directory is to serve as a source directory for ODI, and ODI validates the files against the xsd when transferring data to the database, so we don´t need this extra validation in the database.
Thanks,
BobHi,
What's the database version? (select * from v$version)
When placing xml-files into the database through the webdav-catalogue on the Linux-box the files are copied over, but almost immediatly removed (or hidden) Does that mean you see them for a short period of time, and then they disappear, or you never see them at all?
Are you using XML DB events?
You can check if there's any resource configuration defined, and that may explain this behaviour :
select x.*
from xdb.xdb$resconfig rc
, xmltable(
xmlnamespaces(default 'http://xmlns.oracle.com/xdb/XDBResConfig.xsd')
, '/ResConfig/event-listeners/listener'
passing rc.object_value
columns description varchar2(300) path 'description'
, schema varchar2(30) path 'schema'
, source varchar2(30) path 'source'
, events varchar2(300) path '(#ora:xq_proc#){string-join(for $i in events/child::* return name($i), ", ")}'
, condition varchar2(300) path 'pre-condition/existsNode/XPath'
) x
DESCRIPTION SCHEMA SOURCE EVENTS CONDITION
Register event handlers for users. SYS DBMS_XS_PRINCIPAL_EVENTS_INT Pre-Create, Post-Create, Pre-Update, Pre-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/principal.xsd#user"]
Register event handlers for role sets. SYS DBMS_XS_ROLESET_EVENTS_INT Pre-Create, Post-Create, Pre-Update, Pre-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/roleset.xsd#roleSet"]
Register event handlers for roles. SYS DBMS_XS_PRINCIPAL_EVENTS_INT Pre-Create, Post-Create, Pre-Update, Pre-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/principal.xsd#dynamicRol
Register event handlers for dynamic roles. SYS DBMS_XS_PRINCIPAL_EVENTS_INT Pre-Create, Post-Create, Pre-Update, Pre-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/principal.xsd#role"]
Register event handlers for function roles. SYS DBMS_XS_PRINCIPAL_EVENTS_INT Pre-Create, Post-Create, Pre-Update, Pre-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/principal.xsd#functionRo
Register event handlers for Data Security. SYS DBMS_XS_DATA_SECURITY_EVENTS Post-Update, Post-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/dataSecurity.xsd#DataSec
Register event handlers for Security Classes. SYS DBMS_XS_SECCLASS_EVENTS Pre-Update, Pre-Delete /r:Resource[r:SchemaElement="http://xmlns.oracle.com/xs/securityclass.xsd#securi
SYS DBMS_NETWORK_ACL_ADMIN Pre-Delete
PL/SQL Network ACL Resource Configuration
Handling of Office Open XML spreadsheets OOX OOX_SML_STORE Pre-Create, Pre-Delete /Resource[ContentType="application/vnd.openxmlformats-officedocument.spreadsheet
9 rows selected
{code}
And if your target folder has any config file associated, for example :
{code}
SQL> select *
2 from table(dbms_resconfig.getResConfigPaths('/office/excel/docs'));
COLUMN_VALUE
/office/excel/conf/sml_rescfg.xml
{code} -
Starting a workflow from an XML file
Does anyone know if there is anyway to have a workflow poll a folder for the existence of an XML file and start a workflow with it? When looking in the documentation, there is a mention of a scheduler. I need to integrate with a fairly old system that can only read and write text files. Any help is appreciated.
DaveHi Dave
This is actually quite easy to achieve. We use this design pattern regularly, and it works very nicely.
Here are the steps:
* Download and deploy the DocumentImport, FolderWatch and FileCopyMove QPACs from http://www.avoka.com/avoka/qpac_library.shtml
* Create a workflow that is your "Watcher" process.
Step 1 in this will use the FolderWatch to wait for a file in the designated folder, capturing its name when it appears.
Step 2: use the FileCopyMove to move the found file to a "Processed" directory. (Click the current-date checkbox to include the current date as a sub-folder - very handy.) Moving the file ensures that it won't be reprocessed on the next iteration.
Step 3: Use the Chain QPAC (or our ChainPlus) to start the real process, passing the name of the newly moved file as a parameter. Then, have this Workflow loop back to step 1.
If you make this workflow asynchronous, then it will even survive server restarts, so no need to restart it each time. The Watcher workflow will create one "real" workflow for each file that arrives in the watched folder.
* Create the real workflow. It should have one "in" variable that is the name of the file. Step1: Use the DocumentImport QPAC to import the file into a process variable. You mention XML, so import into an XML variable. If the file is a properties file, then we also do have a properties file import QPAC. You're done, you can do the real workflow now.
If you have any problems with this, please let us know.
Regards,
Howard
PS You should periodically stop and restart the watcher process. The reason for this is that you will get a LOT of entries in the audit trail for this process instance in adminui, and stopping and restarting keeps this to manageable numbers. -
Autogenerate Manifest.xml file for custom namespace
I am working on a library with custom components and I want the library to have a custom namespace. From my reading, it looks like I need to create a manifest.xml file to associate by components with a specific namespace. (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=compilers_123_43.html)
Is there anyway I can autogenerate the manifest.xml file? I am using Flex Builder 3 for development.I have a lot of components and I may periodically add and remove components, so I do not want to have to manually modify the manifest.xml file every time I make a change.Did you follow the guidelines in the Connect 6 SDK documentation? This document was applicable from version 6 through 7.5.
http://help.adobe.com/en_US/Connect/6.0/SDK/help.pdf
Your SWF needs to be named index.swf to work, as I recall. -
Hello everyone,
Within a list form, user has to select a value amongst a huge number of availables options.
Instead of using something like a dropdown list, which would be very boring to parse, I would like to display possibles values in a treeview.
To do that, I tried to use an <Sharepoint:SPTreeView bind to a SharePoint:SPXmlDataSource who read data from an XML File.
<SharePoint:SPXmlDataSource runat="server" DataFile="../../SiteAssets/App_Data/myfile.xml" AutoSave="True" XPath="" ID="myDataXml"></SharePoint:SPXmlDataSource>
<SharePoint:SPTreeView runat="server" ID="MyTreeView" DataSourceID="myDataXml" />
But when I try to display the form in my web browser, an error occurs.
Therefore, my question is : Is it possible to display the content of an Xml file as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013 ?
If the answer is yes, how ? Which are the required properties for "SharePoint:SPXmlDataSource" tag and "SharePoint:SPTreeView" tag ?
What are the requirements to use thoses tags ?
Regards,
Florian.
Ps : I dont have access to the server side of the SharePoint site I am working on.Assuming that https://fullsitename is a new URL address did you make sure to update your browser to include it in the Trusted Sites zone? The message you are quoting is exactly the one you get if you don't have it in Trusted Sites.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Error "Cannot parse appinfo xml file."
Periodically my users are getting the error below when trying to launch BPC for Excel:
"Cannot parse appinfo xml file."
Seems this file is getting corrupted somehow. If I remove the file from their citrix profile and they relogin, the file is recreated and then they can launch BPC for Excel. Until then though, they get this error and sometimes it says the Web App server is unavailable, when it indeed is available.
Anyone experience this, or have any ideas as to the problem?
Thanks,
GregPlease notice that inquiries related to BPC topics should now be posted to dedicated forums.
Business Planning and Consolidations, version for SAP NetWeaver
<a class="jive_macro jive_macro_community" href="" __jive_macro_name="community" modifiedtitle="true" __default_attr="2065"></a>
Business Planning and Consolidations, version for the Microsoft Platform
<a class="jive_macro jive_macro_community" href="" __jive_macro_name="community" modifiedtitle="true" __default_attr="2066"></a>
Please adjust any bookmarks or shortcuts you may have set previously to point to this forum.
Best regards,
[Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
SAP BusinessObjects
Enterprise Performance Management
Regional Implementation Group -
How to comment/uncomment section of XML file with JAXP?
Hi,
I need to periodically under some condition, comment or uncomment a section of my XML file. I want to know is there a way that I can do it with JAXP?
I am using JDK 1.5
Thanks,Hi Sachi,
>>Now I have to pupulate flat file where 1st row of the file should always be field names.
Duplicate the target node and map you field names to the first instance and the mapping logic to the next instance
eg:
Suppose your target structure is:
-root
-->Details
>FName
>LName
Do a Mapping like this:
-root
-->Details
><FName>FName </FName>
><LName>LName </LName>
-->Details (use mapping logic hereafter)
><FName>
><LName>
Regards
Suraj -
SAF-T Problem when editing XML file
hello,
SAP released the RTXDART_PT report, to satisfy a new Portuguese legal requirement that becomes mandatory for all companies (following OECD norm).
The SAF-T is a file containing reliable accounting data exportable from an original accounting system (we use DART module in SAP) for a specific time period and easily readable.
I have just implemented the solution DART but I have a problem to produce the XML file.
I have the flat file using FTW1A transaction but when I launch RTXDART_PT transaction, I have not the XML file created.
Does anybody know how to proceed ?
Thank you very much.Bom dia
Nós temos um problema com o Codepage layout, mesmo depois de termos aplicado a nota:
Note 1128306 - SAFT-PT: RTXDART_PT : Dart PT additional corrections
Criado o Badi e aplicado as correcções adicionais.
O que se passa é que na edição do XML sempre que temos caracteres "&" por exemplo em fornecedores "R & R, lda" o que nos é visualizado através de um editor de XML é o seguinte: "R & R, lda" isto acontece com diversos caracteres que o programa não converte, alguém tem alguma ideia de uma possivel solução?
Obrigado
JM -
Does anyone have a good server.xml file for tomcat?
I am trying to link apache and tomcat on a RedHat 9 computer. I previously posted a message stating that I could not get tomcat to "automagically" make the configuration files (mod_jk.conf-auto) that all the manuals promised it would. However, I found that my problem was the lack of an ApacheConfig tag in the server.xml file. After looking at my server.xml file, I found that it was much more simplistic than I would hoped = it did not have enough comments or commented out options. It had none of the directives that the manuals said it included by default.
In short, does anyone who has apache and tomcat linked have a server.xml file that I can look at so that I can figure out what I must add to mine to get tomcat working with apache? I would greatly appreciate it if you could copy and paste the whole thing here.
Thank you very much in advance.
Edward S. RiceHi!
I am having the Apache-Tomcat4.0 version installed on a Win2000 machine. I am pasting here my server.xml. Hope it will be useful to you. I even didnot do much modifications to my server.xml except for adding a context.
Please come back if problem persists.
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<!-- Note : To disable connection timeouts, set connectionTimeout value
to -1 -->
<!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false" protocol="TLS"/>
</Connector>
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8081 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8081" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" connectionTimeout="60000"
proxyPort="80"/>
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0"/>
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL?user=scott;password=tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
<Context path="/vijay" docBase="D:\Java\servlets" debug="0"/>
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager"
debug="0" privileged="true"/>
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 means unlimited sessions are allowed.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
maxActiveSessions. This avoids thrashing when the site is
highly active. -1 or 0 means there is no minimum - sessions
can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>user</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to -->
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0" appBase="webapps">
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
</Server>
Maybe you are looking for
-
Foreign Exchange loss is not getting correct amount
Hi Guru's I have maintained loss (x) and gain (Y) accounts in OB09 for the GL account (Z). There is two open items for the GL account (Z), in that one is debit open item and another one is credit open item. The difference is 500 TRY and 0 USD. I just
-
Warning message in asset cap.
Hi, we have a following requirement: "At the time of asset capitalization amunting less than 5000 then systen should give a pop up warning message that check dep. key in asset master" To meet the above, we have written a validation rule that if posti
-
How to restrict the values in seach helps
Dear All, I am new to the BSP concept.I have a requirement where in the BSP i need to restrict the values of the search help.i.e. 2 values are coming in the help i need to display only 1 value. can anybody please explain how to do it.
-
F110-Payment Run: No valid payment method found
Hi, Whenever we execute F110 Automatic payment run with 'bank transfer' payment method, the documents for a particular vendor goes into the exception list as 'No valid payment method found' and this document is posted thru' HR- payroll. But now I no
-
How Many Functions And Keyboard Shortcuts etc. Are Missing From FCE 4 ?
Seven hours ago I set out to discover the answer to this but I got side-tracked and discovered my camera had a microphone channel missing ! So is there anything missing from FCE4 ? There have been spurious claims that things like "Export to Soundtrac