Working with XML and dates (i'm a begginer).

Hi everyone,
First of all, sorry for my english i'm a french user and I find no community in French to talk about my problem :
I have an XML file like this :
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<pubs>
<pub consumid="title" cover="21_07_2014/data/cover.jpg" coverthmb="21_07_2014/data/coverthmb.jpg" date="20140721" dummies="21_07_2014/ipad_dummies.xml" id="104263" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="22_07_2014/data/cover.jpg" coverthmb="22_07_2014/data/coverthmb.jpg" date="20140722" dummies="22_07_2014/ipad_dummies.xml" id="104302" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="23_07_2014/data/cover.jpg" coverthmb="23_07_2014/data/coverthmb.jpg" date="20140723" dummies="23_07_2014/ipad_dummies.xml" id="104303" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="24_07_2014/data/cover.jpg" coverthmb="24_07_2014/data/coverthmb.jpg" date="20140724" dummies="24_07_2014/ipad_dummies.xml" id="104186" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="25_07_2014/data/cover.jpg" coverthmb="25_07_2014/data/coverthmb.jpg" date="20140725" dummies="25_07_2014/ipad_dummies.xml" id="104404" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="26_07_2014/data/cover.jpg" coverthmb="26_07_2014/data/coverthmb.jpg" date="20140726" dummies="26_07_2014/ipad_dummies.xml" id="104265" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="28_07_2014/data/cover.jpg" coverthmb="28_07_2014/data/coverthmb.jpg" date="20140728" dummies="28_07_2014/ipad_dummies.xml" id="104422" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="29_07_2014/data/cover.jpg" coverthmb="29_07_2014/data/coverthmb.jpg" date="20140729" dummies="29_07_2014/ipad_dummies.xml" id="104443" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="30_07_2014/data/cover.jpg" coverthmb="30_07_2014/data/coverthmb.jpg" date="20140730" dummies="30_07_2014/ipad_dummies.xml" id="104444" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="31_07_2014/data/cover.jpg" coverthmb="31_07_2014/data/coverthmb.jpg" date="20140731" dummies="31_07_2014/ipad_dummies.xml" id="104462" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="01_08_2014/data/cover.jpg" coverthmb="01_08_2014/data/coverthmb.jpg" date="20140801" dummies="01_08_2014/ipad_dummies.xml" id="104482" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="02_08_2014/data/cover.jpg" coverthmb="02_08_2014/data/coverthmb.jpg" date="20140802" dummies="02_08_2014/ipad_dummies.xml" id="104502" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="04_08_2014/data/cover.jpg" coverthmb="04_08_2014/data/coverthmb.jpg" date="20140804" dummies="04_08_2014/ipad_dummies.xml" id="104522" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="05_08_2014/data/cover.jpg" coverthmb="05_08_2014/data/coverthmb.jpg" date="20140805" dummies="05_08_2014/ipad_dummies.xml" id="104542" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="06_08_2014/data/cover.jpg" coverthmb="06_08_2014/data/coverthmb.jpg" date="20140806" dummies="06_08_2014/ipad_dummies.xml" id="104543" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="07_08_2014/data/cover.jpg" coverthmb="07_08_2014/data/coverthmb.jpg" date="20140807" dummies="07_08_2014/ipad_dummies.xml" id="104562" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="08_08_2014/data/cover.jpg" coverthmb="08_08_2014/data/coverthmb.jpg" date="20140808" dummies="08_08_2014/ipad_dummies.xml" id="104582" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="09_08_2014/data/cover.jpg" coverthmb="09_08_2014/data/coverthmb.jpg" date="20140809" dummies="09_08_2014/ipad_dummies.xml" id="104602" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="11_08_2014/data/cover.jpg" coverthmb="11_08_2014/data/coverthmb.jpg" date="20140811" dummies="11_08_2014/ipad_dummies.xml" id="104622" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="12_08_2014/data/cover.jpg" coverthmb="12_08_2014/data/coverthmb.jpg" date="20140812" dummies="12_08_2014/ipad_dummies.xml" id="104642" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="13_08_2014/data/cover.jpg" coverthmb="13_08_2014/data/coverthmb.jpg" date="20140813" dummies="13_08_2014/ipad_dummies.xml" id="104643" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="14_08_2014/data/cover.jpg" coverthmb="14_08_2014/data/coverthmb.jpg" date="20140814" dummies="14_08_2014/ipad_dummies.xml" id="104665" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="15_08_2014/data/cover.jpg" coverthmb="15_08_2014/data/coverthmb.jpg" date="20140815" dummies="15_08_2014/ipad_dummies.xml" id="104702" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="16_08_2014/data/cover.jpg" coverthmb="16_08_2014/data/coverthmb.jpg" date="20140816" dummies="16_08_2014/ipad_dummies.xml" id="104723" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
<pub consumid="title" cover="18_08_2014/data/cover.jpg" coverthmb="18_08_2014/data/coverthmb.jpg" date="20140818" dummies="18_08_2014/ipad_dummies.xml" id="104782" name="" num=""
productid="GVNP" sproductid="$unavailable$"/>
</pubs>
I just want a simple thing : deleting the nodes where dates are more than 15 days (2 weeks). Like in this example, i only want nodes where dates are between "20140802" and "20140818". The result can be in an other XML file or directly applied
in the already existing XML file.
I'm a newbie using PowerShell, but i already found some interesting commands like these ones :
$xml = [xml](Get-Content E:\ipadpub.xml)
$datations = $xml.pubs.pub | % {$_.date -ge {(Get-Date).adddays(-15)}} | $xml.Save("E:\test.xml")
I'm testing many others commands but i'm unsucessful :(
Can anyone give me some good tips in a way to solve my problem, it would be nice.
Regards,
Jf

Back... I found something interesting by following your advices... this code get me a status (true or false) on exactly what i want.
The fact is that I can't delete "false" nodes i'm keeping searching but if you may help it would  be nice ...
$xml = [xml](Get-Content J:\EpaperWeb\Kiosque_Prod\epaper\xml_epaper\HAVP\ipad_publications.xml)
$Date = Get-Date
$DateStr = $Date.Adddays(-15)
$DateStr = $DateStr.ToString("yyyyMMdd")
$xml.pubs.pub | % {$_.date -le $DateStr}
If ($xml.pubs.pub | % {$_.date -le $DateStr})
$node = $xml.SelectSingleNode("//pubs/pub")
[Void]$node.ParentNode.RemoveChild($node)
$xml.Save("J:\test.xml")
In bold here are the false code lines :(

Similar Messages

  • Working with XML and Button

    Hi,
    How are all of you. Well I am new to Flex. But I have started
    building simple applications. One of the top most problem I am
    facing is working with XML and Button. Can you please assist me in
    this. I am explaining my problem:
    I have an external XML file like this:
    <Menu>
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    <button>
    <idnt>1</idnt>
    <label>Mental Health</label>
    <text>Mental Health pages is currently under
    construction</text>
    </button>
    </Menu>
    Now I want to generate Buttons Dynamically from this XML. And
    the second thing which is the most problematic is that how I code
    it so that when I press the Button labled "General Health", it will
    show the same text as in the XML tag coresponding to tag
    "<label>General Health</label>" ?
    I badly need this. I am realy confused on this. Kindly help
    me.
    Regards
    ..::DeX

    Let's assume that variable "node" contains one element of the
    XML. For example,
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    such that node.label would be "General Health", node.idnt
    would be 0, etc.
    You can build a Button like this:
    var b:Button = new Button();
    b.label = node.label;
    b.data = node; // more on this later
    b.width = 60;
    b.height = 26;
    addChild(b); // critical - adds the button to the display
    list so you can see it
    b.addEventHandler( MouseEvent.CLICK, handleClick );
    You must set the button's width and height unless the button
    will be in a container that will size its own children (like Tile).
    Every Flex component has a data property. You can set it to
    whatever you like. For your needs it makes sense to set each
    Button's data property to the node it relates to.
    Now suppose that code above is in a function, createButton:
    private function createButton( node:XML ) : void {
    // code from above
    Here's how to make all the buttons where "menu" is a variable
    that contains your XML:
    for(var k:int=0; k < menu.button; k++) { // menu.button is
    an XMLList
    createButton( menu.button[k] );
    Now to handle the event:
    private function handleEvent( event:MouseEvent ) : void
    var b:Button = event.currentTarget as Button;
    trace( b.data.text);
    When a button is picked, the description element will print
    in the debug console. Replace the trace with whatever code you
    need.

  • Cfsearch, working with files and data

    I am using cfsearch and was wondering how I can search on 2 fields, ie the file itself and a custom field?
    so criteria="*#searchText#* OR CF_CUSTOM1 = *#searchText#*", but that is not working...so need help
    If I use : criteria="*#searchText#*"  it will search through the file fine, but I need to also get a custom field into the search
    Thanks,
    Darrin

    Traditionally reading from and writing to is using URL to read and URL to POST data to
    the webserver for writing.
    If you want to read/write to local filesystem you have to sign the applet or set up a policy
    for it.
    Does Allpermission to all code help (add that to THE java.policy in the "grant {" section)?
    Because if that didn't help it's not the sandbox security that causes the exception.
    Don't think you should add a keystore to THE java.policy (in the lib/security dir). Never
    seen a SUN example do that.
    Did you add the location of your policy ifle to your java.security?
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore

  • Can someone tell me how to work with XML and workflow?

    Ive insert a XML file in a CLOB data type column of a table. Now I want to
    use some tags of this clob in a process of ora workflow. I know that there is a standard function get tag, but how can I say where the tag must get his information?
    Oracle should foreseen a document with step-by-step instructions, how to use XML in Oracle workflow. There is nothing to find on OTN or Metalink or even the internet to do this.
    Thanks for your time

    If you are using the standard XML Get Tag Value activity, you can specify the tag set in XPath notation. For details about this notation, see the W3C Recommendation "XML Path Language (XPath)". Note that this standard activity looks for the CLOB within an event message structure. See:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a95265/std21.htm#xmlgettval
    Ive insert a XML file in a CLOB data type column of a table. Now I want to
    use some tags of this clob in a process of ora workflow. I know that there is a standard function get tag, but how can I say where the tag must get his information?
    Oracle should foreseen a document with step-by-step instructions, how to use XML in Oracle workflow. There is nothing to find on OTN or Metalink or even the internet to do this.
    Thanks for your time

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • Working with placeholders and templates in 10gR4

    I am new to 10gR4 features. Can someone help me in working with placeholders and templates in 10gR4. Is there a document available on that?
    This is what is did. I created a primary page which contains a contribution region for list of articles(dynamic list fragment). Next, I created a secondary page (hcsp file) which is designed to create/update new artcicles. I also added a placeholder before the contribution region for this article by name ArticleDetail.
    I was able to add new articles and work with them as usual like in 10gR3.
    But when I tried to access the contents of a particular article using wcm_place_holder service I am not able to see any contents.
    This is the url for the request
    http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&siteId=TestSite&dataFileDocName=TESTCONTENTFILE&templateDocName=ArticleDetail
    where the TESTCONTENTFILE is the content id of the article data file and ArticleDetail is the name of the placeholder placed above article contribution region.
    I tried changing the value of templateDocName to content id of the article (TESTCONTENTFILE) and also tried the content id of eondary page file for article, but the same result. I am not able to see anything on the screen.
    Also tried the same with above values with placeholderDefinitionDocName instead of templateDocName parameter but no good.
    Anything wrong I am doing here?
    Regards,
    Pratap

    I tried something different and I am getting the response but the content is not html.
    This is what I tried
    http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&dataFileDocName=TESTARTICLE&templateDocName=TESTARTICLE
    and I got the response which is xml data. I think it is the contributed data file for TESTARTICLE.
    What we are looking for is the html text for presenting the article directly on external sites. The documentation for WCM_PLACEHOLDER says that it should get html directly. I am not able to get it.
    This is the snippet of code of articleDetails.hcsp secondary page
    ================================================================================================
    <!--SS_BEGIN_SNIPPET(fragment1,2)--><!--$ssFragmentInstanceId="fragment1", ssIncludeXml("SS_FRAGMENTS_PLAIN", "fragments/fragment[@id='NavMultiHorizontal']/snippets/snippet[@id='2']/text()")--><!--SS_END_SNIPPET(fragment1,2)-->
    </p>
    <p> </p>
    <p><!--$wcmPlaceholder("QtelArticleDetail")--></p>
    <p>
    <!--SS_BEGIN_OPENREGIONMARKER(region1)--><!--$SS_REGIONID="region1"--><!--$include ss_open_region_definition --><!--SS_END_OPENREGIONMARKER(region1)-->
      <!--SS_BEGIN_ELEMENT(region1_element6)--><!--$ssIncludeXml(SS_DATAFILE,region1_element6 & "/node()")--><!--SS_END_ELEMENT(region1_element6)-->  </p>
    <p><!--SS_BEGIN_ELEMENT(region1_element2)--><!--$ssIncludeXml(SS_DATAFILE,region1_element2 & "/node()")--><!--SS_END_ELEMENT(region1_element2)--> </p>
    <p><!--SS_BEGIN_ELEMENT(region1_element3)--><!--$ssIncludeXml(SS_DATAFILE,region1_element3 & "/node()")--><!--SS_END_ELEMENT(region1_element3)--></p>
    <p><!--SS_BEGIN_ELEMENT(region1_element4)--><!--$ssIncludeXml(SS_DATAFILE,region1_element4 & "/node()")--><!--SS_END_ELEMENT(region1_element4)--></p>
    <p><!--SS_BEGIN_ELEMENT(region1_element5)--><!--$ssIncludeXml(SS_DATAFILE,region1_element5 & "/node()")--><!--SS_END_ELEMENT(region1_element5)-->
    <!--SS_BEGIN_CLOSEREGIONMARKER(region1)--><!--$include ss_close_region_definition --><!--SS_END_CLOSEREGIONMARKER(region1)-->
    ================================================================================================
    Can you please suggest what else needs to be done in order to get html repsonse from WCM_PLACEHOLDER service.
    Regards,
    Pratap

  • Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Hi ron1098,
    Try my application Dates to iCal. it runs on the Mac, but you can sync the calendar to your iOS device.
    See more about Dates to iCal here. It is £4 shareware with a 2 week demo.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How to work with xml in java ?

    Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ? Please give me some examples for read, write and modify it.
    Thanks in advance.

    >
    Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ?>'It depends'. I saw some discussions of XML parsing using different J2SE core XML APIs (the J2SE has a selection of ways to deal with XML) where one API was 20 times faster than the other.
    >
    ... Please give me some examples for read, write and modify it. >Please give me a ponie. ;-)
    You will probably need to do a lot of reading, as well as some experimentation, before you decide which XML API is best suited to the particular task you are facing.
    >
    Thanks in advance.>No worries.

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • PO output with XML and PDF format

    Hi All,
    I need PO output with XML and PDF format. when I give print it shld go to vendor with xml and pdf format through mail. please kindly guide me on this .
    Thanks in advance
    JK

    hi,
    try this code to get in pdf form
    REPORT zsuresh_test.
    Variable declarations
    DATA:
    w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
    w_fmodule TYPE rs38l_fnam,
    w_cparam TYPE ssfctrlop,
    w_outoptions TYPE ssfcompop,
    W_bin_filesize TYPE i, " Binary File Size
    w_FILE_NAME type string,
    w_File_path type string,
    w_FULL_PATH type string.
    Internal tables declaration
    Internal table to hold the OTF data
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    Internal table to hold OTF data recd from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    This function module call is used to retrieve the name of the Function
    module generated when the SMARTFORM is activated
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Calling the SMARTFORM using the function module retrieved above
    GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    format of the output
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
                                                        " for print preview
    w_cparam-getotf = 'X'.
    Printer name to be used is provided in the export parameter
    OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
    CALL FUNCTION w_fmodule
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = w_cparam
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = w_outoptions
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    t_otf[] = t_otf_from_fm-otfdata[].
    Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
    WINDOW_TITLE =
    DEFAULT_EXTENSION =
    DEFAULT_FILE_NAME =
    FILE_FILTER =
    INITIAL_DIRECTORY =
    WITH_ENCODING =
    PROMPT_ON_OVERWRITE = 'X'
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    USER_ACTION =
    FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    others = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = T_pdf_tab
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    reward points if useful,
    siri

  • Working with Validation of Data

    Hi. VC Experts.
                             I am currently working with VC 6.0. Where I am working with Validation of Data.
    we have fields like Emp, Earea, Joining date (month & Year),  Ending date((month & Year) etc.,
    Here we have one push button 'select'.
                         Here what my client asks is unless and until, user fills all details then only
    the submit but should be enabled. Otherwise submit button should be in disable mode.
    I could be able to write formula for 'submit' button's properties( Disable) like this.
    BOOL(IF(LEN(@Emp_code)<>0 AND  LEN(@Earea)<>0 AND LEN(@Edept)<>0 AND DSUB(DVAL(@Joining_date), DVAL(@Ending_date),'D')<0 ,false,true))
                     Here condition is always make sure that 'Joining date' should be greater than 'Ending date' .  where it is working fine for all fields except Calender Year month(Joining date & Ending date).
                                the calender year month format is  Example : """" May 2007""""
    But it is considering only month But not year.
                  Can you kindly provide your inputs.
                                                                                 Thanks & Regards

    Hi Vijay,
    sorry
    please rewrite the formula for the button disable as::
    NOTE:: in the formula i have used '<''>'  which nothing but a lessthan symbol and greater than symbol without single quotes (i.e. not equal to)
    BOOL(IF(LEN(@Emp_code) '<''>'0 AND LEN(@Earea)'<''>'0 AND LEN(@Edept)'<''>'0 AND DSUB(DVAL(@Joining_date), DVAL(@Ending_date),'D')<0 ,false,true))
    and make sure you have placed the date picker UI controls for your date functionality.
    this will not work for calender UI control on the form.
    and othe important point is the joining date should be less than ending date then only the button will be enable..
    if you want your joining date should be greater than ending date then write the formaula like this::
    BOOL(IF(LEN(@Emp_code)<>0 AND LEN(@Earea)'<''>'0 AND LEN(@Edept)'<''>'0 AND DSUB(DVAL(@Joining_date), DVAL(@Ending_date),'D')>0 ,false,true))
    i tried this
    its working for me
    Regards
    Srinivas

  • Copy photos with info  and data to a cd

    I have Adobe Photoshop Album Starter Edition 3.2 and put in all the photos I had in my files. Then marked every single photo with information and data (a hell of work) and decided to make a backup copy on cd.
    To my astonishment on the cd all the photos turned out to be completely unorganized and all the text I put below them were nowhere to be found!!!
    Did I do something wrong, or is it not possible to get an organized cd with information using this edition of Photoshop?
    Thanks in advance for your help.

    >I am trying tommove a block of pictures from my d drive over to photo shop
    >3.0 and want to move more than one photo at a time.
    I'm not sure what you mean by moving pictures from D: drive to PS 3... PSA
    SE 3.2 is just a cataloging application. It doesn't actually store anything,
    it just tells you where things are, or helps you to work with them.
    >Or I can load them into photo shop from a CD.
    It sounds like you just want to make sure the PSA SE knows that they are
    there....
    Essentially, you can just Click on the "Get Photos" button and choose the
    source. Keep in mind that this will NOT physically move images and doesn't
    have that ability like Photoshop Elements 5.0.
    As to the DVD... it can track it depending on the video type. When you say
    "Get Photos"... look to see if has detected it. If you see that it has and
    offers to catalogue it for you, then you know that you're okay.
    Cheers

  • HT202274 Apple ID has my old email address. It will not allow me to change the address and will not accept my password or ID questions.   I recently upgraded to OSX Yosemite 10.10.1.  I also have an Apple ID that works with iTunes and would like to keep i

    Apple ID has my old email address. It will not allow me to change the address and will not accept my password or ID questions.   I recently upgraded to OSX Yosemite 10.10.1.  I also have an Apple ID that works with iTunes and would like to keep it as my primary.

    To change the iCloud ID on your devices you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted (if using iOS 7), then sign back in with your current ID.
    If you don't know the password for your old ID, or if it isn't accepted, you will have to temporarily recreate it in order to delete the existing account.  To do this, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Anyone working with XML in portlets? How?

    Do you work with XML/XSL in a JSP Portlet to build your presentation?
    We are having trouble with german Umlauts and want to know a way for XML in portlets in general.
    Thomas

    Hallo Ingo !
    We use the Oracle XML Parser and XSL transformer in a JSP Portlet. The XML is referenced throu a URL from our XML server.
    The XSL file is in the portlet directory.
    Our Problem is:
    Even if we use encoding attributes set to UTF-8 we are not able to display Umlauts correctly. They are not encoded to HTML Umlauts (e.g. &#252; to &uuml;).
    We tested our code with Apache Xalan and Xerces and everything works fine.
    I think that Oracle XML parser treats things not as they are recommended by W3C.
    Finally we gave up parsing XML with oracle Parser and now use Apache XML/XSL Parsers.
    Or do you know a better way?
    Thomas

  • NB200 Windows 7 Fn key not working with ESC and F1 to F8 keys

    I recently bought a Toshiba NB200-136 and everything worked fine.
    Flash cards on top/bottom of the screen work with Space, ESC and F1 to F8 keys, the rest of function buttons work without showing the cards. Lately the cards stopped showing and I cannot use the Fn + Space, ESC, F1-F8 keys (there's just no reaction), though the rest of buttons work with Fn and the LED is always lit when the Fn is pressed.
    I reset Flash Cards, checked and changed their settings few times and they work only if I choose 'Allow the mouse to bring up the cards' option. Even then they don't appear when I press Fn and the functions work only when I click one of the cards.
    The problem appeared after (though I'm not sure if immediately) such situation:
    I clicked Start -> Shut down and closed the lid. When I opened it the next morning I saw an empty list of programs that wouldn't shut down (it happens quite often, but it's off top). I clicked 'Cancel' or 'Force shut down' but it didn't work so I pressed the Power Button for 5 secs to turn the computer off. I noticed the Fn problem after turning it on and it didn't disappear after resets.
    I think the problem appeared before but disappeared after reset so I ignored it.
    I'll be thankful for your help.

    Any time that you force Windows to stop instead of letting it shut down normally (sometimes you have to shut it off), you may have lost clusters of data that interfere with the proper operation of Windows. So I suggest you start up and run scandisk and make sure you check the box for fixing problems. The other box doesn't need to be checked unless you suspect bad sectors on the hard drive and it takes a long time so I recommend only checking the one box for finding and fixing errors.
    Let us know if this worked and the problem is fixed.
    Good luck.

Maybe you are looking for