Adding to Galleries.xml

I am attempting to use the gallery as a project portfolio for
an architectural firm. Everything about the Gallery itself is
working, but I am attempting to add a description for each gallery
of basic information about the project.
In the galleries.xml, for each project I have created a new
element: <description></description> which I placed
before the <Security></security> and after the
<email></email>.
Next I defined the new variable for dsDescription:
var dsDescription = new
Spry.Data.XMLDataSet("education/{dsGalleries::@base}",
"description");
Where "education" is the actual folder that galleries.xml is
in. In the body html, I defined the div and region:
<div id="description"
spry:region="dsDescription">{@dsDescription}</div>
This is where I get lost. These steps, instead of placing the
description where I have it (just under the thumbnails, in the same
div), simply returns an "Undefined."
Do I need to create an argument for this in gallery.js? If
so, which section should I look in that file for guidance - aka I
imagine that the argument for showing the dsDescription is similar
to showing the thumbnails. Could I just copy and paste that section
and modify it? Or am I way off?
Thanks in advance.

Hi again Winston,
It's me again because my previous answer was a bit wrong.
Since description is not an attribute, there is no need to use the
@ before. the right code is then:
<div id="description"
spry:region="dsDescription">{description}</div>
Also there is no need to declare a new DataSet because
description is already in the dsGalleries DataSet.
All in all, it would be much clearer with an example. I have
made one available here. Test it then have a look at the HTML code
and to the XML file.
http://aaa.windev.free.fr/spry/test/wdsprygal.html
Hope it will help
Patrick

