If you have questions or if you want to share your opinion about Aware IM post your message on this forum
joftech
Posts: 117 Joined: Thu Oct 19, 2006 10:42 am
Location: Sydney
Contact:
Post
by joftech » Mon Oct 23, 2006 7:06 am
Hi Support,
I have a situation where I find a group of data lets say 20 records where a field on each record is called voucher number. I need to be able to get the user to enter a value for voucher number and then populate all 20 records with the same value.
Thanks
Alan
aware_support
Posts: 7525 Joined: Sun Apr 24, 2005 12:36 am
Contact:
Post
by aware_support » Mon Oct 23, 2006 8:27 am
You can define a temporary object (with Persistence property set to "Not persisted) where you define VoucherNumber attribute.
Then you can define a process:
ENTER NEW TemporaryObject
FIND MyRecord WHERE ...
MyRecord.VoucherNumber=TemporaryObject.VoucherNumber
Aware IM Support Team
joftech
Posts: 117 Joined: Thu Oct 19, 2006 10:42 am
Location: Sydney
Contact:
Post
by joftech » Tue Oct 24, 2006 6:54 am
Hi Support,
Thank You.
Would I then use the Insert funtion in a process to set the value for voucher number in the found set.
Thanks
Alan
aware_support
Posts: 7525 Joined: Sun Apr 24, 2005 12:36 am
Contact:
Post
by aware_support » Tue Oct 24, 2006 7:09 am
No, you do not need to do anything else.
The action
MyRecord.VoucherNumber = TemporaryObject.VoucherNumber
will do everything - it will set the value of the VoucherNumber attribute for ALL records found by the previous FIND action.
Aware IM Support Team
joftech
Posts: 117 Joined: Thu Oct 19, 2006 10:42 am
Location: Sydney
Contact:
Post
by joftech » Mon Oct 30, 2006 2:20 am
Hi Support,
tried the following
Results.VoucherNumber = TemporaryObject.VoucherNumber
This did not do anything except show me a record from results.
Alan
aware_support
Posts: 7525 Joined: Sun Apr 24, 2005 12:36 am
Contact:
Post
by aware_support » Mon Oct 30, 2006 3:36 am
What does the log say? (you can view a log with the log viewer - see the User Guide for details).
Does it find any records? Does it set any value?
Aware IM Support Team