How do you insert a carriage return in a prompt for an amper variable? For example, say I have something like this:
-PROMPT &DISB4ID.(D,E,F,G,H,I,J,K,M,N,W,X).ID4 - FALL=D-G SPR=H-K SUMM=M N W X.
The prompt will display as
ID4 - FALL=D-G SPR=H-K SUMM=M N W X
... with a one character combo box below it. I would rather it look more like this
ID4 FALL=D-G SPR=H-K SUMM=M N X WThis message has been edited. Last edited by: <Kathryn Henning>,
Dev. Studio 7.6.11 Win 7
June 17, 2013, 12:59 PM
susannah
cr is & # 1 0 and lf is & # 1 3 (blank spaces b/w characters inserted just to make them show up on the forum)
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 17, 2013, 01:31 PM
Sam_R
I apologize for my inexperience, but I am not sure I understand. I have tried a couple of variations on the code:
-PROMPT &DISB4ID.(D,E,F,G,H,I,J,K,M,N,W,X).ID4 & # 1 0 FALL=D-G SPR=H-K SUMM=M N W X.
Returns this:
ID4 FALL=D-G SPR=H-K SUMM=M N W X #10
[COMBO BOX] [TEXT BOX]
This
-PROMPT &DISB4ID.(D,E,F,G,H,I,J,K,M,N,W,X).ID4& # 1 0 FALL=D-G SPR=H-K SUMM=M N W X.
Produces this
DISB41D #10FALL
[COMBO BOX] [TEXT BOX]
(As in yours the spaces between are not there.)
Dev. Studio 7.6.11 Win 7
June 17, 2013, 01:46 PM
susannah
don't know that it will work, i'm just telling you what the codes are for carriage return and for line feed. remember to escape the & character by following it with the pipe character | . just having the & will cause wf to think you're talking about an & variable.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 17, 2013, 01:50 PM
Sam_R
I tried adding a pipe, but it just adds a literal pipe to the prompt label. So, there may not be a way to do it. I really appreciate you trying to help.
Dev. Studio 7.6.11 Win 7
June 17, 2013, 02:46 PM
j.gross
Even if you succeed in passing it through to the HTML page, HTML will treat CR LF as whitespace.
Try <BR> instead:
-PROMPT &DISB4ID.(D,E,F,G,H,I,J,K,M,N,W,X).ID4<BR>FALL=D-G<BR>SPR=H-K<BR>SUMM=M N W X.
June 17, 2013, 03:03 PM
Sam_R
Hmm. Well, I thought that would work, but it reports this:
i get this when i try that: ibihash_getStr : ERROR--- can't translate string 'FALL=D-G' ---ERROR ibihash_getStr : ERROR--- can't translate string 'SPR=H-K' ---ERROR ibihash_getStr : ERROR--- can't translate string 'SUMM=M N W X' ---ERROR
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 17, 2013, 03:21 PM
Doug
Allow me to ask for clarity on this. Are you wanting this "Prompt" to show up for the users using the "Auto Prompting", or in a "Launch Page"?
I am able to populate the prompt box. What I need is to be able to is set a line break in the prompt label. Using your, Doug, as an example, I am trying to get Report Format: to print like this --
Report Format:
The labels I need to add are a bit long and messy.
Dev. Studio 7.6.11 Win 7
June 17, 2013, 03:54 PM
Doug
This:
quote:
C:\Users\samuer\Desktop\CURRENT PROJECTS\Prompts
is not viewable from within FocalPoint.
Have you considered using the HTML Composer to create a Launch Page for your fex/
June 17, 2013, 04:04 PM
Sam_R
Sorry.
Dev. Studio 7.6.11 Win 7
June 17, 2013, 04:06 PM
Sam_R
I'm beginning to think a Launch Page needs to be the next phase of my learning. We have to connect to the server remotely, and the site that hosts it is pretty strict on what they allow off-site programmers do. No one here has tried yet. Guess I'll break some new ground.
Dev. Studio 7.6.11 Win 7
June 17, 2013, 04:26 PM
susannah
oh totally!
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 18, 2013, 08:22 AM
Tony A
The problem that you will have achieving this is due to the fact that the autoprompting is achieved using XSL.
I have tried several methods to "encourage" a line feed within the prompt label but had no success at all.
In the interests of moving you forward, before you embark upon your HTML composer career, is the following code snippet any use? I admit that it is a little cumbersome compared to what you would really like but it would give your end users an indication of code decriptions?
-* The following code should be on one line.
-SET &DUMMY = &DISB4ID.(<D (Fall),D>,<E (Fall),E>,<F (Fall),F>,<G (Fall),G>,<H (Spring),H>,<I (Spring),I>,<J (Spring),J>
,<K (Spring),K>,<M (Summer),M>,<N (Summer),N>,<W (Summer),W>,<X (Summer),X>).ID4.;
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
June 18, 2013, 08:32 AM
Doug
Don't fear too much as "you embark upon your HTML composer career"... It's really not that bad or hard...
Just ran it on a 7.6.10 install with autoprompt turned on and it also works fine.
Just in case, I took your code from the above post and used that (you never know ) and that worked OK on both versions.
What browser are you using - I guess I.E. but which abomination version? I am using I.E. 8 in both.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
June 18, 2013, 12:09 PM
Sam_R
No problem. I understand.
IE v. 10
I assume my autoprompt is turned on, or else I wouldn't be receiving autoprompts. But just in case, how do I check?
Dev. Studio 7.6.11 Win 7
June 18, 2013, 12:32 PM
Tony A
You would need to access the client server console - probably not something that you have access to given your previous statement!
However, you are correct in assuming that, if you are getting the autoprompt screen (give away is the page title - "WebFOCUS Autoprompting Facility"!) then it is turned on.
Have you tried a new fex with just that line of code within it? If that runs OK then it may be something else lurking in the depths of your code.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
June 18, 2013, 12:46 PM
Sam_R
Using a different .fex with just that line of code still results in the browser just going blank. :sigh:
I think it's looking like there is some super secret security in place on the remote server to keep us offsite programmers from wandering out into the street and getting run over by autoprompts.
Thanks everyone for trying, though.
Dev. Studio 7.6.11 Win 7
June 18, 2013, 12:52 PM
Tony A
That's a shame, not sure what the underlying cause of that is. Can you try with compatability mode on?
As for autoprompting, you can also check the value for the variable &WFDESCRIBE by issuing -? & SAVEPRINT (ala Francis Mariani!) and if the value is anything other than OFF you have autoprompting turned on. The usual setting is XMLPROMPT.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10