Similar Messages

  • Spry Gallery galleries.xml v/s galleries.asp

    I´ve been trying to deploy an image gallery, but when I
    declare the dataset as an XML it works great, but is the dataset is
    an ASP page which generates an XML file, it does not work, even if
    I try using the XML file content on the ASP file.
    Does anyone knows who to workarround this?
    Does work
    var dsGalleries = new
    Spry.Data.XMLDataSet("/xml/spry/galleries.xml",
    "galleries/gallery");
    Does not work
    var dsGalleries = new
    Spry.Data.XMLDataSet("/xml/spry/galleries.asp?IDLocal=<%=request.QueryString("IDLocal")%> ",
    "galleries/gallery");
    Thanks
    FBP

    Hey FBP,
    Can you view that ASP directly in the browser without error?
    Do you have a sample URL?
    Thanks,
    Don

  • Adding properties to XML Registry

    I'm using WLS 6.0. I was wondering if it is possible
    to add more properties into the XML Registry on the console.
    The two properties currently there are: DocumentBuilderFactory
    and SaxParserFactory.
    I'd like to add the two system properties: javax.xml.transform.TransformerFactory
    and org.xml.sax.driver.
    I know I can set these from the command line using the
    -D option but I'd much rather have the configuration
    in the console.
    Can I do this? If so, how?
    Thanks!

    Follow-up: Even though it lists 4 missing required properties in the error, when I went back and added only the Value property, the red flags went away....
    Werry Interestink!

  • Adding users using XML

    The examples for adding users to iFS work fine, but do I have to create an XML file for every user I want to add? I tried to create an XML file with more than one <SimpleUser> definitions, but iFS reports an "unexpected end of file" error at the position where the second User definition starts.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jsacks:
    Ralf,
    Using the standard <object_list> tag to parse a list of simpleuser tags should work:
    <HR></BLOCKQUOTE>
    Included inside <objectlist> tags, it works fine. Thank you very much.
    null

  • EJBComponents not added to config.xml

    We are in the process of upgrading our version of Weblogic Server from 6.1 to 8.1.
    In 6.1 weblogic used to add all an EJBComponent tag into config.xml for each
    ejb module in application.xml, but it no longer seems to do this in 8.1. From
    the weblogic console I can all the ejbs are listed as modules, however they have
    no target set. Do we have to manually add the EJBComponents to config.xml now?
    Below is the contents of the config.xml:
    <Domain ConfigurationVersion="8.1" Name="E7.2_jeantine_weblogic8.1">
    <FileRealm Name="wl_default_file_realm"/>
    <Security CompatibilityMode="true" Name="E7.2_jeantine_weblogic8.1"
    PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm" RealmSetup="true"/>
    <PasswordPolicy Name="wl_default_password_policy"/>
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    <JTA Name="E7.2_jeantine_weblogic8.1" TimeoutSeconds="1800"/>
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
    LoginDelaySeconds="0" MaxCapacity="20" Name="energyPool"
    Password="{3DES}ulcBYGqUa6R1aydmAaegvQ=="
    Properties="user=energydb" RefreshMinutes="999999"
    ShrinkPeriodMinutes="720" ShrinkingEnabled="true"
    Targets="myserver" TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@n028.peace.co.nz:10002:lob"/>
    <JDBCDataSource JNDIName="energyDataSource" Name="energyDataSource"
    PoolName="energyPool" Targets="myserver"/>
    <SNMPAgent Name="E7.2_jeantine_weblogic8.1"/>
    <Log FileName="logs/wl-domain.log" Name="E7.2_jeantine_weblogic8.1"/>
    <ApplicationManager Name="E7.2_jeantine_weblogic8.1"/>
    <Application Deployed="false" Name="energy"
    Path="./applications/energy" TwoPhase="false">
    <WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
    </Application>
    <JMSServer Name="EnergyJMSServer" Store="interfacesJMSJDBCStore" Targets="myserver">
    <JMSQueue JNDIName="InputBatch" Name="InputBatch"
    RedeliveryDelayOverride="5" RedeliveryLimit="2" StoreEnabled="true"/>
    <JMSQueue JNDIName="InterfacesAsyncCompletionQueue"
    Name="InterfacesAsyncCompletionQueue"
    RedeliveryDelayOverride="10" RedeliveryLimit="2" StoreEnabled="true"/>
    </JMSServer>
    <JMSConnectionFactory DefaultRedeliveryDelay="5"
    JNDIName="InterfacesJMSConnectionFactory" MessagesMaximum="100"
    Name="InterfacesJMSConnectionFactory" Targets="myserver"/>
    <JMSJDBCStore ConnectionPool="energyPool" Name="interfacesJMSJDBCStore"/>
    <Server ListenPort="10116" Name="myserver" NativeIOEnabled="true"
    ServerVersion="8.1.0.0" TransactionLogFilePrefix="logs/">
    <ServerDebug DebugEJB="true" DebugEJBCalls="true"
    DebugEJBDeployment="true" Name="myserver"/>
    <Log FileName="logs/weblogic.log" Name="myserver"/>
    <ServerStart Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <WebServer DefaultWebApp="energy"
    LogFileName="./logs/access.log" LoggingEnabled="true" Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <SSL IdentityAndTrustLocations="FilesOrKeyStoreProviders" Name="myserver"/>
    </Server>
    <EmbeddedLDAP
    Credential="{3DES}XyvpZX5+kEplLubZ3VpJc5CJBhNoACGAnIMLDiNRnQE=" Name="E7.2_jeantine_weblogic8.1"/>
    <SecurityConfiguration
    Credential="{3DES}GnmhhG5n4eq1d2mgIQyu+x3HjLZOEg71LkqMj+RkzwBesyY/DArh2ES4hQaRRFoyyJA5VB3DStp6nM66Ag2Ek1p/o/ImDfHV"
    Name="E7.2_jeantine_weblogic8.1" RealmBootStrapVersion="1"/>
    </Domain>

    I tried removing the application tag from config.xml, but it didn't manage to automatically
    pick up my application.
    I am able to deploy my application successfully from the console and the all the
    appropriate components get added to the config.xml during that process, but for
    some reason it doesn't do this when I first deploy??
    The contents of my applications/energy directory are:
    n028 jeantine <applications/energy> ls
    AdvancedSearchSessionBean.jar MeterMgmtBean.jar
    APIAdministrationBean.jar NonTransCORBABean.jar
    App4SupSessionBean.jar ParameterStorageBean.jar
    AppServSessionBean.jar PasswordServerBean.jar
    ARCCCommonControllerBean.jar PaymentArrangementMaintenanceBean.jar
    ARCCSessionBean.jar PaymentPlanBOControllerBean.jar
    ARSessionBean.jar PaymentPlanCSRControllerBean.jar
    AsyncInterfaceControllerBean.jar PaymentPlanCSRLogicBean.jar
    AsyncMessageDrivenBean.jar PeriodicBillingLightingSessionBean.jar
    BillingMarketModelSessionBean.jar PeriodicBillingSessionBean.jar
    BillingSessionBean.jar PostalAddressMaintenanceBean.jar
    CCSessionBean.jar PremiseAddressMaintenanceBean.jar
    ComponentSessionBean.jar PremiseSearchBean.jar
    ContactSessionBean.jar PremiseSessionBean.jar
    ContractSessionBean.jar PriceSessionBean.jar
    CredControlSessionBean.jar ProcessTrackingMaintenanceBean.jar
    CreditControlMaintenanceBean.jar ProfileSessionBean.jar
    CustomerMaintenanceBean.jar ProspectInfoSessionBean.jar
    CustomerSearchBean.jar ProspectSearchSessionBean.jar
    CustomerSessionBean.jar ProspectTransSessionBean.jar
    CustomerSignUpBean.jar PRWSessionBean.jar
    DirectDebitMaintenanceBean.jar PtjSessionBean.jar
    energy QuotationSessionBean.jar
    energyapicommon.jar ReadingAdjustmentSessionBean.jar
    EnergyCommonControllerBean.jar ReadingSessionBean.jar
    energycorba.rar RegisterSessionBean.jar
    energyejbcommon.jar ReprocessSessionBean.jar
    EnergyLocaleBean.jar SalesMarketing
    EnergyPaginatorBean.jar SearchSessionBean.jar
    EnrollmentSessionBean.jar ServiceConfigSessionBean.jar
    ExternalBillingSessionBean.jar ServiceSessionBean.jar
    FIRSessionBean.jar SessionManagerBean.jar
    GenericAdminBean.jar SMInBoundProxySessionBean.jar
    interfaces_clients.jar SMOutBoundProxySessionBean.jar
    interfaces.jar StatementGenerationBean.jar
    InternalAsyncRequestBean.jar SupplySessionBean.jar
    InvoiceValidationSessionBean.jar SyncInterfaceControllerBean.jar
    JDBCOnly1Bean.jar TariffSessionBean.jar
    JDBCOnly2Bean.jar TaxExemptionSessionBean.jar
    logging.jar TaxJurisdictionSessionBean.jar
    MarketExtRefBean.jar TaxSessionBean.jar
    MenuServerBean.jar TransactionalRemoteInvokerBean.jar
    META-INF UMCSessionBean.jar
    Rob Woollen <[email protected]> wrote:
    No, you shouldn't have to manually add the EJBComponents.
    The Deployed attribute of your application appears to be false. That
    doesn't seem too good.
    <Application Deployed="false" Name="energy"
    Path="./applications/energy" TwoPhase="false">
    <WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
    </Application>My recommendation would be to remove this application's entry from the
    config.xml and restart the server. Since it's in the applications
    directory, it should be picked up automatically.
    If you're still having problems, can you show me the contents of the
    applications/energy directory?
    -- Rob
    Jeantine wrote:
    We are in the process of upgrading our version of Weblogic Server from6.1 to 8.1.
    In 6.1 weblogic used to add all an EJBComponent tag into config.xmlfor each
    ejb module in application.xml, but it no longer seems to do this in8.1. From
    the weblogic console I can all the ejbs are listed as modules, howeverthey have
    no target set. Do we have to manually add the EJBComponents to config.xmlnow?
    Below is the contents of the config.xml:
    <Domain ConfigurationVersion="8.1" Name="E7.2_jeantine_weblogic8.1">
    <FileRealm Name="wl_default_file_realm"/>
    <Security CompatibilityMode="true" Name="E7.2_jeantine_weblogic8.1"
    PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm" RealmSetup="true"/>
    <PasswordPolicy Name="wl_default_password_policy"/>
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    <JTA Name="E7.2_jeantine_weblogic8.1" TimeoutSeconds="1800"/>
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
    LoginDelaySeconds="0" MaxCapacity="20" Name="energyPool"
    Password="{3DES}ulcBYGqUa6R1aydmAaegvQ=="
    Properties="user=energydb" RefreshMinutes="999999"
    ShrinkPeriodMinutes="720" ShrinkingEnabled="true"
    Targets="myserver" TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@n028.peace.co.nz:10002:lob"/>
    <JDBCDataSource JNDIName="energyDataSource" Name="energyDataSource"
    PoolName="energyPool" Targets="myserver"/>
    <SNMPAgent Name="E7.2_jeantine_weblogic8.1"/>
    <Log FileName="logs/wl-domain.log" Name="E7.2_jeantine_weblogic8.1"/>
    <ApplicationManager Name="E7.2_jeantine_weblogic8.1"/>
    <Application Deployed="false" Name="energy"
    Path="./applications/energy" TwoPhase="false">
    <WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
    </Application>
    <JMSServer Name="EnergyJMSServer" Store="interfacesJMSJDBCStore"Targets="myserver">
    <JMSQueue JNDIName="InputBatch" Name="InputBatch"
    RedeliveryDelayOverride="5" RedeliveryLimit="2" StoreEnabled="true"/>
    <JMSQueue JNDIName="InterfacesAsyncCompletionQueue"
    Name="InterfacesAsyncCompletionQueue"
    RedeliveryDelayOverride="10" RedeliveryLimit="2" StoreEnabled="true"/>
    </JMSServer>
    <JMSConnectionFactory DefaultRedeliveryDelay="5"
    JNDIName="InterfacesJMSConnectionFactory" MessagesMaximum="100"
    Name="InterfacesJMSConnectionFactory" Targets="myserver"/>
    <JMSJDBCStore ConnectionPool="energyPool" Name="interfacesJMSJDBCStore"/>
    <Server ListenPort="10116" Name="myserver" NativeIOEnabled="true"
    ServerVersion="8.1.0.0" TransactionLogFilePrefix="logs/">
    <ServerDebug DebugEJB="true" DebugEJBCalls="true"
    DebugEJBDeployment="true" Name="myserver"/>
    <Log FileName="logs/weblogic.log" Name="myserver"/>
    <ServerStart Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <WebServer DefaultWebApp="energy"
    LogFileName="./logs/access.log" LoggingEnabled="true" Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <SSL IdentityAndTrustLocations="FilesOrKeyStoreProviders" Name="myserver"/>
    </Server>
    <EmbeddedLDAP
    Credential="{3DES}XyvpZX5+kEplLubZ3VpJc5CJBhNoACGAnIMLDiNRnQE="Name="E7.2_jeantine_weblogic8.1"/>
    <SecurityConfiguration
    Credential="{3DES}GnmhhG5n4eq1d2mgIQyu+x3HjLZOEg71LkqMj+RkzwBesyY/DArh2ES4hQaRRFoyyJA5VB3DStp6nM66Ag2Ek1p/o/ImDfHV"
    Name="E7.2_jeantine_weblogic8.1" RealmBootStrapVersion="1"/>
    </Domain>

  • Adding EOF to XML file without using FCC

    Hello Experts,
    I have a simple File to File scenario with source and target files being XML  and simple mapping (No content conversion necessary). The issue which I face is described below:
    File is written by receiver File Adapter on the unix system, a third party Unix script tries to read the file and faces problems which they report is because the file is not ended correctly. When we try to open the files using vi editor, we also get a warning: [Last line is not complete].
    As a temporary solution the script is making sure the line is ended correctly. Can you advice me how from PI side I can make sure that the file ends properly. I was thinking to write a shell script and add it as a OS post processing command but I am not sure whether that will work and whether that is the best solution.
    Also the file name is generated dynamically using time stamps in the receiver side. Version of PI is 7.0 SP16
    Best Regards,
    Pratik

    Hi,
    When PI sends target file to file,it definely wellformed XML,anyway you are sending XML file.
    If you are nor using any mapping,,just copying file from one to other,then problem with test data,may be source data doesnot have EOF tag.
    check/test in message mapping,it gives valid xml structures in out put,then problem with your data.
    Regards,
    Raj

  • Adding namespace to XML output

    Hi,
    I have a requirement to generate a XML document for columns in the table. I am using DBMS_XMLgen.getXML inside my procedure to get the XML document.
    The output which i get after executing my procedure is:
    <?xml version="1.0"?>
    <EMP>
    <EMPLOYEE_NO>000017</EMPLOYEE_NO>
    <EMPLOYEE_STATUS>ACTIVE</EMPLOYEE_STATUS>
    <NAME_LAST>Mini</NAME_LAST>
    <NAME_FIRST/>
    </EMP>
    But I also need namespace prefix and namespace uri in this xml output. Is there a way to add namespace prefix and namespace uri to this xml output.
    So what i need is something like below one:
    <?xml version="1.0"?>
    <xs:EMP>xmlns:out="http://xmlns:out="http:/example.org/ver1.0/ThisISTest#">
    <xs:EMPLOYEE_NO>000017</xs:EMPLOYEE_NO>
    <xs:EMPLOYEE_STATUS>ACTIVE</xs:EMPLOYEE_STATUS>
    <xs:NAME_LAST>Mini</xs:NAME_LAST>
    <xs:NAME_FIRST/>
    </xs:EMP>
    Any solutions or sample code on this would be of great help.
    Thanks in Advance.

    Hi,
    IMO, the best option is to use an XSL transformation "on the fly" with DBMS_XMLGEN.
    Here's a stylesheet that should work (change namespace and prefix to yours) :
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://test">
    <xsl:template match="*">
    <xsl:element name="ns0:{local-name()}">
      <xsl:apply-templates/>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>Right now, I only have a 10gR1 at my disposal and the transformation doesn't give expected results (there are a few known issues with XSLT on 10g).
    However, I could test it with an external processor (saxon9he) and it should work OK in 11g too.
    So, in your procedure, all you have to do is declare the XSLT document :
    xsldoc    xmltype := xmltype(
    '<?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://test">
    <xsl:template match="*">
    <xsl:element name="ns0:{local-name()}">
      <xsl:apply-templates/>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>'
    );and bind the stylesheet to the context :
    DBMS_XMLGEN.setrowsettag (messagehandle_xml, 'EMP');
    DBMS_XMLGEN.setrowtag (messagehandle_xml, NULL);
    DBMS_XMLGEN.setmaxrows (messagehandle_xml, 2);
    DBMS_XMLGEN.setNullHandling(messagehandle_xml, DBMS_XMLGEN.EMPTY_TAG);
    DBMS_XMLGEN.setXSLT(messagehandle_xml, xsldoc); -- < here
    ...Let me know if it works :)

  • Adding namespace in XML

    Hi,
    I have created an xml by using XMLTYPE( oracle object ). Now I want to add a namespace to the existing root node. How can I achieve this?
    Currently
    <RESPONSE>
    <TAG1>jack</TAG1>
    <TAG2>mon<TAG2>
    </RESPONSE>
    Desired ouput
    <RESPONSE xmns=''http://aloha.com">
    <TAG1>jack</TAG1>
    <TAG2>mon<TAG2>
    </RESPONSE>
    Thanks,
    VJ

    SELECT insertchildxml(XMLTYPE('<RESPONSE>
    <TAG1>jack</TAG1>
    <TAG2>mon</TAG2>
    </RESPONSE>'),
                          '/RESPONSE',
                          '@xmlns',
                          'http://aloha.com')
      FROM dual;Produces
    <RESPONSE xmlns="http://aloha.com"><TAG1>jack</TAG1><TAG2>mon</TAG2></RESPONSE>

  • Adding attachments to xml dom generated documents

    Hello All,
    I am trying to add an attachment to a DOM generated XML document, does anyone have any idea as to how I amy be able to do this.

    Hi
    Happen to see your posting. Did you get any response for your question. I have a similar requirement. If you have any pointers, please let me know. Thanks for your help in advance.
    Regards
    Sri

  • Adding to MMDocumentTypeDeclarations.xml in an extension

    I'm trying to do something that I think should be quite simple but isn't working out for me.
    I want to add a few more document type definitions to the MMDocumentTypeDeclarations.xml but via an MXP file so it can be easily done without editing Dreamweaver files when I move on to my next job or they hire more developers.
    The format of the file is
    <?xml version="1.0" encoding="utf-8"?>
    <documenttypedeclarations xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
    <documenttypedeclaration id="mm_xhtml_11">
    <title>
    <MMString:loadString id="mmdocumenttypedeclarations/mm_xhtml_11" />
    </title>
    <doctypedecl>
    <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
    </doctypedecl>
    <rootelement>
    <![CDATA[<html xmlns="http://www.w3.org/1999/xhtml"></html>]]>
    </rootelement>
    <dtdcontext>html</dtdcontext>
    <dtdcontext>xhtml</dtdcontext>
    <dtdcontext>frameset_frame</dtdcontext>
    <dtdcontext>xslt</dtdcontext>
    </documenttypedeclaration>
    </documenttypedeclarations>
    Is this achievable and if so how, the MXI file is small yet still managing to drive me insane and the documentations is a tad rubbish if you want to do something other then add menu items.
    Chris

    That, again, tells me how I could manually edit the dreamweaver files to do
    what i propose but it doesnt tell you how to setup the MXI/P; are you saying
    that I should replace the MMDocumentTypeDeclarations file within the local
    user area (adobe suite cache folder)?
    Chris
    2009/10/13 pziecina <[email protected]>
    Hi
    >
    Try this section of extending dreamweaver -
    http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fbf351e63e3d117f53d610 8-7fda.html
    >
    PZ
    >

  • Adding Encoding in XML header without mapping

    Hi Gurus,
    I am stuck in a situation where in a pass through scenario, I need to add encoding type in XML header.
    Below is example -
    Current Situation - <?xml version="1.0"?>
    Expected result -  <?xml version="1.0" encoding="UTF-8"?>
    Can anybody help me in this regard? how to achieve this?
    Regards
    Vidhi S

    Hi Vidhi
    Use it in the below way in the receiver adapter.
    Module name: AF_Modules/XMLAnonymizerBean
    Parameter name: anonymizer.encoding
    This will work. I have tested already.

  • Adding exception in XML

    hi
    here is small snippet of my code that generates the XML in oracle
    i want to add the exception in the code.
    how to do so?
    XMLElement("PersonalDetails",     
                             XMLForest(NVL(to_char(to_date(a.DOB,'YYYYMMDD'),'DD-MM-YYYY'),' ') AS "DOB",
                                  NVL(a.Gender,' ') AS "Gender",
                                  NVL(a.MaidenName,' ') AS "MaidenName")))
    if the format of date is wrong, it throws the exception. i want to catch the exception here itself.

    How many different formats are there stored in the string?
    ddmmyyyy
    mmddyyyy
    ddmmyy
    mmddyy
    dd/mm/yyyy
    dd/mm/yy
    mm/dd/yyyy
    mm/dd/yy
    dd-mm-yyyy
    dd-mm-yy
    mm-dd-yyyy
    mm-dd-yyyy
    yyyymmdd
    yymmdd
    yyyyddmm
    yyddmm
    etc.
    You're going to have to string process to determine which one the string matches using CASE and then apply the correct to_date format mask for that format.
    e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '01012008' as dt from dual union all
      2             select '130208' from dual union all
      3             select '12/02/2008' from dual union all
      4             select '12-02/2008' from dual union all
      5             select 'a2-02/2008' from dual union all
      6             select '01-04-08' from dual)
      7  -- end of test data
      8  select dt, case when regexp_like(dt, '^[[:digit:]\/-]*$') then
      9                  -- all numbers or numbers with seperators
    10                  case when regexp_like(dt, '^[[:digit:]]*$') and length(dt) = 8 then
    11                            to_char(to_date(dt,'ddmmrrrr'),'yyyymmdd')
    12                       when regexp_like(dt, '^[[:digit:]]*$') and length(dt) = 6 then
    13                            to_char(to_date(dt,'ddmmrr'),'yyyymmdd')
    14                       when regexp_like(dt, '^[[:digit:]\/]*$') and length(dt) = 10 then
    15                            to_char(to_date(dt,'dd/mm/rrrr'),'yyyymmdd')
    16                       when regexp_like(dt, '^[[:digit:]\/]*$') and length(dt) = 8 then
    17                            to_char(to_date(dt,'dd/mm/rr'),'yyyymmdd')
    18                       when regexp_like(dt, '^[[:digit:]-]*$') and length(dt) = 10 then
    19                            to_char(to_date(dt,'dd-mm-rrrr'),'yyyymmdd')
    20                       when regexp_like(dt, '^[[:digit:]-]*$') and length(dt) = 8 then
    21                            to_char(to_date(dt,'dd-mm-rr'),'yyyymmdd')
    22                  else
    23                    'unknown format'
    24                  end
    25             else
    26               'invalid date'
    27             end as formatted_date
    28* from t
    SQL> /
    DT         FORMATTED_DATE
    01012008   20080101
    130208     20080213
    12/02/2008 20080212
    12-02/2008 unknown format
    a2-02/2008 invalid date
    01-04-08   20080401
    6 rows selected.
    SQL>Message was edited by:
    BluShadow
    correction to lengths

  • Adding Comment for XML output

    How to add comment in xml output.
    I have to replace the default comment in the xml output.
    If i use SRW.ADD_DEFINITION, Its not working.
    Can any on guide me through this to achieve it.

    i have written the following code in after parameter form. In the data model i am selecting empno and empname. Now i have to generate an xml which has the comment "Internal purpose only". I have to dynamically change the tag names also. But this code throws an error
    REP-0069:Internal error
    REP-57054: In-Process job terminated:Terminated with error
    REP-866648059:Error in the xml report definition at line 3 in
    Invalid element 'source' in content of 'section',expected elements '[tabular,groupAbove,groupLeftinsideAbove....]
    -------------------------------------------------------code----------------------------
    SRW.ADD_DEFINITION('<report name="Employee"
    author="Generated" DTDVersion="9.0.2.0.0"> <!-- Internal purpose only-->');
    SRW.ADD_DEFINITION('<layout>');
    SRW.ADD_DEFINITION('<section name="main">');
    SRW.ADD_DEFINITION('<source="empno">');
    SRW.ADD_DEFINITION('<source="empname" >');
    SRW.ADD_DEFINITION('</section>');
    SRW.ADD_DEFINITION('</layout>');
    SRW.ADD_DEFINITION('</report>');
    SRW.APPLY_DEFINITION;

  • Adding namespaces to XML

    Hi all,
    When I generate a XML message via a mapping and using the Anonymizer Module i can create the following:
    <os:envelope xmlns:os="http://www.name.org">
    Standard SAP is using the prefix ns0 instead of the prefix os. The Anonymizer Bean is able to change this prefix.
    Now I would like to add some additional namespaces. the result should look like this:
    os:envelope xmlns:os="http://www.name.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.name.org http://www.system.name.org/schemas/valid/docuemnt.xsd">
    How can I establish this?
    Best regards and Thanks
    Ron

    This is not possible with the graphical mapping tool, as the XI interfaces have only one namespace.
    You can do this with Java Mapping or XSLT mapping as seperate step after the standard mapping.
    Regards
    Stefan

  • Adding Wireless Profile XML In TS or Command Line in SCCM

       I have exported my wireless profile to an XML file and have created a package and tried from the command line in TS but keep getting errors (0x00000001 or 0x80004005). The command line I've been using is netsh wlan add profile filename="<Profilename>"
    I have to be missing something. Does anyone have any ideas?

    Now I'm with you :)
    My way of doing it is that i have my scripts included in the toolkit package (we do use integrated MDT). 
    Therefore i need a use toolkit befor i riun my script. 
    After that I just use a run command line step with Cscript.exe "myscriptname".
    Sccm is running as system so it should have all permissions it needs.
    By the way, you are not trying to do a gpupdate by chance? That will not work (at least not in 2007)

Maybe you are looking for

  • Convert PDF File to ASCII / Text File

    Hello, I have a PDF File that was created from a Spools (Output of Smart Form to begin with and run in background) using the SAP Function module - CONVERT_OTFSPOOLJOB_2_PDF and I have the pdf file archived. Now, I need to do Reverse process. The orig

  • For loop don't updates

    Hi, First I'm new at labview , I'm trying to read 8 checkboxs vals and for each checkbox I'm queuing a single val witch will be a test. I have a problem with my for loop it simply won't update and staying at 0 val ( only one iteration )  vi is attach

  • CISCO PRIME INFRASTRUCTURE 1.2 NCS ERROR

    Hi everyone, can anyone put through on this, i'm having issue starting the ncs server on cisco prime infrastructure 1.2 .below is the message i get when i do show ncs status: NGPHC-CPR001/admin# ncs status Health Monitor is running, with an error. fa

  • Debugging RSNAST00 code

    I have written custom code that extracts data from SAP and put it into form entry which is used as condition determination for my delivery How to debug the program? I am trying to give the parameters in RSNAST00 but it doesnt seem to work

  • What? I can't Highlight and Copy from Webpages???

    Why can't I highlight, copy text from webpages? If I find a URL I want to visit on a page but doesn't have a hyperlink, I want to select it and put it into the URL command line yet I can't even select the text...okay, how about typing it directly to