Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
394 views

About constant value with character ENTER and SPACE

Jump to solution

I have a constant value in flow A is consists of value and character ENTER or SPACE. Format like "         myvalue                    "

and create another flow B, then make A as sub-flow of flow B. 

Then check the constant value in sub-flow, the constant value is not changed, still "         myvalue                    ".

Is this designment?   the SPACE and ENTER will not be cut.

But if the constant value in flow A is all SPACE and ENTER. Format like "                                      " (no letters), then make A as sub-flow of B, check the value in sub-flow., the value is "", the SPACE and ENTER are cut.

So my understand is that when there is a constant value contains letters and SPACE and ENTER, it will not be cut.  while if constant value contains only SPACE and ENTER, it will be cut.

Is that right?

0 Likes
1 Solution

Accepted Solutions
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: About constant value with character ENTER and SPACE

Jump to solution

I am not personally familiar of any document and the behavior is no necessarily as described.

Screenshot_102.png

Use the marked button in the context inspector below to check how values are trimmed or not

you can see above an enter space that was not trimmed while being the only character given to the input of the flow.

 

hope it helps,

Andrei Vasile Truta
0 Likes
7 Replies
Luis_V_OO Super Contributor.
Super Contributor.

Re: About constant value with character ENTER and SPACE

Jump to solution

Hello Foy,

                What you described looks like an expected behavior since at runtime the variable may look like an empty string which is different to null.

 

Hope this is clear.

Thank you,

Luis

 

Luis Quiros
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: About constant value with character ENTER and SPACE

Jump to solution

Do you have any document about this?

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: About constant value with character ENTER and SPACE

Jump to solution

I am not personally familiar of any document and the behavior is no necessarily as described.

Screenshot_102.png

Use the marked button in the context inspector below to check how values are trimmed or not

you can see above an enter space that was not trimmed while being the only character given to the input of the flow.

 

hope it helps,

Andrei Vasile Truta
0 Likes
Contributor.. wenhuisunsun Contributor..
Contributor..

Re: About constant value with character ENTER and SPACE

Jump to solution

Hi

Thanks for your help.

I have uploaded an instance video for reference..

https://drive.google.com/open?id=0B8I_GpslnBZRcFMxTXlDTkMtSGM

 

・The description of issue

  1. Creating a new flow(flow A), input a new value into [Constant Value].
  2. Then create a flow(flow B),drag the value of flow A to flow B. Flow A turned to sub-flow.
  3. After dragging, the Constant Value of flow A would be gone.

Please refer to the result about I tested it.

  • (1) If there are LF(enter character) , LF will lost.
  • (2) If there are some space character, space characters will lost.
  • (3) If there are LF and space characters, they will lost.
  • (4) If there are spaces and characters mixed , all the data will not be lost.
  • (5) If there are space, LF and characters, all the data will not be lost.

 

0 Likes
Contributor.. wenhuisunsun Contributor..
Contributor..

Re: About constant value with character ENTER and SPACE

Jump to solution

Hi

Thanks for your help.

I have uploaded an instance video for reference..

https://drive.google.com/open?id=0B8I_GpslnBZRcFMxTXlDTkMtSGM

 

・The description of issue

  1. Creating a new flow(flow A), input a new value into [Constant Value].
  2. Then create a flow(flow B),drag the value of flow A to flow B. Flow A turned to sub-flow.
  3. After dragging, the Constant Value of flow A would be gone.

Please refer to the result about I tested it.

  • (1) If there are LF(enter character) , LF will lost.
  • (2) If there are some space character, space characters will lost.
  • (3) If there are LF and space characters, they will lost.
  • (4) If there are spaces and characters mixed , all the data will not be lost.
  • (5) If there are space, LF and characters, all the data will not be lost.

    

0 Likes
Contributor.. wenhuisunsun Contributor..
Contributor..

Re: About constant value with character ENTER and SPACE

Jump to solution

Hi

Thanks for your help.

I have uploaded an instance video for reference..

https://drive.google.com/open?id=0B8I_GpslnBZRcFMxTXlDTkMtSGM

 

・The description of issue

  1. Creating a new flow(flow A), input a new value into [Constant Value].
  2. Then create a flow(flow B),drag the value of flow A to flow B. Flow A turned to sub-flow.
  3. After dragging, the Constant Value of flow A would be gone.

Please refer to the result about I tested it.

  • (1) If there are LF(enter character) , LF will lost.
  • (2) If there are some space character, space characters will lost.
  • (3) If there are LF and space characters, they will lost.
  • (4) If there are spaces and characters mixed , all the data will not be lost.
  • (5) If there are space, LF and characters, all the data will not be lost.

   

0 Likes
Luis_V_OO Super Contributor.
Super Contributor.

Re: About constant value with character ENTER and SPACE

Jump to solution

Hello Foy,

                 Was the information on this thread useful for your purposes? Kindly confirm so that we can take this thread as closed.

 

Thank you.

Luis Quiros
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.