I did put the example behind the GIF on the github page, but I actually managed to bind this to UD so you can read the “from” and “to” attributes from the state in the component as shown here:-
Thanks @Alc yeah to install this either go to the powershellgallery.com and search for “simpleud” without quotes. Or head over to the marketplace for universal dashboard and see all the other cool add-ins for UD. I got a blog here https://psdevuk.github.io/ud-flix/ which has all the links to marketplace. Read the documentation for importing a module into UD. I’m sure this is on my github page as well link on the blog page. Hope this helps. Peace
Hi!
I’m playing arround with this component. So, I’m making a Message Tracking Log for Exchange 2019. Basically, the code is the same as the sample, and the output to a grid.
If I hardcode the dates (from and to) in the command, the grid shows me the logs.
If I use the date picker, to pass those as variables for the command, I get the error:
Cannot process argument transformation on parameter ‘Start’. Cannot convert null to type “System.DateTime”.
I believe this is a powershell error, but it does not harm to ask…
The Show-UDToast shows me the correct dates and all.
I’m on an older exchange at work. But when I say set an out of office I got to do it in mm/dd/yyyy format in powershell. So does exchange 2019 accept yyyy-mm-dd format?
Crap just seen you are editing date. Have you tried in mm/dd/yyyy out of curiosity
Youre trying to retrieve variables across endpoints.
In order to archieve this you need to utilize one of the magical variables $cache or $session.
IE: on button click just do $session:start = get-udelement in order to have it retrievable from the other endpoint.
Another thing to note: I’ve found importing PSSessions in endpoints to be kinda dirty, and if you do make sure to disconnect from the session at the end of your endpoint.
I’d suggest just creating the session and then using the “invoke-command -session $exchsession -scriptblock {get-messagetrackinglog}”
Heck, you could go fancy and store your Exchange Session in a $session variable, this way you can even invoke commands across your endpoints!
Remember that $cache is across your entire dashboard, $session is just for the current client.
In this usecase i’d suggest going with $session for the date input and $cache for the exchange session, to prevent Phyllis in accounting getting annoyed that her date inputs are acting crazy.
Should have spotted that you was using content script block which only makes the one request before it gets the data…it seems to work ok on simple math and things, but if you making an SQL call then the content can display before the variable holding the information is ready…hence you use @BoSen29 method…I really need to get my iPhone repaired as my screen is cracked to bits…the official documentation is great to learn from as well, I even got pointed by Mr @BoSen29 to an article I had not read…there is always things to learn and expand in UD which makes it so awesome
Hey @abarrozo don’t feel like you ever asking stupid questions…I do some really dinny things myself…anyways back to the subject…So the themes are based on CSS so this is def CSS related, I will load the component now in an azure theme inspect the element by right clicking on it, then I will have a butchers at the CSS code, then you got a few choices…you can either edit the theme (risky business) or apply your own theme and make azure the parent theme…or go crazy and use something like UDStyle:- https://psdevuk.github.io/ud-flix/Bring-more-styles-with-UDStyle/ but you will still need to know the CSS…give me a moment just got back from work.