Appears to support
I want a text field that users can input a "username" into. (And have it default to the current user.) However, I am unable to get it to work. Here is what I am doing.
Note: If I do not use the populatingSearch wrapper around the CDATA block then I see the literal CDATA string in the dashboard.
Note: If I drop the seed element then I see nothing.
<input type="text" token="MyLookupUser" searchWhenChanged="true"> <label>User to Lookup</label> <seed><populatingSearch><![CDATA[ | rest /services/authentication/current-context/context | fields + username | dedup username | search username !=splunk-system-user | rename username as user ]]></populatingSearch></seed> </input>
What am I doing wrong?
What else do you need to know to help me with this "feature"??
For a text input, you can set the value with default, but I'm not sure how to set the value of default dynamically. I will research and respond.
A couple of things
RE your point #1:
See the table "
Type: Attribute value
Description: The initial value of the input element. Can be specified by a value returned from a populating search.
So, how do the docs say that a Text element does not support a populating search?
They appear to say that a text input supports a seed element (0..1) which in turn supports a populating search.
To be fair my search should always return one value for the seed.
Hum: "use Sideview" ( REF: http://sideviewapps.com/apps/sideview-utils ) UI modules "bolt on" that has a bit odd of a license. (REF: http://sideviewapps.com/apps/sideview-utils/download-full-version-internal-use/ ) To bad it is not LGPL still. 😞
Besides the main issue is that the plunk docs suggest that what I am trying to do should work.
I suspect a bug exists. Either in the documentation, or in the product. What I want is one of the two to change. Yes, I want the functionality, but I can live with an answer of "You can not do that." too. vgenovese is researching. I can wait.
Nope. Still waiting for a solution. ( Well, I have mostly given up on building a splunk based UI to work the way I want it to at this point. )