I'm using 7z to zip up some files in SSIS:
This works, but I need the date to be in the zip. So I tried this:
In the command line, this works perfect. In SSIS, it crashes. This tells me that SSIS has issues calling command variables. How do I get that date in there? It is the current date (date of execution) I'm looking for.
Thanks.
This will depend on the formatting you want to use for your string, but the way you add dynamic elements to your SSIS components is via the Expressions group in each item's Properties. With you Execute Process Task transformation selected:
Click in the Expressions box - which will be empty - in properties and then click the ... icon that appears to the right.
Click in the Property dropdown and select Arguments.
Click the ... icon.
Enter your expression, checking it works by clicking Evaluate Expression.
That's it! Click OK on everything and try to run your package.
You can get help all over the internet on how to build that expression. If you just want yyyy-mm-dd then left((DT_WSTR,50)getdate(),10) is what you need for the date part and you can fill in the rest.
Remember that some characters need a \ before it as they hold special meaning and need to be escaped. So if you wanted to return \\server\share your expression would be "\\\\server\\share" etc.
Just to add, it looks like you are adding your date to your filename in dd-mm-yyyy format? I would advise against this as it causes confusion between US and UK systems and when you have yyyy-mm-dd Score Backup.zip as your filename they will sort correctly in Windows Explorer, whereas with dd-mm-yyyy all the files for the first of each month will be at the top, regardless of month or year.
Related
I am using SVN on Windows 10 machine. I want to list Author, Date and Comment of all commits within a date range. So I want to report 1 line per commit and each line has 3 columns. How can I do that?
I want to be able to copy that report and paste in Excel.
Thanks
Short answer
Nohow. You can't change format of log output in pure SVN, you can only disable (-q option) log-message in separate line(s)
Longer answer
Because svn log have always single (documented) format of output and -r option accept date as parameters you can write appropriate log-command and post-process results (in standard human-readable form or in xml-output)
Long answer
If generating different custom reports from SVN-repositories is your long-running regular task, you can to think (at least) about using Mercurial (with hgsubversion) as interface for processing data. With HG you'll have
- transparent access to original SVN-repos
- full power of templating and revsets for extracting and manipulating of data for your needs and requirements
What you are looking for is called the Subversion Webview. These are third party mostly free to use web view of your repository where you can filter out commints like the following:
You can either filter there in the view or copy it in excel and add a filter yourself.
Hope this helps.
I’m not sure if this is really an ask, but I thought I’d try anyway.
I’m trying to format a file name so that it shows the date in its title. Sound easy, right?
I can’t use the DATE text macro, however, because the / creates new folder paths (which would be great if the dates were in a different order than they are but... what can you do).
However, when I try to use a modifier (as specified by Apple), the format ‘eats’ the first number.
I’m in my phone right now so I can’t show results but an example:
Template for the file’s name:
HelloWorld-___DATE:bundleIdentifier___.swift
What I expect:
HelloWorld-29-03-2019.swift
What I am getting:
HelloWorld--9-03-2019.swift
Any ideas what’s going on or should I just take the L?
I need to call an other report with parameters from my report by report builder 12. But it seems to be, there is no button for calling an other one. Is there any way to call second report from the first one?
Such a functionality is called drill down (so that you'd be able to research it yourself, if you want).
In the old Reports 6i, you could have done it by creating a button. In modern Reports version, you'll have to use a hyperlink - it can be found within the "Web" settings, and looks like this:
http://your_server:port/reports/rwservlet?userid=scott/tiger#orcl+report=your_report.rdf+
destype=cache+desformat=html+par_deptno=&deptno
Interesting part is the very end of it, which shows how to pass a parameter from this report (which contains the &deptno value) to another report (which expects deptno value to be passes into the par_deptno parameter).
First stop the report server. (OC4J instance also for 10g)
Search for CGICMD.DAT file in Developersuite home. (for 10g It’s located at folder. And for 11g D:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\servers\WLS_REPORTS\applications\reports_11.1.2\configuration)
Open the CGICMD.DAT file and go to bottom line and add the bellow lines and modify as your value.
; hrs: userid=test/password#orcl server=rep_server desformat=pdf destype=cache paramform=no %*
(Where first userid, report server name, report destination format, destination type and no parameter form.)
Save and close the file.
Now open the report which will have the link.
Select the data field and press F11 to go code editor and add the bellow code before
return (true);
SRW.SET_HYPERLINK('http://SERVER_NAME:8889/reports/rwservlet?hrs+report='D:\ID_CARD_ALL.rep+EMPID='||:EMP_ID);
(Change the report server url as you have, report name and parameter if you have)
Compile and save the reports.
Now Run the report server and run your report…
LOVE U SETAREH
I need to create a PDF with a date field that displays dates in the format dd.mm.yyyy. This field must be validated and should also accept inputs in other formats.
For example, users should be able to input dates in the form dd.mm.yy, which will then be expanded to dd.mm.20yy (MS Office apps like Excel do this).
Alternatively, selecting multiple valid formats would be an acceptable solution.
What currently happens:
If the date format of the field is set to dd.mm.yyyy, dd.mm.yy is rejected.
If the date format of the field is set to dd.mm.yy, dd.mm.yyyy is accepted (but formatted to dd.mm.yy).
The last behaviour is almost what i need, just with the wrong format.
Is there a way to do this without custom Javascript? If not, is there a way to still use the built-in formatting or do i have to rewrite everything in JS?
Unfortunately this is not achievable with Acrobat's built-in formatting.
One thing to add to your second bullet point: it trims the date down to .yy when you exit the field, but it still retains all four digits. When you click into the field, it will revert back to being .yyyy. That may or may not matter depending on how you're using it.
Regarding a custom validation, a quick Google search will yield an abundance of Javascript date validation scripts. Something like this could probably be quickly repurposed for your application.
Xcode's auto-completion is often getting in my way by giving me argument placeholders when I already have them. Here's an example:
I want to change that second MoveToPoint to AddLineToPoint, so I delete part of the name, and hit control + space for the Show Completions command. I get something like:
You see the annoyance. I tab complete the name, but now I have to delete the 3 arguments, the commas, and the parentheses. This kind of thing annoys me and throws off my flow when writing code.
Ideally I'd like a way to delete these placeholders with one command, or have a separate auto-complete command, so along with Show Completions (control + space), I could bind something like Show Completions without Placeholders. Does anyone know how to do that?
XCode does support this actually. They call it "Select Previous Completion". Check it out here (under Code Sense).
You essentially just hit ⌃> (hold control and press >) for XCode to choose your previous completion. It think it only works well though if the new method you're calling takes the same number of arguments as the previous one.
Hope this helps