cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Support
Community Support

Re: Validate input text is exists in the table

Hi @neethup ,

Could you please share a bit more about the ClientID column in your SQL Table? Is it a Number type column or Text type column?

 

Currently, I could not reproduce your issue on my side.

If the ClientID is a Number column in your SQL Table, please consider modify your formula as below:

If(
   IsBlank(LookUp('[dbo].[CUSTOM_cmClient]', ClientID = Value(DcClientID.Text))),   /* <-- If the ClientID is a Number type column in your SQL Table */
   Set(ShowErrorMsg, false),
   Set(ShowErrorMsg, true)
)

In addition, I also think a Timer control could achieve your needs. Add a Timer control in your app, set the Duration property to following:

1000

Set the AutoStart property and Repeat property to following:

true

Set the OnTimerEnd property to following:

If(
   IsBlank(LookUp('[dbo].[CUSTOM_cmClient]', ClientID = Value(DcClientID.Text))),   /* <-- If the ClientID is a Number type column in your SQL Table */
   Set(ShowErrorMsg, false),
   Set(ShowErrorMsg, true)
)

Set the Visible property of the Timer control to following:

false          /* <-- Hidden the Timer control */

 

Set the Visible property of the Error Message Label to following:

ShowErrorMsg

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper IV
Helper IV

Re: Validate input text is exists in the table

@v-xida-msft Hi thank you for your time.. I have tried this also but not working

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,958)