Jump to content

Let FilterValues return issue


Devin
 Share

This topic is 2224 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Why am I getting a return character add to the end of value returned using this calc.

This only happens when the shortList = 1 part.

 

Let (
shortList = FilterValues ( "Shipped¶Not Shipped¶Not Fully Shipped" ; List ( LineItems::ShippedStatus ) )
;

Case (
ValueCount ( shortList ) = 1 ; shortList ;
not IsEmpty ( FilterValues ( shortList ; "Shipped" ) ) ; "Not Fully Shipped"
)
)

I went ahead and changed to move the return. But maybe their was a better way.

ValueCount ( shortList ) = 1 ; Substitute ( shortList ; "¶" ; "" ) ;

Link to comment
Share on other sites

Use GetValue. The result is a single line without a return at the end.

The other values functions always have a return at the end.

ValueCount ( shortList ) = 1 ; GetValue ( shortList ;1  ) ;

Link to comment
Share on other sites

13 hours ago, BruceR said:

ValueCount ( shortList ) = 1 ; GetValue ( shortList ;1  ) ;

This works great.. Thanks for the tip.

 

Link to comment
Share on other sites

This topic is 2224 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.