Display Account Name on AREV screen (AREV Specific)
At 28 FEB 2005 09:54:35AM Joshua Saks wrote:
My customer would like the AREV user displayed on the screen. I would like some suggestions as to how to accomplish this. In AREV 2.12, there was a cell containing the user as part of the status line.
If I use the status line, I would like to preserve the information currently displayed.
Any suggestions, either for the status line, or something else?
Thanks, Josh Saks
At 28 FEB 2005 02:31PM dsig _at_ sigafoos.org wrote:
If you have the book for the window common .. there is a way to change the 'window' caption. I don't have it handy to give you the specifics but you should be able to find the WC_TITLE% i think(?)
You could place in status but other things use this also so ..
dsig _at_ sigafoos.org.com onmouseover=window.status=the new revelation technology .. a refreshing change;return(true)"
David Tod Sigafoos ~ SigSolutions
At 28 FEB 2005 05:11PM Barry Stevens wrote:
Create a "Smart" label on the screen
i.e.
Create a label
Highlite and press
enter C as the code and @ANS=@USERNAME as the command
baz
At 28 FEB 2005 05:58PM Matt Sorrell wrote:
Josh,
You don't mention which version of ARev, but check into the system subroutine 'STATUP'. It is documented in the ARev 3.0 R/Basic manual.
This lets the developer programmatically update the status line. It appears that you can create your own templates for how the status line should be laid out, and then populate one of the columns of your template with @USERNAME during a logon process.
Sprezz will most likely have more info concerning this approach, as will several of the other developers on the forum.
I have used STATUP before, but just to temporarily display a message. I then restored the original status line. I have never used custom templates, but the docs imply it can be done.
HTH,
At 28 FEB 2005 06:09PM Matt Sorrell wrote:
Here is a little more information about @STATLIST, the system variable that stores the status line template information.
While the array can be amended, and by this I assume you can add your own templates, it might be easier to just loop through them at logon and modify all of the templates to include the current @USERNAME value. This way, whenever the system swaps out status lines based on your mode (window, r/list, etc.) your @USERNAME will always be there.
At 28 FEB 2005 06:12PM Matt Sorrell wrote:
Boy, it's clarification day today.
If you use the idea in my second message, about updating the contents of @STATLIST at logon, then there would be no need to use STATUP. The system reads @STATLIST any time it needs to redraw the status line, and you would have told it that the value of @USERNAME should be included. The system would then handle it automatically.
The only touchy spot might be right after logon, if you have modified the templates but the system has already displayed the information. In that case it might be necessary to call STATUP with one of the template names just to get the status bar to update.
Best of luck!!!
At 02 MAR 2005 04:20PM Dave Harmacek wrote:
I've put this in the Window label that appears at the top. This is so that if the user does a printscrn their name appears on the printout.
In the window Pre Init (which cannot declare Window Common btw) the entire window template is in @RECORD. The label is at field( @RECORD, char(247), 6)
So I append the user name to the current label like so:
newlabel=field( @RECORD, char(247), 6): " {": @username: "}"
@RECORD=fieldstore( @RECORD, char(247), 6, 1, newlabel)
At 04 MAR 2005 07:00PM Warren Auyong wrote:
If you want the application/account name use @ACCOUNT instead of @USER in any of the solutions thus so far posted.
At 15 MAR 2005 03:33PM R Johler wrote:
If you are on Windows 2000, you can make the username appear on the Windows title bar with this (works from TCL you can tweak it into R/basic):
suspend exit cmd /c TITLE username
where you replace 'username' with whatever the user's name is or some other text.
Then you only have to do this once, not over and over and over for each Arev 'screen'.