Focal Point
conditional Expression in wf 5.3.2

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3291018331

December 11, 2004, 08:16 PM
<kj>
conditional Expression in wf 5.3.2
I have a conitional exxpression in Dialogmanager that spread to multiple lines.
EX:
-SET &VAL = IF &X1 EQ 1 THEN 'Y1' ELSE
- IF &X1 EQ 2 THEN 'Y2' ELSE
- IF &X1 EQ 4 THEN 'Y3'
- ELSE ' ';

This is working fine in 5.2.6 where as in 5.3.2 am getting an error
(FOC260) AN OPERATION IS MISSING AN ARGUMENT

Is there some thing wrong with the above code?
If I put everything in one line it works fine in 5.3.2 .

A quick response is heighly appreciated.

Thanks,
kj
December 11, 2004, 10:19 PM
suzy_smith
Hi KJ

The error message you are getting is different from the one we got (IBI case 93081140), but the symptom appears to be the same.

5.2.3 seems to not recognize continued lines in a DM -SET statement. Sometimes continued lines work, sometimes they don't. IBI is aware of the problem. It may be only in an ad hoc request that they don't work. We didn't pursue it very far once we found out that IBI knew about the problem.

Our solution was to make one gigundo unreadable line out of -SET statements that used to continue onto several lines.

HTH. Suzy
December 11, 2004, 10:20 PM
suzy_smith
kj

Sorry--I meant to say 5.3.2. The code worked in 5.2.6.

Suzy
December 12, 2004, 01:00 PM
<kj>
Suzu,
thank you very much for responding quickly.
Is there any limit on number of characters we can write on a single line in DM.

Thanks,
kj
December 12, 2004, 03:02 PM
suzy_smith
kj

I don't know what the limit might be, but it is certainly way more than 80 characters. I expect it's somewhere in the 3,000 ballpark, but don't really know.

Suzy
December 13, 2004, 03:32 AM
susannah
OMG! if this is a problem in 53, i'm NEVER upgrading.
here's a work around
-SET &VAL = IF &X1 EQ 1 THEN 'Y1' ELSE ' ';
-SET &VAL = IF ( &X2 EQ 'Y2') AND (&VAL EQ ' ') THEN 'Y2' ELSE &VAL;
-SET &VAL = IF ( &X3 EQ 'Y3') AND (&VAL EQ ' ') THEN 'Y3' ELSE &VAL;
...add nauseum.

Monte...please advise on the status of this 532 error...thanks.
December 13, 2004, 01:08 PM
<kj>
I have noticed one thing.
1) If I open the fex in text editor and run it from there, am getting the error message. If I run it from dev studio(right click on fex and run or select fex and click on run button in toolbar) then it works fine.

Can any one tell how exactly the developer studio executes the fexs? It may be a dumb question but am totally confused with this strange behaviour.
Our environment is server based, means we do development on the server.

Thanks,
kj
December 13, 2004, 01:31 PM
GCohen
This is a bug in the local Dev Studio console, and does not effect actual focexec execution.
It will be fixed in Release 5.3.3.
December 13, 2004, 01:46 PM
suzy_smith
We have Apache, Tomcat, WebFOCUS, and all of our master, fex and focus files on unix. But we connect with these using DS.

It really does affect execution if you are running "ad hoc." You get an error and the report doesn't run.

We "think" we have figured out that "ad hoc" means:
1. Copy into PR console window and execute
2. Run from open edit window.

Sure wish it all worked the same.
December 14, 2004, 01:20 PM
<monte2000>
Susannah -

Gerry beat me to it. And you can't really beat a response from the President/CEO of IBI himself.

"This is a bug in the local Dev Studio console, and does not effect actual focexec execution.
It will be fixed in Release 5.3.3. "

But I need to reiterate here - Focal Point is not a direct line to Tech Support. I am merely a moderator for the boards so if you have questions about bugs, fixes, et al, please contact Tech Support. They have all the info you need.

Thanks!

Monica