on 2016 Sep 21 8:58 AM
Hi Experts
I have added an Extension Field to an RFX which I go count the number of RFx Responses and display it on screen. My problem is how do I save that same value on the database so I can read it from a Query. The script Target is on "Loaded".
supcolln = doc.getProposals();
number = supcolln.size();
doc.getExtensionField("EXT_Supplier_Count").set(number);
How do I get to save the set value to the database.
Thanks in advance
Request clarification before answering.
Hi,
You should just move your exact code from 'Loaded' to 'Validate' script.
PS: if the only purpose of this is the query result, you can do the calculation directly in the query without the need of an extension field.
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
? ... COUNT
( SELECT COUNT(*)
FROM {rfx response table} frr
WHERE frr.PARENT_OBJECT_ID = {parent alias}.OBJECTID )
this is the most simple form ... you should query as per your specific requirements.
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.