Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mercator 6.7 - component rule design - using input from control file

Status
Not open for further replies.

jamessong

Programmer
Jan 26, 2006
5
CA
hi,
In the type tree, I want to use lookup function to match $ with list of options from a control file.

The type design of that control file is in the same type tree. So the question is, how can I specify the component rule to do something like "ABSENT(LOOKUP(Filed1, $=Field1:ControlFile))"?

I know that this is doable in the map rule but I can't figure out how to do it in the type tree component rule.

Any help will be appreciated.

Cheers
 
Might not be possible, how do you read a control file into a tree? You might be able to use an include list in the tree or exclude list.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Hi, BocaBurger,
The trouble is that if I use include list, I have to do regression test whenever the control list is modified.

I try to save the regression test by using a control file. But this really increase the complexity in the map design. So I fight back to try using the control file in the type tree design...

My goal is not use constant values in type tree, because this will increase maintainence cost. but I also want to simplify the map design.

Any late-bound technology in Mercator?

Cheers
 
Again, how do you read a file into a tree, that needs to be compiled into a map. Map rule seems to be the way to go.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Hi, BocaBurger,
That's why I came for help. :)
I don't know whether it's possible or not, but on the help fiel and tutorial pdfs, I get no idea how to read file into type design.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top