Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     separating a concatenated field on two lines

Read-Only Read-Only Topic
Go
Search
Notify
Tools
separating a concatenated field on two lines
 Login/Join
 
Platinum Member
posted
I have two alpha fields that I concatenated. I need the newly defined field to show underneath each other instead of side by side. One is a supplier part nuber and one is a customer part number that looks for example like
6203vv 6202a1-a c ha1s7 and I need it to be 6203vv
6202al-a c hals7


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
I wouldn't concatenate the fields, I would do something like this instead:

TABLE FILE ...
PRINT
...
BY SUPPLIER_PART_NUMBER
ON SUPPLIER_PART_NUMBER SUBFOOT
"...
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
or user OVER - the technique you use would probably depend on what else your report contains.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
What would be the proper syntax? Here is my code as I attempted to use the on command.
COMPUTE counter/D5 = counter + 1; AS ' '
space AS ' '
OBO_QTY AS ' '
space AS ' '
ORIGINAL_QTY AS ' '
space AS ' '
VA_BALANCE_QTY AS ' '
space AS ' '
SAE_PART_NAME AS ' '
space AS ' '
space AS ' '
space AS ' '
space AS ' '
CUST_PART_NAME AS ' '
ON ITEM_NAME AS ' '
SALES_PRICE AS ' '
space AS ' '
space AS ' '


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Virtuoso
posted Hide Post
just add OVER to the end of each line (except the last)


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
I changed it to look like this and I got an error message.
CUST_PART_NAME OVER
ITEM_NAME AS ' '


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Virtuoso
posted Hide Post
That's the proper syntax. What error message are you getting? Maybe post the rest of your fex.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
CUST_PART_NAME AS '' OVER
ITEM_NAME AS ''

The one little problem with OVER is that column titles get mucked up - you'll have to put them in the HEADING or SUBHEAD


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
I 'm getting your post confused with another I was answering earlier.
An easy solution to what you want would be to put all of your fields in a subhead section.
You could specify the content of each row with custom placement of fields. It would have the appearance of the output from the first fex you posted


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
I am not displaying any headings so I think OVER would be a good option for me. I don't want to use a subhead because this is a detail field. The over command crashes EDASERVE.

Unknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log.


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Virtuoso
posted Hide Post
As soon as you use the OVER, all subsequent field are moved to the next line, so your sales price field would also move. You could change the order in your fex and it would probably work.

PRINT
OBO_QTY AS '' IN 1
CUST_PART_NAME AS '' IN 10
SALES_PRICE IN 20 OVER
ITEM_NAME AS '' IN 10
(you would have to SET STYLEMODE=FIXED and SET HTMLCSS=ON for proper HTML display) or use PDF output.

You can still create a detail report with subhead. If you use PRINT and have the BY on the detail level (such as part number) you get what you need:

PRINT
part_number NOPRINT
BY part_number NOPRINT
ON part_number SUBHEAD
"

Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
Left out the rest of the code
 "<OBO_QTY <ORIGINAL_QTY <VA_BALANCE_QTY <SAE_PART_NAME <CUST_PART_NAME <SALES_PRICE "
"<ITEM_NAME " 


and used spot markers for proper positioning of columns.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
Is this still in your code - space AS ' '
If so is space defined?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     separating a concatenated field on two lines

Copyright © 1996-2020 Information Builders