Hi All -
Is there any auto-completion for New-UDInputField Type Select.
Reason is my drop-down list is in the thousands, I’m hoping to have a simple way to select the dropdown-content.
Hi All -
Is there any auto-completion for New-UDInputField Type Select.
Reason is my drop-down list is in the thousands, I’m hoping to have a simple way to select the dropdown-content.
Boom check out this component I teamed up with @BoSen29 to create:- https://marketplace.universaldashboard.io/Dashboard/UniversalDashboard.UDSelector
then look at the second readme example here https://github.com/psDevUK/UD-Field to see this in action on how to populate the automatic completion drop-down list. Here is the official repo I created for the component https://github.com/psDevUK/UD-Selector
I know this is capable of holding 1000+ items as I done it.
Hi @psDevUK -
I did download UDselector, tried the samples and everything but the hashtable / dropdown content was always empty - even I populate the hash with only bare minimum codes. I tried few other sample codes from other threads in the forum - it didnt work.
Not sure what I did wrong though. I will look at this again.
Even so, how do I include the ud-selector field in parallel with the existing / other ud-inputfield? Would it take the existing theme? I honestly do not know how to place the dropdown within the ud-input. Anyway, thanks for the input. You have been really helpful.
Someone recently informed me that they were using powershell 7 and it didn’t work on powershell 7…I was hoping the readme example would work for anyone and show good implementation of it…I guess not…sorry to hear you are having issues, seems like you are not the only one Autocompletion in InputField Type 'textbox' although everyone seems to get there in the end…as for including it with other udinput it all depends on how you do it…it is possible, but these days I tend to use a combination of the custom components I built to gather the required information from the user…like for example I have got this UDSelector on a sales dashboard with the date-picker component I did and the particle button…this then allows a sales person to select the customers from the drop-down, select a data range, then hit submit…I then reveal a grid with the returned data as well as my custom pivot table component so the sales people can build there own sub-queries on the data returned.
Yeah, I saw that thread. I am on PS 5.1 - the dropdown menu is empty. Weird. Log at the end of post.
Below is what I did, the dropdown that has hundreds (if not thousands) of items are highlighted in yellow. I hate the redo the input field (select & textbox) again - it won’t fit nicely in current card or has similar interaction that I am planning to do, at least in my current capabilities.
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/home
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 6.8906ms 200 text/html; charset=utf-8
23:15:07 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 135990.3097ms 101
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/dashboard/theme
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Theme", controller = "Dashboard"}. Executing action UniversalDashboard.Controllers.DashboardController.Theme (UniversalDashboard)
23:15:07 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.DashboardController.Theme (UniversalDashboard) - Validation state: Valid
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/javascript/plugin
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Plugin", controller = "JavaScript"}. Executing action PowerShellProTools.UniversalDashboard.Controllers.JavaScriptController.Plugin (UniversalDashboard)
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method PowerShellProTools.UniversalDashboard.Controllers.JavaScriptController.Plugin (UniversalDashboard) - Validation state: Valid
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.DashboardController.Theme (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.ContentResult in 3.515ms.
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Infrastructure.ContentResultExecutor Executing ContentResult with HTTP Response ContentType of text/css
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.DashboardController.Theme (UniversalDashboard) in 22.0796ms
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 25.8232ms 200 text/css
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method PowerShellProTools.UniversalDashboard.Controllers.JavaScriptController.Plugin (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.ContentResult in 25.9327ms.
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Infrastructure.ContentResultExecutor Executing ContentResult with HTTP Response ContentType of text/javascript
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action PowerShellProTools.UniversalDashboard.Controllers.JavaScriptController.Plugin (UniversalDashboard) in 192.9322ms
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 196.6926ms 200 text/javascript
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/dashboard
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/favicon.ico
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Index", controller = "Dashboard"}. Executing action UniversalDashboard.Controllers.DashboardController.Index (UniversalDashboard)
23:15:07 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:07 [Info] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware Sending file. Request path: '/favicon.ico'. Physical path: 'C:\Users\mohdrifa\Documents\WindowsPowerShell\Modules\UniversalDashboard\2.9.0\client\favicon.ico'
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 19.938ms 200 image/x-icon
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.DashboardController.Index (UniversalDashboard) - Validation state: Valid
23:15:07 [Debug] DashboardController Index
23:15:07 [Debug] AuthorizationService TryRunClaimsAuthorization
23:15:07 [Debug] AuthorizationService Checking page home.
23:15:07 [Debug] AuthorizationService Page authorized.
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.DashboardController.Index (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.JsonResult in 3.6783ms.
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor Executing JsonResult, writing value of type '<>f__AnonymousType3`9[[UniversalDashboard.Models.Dashboard, UniversalDashboard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.IEnumerable`1[[UniversalDashboard.Models.Page, UniversalDashboard.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[UniversalDashboard.Services.LicenseStatus, UniversalDashboard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.
23:15:07 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.DashboardController.Index (UniversalDashboard) in 12.5801ms
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 40.8874ms 200 application/json; charset=utf-8
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 POST http://localhost:10005/dashboardhub/negotiate text/plain;charset=UTF-8 0
23:15:07 [Info] Microsoft.AspNetCore.Cors.Infrastructure.CorsService Policy execution successful.
23:15:07 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 3.7222ms 200 application/json
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/dashboardhub?id=Gwj3vrfSa9ynylN1ck47Vg
23:15:08 [Info] Microsoft.AspNetCore.Cors.Infrastructure.CorsService Policy execution successful.
23:15:08 [Info] Microsoft.AspNetCore.SignalR.HubConnectionContext Completed connection handshake. Using HubProtocol 'json'.
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/dashboard/page/home
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Page", controller = "Dashboard"}. Executing action UniversalDashboard.Controllers.DashboardController.Page (UniversalDashboard)
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.DashboardController.Page (UniversalDashboard) - Validation state: Valid
23:15:08 [Debug] DashboardController Index - Page = home
23:15:08 [Debug] AuthorizationService TryRunClaimsAuthorization
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.DashboardController.Page (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.JsonResult in 2.7983ms.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor Executing JsonResult, writing value of type 'UniversalDashboard.Models.Page'.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.DashboardController.Page (UniversalDashboard) in 7.0683ms
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 10.7991ms 200 application/json; charset=utf-8
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/component/element/5183e2c8-faef-4442-936b-f7e723c0dd4f
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Element", controller = "Component"}. Executing action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard)
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/component/element/60a1724e-feb1-4365-92a6-97b2033d9a98
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) with arguments (5183e2c8-faef-4442-936b-f7e723c0dd4f) - Validation state: Valid
23:15:08 [Debug] ComponentController Element - id = 5183e2c8-faef-4442-936b-f7e723c0dd4f
23:15:08 [Debug] EndpointService Get() 5183e2c8-faef-4442-936b-f7e723c0dd4f 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Found endpoint.
23:15:08 [Debug] AuthorizationService TryRunClaimsAuthorization
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Element", controller = "Component"}. Executing action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard)
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) with arguments (60a1724e-feb1-4365-92a6-97b2033d9a98) - Validation state: Valid
23:15:08 [Debug] ComponentController Element - id = 60a1724e-feb1-4365-92a6-97b2033d9a98
23:15:08 [Debug] EndpointService Get() 60a1724e-feb1-4365-92a6-97b2033d9a98 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Found endpoint.
23:15:08 [Debug] AuthorizationService TryRunClaimsAuthorization
23:15:08 [Debug] PowerShellExecutionService Scope variables--------------
23:15:08 [Debug] PowerShellExecutionService Processes = System.Object[]
23:15:08 [Debug] PowerShellExecutionService Scope variables--------------
23:15:08 [Debug] PowerShellExecutionService Context variables--------------
23:15:08 [Debug] PowerShellExecutionService Request = Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest
23:15:08 [Debug] PowerShellExecutionService Response = Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse
23:15:08 [Debug] PowerShellExecutionService User =
23:15:08 [Debug] PowerShellExecutionService MemoryCache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService UDConnectionManager = UniversalDashboard.Services.ConnectionManager
23:15:08 [Debug] PowerShellExecutionService DashboardHub = Microsoft.AspNetCore.SignalR.Internal.HubContext`1[UniversalDashboard.DashboardHub]
23:15:08 [Debug] PowerShellExecutionService Cache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService StateRequestService = UniversalDashboard.Services.StateRequestService
23:15:08 [Debug] PowerShellExecutionService ConnectionId = Gwj3vrfSa9ynylN1ck47Vg
23:15:08 [Debug] PowerShellExecutionService SessionId = 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] PowerShellExecutionService hash =
23:15:08 [Debug] PowerShellExecutionService item = C:\Users\mohdrifa\Documents\WindowsPowerShell\Modules\UniversalDashboard\2.9.0\Modules\UniversalDashboard.Materialize\index.7f9d93ad5403b1a3a890.bundle.map
23:15:08 [Debug] PowerShellExecutionService Context variables--------------
23:15:08 [Debug] PowerShellExecutionService Request = Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest
23:15:08 [Debug] PowerShellExecutionService Response = Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse
23:15:08 [Debug] PowerShellExecutionService User =
23:15:08 [Debug] PowerShellExecutionService MemoryCache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService UDConnectionManager = UniversalDashboard.Services.ConnectionManager
23:15:08 [Debug] PowerShellExecutionService ArgumentList =
23:15:08 [Debug] PowerShellExecutionService UDPage =
23:15:08 [Debug] PowerShellExecutionService Session = UniversalDashboard.Models.SessionState
23:15:08 [Debug] PowerShellExecutionService ClaimsPrinciple = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] PowerShellExecutionService ClaimsPrincipal = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] PowerShellExecutionService DashboardHub = Microsoft.AspNetCore.SignalR.Internal.HubContext`1[UniversalDashboard.DashboardHub]
23:15:08 [Debug] PowerShellExecutionService Cache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService StateRequestService = UniversalDashboard.Services.StateRequestService
23:15:08 [Debug] PowerShellExecutionService ConnectionId = Gwj3vrfSa9ynylN1ck47Vg
23:15:08 [Debug] PowerShellExecutionService SessionId = 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] PowerShellExecutionService ArgumentList =
23:15:08 [Debug] PowerShellExecutionService UDPage =
23:15:08 [Debug] PowerShellExecutionService Session = UniversalDashboard.Models.SessionState
23:15:08 [Debug] PowerShellExecutionService ClaimsPrinciple = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] PowerShellExecutionService ClaimsPrincipal = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] EndpointService Register() 1aafdcd9-2e84-4d76-a506-c8abe6d8611e 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Unregister() 1aafdcd9-2e84-4d76-a506-c8abe6d8611e 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] ComponentController ConvertToActionResult() [{"id":"1aafdcd9-2e84-4d76-a506-c8abe6d8611e","floating":false,"onClick":"1aafdcd9-2e84-4d76-a506-c8abe6d8611e","style":null,"flat":false,"type":"ud-button","iconAlignment":"left","disabled":false,"isPlugin":true,"backgroundColor":null,"icon":null,"text":"Processes Selected","fontColor":null}]
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.JsonResult in 70.6675ms.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) in 75.687ms
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 87.7695ms 200 application/json; charset=utf-8
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/component/element/c6c13500-acd7-4759-b3c0-b07556ebd81c
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Element", controller = "Component"}. Executing action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard)
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) with arguments (c6c13500-acd7-4759-b3c0-b07556ebd81c) - Validation state: Valid
23:15:08 [Debug] ComponentController Element - id = c6c13500-acd7-4759-b3c0-b07556ebd81c
23:15:08 [Debug] EndpointService Get() c6c13500-acd7-4759-b3c0-b07556ebd81c 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Found endpoint.
23:15:08 [Debug] AuthorizationService TryRunClaimsAuthorization
23:15:08 [Debug] PowerShellExecutionService Scope variables--------------
23:15:08 [Debug] PowerShellExecutionService null =
23:15:08 [Debug] PowerShellExecutionService Context variables--------------
23:15:08 [Debug] PowerShellExecutionService Request = Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest
23:15:08 [Debug] PowerShellExecutionService Response = Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse
23:15:08 [Debug] PowerShellExecutionService User =
23:15:08 [Debug] PowerShellExecutionService MemoryCache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService UDConnectionManager = UniversalDashboard.Services.ConnectionManager
23:15:08 [Debug] PowerShellExecutionService DashboardHub = Microsoft.AspNetCore.SignalR.Internal.HubContext`1[UniversalDashboard.DashboardHub]
23:15:08 [Debug] PowerShellExecutionService Cache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService StateRequestService = UniversalDashboard.Services.StateRequestService
23:15:08 [Debug] PowerShellExecutionService ConnectionId = Gwj3vrfSa9ynylN1ck47Vg
23:15:08 [Debug] PowerShellExecutionService SessionId = 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] PowerShellExecutionService ArgumentList =
23:15:08 [Debug] PowerShellExecutionService UDPage =
23:15:08 [Debug] PowerShellExecutionService Session = UniversalDashboard.Models.SessionState
23:15:08 [Debug] PowerShellExecutionService ClaimsPrinciple = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] PowerShellExecutionService ClaimsPrincipal = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] NewElementCommand HTML
23:15:08 [Debug] EndpointService Register() Results 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Unregister() Results 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Session endpoint found. Removing endpoint.
23:15:08 [Debug] NewElementCommand {"tag":"div","events":[],"type":"element","key":"bcb6bf30-955f-4f88-be91-389bbcb33db4","onMount":null,"id":"Results","refreshInterval":5,"autoRefresh":true,"hasCallback":true}
23:15:08 [Debug] ComponentController ConvertToActionResult() [{"tag":"div","events":[],"type":"element","key":"8694c26a-7a7a-412f-a444-42060ab1a270","onMount":null,"id":"Results","refreshInterval":5,"autoRefresh":true,"hasCallback":true}]
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.JsonResult in 82.3352ms.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) in 88.4776ms
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 96.1112ms 200 application/json; charset=utf-8
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/api/internal/component/element/Results
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Route matched with {action = "Element", controller = "Component"}. Executing action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard)
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Debug] PowerShellExecutionService ExecutionService constructor
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executing action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) with arguments (Results) - Validation state: Valid
23:15:08 [Debug] ComponentController Element - id = Results
23:15:08 [Debug] EndpointService Get() Results 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] EndpointService Found session endpoint.
23:15:08 [Debug] AuthorizationService TryRunClaimsAuthorization
23:15:08 [Debug] PowerShellExecutionService Scope variables--------------
23:15:08 [Debug] PowerShellExecutionService null =
23:15:08 [Debug] PowerShellExecutionService Context variables--------------
23:15:08 [Debug] PowerShellExecutionService Request = Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest
23:15:08 [Debug] PowerShellExecutionService Response = Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse
23:15:08 [Debug] PowerShellExecutionService User =
23:15:08 [Debug] PowerShellExecutionService MemoryCache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService UDConnectionManager = UniversalDashboard.Services.ConnectionManager
23:15:08 [Debug] PowerShellExecutionService DashboardHub = Microsoft.AspNetCore.SignalR.Internal.HubContext`1[UniversalDashboard.DashboardHub]
23:15:08 [Debug] PowerShellExecutionService Cache = Microsoft.Extensions.Caching.Memory.MemoryCache
23:15:08 [Debug] PowerShellExecutionService StateRequestService = UniversalDashboard.Services.StateRequestService
23:15:08 [Debug] PowerShellExecutionService ConnectionId = Gwj3vrfSa9ynylN1ck47Vg
23:15:08 [Debug] PowerShellExecutionService SessionId = 264b221c-84ba-4ced-9bfa-720298c90c0f
23:15:08 [Debug] PowerShellExecutionService ArgumentList =
23:15:08 [Debug] PowerShellExecutionService UDPage =
23:15:08 [Debug] PowerShellExecutionService Session = UniversalDashboard.Models.SessionState
23:15:08 [Debug] PowerShellExecutionService ClaimsPrinciple = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] PowerShellExecutionService ClaimsPrincipal = System.Security.Claims.ClaimsPrincipal
23:15:08 [Debug] ComponentController ConvertToActionResult() [{"id":"selector1","assetId":"index.239a105370b388539c8a.bundle.js","type":"UD-Selector","isPlugin":true,"placeholder":"Select running processes...","options":[{"ScriptText":"\r\n $hash\r\n "}]}]
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.JsonResult in 237.9021ms.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) in 247.6884ms
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 252.0404ms 200 application/json; charset=utf-8
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:10005/index.239a105370b388539c8a.bundle.js
23:15:08 [Debug] ComponentController ConvertToActionResult() []
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action method UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard), returned result Microsoft.AspNetCore.Mvc.JsonResult in 82.5034ms.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.
23:15:08 [Info] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker Executed action UniversalDashboard.Controllers.ComponentController.Element (UniversalDashboard) in 90.3947ms
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 95.1024ms 200 application/json; charset=utf-8
23:15:08 [Info] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 52.9173ms 200 application/javascript
Hmmm weird indeed…I assume you copied and pasted the readme example…?
New-UDEndpointInitialization -Module @('UniversalDashboard.UDSelector')
I am using the processes inside an endpoint and the only thing I can think why it wouldn’t populate is if you were not including the bit of code and the variable storing that code, then applying that endpoint initialization to the dashboard…I’m running on Windows 10 powershell 5.1…but I saw someone using the custom slider component on his linux box, so I mean this should work…
I basically copied everything from the readme. The last test i did was copying everything from your UDfield github example - https://github.com/psDevUK/UD-Field. I don’t think I need to amend anything from that.
I am in the process to create every input field using UDtextbox and UDselect. I really hope your UDfield works - on my machine.
There’s no reason it shouldn’t work. Still cannot figure why the data not populating in the drop down for you as I know this component works. You tried in ISE and VSCODE ? I know the latest version of powershell extension caused a few issues for some people me included. I did UD-Field to be easy to use so let me know if you do have issues with that…the code on readme should work fine although doing this in community version 2.8.1 or you edited that bit? I know works in professional edition as I use that at work and community on personal laptop