Hi,
This is my scenarion:
(1) Define a many-to-one link between entity "Assured" and "PolicyPlan" called "PolicyPlan"
(2) Defined a input field "assdpolicyNumber" in the "Assurd" entity.
(3) Created a formula to update "policyPlanId" for the "PolicyPlan" link as follows (formula is in Before Save Custom Script)[PHP]:
(4) When i insert a new record with a value set for "assdpolicyNumber", the links is updated correctly and the "name" of the for entity "PolicyPlan" shows correctly
The problem areas:
(5) When I edit the record and enter a new value for "assdpolicyNumber", the new link id inserted correctly but the field displays the ID value instead of the "name" field.
(6) When i refresh the page, the "name' field now show correctly.
Why does it not show the "name" field correctly at step 5 and requires a page refresh?
This is my scenarion:
(1) Define a many-to-one link between entity "Assured" and "PolicyPlan" called "PolicyPlan"
(2) Defined a input field "assdpolicyNumber" in the "Assurd" entity.
(3) Created a formula to update "policyPlanId" for the "PolicyPlan" link as follows (formula is in Before Save Custom Script)[PHP]:
PHP Code:
ifThen(assdPlantype != NULL,
policyPlanId = record\findOne('PolicyPlan', null, null, 'name=', assdpolicyNumber));
The problem areas:
(5) When I edit the record and enter a new value for "assdpolicyNumber", the new link id inserted correctly but the field displays the ID value instead of the "name" field.
(6) When i refresh the page, the "name' field now show correctly.
Why does it not show the "name" field correctly at step 5 and requires a page refresh?
Comment