WriteToFile

Hi guys,.

Is it possible to record the amounts and accounts of the WriteToFile routine?

If so, could you please let me know the variables?

Thank you!

Ligia

Ligia Hello, Yes, you can write accounts and the amounts of the record, that we do all the time, see two submarines below:

Void WriteToFile (txtStringToWrite)

On Error Resume Next
Const FileSize = 2621440
Specification of file = "c:\rulerunlog.txt".

If txtStringToWrite = "DU_element" then
txtStringToWrite = account & "/" & ICP & "/" & Custom1 & "/" & Custom2 & "/" & Custom3 & "/" & Custom4
End If

Const FileDeleteSpec = "c:\rulerunlogdeleted.txt".
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim strTemp, s, f, fso
Set fso = CreateObject ("Scripting.FileSystemObject")
The value of f = fso. GetFile (FileSpec)
s = f.size
Set f = Nothing

If size < s="" and="" ed=""> <> 1 then
The value of f = fso. OpenTextFile (FileDeleteSpec, ForAppending, True)
f.WriteLine "log file (" & FileSpec & "'") has reached the size limit of "& FileSize &" bytes and was removed to "& Now().
f.Close
Set f = Nothing
FSO. DeleteFile (FileSpec)
End If
The value of f = fso. OpenTextFile (FileSpec, ForAppending, True)
If ED = 1 Then
f.WriteLine txtStringToWrite
On the other
f.WriteLine txtStringToWrite & "" & Now()
End If

f.Close
Set f = Nothing

End Sub

Void Debug (strModule)

If Err then

Info = "Scenario:" & Hs.Scenario.Member () & "year:" & Hs.Year.Member () & "duration:" & Hs.Period.Member () & "entity:" & Hs.Entity.Member () & "value:"& Hs.Value.Member ().
errdesc = err.description
errsource = err.source
errnumber = err.number

Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject ("Scripting.FileSystemObject")
The value of f = fso. OpenTextFile ("C:\ErrorLog.txt", ForAppending, True)
f.WriteLine "------------------------------------------------------------------------------------------------------------------------"
f.WriteLine «»
'Error in the module' f.WriteLine & Ucase (strModule)
f.WriteLine «»
f.WriteLine now()
f.WriteLine «»
f.WriteLine ' Scenario: "& Hs.Scenario.Member ().
f.WriteLine "year:"& Hs.Year.Member ().
f.WriteLine "period:"& Hs.Period.Member ().
f.WriteLine "entity: «& Hs.Entity.Member ()»»
f.WriteLine "value:"& Hs.Value.Member ().
f.WriteLine «»
f.Writeline '[' & errsource & "]" & errdesc & "()" & errnumber & ").
f.WriteLine «»
f.Close

On Error Resume Next

End If

End Sub

Tags: Business Intelligence

