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     [SOLVED] Pasting Date in Text box

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Pasting Date in Text box
 Login/Join
 
Platinum Member
posted
Has anyone tried to give the user the ability to paste data (separated by comma) in text box to produce a report?

We have an inspection tool that our underwriters use to setup inspections and it allows them to pull down data based on a County they select. Problem is, they may not want all the data for that county so they asked for a text box where they could paste in policy numbers allowing them to only inspect those polices entered. This used to work fine in 7.6.10 with the below code but WF8.1.0.5m does not like it. Anyone know a work around? I tried a -READ but it only list the first policy.

DEFINE FILE UW_PASTED_INDEXKEYS
INDEXKEY/A15=TRIM('T', INDEXKEY, 15, ' ', 1, 'A15');
END
TABLE FILE UW_PASTED_INDEXKEYS
SUM
     INDEXKEY
BY   INDEXKEY NOPRINT
ON TABLE HOLD AS PASTKEYS FORMAT ALPHA
END
 
TABLE FILE &USER_NH_TABLE
  PRINT WF_INDEX
  BY INDEXKEY
WHERE INDEXKEY CONTAINS (PASTKEYS);
ON TABLE HOLD AS UW_NH_POLICES_TO_INSPECT_LOAD FORMAT FOCUS INDEX WF_INDEX
END
  


Thanks
JV

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
I doubt that it work in 7.6.10 using a CONTAINS since CONTAINS is looking for a string patern that exist in a field, not a field that may be equal to several values.

Try this
DEFINE FILE UW_PASTED_INDEXKEYS
INDEXKEY/A15=TRIM('T', INDEXKEY, 15, ' ', 1, 'A15');
END
TABLE FILE UW_PASTED_INDEXKEYS
SUM INDEXKEY
BY  INDEXKEY NOPRINT
ON TABLE HOLD AS PASTKEYS FORMAT ALPHA
END
-RUN
 
TABLE FILE &USER_NH_TABLE
PRINT WF_INDEX
BY INDEXKEY
WHERE INDEXKEY IN FILE PASTKEYS;
ON TABLE HOLD AS UW_NH_POLICES_TO_INSPECT_LOAD FORMAT FOCUS INDEX WF_INDEX
END
-RUN


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Thanks MartinY that work!
quote:
WHERE INDEXKEY IN FILE PASTKEYS;


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
My pleasure
Edit your first post then add [SOLVED] at the beginning of the subject


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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     [SOLVED] Pasting Date in Text box

Copyright © 1996-2020 Information Builders