How can I pass a date/time parameter to my report via url. I only have access to the DDMMYY format of the date. I know I should tell SSRS what language to use with the
rs:ParameterLanguage=de-DE
But I dont know what language DDMMYY is.
http://<>/ReportServer/Pages/ReportViewer.aspx?/<>/<>/report¶1=801¶2=1000011&DATE=070415&rs:ParameterLanguage=???
Oké, I guess this is not possible, but I added a hidden text parameter to the report so I could convert is with custom vbscript. and let the query decide what to use as the date parameter.
Related
I want to filter csv email attachments I extract from gmail via ConsumeIMAP by their file name. I am having trouble with what syntax to use when I am configuring RouteonAttributes processor.
I was able to extract the csv file from gmail by configuring RouteonAttributes to
fetchcsv | ${filename:contains('.csv')}
but when I try to specify the filename
"${filename:contains('Threat_-_SQL_Injection_-_Rule*')}"
it always routes to unmatched. The file name is Threat_-_SQL_Injection_-_Rule-2019-06-29. The date following "Rule-" will be constantly changing as well depending on the date it was sent. I would also need to write a route to property name for the file "Threat_-_Vulnerability_Scanner_-_Rule-2019-06-28". Any help with the configuration would be appreciated.
You can use startsWith instead of contains as -
${filename:startsWith('Threat_-_SQL_Injection_-_Rule')}
This will match for any file that starts with "Threat_-_SQL_Injection_-_Rule" string. This means, date part on your file can vary.You can refer to Apache Nifi Expression Language guide for more details
A simpler solution would be to use
"${filename:contains('Threat_-_SQL_Injection_-_Rule*')}"
like you did earlier but drop the "*"
"${filename:contains('Threat_-_SQL_Injection_-_Rule')}"
I'm trying to use a button which opens an email with pre populated information. But require variables from page elements.
so for example P45_DATE get the update date and P45_DATA gets the data.
I tried different element identifiers like : , & or #. but if used nothing gets return upto the first identifier.
mailto:test#test.com&cc=someoneelse#test.com?Subject=Extension report for &P45_DATE. &body=Please see Extension below. &P45_DATA
Is this even possible
Oracle 11g2
apex 4.2.5.00.08
many thanks
Depends on where you are defining this string and if you want client or session state values.
If as part of JavaScript expression, you might use something like:
'mailto:test#test.com&cc=someoneelse#test.com?Subject=Extension report for '+$v('P45_DATE')+'&body=Please see Extension below. '+$v('P45_DATA')
Bear in mind this isn't escaping the data. Also check to see if any errors are appearing in the JavaScript console.
I have a probleme with date picker I have already created controllers with read/write actions and views using EF everything was OK
Till I have need to create a controller with a modelView so I chosed an empty controller and I created the views by myself
The problem is when I use datepicker with dd/MM/yy it is shown OK but when I check the value sent to the server it's null if day is >12
I tried to introduce 02/19/2008 it accepts it in the server it is sent as 19/02/2008
I didn't understand why
I try to set globalization culture and uiculture to en-US en-GB fr-FR nothing work
Is there a way to specify how date picker parse the date( I already used the datepicker.parseDate)
Need your help please
You could specify the desired format when creating the datepicker:
$('#datepicker').datepicker({ dateFormat: 'dd/mm/yyyy' })
Now you should also make sure that your server uses the same format for parsing the date either by specifying a culture or you could also write a custom model binder for the DateTime type.
I had that problem, and solution was putting globalization information in web.config.
like this: <globalization culture="sr-Latn-RS"/>
Just check that you place that in <system.web>.
I'm using SSRS 2005 and I passed through the URL parameters to my report, but I only accept the first parameter and the second not because they are cascading, meaning that the parameter SecondAge depends on FirstAge.
How I deal with or can not do?
This is the URL I wrote.
http://localhost/ReportServer/Pages/ReportViewer.aspx%2fMyFolder%2fMyReport&rs%3aparameters=false&rs%3aCommand=Render&FirstAge=2010&SecondAge=2011
Thanks
Create a URL request like:
http://localhost/Reportserver?/MyFolder/MyReport&rc:Parameters=false&rc:LinkTarget=main&rs:Command=Render&rs:Format=HTML4.0&FirstAge=2010&SecondAge=2011
(More documentation at http://msdn.microsoft.com/en-us/library/ms152835.aspx)
I have a ruby model that contains a date attribue which I'd like to be able to pass in as a parameter in the format dd/MM/yyyy.
However, my sqlite3 db stores the data in yyyy-MM-dd format so when a date like 20/10/2010 gets passed in, it will not be read to the database.
I am using the Sinatra framework and using haml for the markup creation.
Do I need to write a helper that takes the date string and converts it to the correct format for the db? Or can I set a format type on the models attribute?
Thanks.
You shouldn't need to worry about the database's internal representation of the date; DataMapper is there to do that for you. You just need to make sure you are passing it a valid Date object.
Check out http://ruby-doc.org/core/classes/Date.html for methods available to the Date class. For your example:
require 'date'
mydate = '20/10/2010'
mydate_obj = Date::strptime(mydate, '%d/%m/%Y')
puts "#{mydate_obj}" # prints 2010-10-20
I don't know if this can help, some time ago I had the same problem: I was using Rack::Utils.escape_html(params[:datetime]) to escape html on user input and if I typed a date in a form field like this "25/02/2013" it would be sent to the DataMapper model like this: 16/02/2013 (with escaped html codes) so it was saving it the wrong way (day ended up being the hour or something similar).
Maybe you are also using "escape_html" method in an awkward way?