Similar Questions

  • Rules HFM - call WriteToFile

    Hello

    I use the Hyperion HFM 11.1.1.3 application. I want to see the stages of execution of HFM business rules and included "Call WriteToFile("")" script to save the details.

    But I'm not able to find the log file. Please could you help me figure out where this 'call' function WriteToFile write results.

    Thank you

    Michel K

    Hello...

    This depends on the version 'writing on a file' you use.

    Usually, there is a 'Set f = fso (GetFile (filename)'

    Kind regards

    Thanos

  • DBMS_XMLDOM. WRITETOFILE to add sysdate with the timings

    Hi, I need a help to store the xml file in a directory with the date and time, please see my code below

    DECLARE

    doc DBMS_XMLDOM. DOMDocument;

    XData XMLTYPE.

    CURSOR xmlcur IS

    (SELECT XMLElement

    "Ministry."

    XMLAttributes (d.department_id AS "DepartmentId"),

    XMLForest (d.department_name LIKE "Name"),

    XMLElement ("place",

    XMLForest (adresse_rue, "ADDRESS",

    quoted AS 'city ',.

    state_province AS 'State ', he said.

    Zip_code AS "Zip."

    country_name AS 'Country')),

    XMLElement)

    "EmployeeList"

    (SELECT XMLAgg)

    XMLElement)

    "Employee."

    XMLAttributes (e.employee_id LIKE "employeeNumber"),

    XMLForest (e.first_name AS "FirstName",

    Select AS "LastName."

    e.email LIKE "EmailAddress",.

    e.Phone_Number AS "PHONE_NUMBER."

    e.hire_date AS "StartDate"

    j.job_title AS "JobTitle",.

    e.Salary AS "wages."

    m.first_name | ' ' || m.last_name as 'Manager').

    XMLElement ("Commission", e.commission_pct)))

    OF hr.employees e, hr.employees m, hr.jobs j

    WHERE e.department_id = d.department_id

    AND j.job_id = e.job_id

    AND m.employee_id = e.manager_id))).extract('/*')

    IN XML FORMAT

    OF hr.departments d, hr.countries c, hr.locations l

    WHERE department_name = 'Executive '.

    AND d.location_id = l.location_id

    AND l.country_id = c.country_id;

    BEGIN

    OPEN xmlcur.

    SEEK xmlcur INTO xdata;

    CLOSE Xmlcur;

    doc: = DBMS_XMLDOM. NewDOMDocument (xdata);

    DBMS_XMLDOM. WRITETOFILE(doc,'MENDIX/mendix.) XML'); -the lines to change

    END;

    /

    In this, I would like to add the sysdate with time in the xml file

    DBMS_XMLDOM. WRITETOFILE (doc, ' MENDIX/mendix + sysdate.xml')



    Someone please help on this

    Hello

    This is the basic string manipulation, nothing particular to XML.

    For example:

    DBMS_XMLDOM. WRITETOFILE (doc,' TEST_DIR/mendix ' | to_char (sysdate, 'YYYYMMDDHH24MISS') |'.) XML');

  • Keychain, iCloud + problems of Photos on MBPro since changed password and password set firmware

    Hello

    I recently changed the password for the connection on my main account on my MBPro and added a firmware password, but that doesn't seem to work properly: whenever I reboot Keychain keeps asking me to access the local keychain and all iCloud apps are disabled. I also have problems with pictures. FYI my boot HD is encrypted with FileVault.

    I put details on the issues below, as well as what I tried so far (based on the collected suggestions from these forums) as well as some newspapers Console elements that seem strange.

    I don't know how to proceed at this point that some options might make things worse if not done does not correctly (or in the right sequence). I'm tempted to disable Firmware password, go back to the old password, or turn off FileVault to see if the problems goes, but I'm afraid it might make things worse (and I would like to have these features runs later). I also have the opportunity to reinstall the OS and return to a previous TimeMachine upward.

    I would appreciate anyone's help on this one.

    Thank you very much.

    DOM

    Plug

    MBPro Core i5 2.7 Ghz 13 "retina

    16 GB RAM 256 GB SSD + 2 TB external HD.

    Mac OS X 10.11.16 (15-1004)

    FileVault is running on the boot disk (SSD).

    Firmware password has been set.

    I have a Time Machine backup (on a second external hard drive).

    I installed a functional copy of Mac OS X on an external hard drive 3.

    I do not use iCloud keychain.

    I have another admin account that works.

    Problems:

    (1) Keychain: whenever I start the CommCenter ask the session keyring password (I must then enter the previous admin password).

    I wonder then if I want to update the local keyring: to do this I have to enter my new login password in the "current password" and then I type the same new password fields. Once I reboot the problem reappears: exactly the same sequence, as if the information could not stick. Might have something to do with the FileVault and Firmware password.

    (2) iCloud: after having rebooted and enter my passwords from keychain as described above, none of the iCloud applications work (email, Messages, Contacts, calendars, reminders, Notes, find my Mac, iCloud drive, etc.).

    He tells me tells me he is not able to connect to iCloud and asked me to try to do it in the preferences panel. When I tried to connect there, he couldn't connect to iCloud and told to try again later.

    (3) photos: at the launch of Photos he says he cannot open the library system and propose to choose a. When I choose the right pair, it opens fine, but a ton of photos are most referenced correctly. All images come my an external HD (the iPhoto library is also on the same HD), and nothing has changed in the structure of folders.

    What I tried (after the Time Machine).

    1. I installed Mac OS was last updated.

    2 - I activated the guest account and tried to connect: it only works Safari.

    3. I logged in using another admin account: no problem with Keychain and all iCloud apps work. Not tried Photo since this account is not a library and is not configured for access to the main account.

    4. I tried to boot into safe mode: is not work (might have something to do with the password FileVault and Firmware).

    5-return to the main account I ran disk help and fixed permissions: discs seem to be ok.

    6. in the key string App I locked and unlocked keychain using the lock in the upper left corner of the application. When asked for my password I just typed my user password. When I rebooted I had the same problems.

    7. I've tried updated the password in the keychain app by entering the old password and then my new password for connection in the other two fields (new password and confirm). Still problems with iCloud and after restart I have the same problems of Keychain.

    8 - I tried resetting my default keychain: I got an error, because I don't have the permission to do so.

    9 - I tried to create a new keychain session and making it the default keychain, but I keep getting the same problems (iCloud does work does not + issues of password even after I reload).

    10 - iCloud: I tried to close the session from iCloud, then enter my iCloud ID and password, but it says no more: it cannot connect or that the Mac is already connected to this account. I closed the session again, iCloud used Safari to manage my AppleID (https://appleid.apple.com/), listed devices associated with and my MacBook off the list: I always have the same questions even after reboot. I even tried to delete the iCloud account since the Internet Accounts preferences panel, but it is not listed. I tried to add it, but he said that the Mac is already connected.

    11. in Terminal, I glued the special order in some discussions (find ~ $TMPDIR..------(-+ flags sappnd, uappnd, schg, uchg o! - user $UID o! - perm - 600-) 2 > & -| wc-l | pbcopy) and got 21 to 22, and a result the first time earlier.

    12 - looking at logs just console after reboot, I see a couple of things that seem odd that appear multiple times with slight variations (I paste only an example):

    Sandbox: launchd (1) system policy: deny (1) file-writing-break the/private/var/run/dyld_shared_cache_x86_64h link

    HideUntilCheckIn of the property is a problem of architectural performance. Please transition away from him.

    sharedfilelistd [356]: [default] could not save SharedFileList in/Users/mark/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentApplications. SFL with error error Domain = NSCocoaErrorDomain Code = 513 "you don't have permission to save the file"com.apple.LSSharedFileList.RecentApplications.sfl"in the folder"com.apple.sharedfilelist"." UserInfo = {NSFilePath = / Users/mark/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentApplications sfl NSUnderlyingError = 0x7fd93a70ec20 {error Domain NSPOSIXErrorDomain Code = 13 'Permission denied' =}}

    [NetworkDefaults]: cannot write new default values of network disk: error Domain = NSCocoaErrorDomain Code = 513 "you don't have permission to save the file"networkDefaults.plist"in the folder"Géoservices"." UserInfo={NSFilePath=/Users/Marc/Library/Caches/GeoServices/networkDefaults.pli st, NSUnderlyingError = 0x7fb1dbf69530 {error Domain NSPOSIXErrorDomain Code = 13 'Permission denied' =}}

    Keychain Circle Notification [448]: Displayed at the launch:)

    )

    securityd_xpc_dictionary_handler Keychain circle [448] DeviceInCircle error Domain = com.apple.security.sos.error Code = 4 "Keybag never unlocked, ask after first unlock" UserInfo = {NSDescription = Keybag never unlocked, ask after first unlock}

    iconservicesagent [381]:-[ISGenerateImageOp generateImageWithCompletion:] has no image descriptor composit of < ISBindingImageDescriptor: 0x7fbfe36118a0 >.

    accountsd [384]: [warning] Services all gone, delete all accounts

    SpotlightNetHelper [420]: __tcp_connection_tls_session_callback_write_block_invoke.434 tcp_connection_tls_session_error_callback 12 22 error

    Quicksilver [470]: Error resolving alias file:///Volumes/ABC/DEF/GHI.JPG%20alias: error Domain = NSOSStatusErrorDomain Code =-35 ' nsvErr: no such volume.

    Sandbox: SpotlightNetHelp (420) deny (1) - reading-file data/Applications/App Store.app

    (This repeats for many applications and their content files)

    12 - looking logs console after entering my iCLoud references (in the prefs ICloud panels) I get at least about the error that is similar in the newspapers after the reboot (cannot save SharedFileList)

    com Apple.Preferences.iCloud.RemoteService [512]: error = AKAuthenticationError Code =-7034 '(null)' Domain: AKAuthenticationErrorForcedFailure

    com Apple.Preferences.iCloud.RemoteService [512]: error in CoreDragRemoveTrackingHandler:-1856

    com Apple.Preferences.iCloud.RemoteService [512]: error in CoreDragRemoveReceiveHandler:-1856

    sharedfilelistd [283]: [default] could not save SharedFileList in/Users/mark/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl with the error Domain error = NSCocoaErrorDomain Code = 513 "you don't have permission to save the file"com.apple.LSSharedFileList.RecentDocuments.sfl"in the folder"com.apple.sharedfilelist"." UserInfo = {NSFilePath = / Users/mark/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl, NSUnderlyingError = 0x7f915242c1b0 {error Domain NSPOSIXErrorDomain Code = 13 'Permission denied' =}}

    sharedfilelistd [283]:-[ListStoreSnapshot writeToFile:] could not save SharedFileList in/Users/mark/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl with the error Domain error = NSCocoaErrorDomain Code = 513 "you don't have permission to save the file"com.apple.LSSharedFileList.RecentDocuments.sfl"in the folder"com.apple.sharedfilelist"." UserInfo = {NSFilePath = / Users/mark/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl, NSUnderlyingError = 0x7f915242c1b0 {error Domain NSPOSIXErrorDomain Code = 13 'Permission denied' =}}

    Keychain Access application for Keychain "login" after changing the password

    The problems of Keychain - see post of khati

    OS X always ask to use your passwords in keychain

    Try to go into System Preferences/iCloud and stop synchronization. Wait a few minutes, then recheck the timing.

    Have you tried the signature to iCloud and then reconnect?

  • Folder action to run a ruby script

    Hi all

    I have various AppleScript scripts that deal with PDF files manually, (thanks to the kindness of many on this forum), but I want to convert to a folder rather than ask me sources and destination action script.

    This is the current script - it is easy to convert to a folder action so I can just drag files to a hot folder?

    =======

    _main()

    on _main()

    o script

    aa property : Choose file with command prompt ("choose PDF Files.") Type {"com.adobe.pdf"} ¬

    location (path to the Office) by default with multiple selections allowed

    the value beginning de choose a folder with prompt ¬ ("Choose Destination folder.") my aa

    default location (path to the Office)

    game of args for «»

    Repeat with an in my aa

    Set args to args specified POSIX path form & space

    end Repeat

    in view of digital channels

    if (system information)'s version of the system < "10.9"=""> then

    Ruby set to "/ usr/bin/ruby.

    on the other

    Ruby set to "/ System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby".

    end if

    end in view of

    "ruby shell script &"<'EOF' -="" "="" &="" args="" &="">

    require ' osx/cocoa '.

    include OSX

    require_framework 'PDFKit.

    OutDir = ARGV.shift.chomp('/')

    ARGV.select {| f | f = ~ \\.pdf$/i} .each | f |

    URL = NSURL.fileURLWithPath (f)

    doc = PDFDocument.alloc.initWithURL (url)

    path = doc.documentURL.path

    pcnt = doc.pageCount

    (0 .. (pcnt-1)). each | I have |

    page = doc.pageAtIndex (i)

    page. String.to_s = ~ /VMA_\\S * /.

    name = $&

    name unless

    "puts \"no corresponding to the string in the page #{i + 1} of #{path}------".

    # next skip this page

    end

    Doc1 = doc # PDFDocument.alloc.initWithData (page.dataRepresentation) for this page

    less than doc1.writeToFile(\"#{outdir}/#{name}.pdf\") "

    "puts \"failed to save the page #{i + 1} of #{path}------".

    end

    end

    end

    EXPRESSIONS OF FOLKLORE. "

    end script

    say o to run

    end _main

    Hello

    You can save the script as a script compiled in applescript

    ~/Library/Scripts/Folder Action Scripts
    

    and assign it as a folder action script in the hot folder. Specify the destination directory defined in. DESTINATION | property at the top of the script.

    * Note that the destination folder cannot be the Hotfolder.

    To test the code as a stand-alone script, you can simply run the script in the Script Editor and it will allow you to choose the PDF files by the dialogue.

    property |DESTINATION| : ((path to home folder)'s POSIX path & "Desktop/hot") as POSIX file as alias -- alias of destination directory
    
    on adding folder items to d after receiving argv
        if d = |DESTINATION| then
            display dialog "Folder Action :" & return & ¬
                (path to me)'s POSIX path & return & return & ¬
                "The destination cannot be the hot folder." with icon stop
            error number -128
        end if
        _main(argv)
    end adding folder items to
    
    on run -- # for stand-alone test
        _main({})
    end run
    
    on _main(argv)
        (*
            list argv : list of alias of source PDF files
            *property |DESTINATION| : alias of destination directory
        *)
        script o
            property aa : argv
           
            if (count aa) = 0 then set aa to choose file with prompt ("Choose PDF Files.") of type {"com.adobe.pdf"} ¬
                default location (path to desktop) with multiple selections allowed
            set my aa's beginning to my |DESTINATION| as alias
           
            set args to ""
            repeat with a in my aa
                set args to args & a's POSIX path's quoted form & space
            end repeat
           
            considering numeric strings
                if (system info)'s system version < "10.9" then
                    set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
                else
                    set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby"
                end if
            end considering
            do shell script ruby & " <<'EOF' - " & args & "
    require 'osx/cocoa'
    include OSX
    require_framework 'PDFKit'
    
    outdir = ARGV.shift.chomp('/')
    
    ARGV.select {|f| f =~ /\\.pdf$/i }.each do |f|
        url = NSURL.fileURLWithPath(f)
        doc = PDFDocument.alloc.initWithURL(url)
        path = doc.documentURL.path
        pcnt = doc.pageCount
     
        (0 .. (pcnt - 1)).each do |i|
            page = doc.pageAtIndex(i)
            page.string.to_s =~ /VMA_\\S*/
            name = $&
            unless name
                puts \"no matching string in page #{i + 1} of #{path}\"
                next # ignore this page
            end
            doc1 = PDFDocument.alloc.initWithData(page.dataRepresentation) # doc for this page
            unless doc1.writeToFile(\"#{outdir}/#{name}.pdf\")
                puts \"failed to save page #{i + 1} of #{path}\"
            end
        end
    end
    EOF"
        end script
        tell o to run
    end _main
    

    Briefly tested under OS X 10.6.8.

    Good luck

    H

  • Sending file to server UTF-8 text

    I am trying to download a UTF-8 text file to a server. The download works fine, but when I check in the server, the file is ASCII.

    This is how I create my file:

    private void writeToFile(String line) throws IOException{
            FileConnection fc = null;
            try {
    
                FileConnection fileConnection = (FileConnection)Connector.open(Constants.FOLDER_FILES+fileName);
                if (!fileConnection.exists()){
                    fileConnection.create();
                }
                fileConnection.close();
    
                fc = (FileConnection)Connector.open(Constants.FOLDER_FILES+fileName, Connector.READ_WRITE);
                long byteOffset = fc.usedSize();
                OutputStream outStream = fc.openOutputStream(byteOffset);
                outStream.write(line.getBytes("UTF-8"));
                outStream.flush();
                outStream.close();
    
            }catch (IOException ioe){
                UtilsFiles utilsFiles = new UtilsFiles();
                utilsFiles.writeInLog("UtilsFiles error: writeToFile ioexception "+ioe.getMessage());
            } finally {
                if (fc!=null) {
                    try {
                        fc.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
            }
        }
    

    And in the way which I download it:

    public class HTTPUploader {
    
        private String _connectionURL = null;
        private String fileName;
        public HttpConnection httpConnection = null;
    
        public HTTPUploader(String _fileName) {
            fileName = _fileName;
        }
    
            public void run (){
    
            httpConnection = null;
            _connectionURL = null;
            String lineEnd = "\r\n";
            String twoHyphens = "--";
            String boundary = "*****";
            int rc = -1;
            OutputStream os = null;
    
            try {
                httpConnection = (HttpConnection)Connector.open(_connectionURL);            
    
                httpConnection.setRequestMethod("POST");
                httpConnection.setRequestProperty("Connection", "Keep-Alive");
                httpConnection.setRequestProperty("User-Agent", "BlackBerry");
                httpConnection.setRequestProperty("Content-Type", "multipart/form-data;boundary=*****");
                httpConnection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LANGUAGE, "en-US");
                httpConnection.setRequestProperty(HttpProtocolConstants.HEADER_CACHE_CONTROL,"no-cache, no-store, no-transform");           
    
                os = httpConnection.openOutputStream();
                os.write((twoHyphens + boundary + lineEnd).getBytes());
                os.write(("Content-Disposition: form-data; name=\"uploadedfile\";filename=\"" + fileName +"\"" + lineEnd).getBytes());
                os.write(lineEnd.getBytes());
                byte [] postDataBytes = getData();
                os.write(postDataBytes);
                os.write(lineEnd.getBytes());
                os.write((twoHyphens + boundary + twoHyphens + lineEnd).getBytes());
                os.flush(); 
    
                rc = httpConnection.getResponseCode();
                InputStream in = httpConnection.openInputStream();
                ...
            }
            catch (ClassCastException cce)
            {
                ...
            }
            catch (IOException ioe)
            {
                ...
            }
            finally
            {
                ...
            }
           }
    
           private byte[] getData() throws IOException
           {
                    FileConnection fileForUpload = (FileConnection)     Connector.open(Constants.FOLDER_FILES+this.fileName, Connector.READ);
            InputStream is = fileForUpload.openInputStream();
            return IOUtilities.streamToBytes(is);
           }
    
    ...
    
    }
    

    I get the file correctly, but it is ASCII, and I don't know why.

    Thanks for your help

    Makes you think the ASCII file?

    Remember that MARC and UTF-8 are not actually different assuming that you only ASCII characters in the file.

  • Write in HFM rules file

    Hello

    I try to use the subroutine "writetofile("")" to see what made the systΦme for the translation.

    I was asked by Oracle support to place only the subroutine before and after the translation rule as follows:

    Void calculate)

    Call WriteToFile ("translation:" & Hs.scenario.Member & "" & Hs.year.Member & "" & Hs.entity.Member)

    EndSub

    Void WriteToFile (txtStringToWrite)

    On Error Resume Next

    Const ForReading = 1, ForWriting = 2, ForAppending = 8

    Dim fso, f

    Set fso = CreateObject ("Scripting.FileSystemObject")

    The value of f = fso. OpenTextFile ("C:\RuleTestDIR\RulesLog.txt", ForAppending, True)

    f.WriteLine txtStringToWrite & "" & Now()

    f.Close

    On Error GoTo 0

    End Sub

    Void / Translate()

    HS. TRANS "a #22208000", "was #22208000," "#AVR," "

    HS.transperiodic 'A #22209000', 'A #PL', 'A #EOP', "#AVR".

    EndSub

    Void WriteToFile (txtStringToWrite)

    On Error Resume Next

    Const ForReading = 1, ForWriting = 2, ForAppending = 8

    Dim fso, f

    Set fso = CreateObject ("Scripting.FileSystemObject")

    The value of f = fso. OpenTextFile ("C:\RuleTestDIR\RulesLog.txt", ForAppending, True)

    f.WriteLine txtStringToWrite & "" & Now()

    f.Close

    On Error GoTo 0

    End Sub

    BUT I do not know what I enter in the parenthesis (in red) call WriteToFile (' translation: "& Hs.scenario.Member &" "& Hs.year.Member &" "& Hs.entity.Member) in order to see prices uses the system and the real result of the translation.

    Please help.

    Thank you

    Laila

    Hello. You will need to add additional lines to write the rate and amount. For the rate, search for the function GetRate. For quantity, look for GetCell, but the WriteToFile with the GetCell info must be run from the subroutine for calculating after translation (Value.IsTransCur).

    Eric

  • HS. Entity.Member return do not name of the entity

    Hi Experts,

    I tried to create custom log files in order to check the sequential progress of my rules, I even managed to create the log file to the desired location.

    But I'm unable to print the course pov entity markr or any other member function in the log file.

    Here are the rules file that I downloaded.

    Void NoInput()

    HS = pov_entity. Entity.Member

    HS. NoInput 'an Exp.S #Actual #Travel.

    Call WriteToFile ("No. Input for" & pov_entity)

    End Sub

    Void writeToFile (String)

    On Error Resume Next

    Const ForReading = 1, ForWriting = 2, ForAppending = 8

    Dim fso, f

    Set fso = CreateObject ("Scripting.FileSystemObject")

    The value of f = fso. OpenTextFile("D:\hfmcustomlogs\Hfmlog1.txt",8,True)

    f.WriteLine String & "" & Now()

    f.Close

    On Error GoTo 0

    End Sub

    Resulted in the content of the log file

    No entry for 12/11/2014 05:18:53

    In the log file as you can see has led the current entity pov member does not appear.

    Did I miss something in the rule file or what I need to make changes in the properties of the application.

    Thanks in advance

    Try:

    Void calculate)

    HS = pov_entity. Entity.Member

    HS. Exp 'an Exp #Elec = A Exp #Travel'

    Call WriteToFile ("calculation of electrical Exp in" & pov_entity)

    End Sub

  • How to generate an xml document with a BLOB on the inside?

    Hello

    Using the Oracle 11 g Release 11.2.0.4.0 database, I actually use dbms_xmldom to generate xml data.

    When generated, it is sent using utl_http.

    All right, except that I have to include a child that contains a BLOB (stored in the database) in the exact way that it is stored in the XML structure.

    (Field value contains an encoded 64 base pdf file). Length of the file can be up to 2 MB

    My nearest solution was to Convert Oracle XML BLOB to type even if I'm really stuck with LPX-00210 error.

    Is there another way than dbms_xmldom do?

    In fact, I'm totally lost.

    Can you give me a hand on this or show me an example of work?

    Kind regards

    Stone

    Here goes...

    SQL> create table images (
      2    id       integer
      3  , name     varchar2(256)
      4  , content  blob
      5  );
    
    Table created
    
    SQL>
    SQL> declare
      2
      3    bf          bfile := bfilename('XML_DIR','base64.bin');
      4    lob_ptr     blob;
      5    dest_offs   integer := 1;
      6    src_offs    integer := 1;
      7
      8  begin
      9
    10    insert into images (id, name, content)
    11    values (1, 'Koala.jpg', empty_blob())
    12    returning content into lob_ptr;
    13
    14    dbms_lob.open(bf, dbms_lob.lob_readonly);
    15    dbms_lob.loadblobfromfile(lob_ptr, bf, dbms_lob.getlength(bf), dest_offs, src_offs);
    16    dbms_lob.close(bf);
    17
    18  end;
    19  /
    
    PL/SQL procedure successfully completed
    
    SQL> commit;
    
    Commit complete
    
    SQL>
    SQL> select id
      2       , name
      3       , utl_raw.cast_to_varchar2(dbms_lob.substr(content, 30)) as first_bytes
      4       , dbms_lob.getlength(content) as lob_size
      5  from images
      6  /
    
       ID NAME         FIRST_BYTES                      LOB_SIZE
    ----- ------------ -------------------------------- ----------
        1 Koala.jpg    /9j/4AAQSkZJRgABAgEAYABgAAD/7g      1068504
    
    SQL>
    SQL> declare
      2
      3    x_doc       xmltype;
      4    domdoc      dbms_xmldom.DOMDocument;
      5    domnode     dbms_xmldom.DOMNode;
      6    domtext     dbms_xmldom.DOMText;
      7    ostream     sys.utl_BinaryOutputStream;
      8    chunksize   pls_integer;
      9    offset      pls_integer := 1;
    10    buf         raw(32767);
    11    image       blob;
    12
    13  begin
    14
    15    select xmlelement("image",
    16             xmlelement("id", t.id)
    17           , xmlelement("name", t.name)
    18           , xmlelement("content")
    19           )
    20         , t.content
    21    into x_doc
    22       , image
    23    from images t
    24    where t.id = 1 ;
    25
    26    domdoc := dbms_xmldom.newDOMDocument(x_doc);
    27
    28    -- get /image/content node so that we can append a text node and stream the BLOB to it :
    29    domnode := dbms_xslprocessor.selectSingleNode(dbms_xmldom.makeNode(domdoc), '/image/content');
    30    domtext := dbms_xmldom.createTextNode(domdoc, null);
    31    domnode := dbms_xmldom.appendChild(domnode, dbms_xmldom.makeNode(domtext));
    32
    33    ostream := DBMS_XMLDOM.setNodeValueAsBinaryStream(domnode);
    34    chunksize := dbms_lob.getchunksize(image);
    35
    36    loop
    37      begin
    38        -- read BLOB in chunk of  :
    39        dbms_lob.read(image, chunksize, offset, buf);
    40      exception
    41        when no_data_found then
    42          exit;
    43      end;
    44      -- write chunk to DOM node :
    45      ostream.write(buf, chunksize);
    46      offset := offset + chunksize;
    47    end loop;
    48
    49    ostream.flush();
    50    ostream.close();
    51
    52    dbms_xmldom.writeToFile(domdoc, 'XML_DIR/image.xml');
    53    dbms_xmldom.freeDocument(domdoc);
    54
    55  end;
    56  /
    
    PL/SQL procedure successfully completed
    

    Image.xml release:

    
      1
      Koala.jpg
      /9j/4AAQSkZJRgABAgEAYABgAAD/7gAOQWRvYmUAZAAAAAAB/+EUI0V4aWYAAE1NACoAAAAIAAcB
    MgACAAAAFAAAAGIBOwACAAAABwAAAHZHRgADAAAAAQAEAABHSQADAAAAAQA/AACcnQABAAAADgAA
    AADqHAAHAAAH9AAAAACHaQAEAAAAAQAAAH0AAADnMjAwOTowMzoxMiAxMzo0ODoyOABDb3JiaXMA
    ...
    aWpkRY6dqaJY42qFjs8ZZ5nlkjZpmJUiJ1+ijn3dVeTtb4B1R5NJVaEkn/V8+u4Xijpp6SFlimp6
    qNHgjlVIgrtLCyxll1NpaT6An6W92mA8HwkyadMeEZJjEDmvE/t/1f5uv//Z
    
    
  • IDML to a script package

    Hey everyone, I was wondering if I can get support.

    I have this Amazing of Kasyan Servetsky script.

    It packages separated several files in packages, which includes:

    INDD

    Fonts in documents Fonts within the folder (folder)

    Instructions.txt

    Links (Folder) Links inside the folder

    In any case of adding this script in a bit of an IDML file follow structure of 2014 to Indesign package?

    Kasyan Servetsky Script are:

    Package for Archive.jsx

    Script for InDesign CS3, CS4 and CS5 - packages all InDesign documents in the selected folder.

    Version 4.0

    April 1, 2011

    Written by Kasyan Servetsky

    // http://www.Kasyan.HO.com.UA

    / / e-mail: [email protected]

    //---------------------------------------------------------------------------------------- ----------------------

    const gScriptName = "PackageForArchive";

    const gScriptVersion = "4.0";

    var myInDesignVersion = Number (String (app.version).split(".") [0]);

    myFolder var is Folder.selectDialog ("select a package folder");.

    If (myFolder == null) exit();

    var myFilelist = [];

    var myAllFilesList = myFolder.getFiles ();

    for (var f = 0; f < myAllFilesList.length; f ++) {}

    var myFile = myAllFilesList [f];

    If (instanceof file myFile & & myFile.name.match(/\.indd$/i)) {}

    myFilelist.push (myFile);

    }

    }

    If (myFilelist.length == 0) {}

    Alert ("No file open.", "no package for the script to archive");

    Exit();

    }

    var myDialogResult = CreateDialog();

    If (myDialogResult == undefined) {}

    Exit();

    }

    If {(myDialogResult.createLogCheckBox)

    WriteToFile (GetDate() + "\r---Script started-" + "-\n");

    WriteToFile ("\rSelected file -" + myFolder.fsName.replace ("/ Volumes /", "") + "\n");

    }

    var myOutFolder = new file (myFolder.fsName + ' / Archive / ');

    VerifyFolder (myOutFolder);

    var myBackUpFolder = new file (myFolder.fsName + ' / BackUp / ');

    VerifyFolder (myBackUpFolder);

    If (myFolder.fsName == myOutFolder.fsName) exit();

    var myCounter = 1;

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

    Progress bar

    If (myInDesignVersion > = 5) {}

    var myProgressWin is new window ('window', 'Package files');.

    var myProgressBar = myProgressWin.add ('progressbar', 12, 12, 350 (24) and 0, myFilelist.length);

    var myProgressTxt = myProgressWin.add ("statictext', undefined, 'Departure package files');

    myProgressTxt.bounds = [0, 0, 340, 20];

    myProgressTxt.alignment = 'left ';

    myProgressWin.show ();

    } / / Progress bar

    for (var i = myFilelist.length - 1; i > = 0; i--) {}

    var myCurrentFile = myFilelist [i];

    var myNewName = GetNameWithoutExtension (myCurrentFile);

    try {}

    myDoc var = app.open (myCurrentFile, false);

    var myDocName = myDoc.name;

    Progress bar

    If (myInDesignVersion > = 5) {}

    myProgressBar.value = myCounter;

    myProgressTxt.text = String ("File-" + myDocName + "(" + myCounter + "de" + myFilelist.length + ") '");

    } / / Progress bar

    UpdateAllOutdatedLinks();

    var MonNouveauDossier = new file (myOutFolder.fsName + "/" + myNewName);

    VerifyFolder (myNewFolder);

    If (myInDesignVersion == 5) {}

    var myPackageOk = myDoc.packageForPrint (MonNouveauDossier, myDialogResult.copyFontsCheckBox, myDialogResult.copyGraphicsCheckBox, false, myDialogResult.updateGraphicsCheckBox, myDialogResult.ignorePreflightErrorsCheckBox, myDialogResult.createReportCheckBox);

    }

    ElseIf (myInDesignVersion > 5) {}

    var myPackageOk = myDoc.packageForPrint (MonNouveauDossier, myDialogResult.copyFontsCheckBox, myDialogResult.copyGraphicsCheckBox, false, myDialogResult.updateGraphicsCheckBox, myDialogResult.includeHiddenLayers, myDialogResult.ignorePreflightErrorsCheckBox, myDialogResult.createReportCheckBox);

    }

    If (myPackageOk & & myDialogResult.createLogCheckBox) {}

    WriteToFile (myCounter + "-" + myCurrentFile.fsName.replace ("/ Volumes /", "") + ""-Ok\n "");

    myCounter ++;

    CatchMissingLinks (myDoc);

    }

    myDoc.close (SaveOptions.NO);

    var myMoved = MoveFile (myCurrentFile, myBackUpFolder);

    If (! myMoved & & myDialogResult.createLogCheckBox) WriteToFile (myCounter + "-ERROR - cannot move-'" + myCurrentFile.fsName.replace ("/ Volumes /", "") + "-" to backup folder\n");

    }

    {catch (e)}

    If (myDialogResult.createLogCheckBox) WriteToFile (myCounter + "- ERROR -" + myCurrentFile.fsName.replace ("/ Volumes /", "") & "-" e + "\n");

    myCounter ++;

    continue;

    }

    } / / end of loop

    Progress bar

    If (myInDesignVersion > = 5) {}

    myProgressWin.close ();

    } / / Progress bar

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;

    If (myDialogResult.createLogCheckBox) WriteToFile ("over - \r---Script" + GetDate() + "-\r\r");

    Alert ("done.", "package for the script to archive");

    // ------------------------------------------------- FUNCTIONS -------------------------------------------------

    function UpdateAllOutdatedLinks() {}

    for (var j = myDoc.links.length - 1; j > = 0; j-) {}

    myLink var = myDoc.links [j];

    If (myLink.status == LinkStatus.linkOutOfDate) {}

    try {}

    myLink.update ();

    }

    {catch (e)}

    If (myDialogResult.createLogCheckBox) WriteToFile ("UPDATED LINK - \tCAN'T" + myLink.name + "\n");

    }

    }

    }

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function WriteToFile (myText) {}

    myFile = new File ("~/Desktop/Package for Archive Report.txt");

    If {(myFile.exists)

    myFile.open ("e");

    myFile.seek (0, 2);

    }

    else {}

    myFile.open ("w");

    }

    myFile.write (myText);

    myFile.close ();

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function GETDATE () {}

    var myDate = new Date();

    If ((myDate.getYear () - 100) < 10) {}

    var myYear is '0' + new String ((myDate.getYear () - 100));.

    } else {}

    var myYear = new String ((myDate.getYear () - 100));

    }

    var myDateString = (myDate.getMonth () + 1) + "/" + myDate.getDate () + "/" + myYear + "" + myDate.getHours () + ":" + myDate.getMinutes () + ":" + myDate.getSeconds ();

    Return myDateString;

    }

    //---------------------------------------------------------------------------------------- ----------------------

    The functions GetNameWithoutExtension and VerifyFolder have been drafted on the basis of the Bob Stucky

    extensions of prototypes of the object found in his library of Script

    function GetNameWithoutExtension (myFile) {}

    var myFileName = myFile.name;

    myIndex = myFileName.lastIndexOf var ('. ');

    If (myIndex >-1) {}

    myFileName = myFileName.substr (0, myIndex);

    }

    Return myFileName.

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function VerifyFolder (myFolder) {}

    If (! myFolder.exists) {}

    var myFolder = new Folder (myFolder.absoluteURI);

    var myArray1 = new Array();

    While (! myFolder.exists) {}

    myArray1.push (myFolder);

    myFolder = new Folder (myFolder.path);

    }

    myArray2 = new Array();

    While (myArray1.length > 0) {}

    myFolder = myArray1.pop ();

    If (myFolder.create ()) {}

    myArray2.push (myFolder);

    } else {}

    While (myArray2.length > 0) {}

    myArray2.pop.remove ();

    }

    throw the "creating folders failed."

    }

    }

    }

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function CatchMissingLinks (myDoc) {}

    var myMissingLinks = new Array;

    myLinks var = myDoc.links;

    myHeader var = false;

    for (var i = 0; i < myLinks.length; i ++) {}

    If (myLinks [i] .status == LinkStatus.linkMissing) {}

    var myLinkName is myLinks [i] .name;.

    If (! myHeader) {}

    WriteToFile ("\tMISSING LINKS:\r");

    myHeader = true;

    WriteToFile ("\t" + myLinkName + "\r");

    }

    }

    }

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function CreateDialog() {}

    mySettings var = GetSettings();

    var myDialog is new window ("dialog", "All for the Archive");.

    myDialog.orientation = "column";

    myDialog.alignChildren = 'top';

    var myFolderPanel = myDialog.add ("panel", undefined, ':'); package folder

    myFolderPanel.alignment = 'bridge '.

    var myFolderPanelStTxt1 = myFolderPanel.add ('statictext', not defined, myFolder.fsName.replace ("/ Volumes /", ""));

    var myFolderPanelStTxt2 = myFolderPanel.add ('statictext', undefined, ' (Found ' + myFilelist.length + ' files)');

    var myCheckBoxPnl = myDialog.add ('panel', undefined, "Options");

    myCheckBoxPnl.orientation = "row";

    var myCheckBoxGroup1 = myCheckBoxPnl.add ('group');

    myCheckBoxGroup1.orientation = "column";

    myCheckBoxGroup1.alignChildren = 'left ';

    var myCheckBoxGroup2 = myCheckBoxPnl.add ('group');

    myCheckBoxGroup2.orientation = "column";

    myCheckBoxGroup2.alignChildren = 'left ';

    var myCopyFontsCheckBox = myCheckBoxGroup1.add ('checkbox', undefined, 'Copy the fonts');

    myCopyFontsCheckBox.value = mySettings.copyFontsCheckBox;

    myCopyFontsCheckBox.helpTip = "If checked, fonts used in the document in the package folder copies."

    var myCopyGraphicsCheckBox = myCheckBoxGroup1.add ('checkbox', undefined, 'Copy linked graphics');

    myCopyGraphicsCheckBox.value = mySettings.copyGraphicsCheckBox;

    myCopyGraphicsCheckBox.helpTip = "If checked, copies graphics files in the package folder.";

    var myUpdateGraphicsCheckBox = myCheckBoxGroup1.add ('checkbox', undefined, 'Update of the graphics');

    myUpdateGraphicsCheckBox.value = mySettings.updateGraphicsCheckBox;

    myUpdateGraphicsCheckBox.helpTip = "If checked, updates graphic links to the package folder.";

    If {(myInDesignVersion > 5)

    var myIncludeHiddenLayersCheckBox = myCheckBoxGroup1.add ('checkbox', undefined, 'Include hidden layers');

    myIncludeHiddenLayersCheckBox.value = mySettings.includeHiddenLayers;

    myIncludeHiddenLayersCheckBox.helpTip = "If checked, copy fonts and layer links hidden in the package. ';

    }

    var myIgnorePreflightErrorsCheckBox = myCheckBoxGroup2.add ('checkbox', undefined, "Ignore preflight errors");

    myIgnorePreflightErrorsCheckBox.value = mySettings.ignorePreflightErrorsCheckBox;

    myIgnorePreflightErrorsCheckBox.helpTip = "If checked, ignores preflight errors and proceeds to packaging." If not, cancel the package when exist errors. « ;

    var myCreateReportCheckBox = myCheckBoxGroup2.add ('checkbox', undefined, 'Create a report');

    myCreateReportCheckBox.value = mySettings.createReportCheckBox;

    myCreateReportCheckBox.helpTip = "If checked, creates a report of package which includes printing instructions, print settings, font lists, links, and inks required and other information."

    var myCreateLogCheckBox = myCheckBoxGroup2.add ('checkbox', undefined, 'Create a log on the desktop file');

    myCreateLogCheckBox.value = mySettings.createLogCheckBox;

    myCreateLogCheckBox.helpTip = "If checked, creates a log file on the desktop that includes error messages;

    var myOkCancelGroup = myDialog.add ('group');

    myOkCancelGroup.orientation = "row";

    myOkCancelGroup.alignment = 'center ';

    var myOkBtn = myOkCancelGroup.add ('button', undefined, 'Go', {name: 'ok'});

    var myCancelBtn = myOkCancelGroup.add ('button', undefined, 'Quit', {name: "Cancel"});

    var myShowDialog = myDialog.show ();

    If (myShowDialog == 1) {}

    Ditto var = {};

    myResult.copyFontsCheckBox = myCopyFontsCheckBox.value;

    myResult.copyGraphicsCheckBox = myCopyGraphicsCheckBox.value;

    myResult.updateGraphicsCheckBox = myUpdateGraphicsCheckBox.value;

    If (myInDesignVersion > 5) myResult.includeHiddenLayers = myIncludeHiddenLayersCheckBox.value;

    myResult.ignorePreflightErrorsCheckBox = myIgnorePreflightErrorsCheckBox.value;

    myResult.createReportCheckBox = myCreateReportCheckBox.value;

    myResult.createLogCheckBox = myCreateLogCheckBox.value;

    myResult.folder = myFolder;

    app.insertLabel ("Kas_" + gScriptName, + gScriptVersion, myResult.toSource ());

    }

    return same;

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function GetSettings() {}

    var mySettings = eval (app.extractLabel ("Kas_" + gScriptName + gScriptVersion));

    If (mySettings == undefined) {}

    mySettings = {copyFontsCheckBox:false, copyGraphicsCheckBox:true, updateGraphicsCheckBox:true, includeHiddenLayers:true, ignorePreflightErrorsCheckBox:true, createReportCheckBox:false, createLogCheckBox:true};

    }

    return of mySettings;

    }

    //---------------------------------------------------------------------------------------- ----------------------

    function {MoveFile (myFile, MyAccount)

    If (! instanceof file myFile |! myFolder instanceof file |! myFile.exists:! myFolder.exists) return false;

    var myMovedFile = new File (myFolder.absoluteURI + "/" + myFile.name);

    If (File.fs == "Windows") {}

    var myVbScript is 'Set fs = CreateObject ("Scripting.FileSystemObject") \r';.

    myVbScript += ' fs. MoveFile ' "+ myFile.fsName + '" ', ' "+ myFolder.fsName + ' \" ' ';

    app.doScript (myVbScript, ScriptLanguage.visualBasic);

    }

    Else if (File.fs == "Macintosh") {}

    If (myFolder.fsName.match ('Desktop')! = null) {}

    var myMacFolder = myFolder.fsName.replace (/ \ / / g, ":");)

    var myMacFile = myFile.fsName.replace (/ \ / / g, ":");)

    var myAppleScript = 'tell application "Finder" \r ";

    myAppleScript += ' defines MyAccount in a reference to the folder (name of the startup disk & "' + myMacFolder +" "") \r';

    myAppleScript += ' set a reference to the file myFile (name of the startup disk & "' + myMacFile +" "") \r';

    myAppleScript += 'say myFile\r';

    myAppleScript += 'move to myFolder\r ";

    myAppleScript += 'end tell\r;

    myAppleScript += 'end tell\r;

    }

    ElseIf (myFolder.fsName.match ("Documents")! = null) {}

    var myMacFolder = myFolder.fsName.replace (/ \ / / g, ":");)

    var myMacFile = myFile.fsName.replace (/ \ / / g, ":");)

    var myAppleScript = 'tell application "Finder" \r ";

    myAppleScript += ' defines MyAccount in a reference to the folder (name of the startup disk & "' + myMacFolder +" "") \r';

    myAppleScript += ' set a reference to the file myFile (name of the startup disk & "' + myMacFile +" "") \r';

    myAppleScript += 'say myFile\r';

    myAppleScript += 'move to myFolder\r ";

    myAppleScript += 'end tell\r;

    myAppleScript += 'end tell\r;

    }

    else {}

    var myMacFolder = myFolder.fullName.replace(/\//, "") .replace (/ \ / / g, ":");)

    var myMacFile = myFile.fullName.replace(/\//, "") .replace (/ \ / / g, ":");)

    var myAppleScript = 'tell application "Finder" \r ";

    myAppleScript += ' set MyFolder to folder ' "+ myMacFolder +" "\r";

    myAppleScript += ' myFile value document file ' "+ myMacFile +" "\r";

    myAppleScript += 'say myFile\r';

    myAppleScript += 'move to myFolder\r ";

    myAppleScript += 'end tell\r;

    myAppleScript += 'end tell\r;

    }

    app.doScript (myAppleScript, ScriptLanguage.applescriptLanguage);

    }

    If {(myMovedFile.exists)

    Returns true;

    }

    else {}

    Returns false;

    }

    }

    Incredibly, he is to replace calls to packageForPrint by the new CC2014 call:

    var includeIdml = true;

    var myPackageOk = myDoc.packageForPrint (MonNouveauDossier, myDialogResult.copyFontsCheckBox, myDialogResult.copyGraphicsCheckBox, false, myDialogResult.updateGraphicsCheckBox, myDialogResult.ignorePreflightErrorsCheckBox, myDialogResult.createReportCheckBox, includeIdml);

  • Political fault does not-11 g.

    Hi all

    I try to have political fault working to redirect the messages rejected to/tmp/rej_msgs file but when sending a wrong message, he is still saved in the default directory (< AIA_HOME > .../rejmsgs /...).

    What Miss me? Thank you.

    Here are my files:

    error - bindings.xml (along composite.xml):

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < faultPolicyBindings version ="2.0.1"xmlns =" http://schemas.Oracle.com/BPEL/faultpolicy "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " >

    < service faultPolicy = "RejectedMessages" >

    < name > MyCompositeName < / name >

    < / service >

    < / faultPolicyBindings >

    error - policies.xml (along composite.xml):

    <? XML version = "1.0" encoding = "UTF-8"? >

    < faultPolicies >

    < faultPolicy version = "2.0.1" id = "RejectedMessages" >

    < condition >

    " < faultName = xmlns:rjm ' http://schemas.Oracle.com/SCA/rejectedmessages "" "

    name = "rjm:MyCompositeName" >

    < condition >

    < Ref action = "writeToFile" / >

    < / condition >

    < / faultName >

    < / conditions >

    < action >

    < Code action = "writeToFile" >

    < fileAction >

    < location >/tmp/rej_msgs < / location >

    emp_%ID%_%timestamp%.XML < Filename > < / name of the file >

    < / fileAction >

    < / action >

    < / actions >

    < / faultPolicy >

    < / faultPolicies >

    added to the composite.xml (after < / service >):

    < name = "oracle.composite.faultPolicyFile property" > fault - policies.xml < / property >

    < name = "oracle.composite.faultBindingFile property" > fault - bindings.xml < / property >

    then composite deployed

    then restarted the server

    Thank you

    Solved! Instead of 'MyCompositeName', I replaced it with the name of the partnerLink, and now it's ok!

    The block is for partnerlinks service and not to any block of for any reference partnerlink.

    error - bindings.xml (along composite.xml):

    "http://schemas.Oracle.com/BPEL/faultpolicy" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ".

    MyServicePartnerLinkName

    error - policies.xml (along composite.xml):

    http://schemas.Oracle.com/SCA/rejectedmessages ".

    name = "rjm:MyServicePartnerLinkName" > ""

    / tmp/rej_msgs

    emp_ % ID % _ % % timestamp. XML

  • How HFM process records

    On a learning curve, I'm playing with the consolidation rules and debugging.

    In order to understand the functioning of HFM, I added the following rule of consolidation, with the appropriate WriteToFile sub().

    Void Consolidate()

    Dim MyDataUnit

    Dim lNumItems

    Set MyDataUnit = HS. OpenDataUnit("")

    lNumItems = MyDataUnit.GetNumItems

    for i = 0 to lNumItems-1

    Call MyDataUnit.GetItem (i, strAccount, strICP, strCustom1, strCustom2, strCustom3, strCustom4, dData)

    Call WriteToFile ("Line 1;" & lNumItems & ";" & i & ";" & strAccount & ";" & strICP & ";" & strCustom1 & ";" & strCustom2 & ";" & strCustom3 & ";" & strCustom4 & ";" & dData)

    next

    EndSub

    After running a consolidation my result file looks like this

    Line 1; 258; 1; Sales; [ICP no]; P3000_Phones; Comma_Phone_Stores; Retail_Direct; [None]; 15887.488716; 08/08/2013-13:36:40

    Line 1; 258; 2; Sales; [ICP no]; Comma_PDAs; Electronic_City; National_Accts; [None]; 19239.0919236; 08/08/2013-13:36:40

    Line 1; 258; 3; Sales; [ICP no]; Comma_PDAs; Radio_Central; National_Accts; [None]; 21959.2720157; 08/08/2013-13:36:40

    Line 1; 258; 4; Sales; [ICP no]; Comma_PDAs; Western_Electronics; National_Accts; [None]; 24728.9099251; 08/08/2013-13:36:40

    Line 1; 21; 0; Wages; [ICP no]; [None]; [None]; [None]; [None]; 5997.2854618; 08/08/2013-13:36:40

    Line 1; 258; 5; Sales; [ICP no]; Comma_PDAs; Freds; National_Accts; [None]; 4955.7155768; 08/08/2013-13:36:40

    Line 1; 21; 2; Legal; [ICP no]; [None]; [None]; [None]; [None]; 237.3450281; 08/08/2013-13:36:40

    Line 1; 21; 3; Housekeeping; [ICP no]; [None]; [None]; [None]; [None]; 84.0907017; 08/08/2013-13:36:40

    Line 1; 258; 6; Sales; [ICP no]; Comma_PDAs; Power_Price; Distributor_Sales; [None]; 13046.6934218; 08/08/2013-13:36:40

    ...

    My first entity has (INumItems) 258 records, 21 second.

    I expect the system to work through each feature in a sequential order, but I see them intertwined. So my first question

    (1) is due to a parallel processing?

    the numbers I have loaded are different. For example, for the first line, I loaded the amount 15887.48871 and not 15887.488716

    (2) where is this 6 coming from?

    Thanks in advance for any idea,

    Patrick

    Yes, I could say, HFM uses a PARALLEL treatment.  It's difficult handwriting of newspapers.  I think that the treatment is shared between the entities, although I have not really dug too deep into it.  You will need to modify the writetofile routine to write a separate log for each entitiy confirm.

    As that 6 in the end, you are course that is has not been responsible for this way in the system?  In addition, it is the routine of consolidation, which means that it is to translate.  Is it possible that is the result of exchange rates?

    Go to a grid, explore the this intersection, right click and click on information of the cell.  At the bottom it will show you the data displayed, stored data and data full resolution.  The last two are probably the 6 extra.

  • Just want to Bold and Italic words

    Hello

    I use this code

    var doc = app.activeDocument;

    var a = doc.stories.everyItem ().paragraphs.everyItem () .getElements ();

    var reportFilePath = doc.fullName.absoluteURI.replace (/ \.indd$ / i, ".txt");

    var len = per .length;

    for (var i = 0; i < par.length; i ++)

    {

    fonts = var. appliedParagraphStyle.name by [i];

    font1 = var. appliedFont.fullName by [i];

    var AllWords = mentioning by [i];

    var length = AllWords.length;

    for (var q = 0; q < length; q ++)

    {

    var size = .fontStyle AllWords [q];

    If (size == "Bold" | size == "Bold Italic" | size = "Italic")

    {

    WriteToFile (AllWords [q] .silence, reportFilePath);

    }

    }

    }

    function {WriteToFile (text, reportFilePath)

    = new File (reportFilePath);

    leader. Encoding = "UTF-8";

    If (file.exists) {}

    leader. Open ("e");

    leader. Seek (0, 2);

    }

    else {}

    leader. Open ("w");

    }

    file.writeln (Text);

    leader. Close();

    }

    I don't want that the bold italic words another number and all

    Some suggest

    Hello

    Include some filtering before the final execution - if passed ==> continue

    that is to say:

    //...
    for(var q=0;q
    

    Jarek

    PS: and make the correction of vandy

  • How to assign an exchange rate

    Dear gurus,

    I have a problem a bit on exchange rates.

    I want to calculate AvePLRates of PLRate / 12, which, after that, some movements should multiply by AvePLRate. So my syntax is as below:

    Void calculate

    IF HS. Value.Member = '< Parent currency >' or Hs.Value.IsTransCur = TRUE then
    IF HS. Period.Member = 'Dec' Then
    HS = strAveRate. GetRate ("A #PLRate")
    Call WritetoFile ("strAveRate =" & strAveRate)
    HS. EXP 'a #AvePLRate is a #PLRate. "
    Call WriteToFile ("GetRate AvePLRate =" & HS. GetRate("A#AvePLRAte"))
    END IF
    END IF

    End Sub

    No error generated. strAveRate is succedded to recover with the exact figure, but when I want to assign the same character to a different exchange rate, it did not work :( For the second WritetoFile does not have an exact figure.
    This syntax must be dynamic, because I have more than 1 combination of exchange rate. That is to say. AED to USD, RMB to USD, IDR to SGD, etc..

    Can anyone help with this?

    Thank you
    Anna

    Dear Anna,
    The code above, shows a design problem. Calculate (HS). Value.IsTransCur is performed after completed translations. Therefore, even if you can calculate a correct rate, this rate would be not applied in Translate().

    What you need is to run the code base using HS level. Exp like this:

    HS. Exp ' a = #AvePLRate "& SUM_OF_RATES_UP_TO_CURRENT_PERIOD &" / HS. " Period.Number ".

    Of course you must first calculate the SUM_OF_RATES_UP_TO_CURRENT_PERIOD variable, making a loop from 1 to the current period (HS. Period.Number), using HS. GetCell() to get your account (A #PLRate) of rate data.

    Kind regards
    Kostas

    Published by: Kostas n. 5 June 2013 17:13

  • Can you crrect my script?

    Hello world

    I had this script:

    //---------------------------------------------------------------------------------------- -------------------

    var paper = app.activeBook,
    _content = [];
    overlap = [];
    for (var I = book.bookContents.length - 1; i > = 0; i--)
    {
    _content.push (book.bookContents [i] .name + "\t" + (book.bookContents[i].documentPageRange.replace(/-[^-]+$/g,"" ")) +"\r");
    If (book.bookContents [i] .documentPageRange is book.bookContents [i - 1] .documentPageRange)
    {
    overlap.push (book.bookContents [i] .name + "\r" book.bookContents [i - 1] .name + "\t" + book.bookContents [i - 1] .documentStartPage + book.bookContents [i] .documentPageRange "\t");
    }
    }
    Alert (overlap. Reverse())

    Alert (_content);
    WriteToFile (_content, overlap);
    function WriteToFile (text) {}
    file = new File ("~/Desktop/Book and page number.txt content");
    leader. Encoding = "UTF-8";
    leader. Open ("w");
    leader. Write (Text);
    leader. Close();
    leader. Execute();
    }
    //---------------------------------------------------------------------------------------- -------------------

    goal is to get the report of contents of book

    and tell me overlop page numbers

    I got the text file:

    ======================================================

    13 notes account.indd 28

    Information.indd company 14 27

    Cash Statement.indd 12 26

    11 equity change.indd 25

    10 profit and loss.indd 20

    09 19 Income Statement.indd

    08 18 auditor Report.indd

    , Report.indd 07 directors' 17

    06 12 CG Report.indd

    , 05 MD and A.indd 7

    03 6 financial Highlight.indd

    Statement.indd of the President 04 3

    02 2 Summary.indd

    01 Contents.indd 1

    ======================================================

    the sequence is backwards

    ======================================================

    (1) communicate still me, the book has overlop page, even the book number has no page number on overlop

    (2) if the file overlop for more than 2 pages or more than two files have overlop page numbers will not fix the alert (overlap.reverse ()) in the report

    (3) the text of the report file has a comma at the beginning of each line

    (4) the sequence is backwards

    I expect the alert (overlap.reverse ()) do not arise if book has no duplication of page number

    You can solve this problem?

    Harvey

    Hi Harvey.

    Try this,

    var book = app.activeBook,  array1 = [], array2 = [],  array3 = [],  _content = "", _overlap = "";
    for(var i =0;i
    

    Kind regards

    Cognet

Maybe you are looking for

  • HP Officejet Pro 8620: Wireless connection is 'hogging' my bandwidth on router

    Until this week, I have always connected my computer to my router via an ethernet cable direct. But recently I had to move my router to a different location so decided to use the wireless on my printer to connect to my computer (laptop). When I notic

  • TaskHost.exe crash, repeating the dllhost.exe crashes (Win7 x 64 SP1)

    It has been that rampant in me for over a week. I login and immediately taskhost.exe accidents, then repeat accidents of dllhost.exe. The fault for both module is always esent.dll. Not to mention that repetitive crash dialogs, there are also other pr

  • How to create a static library

    Anyone know how to create a static library using QNX Momentics 10.2? Is it possible to create a static library which contains the qml file? I found this obsolete article: https://supportforums.blackberry.com/t5/Native-Development-Knowledge/How-to-cre

  • Why HP inkjet 4500 old papers?

    If I am printing 2-5 x 7, participants must spring on a leaf, or 4 - 3 x 5 on a single sheet.  If I ask more than one impression that it prints on a separate page.  These not only my paper but my ink waste. And he needs to preview them before printin

  • OOB management tab is not available in CAM

    Hi all I have problem in cisco CAM. We have CAM in HA mode but when I connect the CAM it is no OOB management in the web console menu, but I have another version same CAM in vmware which is in stand-alone mode, the option (OOB management) is availabl