Setting selectedIndex via XML
I have a comboBox that is populated by an XML file. Is there
a way to set the selectedIndex to a variable within the XML file?
For example, my XML data looks like this:
<villa name="Villa 2" URL="
http://www.URL2.com"
default_index="1"/>
When someone makes a selection from the combo box, I would
like the user to be directed to a new page with the default index
set correctly. In the above example, if the user chooses "Villa 2"
they are directed to the URL.com site, and I want the default in
the combo box on the new page to be index 1, which is "Villa 2".
I can successfully pass the info for the default_index via
FlashVars on the new page, but I want to set the index with the XML
file and not the HTML file.
The following line works if I set the default_index variable
through FlashVars, but doesn't read it if the default_index is set
in the XML.
comboBox.selectedIndex=default_index
Any ideas?
Here's the code that populates the comboBox and sets the
default index:
var myData:XML = new XML ();
myData.ignoreWhite = true;
myData.load ("myData.xml");
myData.onLoad = function (success:Boolean):Void
if (success)
var data:XMLNode = this.firstChild;
var children:Array = data.childNodes;
var numItems:Number = children.length;
for (var i:Number = 0; i < numItems; i++)
var child:XMLNode = children
var name:String = child.attributes.name;
var URL:String = child.attributes.URL;
comboBox.addItem (name,URL);
}comboBox.selectedIndex=default_indx
Thanks in advance!
for (var i:Number = 0; i < numItems; i++)
var child:XMLNode = children
var name:String = child.attributes.name;
var URL:String = child.attributes.URL;
comboBox.addItem (name,URL);
// assumes there will be only one node with a default_index
attribute
// -- if more than one, the last one will be the selected
item
if(child.attributes["default_index"] !=
undefined){comboBox.selectedIndex=i;}
other approach:
<datanode default_index="1"/>
<villa name="Villa 1" URL="
http://www.URL1.com" />
<villa name="Villa 2" URL="
http://www.URL2.com" />
<villa name="Villa 3" URL="
http://www.URL3.com" />
</datanode>
var data:XMLNode = this.firstChild;
var children:Array = data.childNodes;
var numItems:Number = children.length;
for (var i:Number = 0; i < numItems; i++)
var child:XMLNode = children;
var name:String = child.attributes.name;
var URL:String = child.attributes.URL;
comboBox.addItem (name,URL);
defIdx = Number(data.attributes["default_index"]);
comboBox..selectedIndex = isNaN(defIdx) ? 0 : defIdx;
"catcherintherye" <[email protected]> wrote
in message
news:[email protected]...
> I have a comboBox that is populated by an XML file. Is
there a way to set
the
> selectedIndex to a variable within the XML file?
>
> For example, my XML data looks like this:
>
> <villa name="Villa 2" URL="
http://www.URL2.com"
default_index="1"/>
>
> When someone makes a selection from the combo box, I
would like the user
to be
> directed to a new page with the default index set
correctly. In the above
> example, if the user chooses "Villa 2" they are directed
to the URL.com
site,
> and I want the default in the combo box on the new page
to be index 1,
which is
> "Villa 2".
>
> I can successfully pass the info for the default_index
via FlashVars on
the
> new page, but I want to set the index with the XML file
and not the HTML
file.
>
> The following line works if I set the default_index
variable through
> FlashVars, but doesn't read it if the default_index is
set in the XML.
>
> comboBox.selectedIndex=default_index
>
> Any ideas?
>
> Here's the code that populates the comboBox and sets the
default index:
>
> var myData:XML = new XML ();
> myData.ignoreWhite = true;
> myData.load ("myData.xml");
> myData.onLoad = function (success:Boolean):Void
> {
> if (success)
> {
> var data:XMLNode = this.firstChild;
> var children:Array = data.childNodes;
> var numItems:Number = children.length;
>
> for (var i:Number = 0; i < numItems; i++)
> {
> var child:XMLNode = children;
> var name:String = child.attributes.name;
> var URL:String = child.attributes.URL;
> comboBox.addItem (name,URL);
> }
> }comboBox.selectedIndex=default_indx
> }
>
> Thanks in advance!
>
Similar Messages
-
How to Export an Order Via XML
How can we "Export an Order Via XML" using OOTB classes as mentioned in ATG Commerce Programming Guide?
I have set classpath as well, but getting errors.
C:\ATG\ATG9.1\home\bin>set classpath=%CLASSPATH%;C:\ATG\ATG9.1\home\lib\ojdbc14.jar
C:\ATG\ATG9.1\home\bin>set classpath=%CLASSPATH%;C:\ATG\ATG9.1\home\lib\_MyModule_slib_sclasses.jar
C:\ATG\ATG9.1\home\bin>set classpath=%CLASSPATH%;C:\jboss-4.2.3.GA\lib\jboss-common.jar
C:\ATG\ATG9.1\home\bin>startSQLRepository -m MyModule -repository /atg/commerce/order/OrderRepository orders.xml | ATG
LogColorizer
ATG Log Colorizer v1.1 Copyright (c) 2007 Kelly Goetsch - [email protected]
Application Server: jboss
The following installed ATG components are being used to launch:
ATGPlatform version 9.1 installed at C:\ATG\ATG9.1
JAVA_ARGS: -Djava.security.policy=lib/java.policy -Datg.dynamo.home="." -Datg.dynamo.root=".\.." -Datg.dynamo.display=
-Djava.protocol.handler.pkgs=atg.net.www.protocol -Djava.naming.factory.url.pkgs=atg.jndi.url -Datg.dynamo.modulepath=".
\.." -Xms512m -Xmx1024m -Datg.dynamo.server.home="." -XX:MaxPermSize=96m -XX:MaxNewSize=96m -Datg.dynamo.modules=DAS;US
Cellular;DSS -Datg.dynamo.layers= -Dsun.rmi.dgc.server.gcInterval=3600000
DYNAMO_MODULES: @@atg/env/Startup.modules@@
CONFIGPATH: @@atg/env/Startup.configPath@@;.\.\PublishingAgent\deploymentconfig\live\config;..\DAS\config\dtmconfig.jar;
localconfig;..\DAF\config\dafconfig.jar
CLASSPATH: .\locallib\;.\lib\launcher.jar;.\locallib\;.\lib\launcher.jar;LASSPATH;C:\ATG\ATG9.1\home\lib\ojdbc14_g.jar;
C:\ATG\ATG9.1\home\lib\ojdbc14.jar;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\ATG\ATG9.1\home\
lib\ojdbc14.jar;C:\ATG\ATG9.1\home\lib\_MyModule_slib_sclasses.jar;C:\jboss-4.2.3.GA\lib\jboss-common.jar;C:\jboss-4.2
.3.GA\server\all\lib\jboss-j2ee.jar;C:\jboss-4.2.3.GA\server\all\lib\jboss-j2ee.jar;C:\ATG\ATG9.1\home\lib\ojdbc14_g.jar
;C:\ATG\ATG9.1\home\lib\ojdbc14.jar;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\ATG\ATG9.1\home
\lib\ojdbc14.jar;C:\ATG\ATG9.1\home\lib\_MyModule_slib_sclasses.jar;C:\jboss-4.2.3.GA\lib\jboss-common.jar;C:\jboss-4.
2.3.GA\server\all\lib\jboss-j2ee.jar;C:\jboss-4.2.3.GA\server\all\lib\jboss-j2ee.jar;C:\ATG\ATG9.1\MyModule\lib\jax-qn
ame.jar;C:\ATG\ATG9.1\MyModule\lib\jaxb-xjc.jar;C:\ATG\ATG9.1\MyModule\lib\jaxb-api-2.1.jar;C:\ATG\ATG9.1\MyModule
\lib\jaxb-impl-2.1.12.jar;C:\ATG\ATG9.1\MyModule\lib\jaxb-libs.jar;C:\ATG\ATG9.1\MyModule\lib\jaxb-impl.jar;C:\ATG\A
TG9.1\MyModule\lib\jaxb-api.jar;C:\ATG\ATG9.1\MyModule\lib\xercesImpl.jar;C:\ATG\ATG9.1\MyModule\lib\axis.jar;C:\A
TG\ATG9.1\MyModule\lib\classes.jar;C:\ATG\ATG9.1\MyModule\lib\resources.jar;C:\ATG\ATG9.1\MyModule\lib\commons-bea
nutils.jar;C:\ATG\ATG9.1\MyModule\lib\commons-codec-1.3.jar;C:\ATG\ATG9.1\MyModule\lib\commons-collections-3.1.jar;C
:\ATG\ATG9.1\MyModule\lib\commons-digester-1.7.jar;C:\ATG\ATG9.1\MyModule\lib\commons-discovery.jar;C:\ATG\ATG9.1\US
Cellular\lib\commons-httpclient-3.1.jar;C:\ATG\ATG9.1\MyModule\lib\commons-logging-1.0.4.jar;C:\ATG\ATG9.1\MyModule\
lib\commons-validator-1.2.0.jar;C:\ATG\ATG9.1\MyModule\lib\jakarta-oro-2.0.8.jar;C:\ATG\ATG9.1\MyModule\lib\jbosssx.
jar;C:\ATG\ATG9.1\MyModule\lib\jmdns-20.jar;C:\ATG\ATG9.1\MyModule\lib\standard.jarlib\asm-2.2.3.jar;C:\ATG\ATG9.1\U
SCellular\lib\cxf-2.2.6.jar;C:\ATG\ATG9.1\MyModule\lib\geronimo-activation_1.1_spec-1.0.2.jar;C:\ATG\ATG9.1\MyModule
\lib\geronimo-annotation_1.0_spec-1.1.1.jar;C:\ATG\ATG9.1\MyModule\lib\geronimo-javamail_1.4_spec-1.6.jar;C:\ATG\ATG9.
1\MyModule\lib\geronimo-jaxws_2.1_spec-1.0.jar;C:\ATG\ATG9.1\MyModule\lib\geronimo-stax-api_1.0_spec-1.0.1.jar;C:\AT
G\ATG9.1\MyModule\lib\geronimo-ws-metadata_2.0_spec-1.1.2.jar;C:\ATG\ATG9.1\MyModule\lib\neethi-2.0.4.jar;C:\ATG\ATG
9.1\MyModule\lib\saaj-api-1.3.jar;C:\ATG\ATG9.1\MyModule\lib\saaj-impl-1.3.2.jar;C:\ATG\ATG9.1\MyModule\lib\wsdl4j
-1.6.2.jar;C:\ATG\ATG9.1\MyModule\lib\wss4j-1.5.8.jar;C:\ATG\ATG9.1\MyModule\lib\wstx-asl-3.2.9.jar;C:\ATG\ATG9.1\US
Cellular\lib\XmlSchema-1.4.5.jar;C:\ATG\ATG9.1\MyModule\lib\jxl.jar;C:\ATG\ATG9.1\DCS\PublishingAgent\lib\classes.jar;
C:\ATG\ATG9.1\DCS\lib\resources.jar;C:\ATG\ATG9.1\DCS\lib\classes.jar;C:\ATG\ATG9.1\PublishingAgent\base\lib\agent.jar;C
:\ATG\ATG9.1\PublishingAgent\base\lib\classes.jar;C:\ATG\ATG9.1\DSS\lib\resources.jar;C:\ATG\ATG9.1\DSS\lib\classes.jar;
C:\ATG\ATG9.1\DPS\lib\resources.jar;C:\ATG\ATG9.1\DPS\lib\classes.jar;C:\ATG\ATG9.1\DAF\Search\Index\lib\classes.jar;C:\
ATG\ATG9.1\DAF\Search\Index\lib\axis.jar;C:\ATG\ATG9.1\DAF\Search\Index\lib\commons-discovery.jar;C:\ATG\ATG9.1\DAF\Sear
ch\Index\lib\jaxrpc.jar;C:\ATG\ATG9.1\DAF\Search\Index\lib\wsdl4j.jar;C:\ATG\ATG9.1\DAF\Search\Base\lib\classes.jar;C:\A
TG\ATG9.1\DAF\Search\Base\lib\rmi-stub-classes.jar;C:\ATG\ATG9.1\DAS-UI\lib\uiresources.jar;C:\ATG\ATG9.1\DAS-UI\lib\uic
lasses.jar;C:\ATG\ATG9.1\DAS-UI\lib\jhall.jar;C:\ATG\ATG9.1\DAS\lib\resources.jar;C:\ATG\ATG9.1\DAS\lib\classes.jar;C:\A
TG\ATG9.1\DAS\lib\servlet.jar;C:\ATG\ATG9.1\DAS\lib\ice.jar;C:\ATG\ATG9.1\DAS\solid\SolidDriver2.1.jar;C:\ATG\ATG9.1\hom
e\startDynamo.jar
PATH: C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Support Tools;D:\data\notes;C:\program files\notes;C:\Program Files\ManageSoft\Common;C:\Program Files\Tor
toiseSVN\bin;C:\jdk1.5.0_16\bin;C:\eclipse-ganymede-atg\plugins\org.apache.ant_1.7.0.v200803061910\bin;C:\Program Files\
Windows Imaging\;;.\..\DAS\os_specific_files\i486-unknown-win32;.\..\DAS\os_specific_files\i486-unknown-win32\ice
**** info Wed Jul 27 15:23:25 IST 2011 1311760405899 /DPSLicense atg.service.ServiceResources->dynamoPrin
tMaxSessions : Only 20 concurrent sessions can be managed with this license
**** info Wed Jul 27 15:23:25 IST 2011 1311760405909 /DPSLicense atg.service.ServiceResources->dynamoPrin
tMaxDynamoServers : Only 3 Dynamo server(s) can be used concurrently with this license
**** info Wed Jul 27 15:23:25 IST 2011 1311760405909 /DPSLicense DPS is licensed to Proquire LLC - Develo
pment
**** info Wed Jul 27 15:23:25 IST 2011 1311760405909 /DPSLicense atg.service.ServiceResources->unlimitedL
icenseMsg : This product is licensed for an unlimited number of CPUs.
**** info Wed Jul 27 15:23:29 IST 2011 1311760409504 /atg/dynamo/service/jdbc/SDSRepository SQL Repository s
tartup complete
**** info Wed Jul 27 15:23:30 IST 2011 1311760410085 /atg/commerce/pricing/priceLists/PriceLists SQL Repo
sitory startup complete
**** info Wed Jul 27 15:23:30 IST 2011 1311760410095 /atg/commerce/pricing/Promotions Resolving reference
to /atg/commerce/catalog/ProductCatalog
**** Warning Wed Jul 27 15:23:30 IST 2011 1311760410726 DistributorSender No remote servers configured
**** info Wed Jul 27 15:23:30 IST 2011 1311760410966 /atg/commerce/catalog/ProductCatalog SQL Repository s
tartup complete
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Error parsing templa
te: atg.repository.RepositoryException: Your user defined property com.mymodule.security.crypto.CryptoPropertyDescriptor has
an invalid property-type java.lang.ClassNotFoundException: com.mymodule.security.crypto.CryptoPropertyDescriptor. The deta
iled error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository atg.repository.R
epositoryException: Your user defined property com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property
-type java.lang.ClassNotFoundException: com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository Your user defined pr
operty com.mymodule.security.crypto.CryptoPropertyDescriptor has an invalid property-type java.lang.ClassNotFoundException:
com.mymodule.security.crypto.CryptoPropertyDescriptor. The detailed error is: {2}
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.xml.TemplateParser.addDocumentToTemplate(TemplateParser.java:701)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.xml.TemplateParser.addToTemplate(TemplateParser.java:532)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.xml.TemplateParser.addToTemplate(TemplateParser.java:421)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.GSARepository.readXMLFiles(GSARepository.java:6163)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.GSARepository.initialize(GSARepository.java:5050)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.GSARepository.initializeTransactionally(GSARepository.java:4954)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.GSARepository.doStartService(GSARepository.java:4647)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.G
enericService.startService(GenericService.java:496)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleusNameResolver.startService(NucleusNameResolver.java:1385)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1133)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleusNameResolver.createFromName(NucleusNameResolver.java:787)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleusNameResolver.createFromName(NucleusNameResolver.java:569)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleusNameResolver.createFromName(NucleusNameResolver.java:550)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleusNameResolver.resolveName(NucleusNameResolver.java:394)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleus.resolveName(Nucleus.java:2648)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.G
enericService.resolveName(GenericService.java:315)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.G
enericService.resolveName(GenericService.java:367)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleus.<init>(Nucleus.java:937)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleus.<init>(Nucleus.java:695)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleus.startNucleusCheckLicense(Nucleus.java:4194)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.nucleus.N
ucleus.startNucleus(Nucleus.java:4054)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.xml.TemplateParser.runParser(TemplateParser.java:5452)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository at atg.adapter.g
sa.xml.TemplateParser.main(TemplateParser.java:5072)
**** Error Wed Jul 27 15:23:30 IST 2011 1311760410986 /atg/commerce/order/OrderRepository
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository java.sql.SQLExceptio
n: java.sql.SQLException: ORA-00942: table or view does not exist
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository [++SQLSelect++]
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository SELECT ORDER_ID,SUB
MARKET,TOTAL_MRC_AMOUNT,ORDER_OWNER,TAX_SERVICE_FLAG,CREDIT_SERVICE_FLAG,NO_OF_LINES,PROMO_CODE,LOYALTY_ORDER_ID,REWARD_
TEXT,ORDER_TYPE
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository FROM DCSPPX_ORDER
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository WHERE 1 = 2
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository (no parameters)
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository [--SQLSelect--]
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429092 /atg/commerce/order/OrderRepository The table: "DCSPPX_O
RDER" does not appear to be defined correctly in the database. Either the table does not exist, the repository does not
have SELECT permission on it, or the definition of the table is incompatible with the template in use.
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository java.sql.SQLExceptio
n: java.sql.SQLException: ORA-00942: table or view does not exist
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository [++SQLSelect++]
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository SELECT ORDER_ID,DEP
OSIT_PER_LINE,MANUAL_REVIEW_FLAG,CAS,CREDIT_CLASS
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository FROM CDEDIT_SERVI
CE_RESULT
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository WHERE 1 = 2
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository (no parameters)
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository [--SQLSelect--]
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429102 /atg/commerce/order/OrderRepository The table: "CDEDIT_S
ERVICE_RESULT" does not appear to be defined correctly in the database. Either the table does not exist, the repository
does not have SELECT permission on it, or the definition of the table is incompatible with the template in use.
**** Error Wed Jul 27 15:23:49 IST 2011 1311760429112 /atg/commerce/order/OrderRepository java.sql.SQLExceptio
n: java.sql.SQLException: ORA-00942: table or v -
Pasta Landscape Printing via XML Publisher
Hi ,
I have followed Pasta Config Guide 3.0 .
We're on 11.5.10 and Purchase Orders Report(Both Landscape and Portrait are configured - two separate "reports") via XML Publisher comes out fine in PDF in Portrait and Landscape when viewing the PDF , but when I set the conncurrent request to print to a printed , the Portrait report prints Portrait , but the Landscape report prints on Portrait. (Im missing the whole right hand side of the data)..
Any ideas?
Cheers
StephenHi ,
Sorry , should have replied earlier...
I actually turned off the ps2pdf in the config files and the PDF printed direct perfectly both Landscape and Portrait.
I had followed the Past Config Guide to the tee which was the pain !!
Cheers
Stephen -
Hi MM Gurus,
Can we send PO via XML from ECC? We want to send POs to vendors via XML. Is that possible to do from ECC? If yes then how to do that? Please do reply it is very urgent. Full points will be rewarded for the helpful answers.
Regards
KapilHi Kapil...
I am not aware of the PO output by XML, but u can send the PO by Mail
plz go through the following settings
1. You must maintain an e-mail address in the address in the vendor
master.
2. The same applies to your own user master. You also have to specify an
e-mail address there in order to identify the sender.
o Note that it is not possible to change the e-mail address of the
vendor via the SAP purchase order transaction (ME21N, ME22N, and so
on).
o You can only make a permanent change using the vendor master
transactions XK02 or MK02.
o You can use a temporary email address in Transaction ME21N.
3. For the output type for default values, a communication strategy needs
to be maintained in the Customizing that supports the e-mail. You can
find the definition of the communication strategy in the Customizing
via the following path: (SPRO -> IMG -> SAP Web Application Server ->
Basic Services -> Message Control -> Define Communication Strategy).
As a default, communication strategy CS01 is delivered. This already
contains the necessary entry for the external communication. Bear in
mind that without a suitable communication strategy it is not possible
to communicate with a partner via Medium 5 (external sending).
4. Use the standard SAP environment (program 'SAPFM06P', FORM routine
'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
5. In the condition records for the output type (for example, Transaction
MN04), use medium '5' (External send).
6. You can use Transaction SCOT to trigger the output manually. The
prerequisite for a correct sending is that the node is set correctly.
This is not described here, but it must have already been carried out.
7. To be able to display, for example, the e-mail in Outlook, enter PDF
as the format in the node.
Plz refer to note no - 191470 for complete information.
Regards
Baps -
Importing BusinessPartners Data via XML
Greetings,
I've got a problem on importing BusinessPartners data via XML. I exported an BusinessPartners object by using the GetBusinessObject and SaveXML methods and I now want to use this XML file to create a new BusinessPartners object.
<i>Dim vCmp As SAPbobsCOM.Company
'settings & connect...
vCmp.XmlExportType = BoXmlExportTypes.xet_ValidNodesOnly
'or vCmp.XmlExportType = BoXmlExportTypes.xet_ExportImportMode
Dim vBPSave As SAPbobsCOM.BusinessPartners
vBPSave = vCmp.GetBusinessObjectFromXML("C:\object.xml", 0)
...</i>
Error is like this:
<i>Exception Details: System.Runtime.InteropServices.COMException: <ErrorList><Error>System Id = 361754288, Line Number = 1, Column Number = 79, Description = The namespace of element 'schema' must be from the schema namespace.</Error><Error>System Id = 361754288, Line Number = 1, Column Number = 99, ...</i>
Can anyone tell me what the problem is? Is there any other propertis I need to set?I found where the problem was.
This line should be used before create the XML file:
<i>vCmp.XmlExportType = BoXmlExportTypes.xet_ExportImportMode</i> -
Error when trying to run an FSG Report via XML Publisher...
hello.
Hope someone can help.
This is our first look into the benefits of XML Publisher in order convince Manager to start using it. Thing is, we really need to get both FSG reports and Dunning Letters working.
We've currently got XML Publisher 5.0.0 and BI Publisher Template Builder for Word v10.1.3.2.0
First up, FSG reports. Having followed this link here:
http://solutionbeacon.blogspot.com/2007/07/simple-tutorial-for-publishing-fsg.html
Ive managed to create a template based upon the basic FSG template supplied. I’ve follwed easy steps but on submitting the request against ANY [its what the notes said] FSG report the error messages from both the log and output files are given.. Those being..
Output file displayed the most productive error message:
DECLARE
ERROR at line 1:
ORA-06550: line 133, column 8:
PLS-00306: wrong number or types of arguments in call to 'SUBMIT_XML_REQUEST'
ORA-06550: line 133, column 5:
PL/SQL: Statement ignored
Can anyone help please? Or perhaps suggest an alternative to running FSG reports through XML Publisher.
Other thought was, do I need any different versions and/or Publisher Enterprise installing?
Many thanks for reading this..
Steven..having tried an alternative presentation I got a singular FSG report to generate in PDF via XML Publisher..
www.darrylcarson.com/Dice/OVOAUG/MAY_2007/XMLP_and_RM.ppt
question closed.. -
PO via XML in R/3 or ECC 6.0
Dear Friends,
Did anyone establish the functionality of sending Purchase Orders via XML in R/3 or ECC 6.0 (there is no SRM existing). I knew that in SRM there is a default functionality existing, but want to know how can the same approach be achieved from R/3 Enterprise version or ECC 6.0.
Kindly advise me with your inputs on how can this be achieved.
Appreciate your valuable inputs.
Kind Regards,
KPHi,
Please Go thru this Link--> Hope this will be helpful to you
http://help.sap.com/saphelp_srm30/helpdata/en/23/00dd3aeedb7445e10000000a114084/content.htm -
Reading rule sets from an XML file
Hi all,
How can I read rule sets from an XML file? I have been given some rules in XML
format and using those I have to query some content. I am using WLP4.0
Also how can I code rules in java?
Thanks in advance.You can have the following classes:
Players class deriving from Vector (or containing a vector), and then
Player class with attribute 'name'.
class Players
Vector myVector = new Vector();
void addPlayer(Player p)
myVector.add(p);
Player getPlayer(int index)
myVector.get(index);
class Player
private String myName = null;
Player(String name)
this.myName = name;
String getName()
return myName;
}Then while handling the SAX events you can do the following:
class MySAXHandler implements ContentHandler (or whatever the itnerface is)
public void startElement(String name,....)
Players p = null;
if(name.equals("Players"))
p = new Players();
else if (name.equals("Name"))
p.add(new Player(value));
}HTH,
Kalyan. -
Importing via xml deletes already populated fields???
Hey all
Im kind of new to this, so any help would be great.
I've created some forms that have similar named fields but some fields are named differently, If I fill in one form and export data as xml and then import this data into another form that has has a few textfields/numericfields already containing data, the imported data imports fine, but the the fields containing data previously, which have totally different field names are wiped?
Anybody have any ideas at all? All information would be superb.
LeeIn PL 36 I had a very bad problem trying to create the invoice from draft (via XML). This was caused by the CogsAcct field. When I stripped it from the xml then it worked...
Regards -
Select data from database via XML
I want to select data for display and insert data to tables via XML, and I want
to do this from a browser.
I am using "Oracle8i Enterprise Edition Release 8.1.7.4.0" on HP-UX server
with "JServer Release 8.1.7.4.0.".
The oracle documentation says I need the following in order to do this.
1. XML-SQL Utility
2. XML Parser for Java, V2
3. JDBC driver
4. JDK
5. A Java compliant web server
6. XSL Servlet
How do I verify, if the above software list is available in my environment.
What are all available within the database and what are other software I need to
install.
Thanks
PushparajIt's a classpath problem. Either you mistyped the class name, or you don't have the class in your classpath. I think Oracle's drivers come in db12.zip or db12.jar or some such. Whatever that jar or zip file is, it has to be in your classpath, but it's not.
Or it is in your classpath, but you're in an appserver context where the classloader that the container provides for your app uses something other than the classpath variable. For instance, in tomcat, the jar file would be uder webapps/yourApplication/WEB-INF/lib I think. -
Print AP check (MICR) via XML Publisher
I will print AP check via XML Publisher 5.5. Our database is running on Linux.
I installed MICR FONT from Elfrin to my laptop so that I can create template on my laptop.
Should I install MICR font from the same company (Elfrin) onto database server? Or I can use the MICR font from any other company. What is the suggested MICR font (from which company) I should install on Linux?
Anyone has experience installing MICR on Linux? Any installation doc I can download?
Thanks.Hi,
I am using Elfring fonts with XMLP 5.6. Since this is a truetype font, you can use it on the server as well. Please refer to the XML Publisher manual for details on how to install a font using XML Publisher Administrator responsibility. -
Sending MATMAS05 IDOC via XML-HTTP Interface (without XI)
Dear all,
I have to send the MATMAS05 IDOC via XML-SOAP-HTTP Interface to a subsystem. Sending works (the sub-system receives the SOAP-Request with the MATMAS05 as Body). So far so good. Now the SAP System is waiting for an answer (synchronous communication). How should this answer look like?
We receive the Error EA390 "Problem with SOAP Class" - execute_processing: entry result table
Can anybody give me a hint how the response should look like.
Many thanks and best regards
RomanHello Sven,
we find a solution. As far as I remember, there is a flag to send without waiting for answer (or technical better to not rely on SOAP standard).
Look in WE21 and the XML_HTTP Port you use. Uncheck the "SOAP Protocol" flag. Then it should work.
HTH and Best regards
Roman -
How to set services-config.xml?
Hi,
Hi,
I am confusing for how to set services-config.xml(configuring
channels and destinations) for <mx:RemoteObject>.
Please give me a simple demo .Thanks
MKMaybe this will help?
http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/page001.php -
Adding attachment via XML calls
I am trying to associate an attachment to a punch list item via XML in C#. Whenever I try to insert an Attachment object, I am getting a generic 'Error' message back. The XML is properly formed and I am populating it with values in the same locations as a file attached via the Contract Management interface. The code to insert the punch list item works fine and it appears in the CM interface. Does anyone have any experience with this scenario? Note: I am uploading the physical file separately.
Here is an example of one that worked here. A couple comments on yours. I did not see a Base_sys_item_type in your code. Which I believe is required for this table. Usually whan I have a question about what data I need to send I'll add a record manually then duplicate what I see in the table. Another thing you should know is that the API will not receive actual files. All it currently does is create links. Files still need to be placed in the correct location. I do that here using some code that copies the files to the correct location when we load in bulk.
We are using CM on some huge projects. I have used the API to integrate and to add/delete/update hundreds of thousands of records. Each module seems to be slightly different, so be wary and always test if/how the API works. Each type can have it's own unique list of required fields etc..
<?xml version="1.0" encoding="UTF-8"?><request xmlns="http://app.expedition.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://app.expedition.com/ http://127.0.0.1/exponline/xml-schemas/request.xsd"><header requestType="DETAIL" sysitemtype="DLNK"><sessionId>000TfQLKK1000630000000BURN</sessionId><action>INSERT</action><getUpdatedDataInResponse>true</getUpdatedDataInResponse></header><DLNK>
<attachment>J:\data\<Attachment Name>.PDF</attachment>
<base_item_type>SNT</base_item_type>
<base_master_key>0002YOCBJ0727800000000BURN</base_master_key>
<base_parent_key></base_parent_key>
<base_sys_item_type>SNT</base_sys_item_type>
<created_by></created_by>
<created_date></created_date>
<created_system></created_system>
<date_linked>2009-02-03T12:00:00.0000000</date_linked>
<file_size>0</file_size>
<is_a_url>0</is_a_url>
<item_type>DLNK</item_type>
<last_edit_by></last_edit_by>
<last_edit_date></last_edit_date>
<last_edit_system></last_edit_system>
<linked_by_user>Joe Manzi</linked_by_user>
<linked_by_user_name>Joe Manzi</linked_by_user_name>
<location></location>
<master_key></master_key>
<project_name>"Your Project name"</project_name>
<sender_login_name></sender_login_name>
<subject>test</subject>
<sys_item_type>DLNK</sys_item_type>
</DLNK></request> -
Getting info on objects loaded via xml
Hello:
i am a beginner/intermediate as3 coder, and i am stuck on
something related to objects loaded via XML.
i am able to load JPEG images onto a simulated "shelf", but i
am trying to arrange them on the shelf (like a store shelf) so that
each new item is placed directly next to the previous item as they
load. i can get it to work on a very basic level by specifying the
spacing between items manually betwen the code, but to makre this
reuseable and efficient, the ideal is to have the "next" object
loaded be placed on the shelf based on the width of the previous
object. but when i try to access the width of the object that is
loaded via the imageLoader, i can;t find it. if i trace the image
loader wifth, it is 0; i have tried several ways to name the object
as it loads and then get/save its dimensions somehow, but i am not
having any luck. i use all the Lynda titles and i also use some of
the better books, but i just can;t seem to solve this.
any hellp would be appreciated.
thank you.Thak you for this -- it did help somewhat, but i am still
stuck.
When i use the contentLoaderInfo listener, you are right, i
can discern the width of the loader. but when i do this it only
works for the last item loaded. here is my problem -- i am trying
to load graphics dynamically, and have each graphic go to it's
proper "place" on a simulated shelf -- so the foirst object might
go to (0,0), then next object should go directly to the right of
the first object, etc, etc. and i am loading all this dynamically
from an xml file. if i just specify a distance, then i can get
everything to load at uniform distances from each other. problem is
each of the graphics has a unique width, height, etc, so i need to
be able to "catch and capture" this info as each one is loaded.
when i wait until the entire loader has loaded, the only
peopoerties left for me to capture and use are the propoerties of
the last itm loaded.
any ideas on how to do this -- anyone?
thanks very much, i just can't seem to figure this out.
Maybe you are looking for
-
C6380 is installed in Windows 7 64-bit but will not print
I recently bought a Pavillion dv-2210ev windows 7 64bit, and would like to wi-fi connect it to my c6380. It works well with my desktop (wirelessly also), and got the Solutions Center installed perfectly on the Pavillion. It scans as requested from th
-
Just updated Iphoto. Now I can not see my Iphoto Library.
-
Hi friends, I have a requirement like I have the organizationid which changes for the employee over a period of time its like org_id CREATE TABLE ASSIGNMENTS ASSIGNMENT_ID NUMBER(10) NOT NULL, EFFECTIVE_START_DATE DATE NOT NULL, EFFECTIVE_END_DATE DA
-
PM: SAP Standard reports
Hi guys, I need a list of all PM Standard reports, and their transaction codes. Please help Thanks
-
Using ABAP memory during IDOC processing
What are implications , issues of using ABAP memory in IDOC processing i.e. let say in inbound FM , I create implicit enhancement and I submit a report and return and pass data to this report via abap memory. What are implications ? Is it recommende