This topic is locked

Record Question.

2/27/2010 7:51:34 PM
ASPRunnerPro General questions
D
Daxa author

We are new to this product and have only tried for 3 days. Watchd the videos, went through all the help and online tutorials.
What we need to do is to display a record field (for example full name) in the header portion of the forms (where is says logged on as:...) except we will put it to the right side.
When we add the field (using the editor), it is displayed on screen (we think in white), but when we compile and run, we don't see anything.
We copied the Logged in user field, then edited it in html. In the editor, it shows up as the correct field (fullname), but nothing is displayed afer recompiled and run.
What are we missing.
Tx, Daxa

Sergey Kornilov admin 2/27/2010

Here is how it can be done.

  1. AfterSuccessfulLogin event

    SESSION("username")=data("FullName")
  2. BeforeDisplay event of the page where this needs to changed

    xt.assign "username", SESSION("username")
    This code assumes that FullName is the field on the login table that stores the full name.

D
Daxa author 2/28/2010



Here is how it can be done.

  1. AfterSuccessfulLogin event

    SESSION("username")=data("FullName")
  2. BeforeDisplay event of the page where this needs to changed

    xt.assign "username", SESSION("username")
    This code assumes that FullName is the field on the login table that stores the full name.


Thankyou for getting back to me. I understand everything you've posted and this helps greatly. The question I guess that I really have, is how to display this on the right side of the page using the Visual Editor in the header portion?
Not sure if that's the right terminology, what I mean by header portion is the same line that the logged in as:... is displayed.
Does this make sense, or do I need to provide more details?
Thanks again,

Daxa

Sergey Kornilov admin 3/1/2010

Daxa,
I think you can simply proceed to Visual Editor and drag-n-drop the yellow 'username' rectangle where you want it to appear.