Get day, month, year, hour, minutes and seconds in XSLT 3.0 - xslt-3.0

In my XSLT file, I need to record the current timestamp on which I am hitting the backend database in below XML tags
<DateTimeOrdered>
<Day>3</Day>
<Month>6</Month>
<Year>2022</Year>
<Hour24>7</Hour24>
<Minute>7</Minute>
<Second>7</Second>
<MilliSeconds>150</MilliSeconds>
</DateTimeOrdered>
In C# it's very easy to achieve, can someone please suggest me how this can be achieved in the XSLT file?

I am able to find the solution.
In my Azure APIM Inbound policy, I want to post the current timestamp while hitting the backend URL.
So initially I have declared variables like below
enter image description here
Post that declaration I have used those variables like below
enter image description here
and at the end I used the variable like below
enter image description here

Related

Facets count limit 5 in Azure cognitive search site autogenerated

first of all I am not familiar with javascript but I saw the easy way azure search generator offers a portal with search features and I used it to make a search portal for more than 100K files. Everything is fine except that I'm facing the same issue of the limit of 5 facets mentionned in this old post (Facet count in Azure cognitive search (Automagic)). Using search explorer I can see the request url needed (example : facet=category,count:10 / https://xxxxxsearch.search.windows.net/indexes/azureblob-index/docs?api-version=2020-06-30-Preview&search=*&facet=category%2Ccount%3A10) but can't figure out where to put this in search app hmtl page or how I can parse it to automagic to consider this.
thank you Gaurav for your feedback. no, that part is clear for me. Please let me show an example of what I want to achieve.I generated a search a portal using AzSearchGenerator and for this sample I have 7 files with the same metadata key but with 7 differents values (blob-content-files). I am seeking a way to override the limit of 5 checkboxfacets in the search portal generated (check here : portal-search-generated). Is there a way to change this by including the request url with count parameter higher than 5 checkboxes (storage-explorer-request ) to update the automagic instance in the html code (automagic-intialization-html).
Could you please advice me how I can complete this.
If I understand correctly, you're looking for a way to specify facet parameter in Search Explorer in Azure Portal.
Simply add &facet=category,count:10 in the Query string field and that should do the trick. For example, see the screenshot below.
I finally found which parameter to update. In the AzSearch.bundle.js referenced in in the html page (see printscreen parameter to change), the default value is at line 44 on the checkboxfacet part. I just updated it with the right value, in my case I put count:30 and now I have more than 5 items in the checkboxes.
Result after change

Run/Open a report with URL parameters

The idea is to call from outside of Cognos the link of the report with some parameters. So the user will not need to put the parameters when he opens the report. They will automatically filter the parameters. Using URL parameters or something like that.
I'm using the IBM Cognos Analytics 11.1 R7.
Someone know if this is possible? Have some tutorial?
This is definitely possible! Every piece of content has a share URL, and report prompt parameters can be added to the URL. More info here:
https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=mc-creating-custom-urls-display-run-cognos-analytics-content
at the end of your report name add the parameters with what you want to put in. for example: Even if you want to run it in PDF that I have put at the end of the URL:
&run.prompt=false&p_pTEST=ABC&p_pPROMPT=TEST&run.prompt=false&run.outputFormat=PDF

What format is this template string/formula field in?

I am building an integration for a client with the HelloWorks API. This is a service that allows you to create user-fillable PDF forms.
It appears that their product supports formatted/template strings/formula fields as outputs to the PDF files, as when
I create a Date field, it creates an output field with the following data:
#{format(:date, #field_XXXXX, "{0M}/{0D}/{YYYY}")}
However, I cannot find any kind of documentation as to what is the format of this template string/formula field.
In case anyone is still looking for an answer for this, this is what HelloWorks support team has to say.
As for documentation for the format, we do not have any documentation for that at this time and the ability to make those edits are going to be depreciated in the future as our product team wants to bring those capabilities to the portal without custom edits.

Need Direction - Web Bot Creation

I want to create something that will look at a specific location on a website and read the value at this location. Then take that value and put it into a already created block of text.
What do I need to start researching to create something like that? Simple direction such as key words to Google and such would be extremely helpful.
Do you want to get the value from your own website or someone else's website?
If you want to get the value from an HTML element, you can easily do so using Javascript/jQuery.
If you are looking to write a script that parses the HTML from somebody else's website, you will need a HTML parser. If you plan to use Python, look into Beautiful Soup.

Python3 free (no sign up) currency conversion

After looking, I have been unable to find a python3 module or method of pulling exchange rate data from the internet into my program.
Any ideas?
Thanks
Well, I'm not sure what's the location of your data source and in what format you need the data, but from your description I can make the following recomandation:
Use a service like:
https://openexchangerates.org/
and afterwards parse the response with a JSON parser (like the official one):
http://docs.python.org/3.3/library/json.html
and Voila you have the currency.
UPDATE
If you really have time and as the time passes patience to modify it, you can take whatever site you want with a visible exchange rate and write a HTML parser:
http://www.diveintopython.net/html_processing/extracting_data.html
This solution gives you freedom (basically you can query whatever you want) but if a site changes... well you have to update your code
UPDATE 2
You can use a very simple trick and a very simple html from google. Try to call the following link:
http://www.google.com/finance/converter?a=1&from=BGN&to=AED
and you will get a response for free, without any key, but be aware that this is not fair play especially when you are polling the service many times a minute!

Resources