Dave wrote:
The alternative to using the stock function "ODF_AUD_VALUE_FCT" for muti-valued lookups is to read the data directly from the underlying table; ODF_AUD_MULTI_VAL_LOVS - but using that funciton is much easier is you just want to display the formatted data (I need to use the table when I want to do something with the actual values)
--
HOWEVER - I think the original question was rather to with dymamic lookup values rather than multi-valued-lookup values; for that you will just need to incorporate the "logic" from you dynamic lookup NSQL into the NSQL for the query for your custom portlet; i.e. your portlet query has to work out for a given auditted lookup value what this actually means (based on the logic in your lookup NSQL) - this should not be too hard to code?
(this is very much complicated by multi-valued dynamic lookups lookups of course!) :ph34r:
Dave and Martti,
Thanks for your help with this. Looking at the diagram for Audit provided in the technical reference guide. I understand that in order for me to retrieve usable information for the values: value_before and value_after in the CMN_Audits table. I need to unite this table with either odf_aud_multi_val_lovs (for dynamic values) or odf_aud_lookup_captions (for static values).
I was thinking of developing the solution as follows:
Select
audi.value_before
, dyna.DBvalue
,stat.SBvalue
, audi.value_after
, dyna.DAvalue
,stat.SAvalue
From
cmn_audits audi
, odf_aud_multi_val_lovs dyna
, odf_aud_lookup_captions stat
Where
audi.id=dyna.id and audi.id=stat.id
thank you
________________________________________
how do i run a sql trace?