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.
Here's what I want to do -- compare Stack row 1 to stack row 2 and see if there are any differences. Do I need to do this field by field, explicitly specifying each in a massive OR clause or is there a way to compare the entire rows to each other? Or perhaps a subscript way to reference the columns so that I can build a short loop? Essentially what I'm looking to do is this --
If StkUserInformation(1) EQ StkUserInformation(2) then begin . . . endbeginThis message has been edited. Last edited by: Kerry,
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
You can add to the MFD a single 'Group Field' that covers all of the fields in the table. See the Documentation of GROUP Fields. Then you can just compare ... IF GRP NE LAST GRP
But if this is a relational database you can't use LAST but I assume you know how to get the two records you want to compare.
But in the meantime, perhaps you could Compute a new field in your stack that is the concatenation of all the fields - and then do your comparisons on that pseudo-Group field. It will take a bit of explicit coding, depending on how many fields you have, but then the comparison code would be very simple.
Dave just beat me to the suggestion. However, instead of doing a COMPUTE into a stack, you COULD do a define in the Master: DEFINE FULLNAME/A50 = FRST | LA;$
You could then compare the records. So no, there is no way to compare a record except field by field. However, you could either create a Defined field or a Computed field.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
Yeah, just comparing all the fields individually instead of concatenating all the individual fields lets me ignore all the type-casting headaches. That seems like the most reasonable solution.
If there isn't a function that's OK. I just didn't want to do the long form if there was a proper way to do it in a shorter form that I was not aware of.
Thanks folks!
J.
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
There are Maintain internal functions and objects that may do the trick, but it is very low level, and I have only touched on it once about 10 years ago, and that was to dynamically change the colouring of screen objects from withing maintain.
Mark (MaintainWizard) are you still at IBI ? Someone there may give you the info. There is an expansive object hierarchy inside maintain that may be usable to do this sort of thing.
I looked at the Object-Oriented stuff that nobody uses, but it doesn't work for the stack stuff.
I could build a separate case, but I have to do it for about a dozen different tables, for each only once. So all the case would do is add one more level of misdirection without making anything shorter or simpler.
Do I mark a thread "solved" if the answer is pretty much that I can't do what I would like to?
J.
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007