question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requesting Assistance: How to use selected with partial value...

See original GitHub issue

Sorry for hijacking the Issues for a request for help. If there’s a better place for this please let me know where. However, until then…

I have the following in my template:

{{#power-select
searchField="value"
selected=model.claim.patient.country
options=model.patientCountries
onchange=(action "choosePatientCountry") as |patientCountry|}}
  {{patientCountry.value}} - {{patientCountry.description}}
{{/power-select}}

In my patient model I have the value ‘US’ stored in the country attribute. But my list of is comprised of entries that contain “US - UNITED STATES”. I believe this is why there is no value selected.

I’m new to all of this so I’m not sure what options I have available to me. Is there something I can do to help power-select match on the first 2 characters of the options?

Thanks, in advance, for any assistance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
melriffecommented, Dec 10, 2018

Thanks for the suggestion @lougreenwood

1reaction
lougreenwoodcommented, Dec 10, 2018

@melriffe you should check out the Ember Discord Community, you’ll find lots of help there:

https://discordapp.com/invite/zT3asNS

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply criteria to text values - Microsoft Support
Apply criteria to text values ... You can use query criteria in Access to limit the results based on specific text values. For...
Read more >
Taking Advantage of the Partial Match Feature
The partial match feature allows the index to return items containing ... In the Advanced tab, on the left-hand side of the page,...
Read more >
GetItem - Amazon DynamoDB - AWS Documentation
The GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem...
Read more >
Configuring Request Forms for Primo VE
Request Options for Physical Inventory in Get It. Selecting the Request link and then the Booking request type opens the Booking Request ......
Read more >
Control access to specific fields | Firestore - Firebase - Google
Requiring specific fields in new documents; Forbidding specific fields in new documents ... There is no way to retrieve a partial document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found