CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Record frm - Memo textbox - Display date and logged in user.

Print topic Send  topic

Author Message
travel-net

Posts: 56
Posted: 03/01/2004, 2:41 AM

Hello,

I wan't to combine the following code into a memo textbox. If i use one of them they are working, but i can't seem to get them together:

Here is the code:

$storing_frm->probleemomschr->SetValue($storing_frm->probleemomschr->GetValue() . "\r\n" . date("d-m-Y H:i:s - "));

$storing_frm->probleemomschr->Setvalue(CCDLookUp("init","users_tbl","id=".CCGetUserID(), $DBConnection1) );

The output in the record form should be something like this:
01-03-2004 08:57:50 - PW - client called with etc.
01-03-2004 10:59:50 - JD - client called again etc.
01-03-2004 11:45:30 - FW -

History is saved and for every edit of the record a newline is inserted with current date and current editor.

I'm using php, mysql and CCS 2.x

Regards,
Travel-Net

View profile  Send private message
peterr


Posts: 5971
Posted: 03/01/2004, 8:40 PM

Taking a quick look, I can only see that possibly the order of these 2 lines of code should be reserved.
Possibly the 2nd line should be the one that uses "GetValue" to preserve the value of "probleemomschr". Otherwise your 2nd lline of code will overwrite the value of "probleemomschr".
However, whatever problem you have, please try describing what happens when you use both lines of code. You only wrote "i can't seem to get them together", which doesn't tell us much.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
travel-net

Posts: 56
Posted: 03/02/2004, 4:58 AM

Hello Peter,

I managed to solve this problem. It is as you said the GetValue should be in both the lines. This will result in record form that current date and time and the users initials will be displayed correctly. This is for a helpdesk support system.

Anyway, thanks for your reply

Regards,
Frans
View profile  Send private message
Damian
Posted: 04/16/2004, 9:10 PM

Hi Frans,

How do you setup/code the helpdesk so that multiple people can reply.
comment etc attached to the helpdesk job, without them being able to modify
a previous comment/response?

Damian

"travel-net" <travel-net@forum.codecharge> wrote in message
news:5404484f07fb14@news.codecharge.com...
> Hello Peter,
>
> I managed to solve this problem. It is as you said the GetValue should be
in both the lines. This will result in record form that current date and
time and the users initials will be displayed correctly. This is for a
helpdesk support system.
>
> Anyway, thanks for your reply
>
> Regards,
> Frans
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.