Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to add a calculated field/column to a browse box?
Hi

I'm embarrased to ask this, but here goes.

I am wanting to add a local data variable into a browse box, but
clearly I need to enter some data into that local variable for each
row of the browse. I cannot figure where to do this, or within which
embed point.

For example, lets say I have a FirstName data field and a Surname data
field. If I want to display the 2 fields concatenated (e.g. John
Smith) within a single column for this row, how woudl I do it?

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
mavenmind@gmail.com
08-11-07 11:55 PM


Re: How to add a calculated field/column to a browse box?
mavenmind@gmail.com wrote:
> Hi
>
> I'm embarrased to ask this, but here goes.
>
> I am wanting to add a local data variable into a browse box, but
> clearly I need to enter some data into that local variable for each
> row of the browse. I cannot figure where to do this, or within which
> embed point.
>
> For example, lets say I have a FirstName data field and a Surname data
> field. If I want to display the 2 fields concatenated (e.g. John
> Smith) within a single column for this row, how woudl I do it?
>
> Thanks
>
On setqueuerecord embeds of this browse, put code: clip(FirstName)&'
'&clip(Surname). Just be sure that column for this variables have enough
spaces for displaying...

Report this thread to moderator Post Follow-up to this message
Old Post
Oggy
08-12-07 08:55 AM


Re: How to add a calculated field/column to a browse box?
You can also use a legacy embed.
First, set up your local variable. Insert the variable into your
browse as needed.
Next, go to the embeds for your browse.
Click on the red icon with the yellow foot at the top (Show Legacy
Embeds).
Under the embed "Browser, Format an element of the queue," put in
your code to set the local variable.
Example:
Loc:szDisplayName = prem:szFirstName & ' ' & prem:szSurname
This will set the value of the local variable for each element of the
queue.
HTH


On Aug 11, 2:37 pm, mavenm...@gmail.com wrote:
> Hi
>
> I'm embarrased to ask this, but here goes.
>
> I am wanting to add a local data variable into a browse box, but
> clearly I need to enter some data into that local variable for each
> row of the browse. I cannot figure where to do this, or within which
> embed point.
>
> For example, lets say I have a FirstName data field and a Surname data
> field. If I want to display the 2 fields concatenated (e.g. John
> Smith) within a single column for this row, how woudl I do it?
>
> Thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Edward
08-12-07 08:55 AM


Re: How to add a calculated field/column to a browse box?
Many thanks to both of you. I'll have a look. The coding is straight
forward, I was just battling to find a suitable embed point. I'll try
it and see how it goes. I don't recall seeing the SetQueueRecord
embed, but I'll look again, other wise, I'll try the legacy embed
point.

Thanks
Mavenmind


Report this thread to moderator Post Follow-up to this message
Old Post
mavenmind@gmail.com
08-12-07 12:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clarion archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:21 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.