Setting field value

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
joftech
Posts: 117
Joined: Thu Oct 19, 2006 10:42 am
Location: Sydney
Contact:

Setting field value

Post by joftech »

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 »

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 »

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 »

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 »

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 »

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
Post Reply