Simple customization to auto popluate character01 with user name

Jim,

The current user ID is a property of the session object - I used it in the Help Desk form, so the name of the object was HelpDeskForm.Session.UserName. My code line reads:

HDCase_Row.dataView(0)(NameField) = HelpDeskForm.Session.UserName

This puts the user name into the provided name field. It's a passed parameter for me, but you would change "NameField" to "Character01" and substitute your dataview name and use the current row instead of row zero.

Making a field mandatory is described in the Help under Customization - Rule Wizard. I've not done it outside of a classroom exercise, but custom row rules didn't seem too challenging. The wizard does the heavy lifting.

I hope this helps!

Lynn Thomas
Senior Engineer
SAIC
317-357-4041 X255



[Non-text portions of this message have been removed]
Can anybody provide an example on how to pre-populate character01 with the current Vantage user ID value on new record? I plan to enable a field on the form bound to character01 that will pre-populate, but allow the user to change the value. As a bonus, how do you make entering data in the field mandatory?

Thanks in advance.

Jim Pratt

Vantage 8.03.404B
I'm auto populating something like that on the labor entry screen (user
name and date) to track who alters labor records. I can post my code
for populating the ShortChar01 field in about an hour. Got to run to
another value added meeting!



Rob Bucek

Manufacturing Engineer

PH: 715-284-5376 ext 311

FAX: 715-284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site)



________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of jmpratt7
Sent: Thursday, May 14, 2009 10:54 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Simple customization to auto popluate character01
with user name.





Can anybody provide an example on how to pre-populate character01 with
the current Vantage user ID value on new record? I plan to enable a
field on the form bound to character01 that will pre-populate, but allow
the user to change the value. As a bonus, how do you make entering data
in the field mandatory?

Thanks in advance.

Jim Pratt

Vantage 8.03.404B





[Non-text portions of this message have been removed]
Jim:

Just a reminder, don't use Character01 for a User ID. Remember to use ShortChar01 as Rob does.

Field length = 1000 for Character
Field length = 50 for ShortChar

Lynn


--- In vantage@yahoogroups.com, "Rob Bucek" <rbucek@...> wrote:
>
> I'm auto populating something like that on the labor entry screen (user
> name and date) to track who alters labor records. I can post my code
> for populating the ShortChar01 field in about an hour. Got to run to
> another value added meeting!
>
>
>
> Rob Bucek
>
> Manufacturing Engineer
>
> PH: 715-284-5376 ext 311
>
> FAX: 715-284-4084
>
> <http://www.dsmfg.com/>
>
> (Click the logo to view our site)
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of jmpratt7
> Sent: Thursday, May 14, 2009 10:54 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Simple customization to auto popluate character01
> with user name.
>
>
>
>
>
> Can anybody provide an example on how to pre-populate character01 with
> the current Vantage user ID value on new record? I plan to enable a
> field on the form bound to character01 that will pre-populate, but allow
> the user to change the value. As a bonus, how do you make entering data
> in the field mandatory?
>
> Thanks in advance.
>
> Jim Pratt
>
> Vantage 8.03.404B
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Good point Lynn, you cant do much in crystal with those Character
fields..that was a painful lesson...no sorting, grouping..



Rob Bucek

Manufacturing Engineer

PH: 715-284-5376 ext 311

FAX: 715-284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site)



________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Lynn
Sent: Thursday, May 14, 2009 11:29 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Simple customization to auto popluate character01
with user name.





Jim:

Just a reminder, don't use Character01 for a User ID. Remember to use
ShortChar01 as Rob does.

Field length = 1000 for Character
Field length = 50 for ShortChar

Lynn

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Rob
Bucek" <rbucek@...> wrote:
>
> I'm auto populating something like that on the labor entry screen
(user
> name and date) to track who alters labor records. I can post my code
> for populating the ShortChar01 field in about an hour. Got to run to
> another value added meeting!
>
>
>
> Rob Bucek
>
> Manufacturing Engineer
>
> PH: 715-284-5376 ext 311
>
> FAX: 715-284-4084
>
> <http://www.dsmfg.com/ <http://www.dsmfg.com/> >
>
> (Click the logo to view our site)
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of jmpratt7
> Sent: Thursday, May 14, 2009 10:54 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Simple customization to auto popluate character01
> with user name.
>
>
>
>
>
> Can anybody provide an example on how to pre-populate character01 with
> the current Vantage user ID value on new record? I plan to enable a
> field on the form bound to character01 that will pre-populate, but
allow
> the user to change the value. As a bonus, how do you make entering
data
> in the field mandatory?
>
> Thanks in advance.
>
> Jim Pratt
>
> Vantage 8.03.404B
>
>
>
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
Thanks for the help. Rob - I tried to replicate your BPM, but since I wanted to populate the field with the username, I was unsuccessful. I'm not sure that Progress has a way of knowing the calling user on the server side. If you know a way let me know.

Thanks again.

Jim Pratt

--- In vantage@yahoogroups.com, "Rob Bucek" <rbucek@...> wrote:
>
> Good point Lynn, you cant do much in crystal with those Character
> fields..that was a painful lesson...no sorting, grouping..
>
>
>
> Rob Bucek
>
> Manufacturing Engineer
>
> PH: 715-284-5376 ext 311
>
> FAX: 715-284-4084
>
> <http://www.dsmfg.com/>
>
> (Click the logo to view our site)
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Lynn
> Sent: Thursday, May 14, 2009 11:29 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Simple customization to auto popluate character01
> with user name.
>
>
>
>
>
> Jim:
>
> Just a reminder, don't use Character01 for a User ID. Remember to use
> ShortChar01 as Rob does.
>
> Field length = 1000 for Character
> Field length = 50 for ShortChar
>
> Lynn
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Rob
> Bucek" <rbucek@> wrote:
> >
> > I'm auto populating something like that on the labor entry screen
> (user
> > name and date) to track who alters labor records. I can post my code
> > for populating the ShortChar01 field in about an hour. Got to run to
> > another value added meeting!
> >
> >
> >
> > Rob Bucek
> >
> > Manufacturing Engineer
> >
> > PH: 715-284-5376 ext 311
> >
> > FAX: 715-284-4084
> >
> > <http://www.dsmfg.com/ <http://www.dsmfg.com/> >
> >
> > (Click the logo to view our site)
> >
> >
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> > Of jmpratt7
> > Sent: Thursday, May 14, 2009 10:54 AM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] Simple customization to auto popluate character01
> > with user name.
> >
> >
> >
> >
> >
> > Can anybody provide an example on how to pre-populate character01 with
> > the current Vantage user ID value on new record? I plan to enable a
> > field on the form bound to character01 that will pre-populate, but
> allow
> > the user to change the value. As a bonus, how do you make entering
> data
> > in the field mandatory?
> >
> > Thanks in advance.
> >
> > Jim Pratt
> >
> > Vantage 8.03.404B
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>