Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

How to evaluate process input string?

livecycle_Forum
Level 2
Level 2

Hi,

I will need to do database queries in web service using input string as query parameters.

But I need different queries depends on the input string values:

e.g. input1, input2

if input2 is empty or null, then do query one,

if input 2 has value then do query two.

But I don't know how to evalue a string input is null or empty string or with value.

Can any one help?

Many thanks

Laura

3 Replies
The_Flex_Viking
Level 4
Level 4

Can you use a DecisionPoint and set up different route conditions for each possible query?

livecycle_Forum
Level 2
Level 2

Thank you for the reply.

I made it work by using Set Value then route conditions.

I assign the string length to a process integer. then check if the integer is 0 or not.

But I am not sure what form will submit when user didn't give a value. will firm submit "null"  or empty string, Can I define empty string as default value?

on form field?

Thanks again.

Jasmin_Charbonn
Level 10
Level 10

It will submit an empty string. There is no concept of null in xml data. Everything is treated as a string.

Jasmin