cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mariana
Level: Powered On

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
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?

 

Mariana
Level: Powered On

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. 

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 

h-nagao
Level 10

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  

Super User
Super User

Re: Half width character input issue

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

h-nagao
Level 10

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
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...

Mariana
Level: Powered On

Re: Half width character input issue

@timl
Thank you for taking our time and helping me. I look forward to your reply.
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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,345)