srikarthy
23rd March 2007, 05:37
Good Day!

Can someone tell me how to write a condition script for text fields? I couldn't just write even a return("") statement in the text editor. It comes up with numerous errors.

Regards,
srikarthy

sachin03
27th March 2007, 15:15
Can you be more specific? Do you need to do some formating in the text or you need the text field to be editable based on some conditions?

srikarthy
29th March 2007, 05:23
Can you be more specific? Do you need to do some formating in the text or you need the text field to be editable based on some conditions?

Hi Sachin,

I want to write the current date and time as a text for each record that is imported. Suppose I import new items. If I look at the Item text of any item, I can find out when it was imported or it was overwritten recently etc.
This is the purpose. Hope at least this Sachin does not disappoint me.

Thanks,
srikarthy

giggig
29th March 2007, 10:56
Hi srikarthy,

few years ago i have solved this problem creating a new table (with index1 = tiitm001.index1) for extra data for items. in this table you can put fields date, time when item was created and date, time when item was modified, and why not the logname$ for creation or modification.

hope its help you,
and sorry for my so bad english:confused:

GiG

en@frrom
29th March 2007, 11:10
If all you need is a date/time, and maybe some other info, and you anyway have the text field available, then I would use the text field rather than adding a new table...

You could use the text.write() function to create the text fields


Regards,
Eli Nager