cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Half width character input issue

Hello

I want to be able to search full width characters even if the input is in half width characters.What I can do.

9 REPLIES 9
Highlighted
Super User
Super User

Re: Half width character input issue

Hi @Mariana 

Could you give an example of what you mean by full width/half width characters?

 

Highlighted
Frequent Visitor

Re: Half width character input issue

When using Microsoft IME(for typing Japanese), various inputs are available. ( See attached screenshot)

Sometimes the user inputs English characters in Full-width Alphanumeric format and one cannot perform text search for data inputted in this format. 

Highlighted
Super User
Super User

Re: Half width character input issue

Hi @Mariana 

Unfortunately, I don't the answer.

I'm sure Hiro understands character sets better than I do - maybe he might be able to comment?

@h-nagao 

Highlighted
Impactful Individual
Impactful Individual

Re: Half width character input issue

Hi @Mariana and @timl 

I dont think Power Apps has a capability for such a use case.

In usual javascript code, we can convert full-half characters based on char code translation, however, Power Apps does not have.

 

In my opinion, it would be better to define a  Component which only convert text including Full-width into one only with half-width.

My sample component and app has been posted to gallery:

https://powerusers.microsoft.com/t5/Community-App-Samples/Text-conversion-component-from-Full-width-...

 

Thanks,

Hiro  

Highlighted
Super User
Super User

Re: Half width character input issue

Thanks for the sample app Hiro - that's amazing!

Highlighted
Impactful Individual
Impactful Individual

Re: Half width character input issue

My pleasure:)
and remaining work is adding OR search on your app @Mariana .
When the user input search word, app need to perform search with Or(data field =TextInput.Text, fhconv.HalfToFull).

@timl Could you give advice for this?

Thanks
Highlighted
Super User
Super User

Re: Half width character input issue

Hi @h-nagao 

Sure, I'll have have a check and get back to you regarding the OR issue...

Highlighted
Frequent Visitor

Re: Half width character input issue

@timl
Thank you for taking our time and helping me. I look forward to your reply.
Highlighted
Super User
Super User

Re: Half width character input issue

Hi @Mariana @h-nagao 

Sorry for not replying sooner. I've been very busy and won't be around mush this week either.

I've tested this and I've put together a screen where if a user enters full width characters, it'll search against source data that contains full and half width characters.

image.png

The syntax I use to carry out the OR looks something like this.

Ungroup(Table({TableSet: Search(myTestCol, fhconv_3.FullToHalf, "value")}, 
        {TableSet: Search(myTestCol, fhconv_3.HalfToFull, "value")}
         ),
  "TableSet"
)

I've uploaded my test app here, so the easiest thing to do would be to look at this. Hope that's of some help.

 

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,971)