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.
That doesn't work. it's looking for a VALUE for the variable. You can't use a variable that contains a full line of the style sheet code but you can use variables for values ex: PAPER = &PAPERSIZE.
I try the following request,then it is no problem. Dou you have SUBHEAD keyword, or IMAGE= keyword is correnct?
-SET &LOGO='PXP'; TABLE FILE CAR PRINT CAR MODEL SEATS BY COUNTRY ON TABLE SUBHEAD " " ON TABLE SET STYLE * -IF &LOGO EQ 'PDP' THEN GOTO PDPHEAD; TYPE=TABHEADING,IMAGE='http://www.accs.co.jp/accwe002.gif', SIZE=(1.74675 0.5),$ -GOTO AFTERH; -PDPHEAD TYPE=TABHEADING,IMAGE='http://www.accs.co.jp/accwe017.gif', SIZE=(1.5 0.482143),$ -AFTERH ENDSTYLE END
Originally posted by Stan: [qb] ON TABLE SET STYLE * TYPE=TABHEADING,WHEN=&LOGO EQ 'PDP', <snip>[/qb]
Almost. After evalation of &LOGO, the WHEN condition needs to be a "literal vs. literal" comparison (of the string contained in &LOGO to the string "PDP"), so you need to single-quote &LOGO, thus: ...,WHEN='&LOGO' EQ 'PDP', ...,$
Without the tics, TABLE will see (perhaps): ...,WHEN=Vax EQ 'PDP',...,$ and will complain that there is no field named Vax.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Flip, just to offer you encouragement, it is definitely possible to put dialog manager in style sheets. i do it all day long. Its a very useful technique, so i encourage you to tinker with it to get it to work, for future use. In this case, stan's and jack's when= is certainly the elegant way to go.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
TABLE FILE yada yada ON TABLE SUBHEAD " " ON TABLE SET STYLE * TYPE=TABHEADING, IMAGE='http://www.accs.co.jp/&Gfile',SIZE=&Gsize,$ ENDSTYLE END
This has the advantage of isolating the decision rules and magic constants up front (so they are apparent and maintainable), and avoids cluttering the TABLE code itself with IFs, WHENs, GOTOs or labels.This message has been edited. Last edited by: <Mabel>,
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Looking back over the thread, I see that this was basically Jodye's idea.
If copying her code resulted in a "missing value" message (meaning an undefined dialog manager variable was referenced), the source is either &LOGO or &MYSTYLE. Two modifications to solve which ever problem:
a. include -DEFAULT &LOGO=something to ensure it is defined
b. a dash before each continuation line of the -SET:
Thats exactly what I wrote, but yes it was mangled by the forum wrapping the text and I am sure it will work. Dialogue manager will let you store anything in a variable. We do that all the time.