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     BETTER UNDERSTANDING "WITH"

Read-Only Read-Only Topic
Go
Search
Notify
Tools
BETTER UNDERSTANDING "WITH"
 Login/Join
 
Member
posted
WHEN GETTING (FOC104) DEFINE IN MASTER REFERS TO A FIELD OUTSIDE ITS SCOPE

THE IBI EXPLANATION AND FORUM DESCRIPTIONS IS NOT CLEAR TO ME. THIS IS THE DEINFE I ATTEMPTING TO USE:

DEFINE TRANSMIT_WHEN_MI/MDYY = HDATE(TRANSMIT_WHEN_MI_O,'MDYY'); $

HOW WOULD I ADD THE WITH?


Into the Memory Hole!
 
Posts: 9 | Registered: March 16, 2007Report This Post
Virtuoso
posted Hide Post
When you put a define in an MFD, it has to be based on fields in the MFD as I understand it.

You might want to move your define to the Table request.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
ok, how would ou code that? I'm looking for a specific example.


Into the Memory Hole!
 
Posts: 9 | Registered: March 16, 2007Report This Post
Virtuoso
posted Hide Post
quote:
DEFINE TRANSMIT_WHEN_MI/MDYY = HDATE(TRANSMIT_WHEN_MI_O,'MDYY');



Put the above define between any joins and the table file request.

JOIN.....
DEFINE FILE XYZ
TRANSMIT_WHEN_MI/MDYY = HDATE(TRANSMIT_WHEN_MI_O,'MDYY');
END
TABLE FILE XYZ
...


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
Is TRANSMIT_WHEN_MI_O a field in the Master you have the define in?

Error 104:
FOC104) DEFINE IN MASTER REFERS TO A FIELD OUTSIDE ITS SCOPE:
The defined field refers to a field which is not in the same
segment as the DEFINE (for FIELDNAME=OLD) or to a field that is
not in this Master (for FIELDNAME=NEW).

What kind of db is it?
What version are you on?
What operating system?


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
Gold member
posted Hide Post
I suppose that you have multisegment master-file.
Is it so?

In DEFINE you are can use WITH [segment keyfield] to place virtual field into specific segment.

AFAIK this is only for WF 7.x
In 5.x - virtual fields always placed in segment which fields they are using.
(I can be wrong in 5.x issues)


WF 7.6.2, WinNT/2K, MSSQL 2K, MSOLAP 2K, BID
 
Posts: 79 | Location: Moscow | Registered: April 27, 2007Report This Post
Expert
posted Hide Post
quote:
DEFINE TRANSMIT_WHEN_MI/MDYY = HDATE(TRANSMIT_WHEN_MI_O,'MDYY');

DEFINE TRANSMIT_WHEN_MI/MDYY WITH somefieldname= HDATE(TRANSMIT_WHEN_MI_O,'MDYY');
is that what you wanted to know, Winston?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
Yes, that is the example I am seeking.

Thx


Into the Memory Hole!
 
Posts: 9 | Registered: March 16, 2007Report This Post
Member
posted Hide Post
quote:
DEFINE TRANSMIT_WHEN_MI/MDYY WITH some MASTER FILE fieldname= HDATE(TRANSMIT_WHEN_MI_O,'MDYY');


Winston, hope this helps.

Ira 5.3.6
 
Posts: 29 | Registered: March 30, 2007Report 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     BETTER UNDERSTANDING "WITH"

Copyright © 1996-2020 Information Builders