cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Ignore Mashup Textbox value when not used

connolcj
3-Newcomer

Ignore Mashup Textbox value when not used

Hi I'm looking for a way to set a textbox widget to be ignored when a value is not entered into it in a mashup.  Right now it sends a blank value to an input on a service and I need it to not send anything when nothing is entered.  A numeric entry box doesn't send anything when nothing is entered and I'd like the textbox to do the same.

ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:slangley)

Hi @connolcj.

 

The service will not function the same as a textbox in a mashup.  In the service, a blank value is undefined, but in the textbox, it's blank.  You would have to define the logic for this in your code.

 

Regards.

 

--Sharon

View solution in original post

4 REPLIES 4
slangley
23-Emerald II
(To:connolcj)

Hi @connolcj.

 

Sounds like you need to update your service to use an if condition to catch if the value being passed is blank or null.

 

Regards.

 

--Sharon

connolcj
3-Newcomer
(To:slangley)

I need the service to be able to accept blanks as there are blanks within that field for this specific input.  I just don't want the text box to automatically send that blank as a value.  I'd like it to function as it does when I test the service at the thing level.  The pop up that I get when I click "test" shows all the inputs for the service but will only send the values I give it and ignores anything that is not used.

slangley
23-Emerald II
(To:slangley)

Hi @connolcj.

 

The service will not function the same as a textbox in a mashup.  In the service, a blank value is undefined, but in the textbox, it's blank.  You would have to define the logic for this in your code.

 

Regards.

 

--Sharon

slangley
23-Emerald II
(To:slangley)

Hi @connolcj.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements


Top Tags